/* =========================================
   Download Page — Specific Styles
========================================= */

/* Hero */
.dl-hero {
    padding: 120px 5% 60px;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(37,99,235,0.07) 0%, transparent 70%),
        var(--bg-2);
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.dl-hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 18px; margin-bottom: 24px;
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px; font-weight: 600; color: var(--text-2);
    box-shadow: var(--shadow-xs);
}
.version-tag {
    background: var(--primary); color: white;
    padding: 2px 10px; border-radius: var(--radius-full);
    font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
}
.dl-hero h1 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900; letter-spacing: -1.5px;
    color: var(--text-1); margin-bottom: 16px; line-height: 1.1;
}
.dl-hero p {
    font-size: 17px; color: var(--text-3);
    max-width: 560px; margin: 0 auto 40px; line-height: 1.8;
}
.dl-stats {
    display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-bottom: 40px;
}
.dl-stat { text-align: center; }
.dl-stat-num { font-size: 22px; font-weight: 800; color: var(--text-1); }
.dl-stat-label { font-size: 12px; color: var(--text-4); margin-top: 2px; }

/* Platform visual icon row */
.dl-platform-visual {
    display: flex; align-items: center; justify-content: center;
    gap: 0; background: white; border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 20px 32px;
    box-shadow: var(--shadow-sm); width: fit-content; margin: 0 auto;
}
.dpv-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 0 28px;
}
.dpv-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; transition: transform 0.2s;
}
.dpv-item:hover .dpv-icon { transform: translateY(-3px); }
.dpv-win .dpv-icon  { background: #dbeafe; color: #2563eb; }
.dpv-mac .dpv-icon  { background: #f3f4f6; color: #374151; }
.dpv-linux .dpv-icon{ background: #fef3c7; color: #d97706; }
.dpv-android .dpv-icon { background: #dcfce7; color: #16a34a; }
.dpv-ios .dpv-icon  { background: #f1f0ff; color: #7c3aed; }
.dpv-item span { font-size: 12px; font-weight: 600; color: var(--text-3); }
.dpv-divider { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }

/* Platform Tabs */
.platform-tabs-wrap {
    position: sticky; top: 68px; z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}
.platform-tabs {
    display: flex; gap: 0; max-width: 900px; margin: 0 auto;
    padding: 0 5%; overflow-x: auto;
    scrollbar-width: none;
}
.platform-tabs::-webkit-scrollbar { display: none; }
.ptab {
    display: flex; align-items: center; gap: 9px;
    padding: 16px 22px; cursor: pointer;
    font-size: 14.5px; font-weight: 600; color: var(--text-3);
    border-bottom: 2px solid transparent;
    white-space: nowrap; transition: var(--trans);
    background: none; border-top: none; border-left: none; border-right: none;
    font-family: var(--font);
}
.ptab i { font-size: 16px; }
.ptab:hover { color: var(--primary); }
.ptab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Download Content */
.dl-content { padding: 60px 5% 100px; max-width: 960px; margin: 0 auto; }
.dl-panel { display: none; }
.dl-panel.active { display: block; }

/* Platform Header */
.platform-header {
    display: flex; align-items: center; gap: 20px;
    margin-bottom: 36px; padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.platform-icon-lg {
    width: 64px; height: 64px; border-radius: var(--radius-lg);
    background: var(--bg-2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: var(--text-2); flex-shrink: 0;
}
.platform-header-info h2 { font-size: 24px; font-weight: 800; color: var(--text-1); margin-bottom: 4px; }
.platform-header-info p { font-size: 14px; color: var(--text-3); line-height: 1.6; }

/* Download Cards */
.dl-cards { display: flex; flex-direction: column; gap: 16px; }
.dl-card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px 28px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; transition: var(--trans);
    flex-wrap: wrap;
}
.dl-card:hover { border-color: var(--border-focus); box-shadow: var(--shadow-sm); }
.dl-card-left { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 260px; }
.dl-card-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--text-3);
    overflow: hidden;
}
.dl-card-icon img {
    width: 100%; height: 100%;
    object-fit: contain; border-radius: var(--radius-md);
}
.dl-card-info { min-width: 0; }
.dl-card-name { font-size: 16px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
.dl-card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.meta-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 9px; border-radius: var(--radius-full);
    font-size: 11.5px; font-weight: 600;
    background: var(--bg-2); color: var(--text-3);
    border: 1px solid var(--border);
}
.meta-tag.recommended  { background: rgba(16,185,129,0.08);  color: var(--success);  border-color: rgba(16,185,129,0.2); }
.meta-tag.beginner     { background: rgba(37,99,235,0.08);   color: var(--primary);  border-color: rgba(37,99,235,0.2); }
.meta-tag.stable       { background: rgba(37,99,235,0.08);   color: var(--primary);  border-color: rgba(37,99,235,0.2); }
.meta-tag.latest       { background: rgba(124,58,237,0.08);  color: var(--accent);   border-color: rgba(124,58,237,0.2); }
.meta-tag.low-activity { background: rgba(245,158,11,0.08);  color: var(--warning);  border-color: rgba(245,158,11,0.2); }
.meta-tag.discontinued { background: rgba(239,68,68,0.07);   color: var(--danger);   border-color: rgba(239,68,68,0.2); }
.dl-card-desc { font-size: 13px; color: var(--text-3); margin-top: 4px; line-height: 1.6; }

/* Download Buttons Group */
.dl-btn-group { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.dl-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius-md);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: var(--trans); border: none; font-family: var(--font);
    white-space: nowrap;
}
.dl-btn-primary {
    background: var(--primary); color: white;
    box-shadow: 0 3px 10px var(--primary-glow);
}
.dl-btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37,99,235,0.35); }
.dl-btn-outline {
    background: white; color: var(--text-2);
    border: 1px solid var(--border);
}
.dl-btn-outline:hover { border-color: var(--border-focus); color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-xs); }
.dl-btn-store {
    background: var(--text-1); color: white;
}
.dl-btn-store:hover { background: #1e293b; transform: translateY(-1px); }

/* Section divider label */
.dl-section-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--text-4);
    margin: 32px 0 14px; display: flex; align-items: center; gap: 10px;
}
.dl-section-label::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Checksum Block */
.checksum-block {
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 14px 18px;
    margin-top: 10px; display: flex; align-items: center;
    gap: 12px; justify-content: space-between;
}
.checksum-label { font-size: 11px; color: var(--text-4); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.checksum-val { font-size: 12px; font-family: var(--font-mono); color: var(--text-2); word-break: break-all; }
.copy-btn {
    flex-shrink: 0; padding: 6px 12px; border-radius: var(--radius-sm);
    background: white; border: 1px solid var(--border);
    font-size: 12px; font-weight: 600; color: var(--text-3);
    cursor: pointer; transition: var(--trans); font-family: var(--font);
    display: flex; align-items: center; gap: 5px;
}
.copy-btn:hover { color: var(--primary); border-color: var(--border-focus); }
.copy-btn.copied { color: var(--success); border-color: rgba(16,185,129,0.3); }

/* Info Notice */
.dl-notice {
    display: flex; gap: 14px; padding: 16px 20px;
    background: rgba(37,99,235,0.04); border: 1px solid rgba(37,99,235,0.15);
    border-radius: var(--radius-md); margin-top: 28px;
    font-size: 13.5px; color: var(--text-2); line-height: 1.7;
}
.dl-notice i { color: var(--primary); font-size: 15px; flex-shrink: 0; margin-top: 2px; }
.dl-notice.warning {
    background: rgba(245,158,11,0.05); border-color: rgba(245,158,11,0.2);
}
.dl-notice.warning i { color: var(--warning); }

/* iOS alternative cards */
.ios-alt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.ios-alt-card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px;
    text-align: center; transition: var(--trans); cursor: pointer;
}
.ios-alt-card:hover { border-color: var(--border-focus); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.ios-alt-icon { font-size: 32px; margin-bottom: 10px; }
.ios-alt-name { font-size: 15px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
.ios-alt-desc { font-size: 12.5px; color: var(--text-3); margin-bottom: 14px; line-height: 1.6; }

/* Responsive */
@media (max-width: 900px) {
    .dl-hero { padding: 100px 5% 48px; }
    .dl-stats { gap: 24px; }
}

@media (max-width: 768px) {
    .dl-hero { padding: 88px 5% 40px; }
    .dl-hero p { font-size: 15px; }
    .dl-stats { gap: 16px; }
    /* 平台图标行：768px 以下单行排列，5 项等宽 */
    .dl-platform-visual {
        flex-wrap: nowrap; width: 100%;
        padding: 14px 8px; gap: 0;
    }
    .dpv-divider { display: none; }
    .dpv-item { flex: 1 1 0; min-width: 0; padding: 8px 4px; }
    .dpv-icon { width: 46px; height: 46px; font-size: 22px; border-radius: 12px; }
    .dpv-item span { font-size: 11px; }
    /* 平台 tab：缩小字号减少溢出 */
    .ptab { padding: 13px 14px; font-size: 13px; gap: 6px; }
    .ptab i { font-size: 14px; }
    /* 下载面板 */
    .dl-content { padding: 40px 5% 72px; }
    .dl-card { flex-direction: column; align-items: flex-start; }
    .dl-card-left { min-width: 0; width: 100%; }
    .dl-btn-group { width: 100%; }
    .dl-btn { flex: 1; justify-content: center; }
    .platform-header { flex-direction: column; text-align: center; }
    .checksum-block { flex-direction: column; align-items: flex-start; }
    .copy-btn { align-self: flex-end; }
}

@media (max-width: 480px) {
    .dl-hero { padding: 80px 5% 36px; }
    /* 单行 5 图标继续保持，图标再略缩 */
    .dpv-icon { width: 40px; height: 40px; font-size: 19px; border-radius: 10px; }
    .dpv-item span { font-size: 10px; }
    /* 平台 tab：icon + 极简文字 */
    .ptab { padding: 12px 10px; font-size: 12px; }
    .dl-stat-num { font-size: 18px; }
}
