/* ============================================================
   App 下载页 /download
   主题沿用站点主色（--primary #0066CC），容器 max-width:1200px
   ============================================================ */

.dl-page { padding: 40px 0 60px; background: #f5f8fc; min-height: 60vh; }
.dl-page .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Hero ---------- */
.dl-hero {
    display: flex;
    gap: 48px;
    align-items: stretch;
    background: linear-gradient(135deg, #0066CC 0%, #003d7a 100%);
    border-radius: 20px;
    padding: 48px 44px;
    color: #fff;
    box-shadow: 0 8px 30px rgba(0, 61, 122, 0.25);
}
.dl-hero-info { flex: 1; min-width: 0; }

.dl-app-head { display: flex; align-items: center; gap: 20px; }
.dl-app-icon {
    width: 88px; height: 88px; flex-shrink: 0;
    background: #fff; border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}
.dl-app-icon img { width: 68px; height: 68px; object-fit: contain; }
.dl-app-name { font-size: 30px; font-weight: 700; margin: 0 0 6px; }
.dl-slogan { font-size: 15px; opacity: 0.85; margin: 0 0 10px; letter-spacing: 1px; }
.dl-ver-badge {
    display: inline-block; font-size: 13px; font-weight: 600;
    background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px; padding: 3px 14px;
}

.dl-desc { font-size: 15px; line-height: 1.8; opacity: 0.92; margin: 24px 0 28px; }

.dl-btn-main {
    display: inline-flex; align-items: center; gap: 12px;
    background: #fff; color: #003d7a;
    font-size: 18px; font-weight: 700;
    border-radius: 14px; padding: 16px 32px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dl-btn-main:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28); }
.dl-btn-ico { font-size: 22px; font-weight: 800; }
.dl-btn-size { font-size: 13px; font-weight: 500; opacity: 0.65; margin-left: 4px; }

.dl-file-meta {
    display: flex; flex-wrap: wrap; gap: 12px 36px;
    list-style: none; margin: 26px 0 0; padding: 0;
}
.dl-file-meta li { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.dl-file-meta span { opacity: 0.7; }
.dl-file-meta b { font-size: 14px; font-weight: 600; }
.dl-file-meta .dl-md5 { font-family: Consolas, Monaco, monospace; font-size: 12px; word-break: break-all; max-width: 260px; }

.dl-safe { font-size: 13px; opacity: 0.75; margin: 18px 0 0; }

/* 未上传安装包占位 */
.dl-soon {
    display: flex; gap: 16px; align-items: flex-start;
    background: rgba(255, 255, 255, 0.12); border: 1px dashed rgba(255, 255, 255, 0.5);
    border-radius: 14px; padding: 20px 24px;
}
.dl-soon-ico { font-size: 28px; line-height: 1; }
.dl-soon b { font-size: 17px; }
.dl-soon p { font-size: 13px; opacity: 0.85; margin: 6px 0 0; line-height: 1.6; }

/* ---------- 二维码卡片 ---------- */
.dl-qr-card {
    flex: 0 0 240px;
    background: #fff; color: #333;
    border-radius: 16px;
    padding: 24px 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}
.dl-qr-box { width: 170px; height: 170px; display: flex; align-items: center; justify-content: center; }
.dl-qr-box img, .dl-qr-box canvas { display: block; }
.dl-qr-title { font-size: 17px; font-weight: 700; color: #003d7a; margin: 16px 0 6px; }
.dl-qr-tip { font-size: 12px; color: #888; line-height: 1.7; margin: 0; }

/* ---------- 通用区块 ---------- */
.dl-section { margin-top: 48px; }
.dl-h2 {
    font-size: 24px; font-weight: 700; color: #1f2329;
    margin: 0 0 24px; padding-left: 14px; border-left: 5px solid #0066CC;
}
.dl-empty { color: #999; font-size: 14px; }

/* ---------- 核心功能 ---------- */
.dl-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dl-feature-card {
    background: #fff; border-radius: 14px; padding: 26px 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dl-feature-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0, 102, 204, 0.14); }
.dl-f-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, #0066CC, #003d7a);
    color: #fff; font-size: 24px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.dl-feature-card h3 { font-size: 17px; font-weight: 700; color: #1f2329; margin: 0 0 8px; }
.dl-feature-card p { font-size: 13px; color: #666; line-height: 1.7; margin: 0; }

/* ---------- 安装指引 ---------- */
.dl-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dl-step {
    background: #fff; border-radius: 14px; padding: 26px 22px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: relative;
}
.dl-step-no {
    width: 40px; height: 40px; border-radius: 50%;
    background: #e8f1fc; color: #0066CC;
    font-size: 18px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.dl-step h3 { font-size: 16px; font-weight: 700; color: #1f2329; margin: 0 0 8px; }
.dl-step p { font-size: 13px; color: #666; line-height: 1.7; margin: 0; }

/* ---------- 更新日志 + FAQ 两栏 ---------- */
.dl-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.dl-changelog { list-style: none; margin: 0; padding: 0; }
.dl-changelog li {
    background: #fff; border-radius: 12px; padding: 16px 20px; margin-bottom: 12px;
    display: flex; gap: 16px; align-items: baseline;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.dl-cl-date { font-size: 13px; color: #0066CC; font-weight: 600; flex-shrink: 0; font-family: Consolas, Monaco, monospace; }
.dl-cl-text { font-size: 14px; color: #444; line-height: 1.7; }

.dl-faq {
    background: #fff; border-radius: 12px; margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}
.dl-faq summary {
    cursor: pointer; list-style: none;
    font-size: 15px; font-weight: 600; color: #1f2329;
    padding: 16px 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.dl-faq summary::-webkit-details-marker { display: none; }
.dl-faq summary::after { content: '+'; font-size: 20px; color: #0066CC; font-weight: 700; }
.dl-faq[open] summary::after { content: '−'; }
.dl-faq p { font-size: 14px; color: #555; line-height: 1.8; margin: 0; padding: 0 20px 18px; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .dl-hero { flex-direction: column; padding: 36px 28px; }
    .dl-qr-card { flex: none; align-self: center; }
    .dl-features { grid-template-columns: repeat(2, 1fr); }
    .dl-steps { grid-template-columns: repeat(2, 1fr); }
    .dl-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .dl-page { padding: 20px 0 40px; }
    .dl-hero { padding: 28px 20px; border-radius: 14px; }
    .dl-app-name { font-size: 24px; }
    .dl-btn-main { width: 100%; justify-content: center; }
    .dl-features, .dl-steps { grid-template-columns: 1fr; }
    .dl-file-meta { gap: 12px 20px; }
}
