/* Download Page Component - 下载页面组件 */

/* 下载页面主体 */
.download-page {
    padding: 130px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* 下载页面标题区域 */
.download-hero {
    text-align: center;
    margin-bottom: 60px;
}

.download-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.download-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 下载选项容器 */
.download-options-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 下载网格布局 */
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 平板端/移动端：2列布局 (小于768px时) */
@media (max-width: 768px) {
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}



/* 下载卡片 */
.download-card {
    background: white;
    border: 2px solid var(--surface-dark);
    border-radius: var(--radius-lg);
    padding: 20px;
    padding-top: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.download-card.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-5px);
}

.download-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* 主下载卡片 */
.main-download {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid var(--primary-color);
}

.main-download::before {
    content: "推荐";
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-gradient);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

/* 比亚迪版本卡片 */
.byd-download:hover {
    border-color: #f59e0b;
}

.byd-download::before {
    content: "定制版";
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

/* 画中画版本卡片 */
.pip-download:hover {
    border-color: #8b5cf6;
}

.pip-download::before {
    content: "多任务";
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

/* 下载图标 */
.download-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.byd-download .download-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* 下载卡片内容 */
.download-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.download-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.4;
    font-size: 0.95rem;
}

/* 下载选项按钮组 */
.download-options {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.download-options .btn {
    flex: 1;
    height: 44px;
    text-align: center;
    font-size: 0.9rem;
    padding: 0 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* 下载按钮样式 */
.btn-download {
    background: var(--primary-gradient);
    color: white;
}

.btn-download:hover {
    background: var(--secondary-gradient);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-byd {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.btn-byd:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* 二维码按钮 */
.btn-qr {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border: 1px solid var(--surface-dark);
}

.btn-qr:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-qr-byd:hover {
    border-color: #f59e0b;
    color: #f59e0b;
}

.btn-qr-pip:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

/* 版本信息 */
.version-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--surface-medium);
}

.version-info span {
    padding: 4px 0;
}

/* 二维码模态框 */
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.qr-modal.active {
    display: flex;
}

.qr-modal.active .qr-content {
    transform: scale(1);
}

.qr-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    width: 360px;
    height: 360px;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* 版本信息淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.qr-content h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

.qr-code img {
    width: 260px;
    height: 260px;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.qr-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.close-qr {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f5f5f7;
    border: none;
    font-size: 1.2rem;
    color: #86868b;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-qr:hover {
    background: #e5e5e7;
    color: #1d1d1f;
    transform: scale(1.1);
}

/* ==================== 版本选择指南 ==================== */
.version-guide-section {
    max-width: 900px;
    margin: 0 auto 48px;
    padding: 0 20px;
}

.version-guide-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.version-guide-header > .fas {
    font-size: 28px;
    color: #007aff;
    flex-shrink: 0;
}

.version-guide-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 4px 0;
    letter-spacing: -0.4px;
}

.version-guide-header p {
    margin: 0;
    font-size: 14px;
    color: #8e8e93;
}

/* 版本卡片网格 */
.version-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

/* 单个版本卡片 */
.vg-card {
    position: relative;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 20px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 122, 255, 0.15);
}

/* 推荐卡片高亮 */
.vg-card.recommended {
    border-color: rgba(0, 122, 255, 0.25);
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.1);
}

.vg-card.recommended:hover {
    box-shadow: 0 12px 32px rgba(0, 122, 255, 0.18);
}

/* 警告卡片 */
.vg-card.warning-card {
    border-color: rgba(245, 158, 11, 0.25);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.04) 0%, rgba(255, 255, 255, 0.9) 100%);
}

/* 推荐/警告 标签 */
.vg-card-tag {
    position: absolute;
    top: -10px;
    left: 16px;
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.35);
}

.vg-card-tag.warning-tag {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

/* 卡片图标 */
.vg-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* 卡片内容 */
.vg-card-body h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 4px 0;
    letter-spacing: -0.2px;
}

.vg-card-desc {
    font-size: 12.5px;
    color: #8e8e93;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

/* 条件清单 */
.vg-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vg-card-list li {
    font-size: 12.5px;
    color: #3a3a3c;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.vg-card-list li .fas {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 11px;
}

.vg-card-list li .fa-check {
    color: #34c759;
}

.vg-card-list li .vg-tip {
    color: #007aff;
}

.vg-card-list li .vg-no {
    color: #ff3b30;
}

/* 快速判断提示条 */
.vg-quick-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.12) 0%, rgba(255, 214, 0, 0.06) 100%);
    border: 1px solid rgba(255, 214, 0, 0.4);
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 13.5px;
    color: #3a3a3c;
    line-height: 1.6;
}

.vg-quick-tip .fas {
    color: #f59e0b;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* 响应式 */
@media (max-width: 768px) {
    .version-guide-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .version-guide-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 安装步骤（新设计） ==================== */
.install-step-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.install-step {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #f2f2f7;
    position: relative;
}

.install-step:last-child {
    border-bottom: none;
}

.step-num {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.step-body h5 {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 4px 0 6px 0;
}

.step-body p {
    font-size: 13.5px;
    color: #6b6b72;
    line-height: 1.65;
    margin: 0;
}

.step-body code {
    background: #f2f2f7;
    color: #1d1d1f;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 5px;
    font-family: "SF Mono", "Fira Code", Menlo, monospace;
}

/* 辅助提示条 */
.install-alt-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 14px 18px;
    background: rgba(0, 122, 255, 0.05);
    border: 1px solid rgba(0, 122, 255, 0.15);
    border-radius: 12px;
    font-size: 13.5px;
    color: #3a3a3c;
    line-height: 1.65;
}

.install-alt-tip .fas {
    color: #007aff;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.install-alt-tip a {
    color: #007aff;
    text-decoration: none;
    font-weight: 500;
}

.install-alt-tip a:hover {
    text-decoration: underline;
}

/* ==================== FAQ 列表 ==================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid #e5e5ea;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.faq-q {
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    background: #f9f9fb;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}

.faq-q .fas {
    color: #007aff;
    font-size: 15px;
    flex-shrink: 0;
}

.faq-a {
    padding: 14px 18px;
    font-size: 13.5px;
    color: #48484a;
    line-height: 1.7;
    background: white;
}

.faq-a code {
    background: #f2f2f7;
    color: #1d1d1f;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 5px;
    font-family: "SF Mono", "Fira Code", Menlo, monospace;
}

.faq-a a {
    color: #007aff;
    text-decoration: none;
    font-weight: 500;
}

.faq-a a:hover {
    text-decoration: underline;
}

/* 安装说明区域 */
.download-instructions {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 60px;
    max-width: 900px;
    margin: 0 auto 60px;
}



.download-instructions h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: center;
}

/* 选项卡 */
.instructions-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 8px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid var(--surface-dark);
    background: white;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

/* 选项卡内容 */
.instructions-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.instructions-content.active {
    display: block;
}

.instructions-content h4 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.instructions-content ol,
.instructions-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.instructions-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.instructions-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.instructions-content a:hover {
    text-decoration: underline;
}

/* 系统要求区域 */
.system-requirements {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    max-width: 900px;
    margin: 0 auto 40px;
}

.system-requirements h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: center;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--surface-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--surface-dark);
    transition: all 0.3s ease;
}

.requirement-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.requirement-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.requirement-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.requirement-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* 版本信息区域 */
.version-info-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.version-info-section h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: center;
}

.latest-version-card {
    background: linear-gradient(135deg, var(--surface-light) 0%, white 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.latest-version-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.version-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.version-tag-large {
    background: var(--primary-gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.version-date {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.version-highlights h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 600;
}

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

.highlight-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--surface-medium);
    color: var(--text-secondary);
    line-height: 1.5;
}

.highlight-list li:last-child {
    border-bottom: none;
}

.highlight-list li i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* ==================== 更新日志 折叠/展开 ==================== */

/* 折叠状态：只显示前 4 条高度（每条约 49px，4条≈196px） */
.highlight-list.changelog-collapsed {
    max-height: 196px;
    overflow: hidden;
    /* 平滑展开动画 */
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 展开状态 */
.highlight-list:not(.changelog-collapsed) {
    max-height: 2000px; /* 足够大的值来容纳所有内容 */
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* 渐变遮罩 —— 折叠时覆盖底部，提示"还有更多" */
.changelog-fade {
    position: absolute;
    bottom: 52px; /* 与按钮高度对齐 */
    left: 0;
    right: 0;
    height: 56px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 100%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* 版本高亮区域需要 position:relative 才能让遮罩定位 */
.version-highlights {
    position: relative;
}

/* 查看全部 / 收起 按钮 */
.changelog-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 0;
    margin-top: 4px;
    background: none;
    border: none;
    border-top: 1px solid #f2f2f7;
    color: #007aff;
    font-size: 14px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.changelog-toggle-btn:hover {
    opacity: 0.75;
}

.changelog-toggle-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* 下载统计 */
.download-stats {
    margin-top: 60px;
    padding: 40px 0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    border-radius: var(--radius-lg);
    color: white;
}

.download-stats h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Fade in animation for version info */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 渠道选择卡片按钮组 ==================== */

.channel-cards-container {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.channel-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    padding: 0;
}

.channel-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid #e5e5ea;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.channel-card:hover {
    transform: translateY(-2px);
    border-color: #007aff;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.15);
}

.channel-card.active {
    border-color: #007aff;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, rgba(0, 122, 255, 0.02) 100%);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.2), 0 0 0 1px rgba(0, 122, 255, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    /* 为 JS 动态色加过渡动画 */
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.channel-card.active .card-icon {
    animation: cardPulse 2s ease-in-out infinite;
}

@keyframes cardPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.card-info {
    flex: 1;
    min-width: 0; /* 防止 flex 子项溢出 */
}

.card-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



.card-check {
    width: 24px;
    height: 24px;
    color: #007aff;
    font-size: 24px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.channel-card.active .card-check {
    opacity: 1;
    transform: scale(1);
}

/* 单卡片时居中显示 */
.channel-cards:has(.channel-card:only-child) {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .channel-cards {
        grid-template-columns: 1fr;
    }
}

/* ==================== 渠道说明栏 ==================== */
.channel-desc-bar {
    max-width: 800px;
    margin: -16px auto 24px;
    padding: 14px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(0, 122, 255, 0.06);
    border: 1px solid rgba(0, 122, 255, 0.15);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* 过渡动画（JS 控制 opacity/transform） */
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.channel-desc-icon {
    color: #007aff;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

.channel-desc-text {
    font-size: 13.5px;
    line-height: 1.65;
    color: #3a3a3c;
    word-break: break-all;
    flex: 1;
}

@media (max-width: 768px) {
    .channel-desc-bar {
        margin: -8px 20px 20px;
        padding: 12px 16px;
    }
}

/* Download Actions - iOS Button Style */
.tab-download-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.tab-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #007aff;
    color: white;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    min-width: 160px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

.tab-download-btn:hover {
    background: #0071eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
}

.tab-download-btn:active {
    background: #0062cc;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.tab-download-btn.secondary {
    background: #f2f2f7;
    color: #007aff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tab-download-btn.secondary:hover {
    background: #e5e5ea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-download-btn.disabled {
    background: #e5e5ea;
    color: #8e8e93;
    cursor: not-allowed;
    box-shadow: none;
}

.tab-download-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.tab-download-btn i {
    margin-right: 8px;
    font-size: 16px;
}

.tab-qr-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f2f2f7;
    color: #007aff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tab-qr-btn:hover {
    background: #e5e5ea;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==================== Localized QR Popover ==================== */
.qr-btn-container {
    position: relative;
    display: inline-block;
}

.qr-popover {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.95);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(0, 0, 0, 0.08);
    padding: 20px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 160px;
}

.qr-popover.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

.qr-popover-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qr-popover-code {
    width: 140px;
    height: 140px;
    background: white;
    padding: 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f2f2f7;
}

.qr-popover-code img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
}

.qr-popover-content p {
    margin: 0;
    font-size: 13px;
    color: #8e8e93;
    font-weight: 500;
}

.qr-popover-arrow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

/* Override old modal styles */
.qr-modal {
    display: none !important;
}

/* ==================== App Store Style Info Section (Premium Remaster) ==================== */
.version-info-section {
    max-width: 860px;
    margin: 40px auto 80px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.version-info-section:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 30px -5px rgba(0, 0, 0, 0.08),
        0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

/* Meta Data Header (Premium Grid) */
.version-header-appstore {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(0, 0, 0, 0.05);
    padding: 1px;
    border-radius: 16px;
    margin-bottom: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.version-meta-group {
    background: rgba(255, 255, 255, 0.85);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.version-meta-group:hover {
    background: rgba(255, 255, 255, 1);
}

.meta-label {
    font-size: 11px;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 8px;
}

.version-tag-large,
.version-size,
.version-date {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.5px;
}

.version-meta-group .version-tag-large {
    background: transparent !important;
    padding: 0 !important;
    color: #007aff !important;
    /* 核心版本号使用品牌色 */
    box-shadow: none !important;
    border: none;
    display: inline;
}

/* 分割线改为 Grid Gap 实现，更整洁 */
.version-meta-divider {
    display: none;
}

/* Changelog Section */
.version-highlights {
    padding: 0 10px;
}

.version-highlights h4 {
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 24px;
    letter-spacing: -0.6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.version-highlights h4::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent);
}

.highlight-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.highlight-list li {
    font-size: 15px;
    line-height: 1.6;
    color: #424245;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    position: relative;
    padding-left: 45px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: staggerFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.highlight-list li:hover {
    background: white;
    border-color: rgba(0, 122, 255, 0.2);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Premium Bullet Points */
.highlight-list li::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 20px;
    width: 8px;
    height: 8px;
    background: #007aff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
    transition: all 0.3s ease;
}

.highlight-list li:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(0, 122, 255, 0.15);
}

/* Staggered Animation */
@keyframes staggerFadeUp {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.highlight-list li:nth-child(1) {
    animation-delay: 0.1s;
}

.highlight-list li:nth-child(2) {
    animation-delay: 0.15s;
}

.highlight-list li:nth-child(3) {
    animation-delay: 0.2s;
}

.highlight-list li:nth-child(4) {
    animation-delay: 0.25s;
}

.highlight-list li:nth-child(5) {
    animation-delay: 0.3s;
}

/* Mobile Optimization (Premium) */
@media (max-width: 768px) {
    .version-info-section {
        margin: 24px 16px 60px;
        padding: 24px;
        border-radius: 20px;
    }

    .version-header-appstore {
        grid-template-columns: 1fr;
        gap: 0;
        border-radius: 12px;
    }

    .version-meta-group {
        padding: 12px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .version-meta-group:last-child {
        border-bottom: none;
    }

    .meta-label {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .version-tag-large,
    .version-size,
    .version-date {
        font-size: 16px;
    }

    .version-highlights h4 {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .highlight-list li {
        font-size: 14px;
        padding: 12px 14px 12px 40px;
    }

    .highlight-list li::before {
        left: 15px;
        top: 18px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .download-page {
        padding: 100px 0 60px;
    }

    .download-hero h1 {
        font-size: 2.2rem;
    }

    .download-hero p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .download-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .download-card {
        padding: 16px;
        padding-top: 26px;
    }

    .download-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .download-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .download-card p {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    .main-download::before,
    .byd-download::before {
        right: 15px;
        font-size: 0.7rem;
        padding: 4px 10px;
        top: -8px;
    }

    .version-info {
        font-size: 0.75rem;
        gap: 6px;
    }

    .download-options {
        gap: 10px;
    }

    .download-options .btn {
        height: 42px;
        font-size: 0.85rem;
        padding: 0 16px;
    }

    .download-instructions {
        padding: 24px 20px;
        margin-bottom: 40px;
    }

    .download-instructions h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .instructions-tabs {
        gap: 6px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    /* 系统要求移动端适配 */
    .system-requirements {
        padding: 24px 20px;
        margin-bottom: 30px;
    }

    .system-requirements h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .requirement-item {
        padding: 16px;
        gap: 12px;
    }

    .requirement-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .requirement-info h4 {
        font-size: 1rem;
    }

    .requirement-info p {
        font-size: 0.85rem;
    }

    /* 版本信息移动端适配 */
    .version-info-section {
        padding: 24px 20px;
        margin-bottom: 30px;
    }

    .version-info-section h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .latest-version-card {
        padding: 24px;
    }

    .version-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .version-tag-large {
        font-size: 1.1rem;
        padding: 6px 16px;
    }

    .version-highlights h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .highlight-list li {
        padding: 10px 14px 10px 40px;
        font-size: 0.9rem;
        gap: 10px;
    }

    .qr-content {
        padding: 30px;
        margin: 16px;
        width: 300px;
        height: 300px;
    }

    .qr-code img {
        width: 220px;
        height: 220px;
    }

    .download-stats {
        margin-top: 40px;
        padding: 30px 20px;
    }

    .download-stats h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .stats-grid {
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .download-hero h1 {
        font-size: 1.8rem;
    }

    .download-card {
        padding: 12px;
        padding-top: 20px;
    }

    .download-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .download-card h3 {
        font-size: 1rem;
    }

    .download-card p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .download-options .btn {
        height: 38px;
        font-size: 0.8rem;
        padding: 0 12px;
        gap: 4px;
    }

    .version-info {
        font-size: 0.7rem;
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .instructions-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }

    .qr-content {
        padding: 25px;
        margin: 12px;
        width: 280px;
        height: 280px;
    }

    .qr-code img {
        width: 200px;
        height: 200px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* 系统要求小屏优化 */
    .system-requirements {
        padding: 20px 16px;
    }

    .system-requirements h3 {
        font-size: 1.2rem;
    }

    .requirement-item {
        padding: 12px;
        gap: 10px;
    }

    .requirement-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .requirement-info h4 {
        font-size: 0.95rem;
    }

    .requirement-info p {
        font-size: 0.8rem;
    }

    /* 版本信息小屏优化 */
    .version-info-section {
        padding: 20px 16px;
    }

    .version-info-section h3 {
        font-size: 1.2rem;
    }

    .latest-version-card {
        padding: 20px;
    }

    .version-tag-large {
        font-size: 1rem;
        padding: 5px 12px;
    }

    .version-date {
        font-size: 0.85rem;
    }

    .version-highlights h4 {
        font-size: 1rem;
    }

    .highlight-list li {
        padding: 8px 12px 8px 36px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .highlight-list li::before {
        left: 14px;
        top: 15px;
    }

    .highlight-list li i {
        font-size: 0.9rem;
        width: 14px;
    }
}

/* ==================== 多签名类型下载按钮组 ==================== */

/* 按钮组容器 */
.download-btn-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

/* 主按钮样式（系统签名版 - 突出显示） */
.tab-download-btn.primary {
    background: #007aff;
    color: white;
    min-width: 130px;
}

.tab-download-btn.primary:hover {
    background: #0071eb;
}

/* 次按钮样式（正式签名版 - 次要颜色） */
.tab-download-btn.secondary {
    background: #f2f2f7;
    color: #007aff;
    min-width: 130px;
}

.tab-download-btn.secondary:hover {
    background: #e5e5ea;
}

.tab-download-btn.secondary:active {
    background: #d1d1d6;
    transform: scale(0.98);
}

/* 禁用状态 */
.tab-download-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 移动端自适应 */
@media (max-width: 480px) {
    .download-btn-group {
        flex-direction: column;
        width: 100%;
    }

    .tab-download-btn.primary,
    .tab-download-btn.secondary {
        width: 100%;
        max-width: 200px;
    }
}