﻿/* 下载中心 / 平台下载页 / 首页下载区块 共用样式（浅色，与 style.css 保持一致） */

/* ---------- 首页下载入口按钮 ---------- */
.btn-download { padding: 14px 24px; }
.btn-download--light {
    background: #eff6ff;
    color: var(--primary);
    border-color: #bfdbfe;
}
.btn-download--light:hover { background: #dbeafe; color: var(--primary-dark); }
.hero-actions { flex-wrap: wrap; }
.showcase-item .btn-download-entry {
    margin-top: 16px;
    padding: 10px 20px;
    font-size: 13.5px;
}

/* ---------- 首页下载区块 ---------- */
.download-section {
    padding: 88px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.dw-home-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 8px;
}
.dw-home-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 36px 36px 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.dw-home-card .btn { align-self: flex-start; margin-top: auto; }
.dw-home-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}
.dw-home-card--windows { border-top: 4px solid #2563eb; }
.dw-home-card--android { border-top: 4px solid #06b6d4; }
.dw-home-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
}
.dw-home-card--windows .dw-home-icon { background: linear-gradient(135deg, #bfdbfe, #60a5fa); }
.dw-home-card--android .dw-home-icon { background: linear-gradient(135deg, #a5f3fc, #22d3ee); }
.dw-home-card h3 { font-size: 23px; font-weight: 700; margin-bottom: 8px; }
.dw-home-card > p { color: var(--text-light); font-size: 14.5px; line-height: 1.8; margin-bottom: 20px; }
.dw-home-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}
.dw-home-meta span {
    font-size: 12.5px;
    color: var(--text-light);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 12px;
}
.dw-home-more { text-align: center; margin-top: 32px; }
.dw-home-more a {
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.dw-home-more a:hover { text-decoration: underline; }

/* ---------- 下载页顶部横幅 ---------- */
.dw-page-banner {
    padding: 152px 0 72px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 52%, #7c3aed 100%);
    color: #fff;
    text-align: center;
}
.dw-page-banner--windows { background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 55%, #3b82f6 100%); }
.dw-page-banner--android { background: linear-gradient(135deg, #0f766e 0%, #0891b2 52%, #2563eb 100%); }
.dw-breadcrumb { font-size: 13px; opacity: .78; margin-bottom: 18px; }
.dw-breadcrumb a { color: #fff; text-decoration: none; }
.dw-breadcrumb a:hover { text-decoration: underline; }
.dw-breadcrumb span { margin: 0 8px; opacity: .6; }
.dw-page-banner h1 { font-size: 40px; font-weight: 700; margin-bottom: 14px; }
.dw-page-banner p { font-size: 16.5px; opacity: .9; max-width: 760px; margin: 0 auto; line-height: 1.8; }
.dw-banner-actions {
    margin-top: 30px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.dw-banner-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,.65);
    color: #fff;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    transition: var(--transition);
}
.dw-banner-actions a:hover { background: rgba(255,255,255,.16); }

/* ---------- 通用区块 ---------- */
.dw-section { padding: 76px 0; }
.dw-section--alt { background: var(--bg-alt); }
.dw-section .section-header { margin-bottom: 40px; }
.dw-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}
.dw-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.dw-grid-side { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }

/* ---------- 平台卡片 ---------- */
.dw-platform-card { padding: 34px; scroll-margin-top: 96px; }
.dw-platform-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.dw-platform-icon {
    width: 58px; height: 58px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 29px; flex-shrink: 0;
}
.dw-platform-icon--windows { background: linear-gradient(135deg, #bfdbfe, #60a5fa); }
.dw-platform-icon--android { background: linear-gradient(135deg, #a5f3fc, #22d3ee); }
.dw-platform-head h2 { font-size: 23px; font-weight: 700; }
.dw-platform-head .dw-badge {
    margin-left: auto; font-size: 12px; font-weight: 600;
    color: var(--primary); background: #eff6ff; border: 1px solid #bfdbfe;
    padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.dw-platform-card > p.dw-lead { color: var(--text-light); font-size: 14.5px; line-height: 1.85; margin-bottom: 22px; }
.dw-meta-list { list-style: none; margin: 0 0 26px; padding: 0; }
.dw-meta-list li {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 11px 0; border-bottom: 1px dashed var(--border);
    font-size: 14px;
}
.dw-meta-list li:last-child { border-bottom: none; }
.dw-meta-list .k { color: var(--text-light); flex-shrink: 0; }
.dw-meta-list .v { text-align: right; font-weight: 600; word-break: normal; overflow-wrap: anywhere; }

/* ---------- 下载按钮 ---------- */
.dw-btn-row { display: flex; flex-direction: column; gap: 12px; }
.dw-btn {
    display: flex; align-items: center; gap: 14px;
    padding: 17px 24px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: #fff; text-decoration: none;
    box-shadow: 0 6px 18px rgba(37,99,235,.24);
    transition: var(--transition);
}
.dw-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37,99,235,.34); color: #fff; }
.dw-btn-icon { font-size: 26px; line-height: 1; }
.dw-btn-text { min-width: 0; }
.dw-btn-label { display: block; font-size: 16.5px; font-weight: 700; }
.dw-btn-sub { display: block; font-size: 12.5px; opacity: .88; margin-top: 3px; }
.dw-btn-arrow { margin-left: auto; font-size: 20px; opacity: .9; }
.dw-btn.is-pending {
    background: #fff; color: var(--primary);
    border: 2px solid var(--primary); box-shadow: none;
}
.dw-btn.is-pending:hover { background: #eff6ff; color: var(--primary-dark); }
.dw-btn.is-pending .dw-btn-sub { opacity: .75; }
.dw-btn-mini {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 16px; border-radius: 8px;
    background: var(--bg-alt); border: 1px solid var(--border);
    color: var(--text-light); font-size: 13px; font-weight: 600;
    text-decoration: none; cursor: pointer; transition: var(--transition);
}
.dw-btn-mini:hover { color: var(--primary); border-color: var(--primary); }
.dw-inline-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.dw-hint { font-size: 12.5px; color: var(--text-lighter); line-height: 1.7; margin-top: 6px; }

/* ---------- 扫码下载 ---------- */
.dw-qr {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding: 14px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: var(--bg-alt);
}
.dw-qr img {
    width: 132px;
    height: 132px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.dw-qr-text { display: flex; flex-direction: column; gap: 6px; }
.dw-qr-text strong { font-size: 15px; font-weight: 700; color: var(--text); }
.dw-qr-text span { font-size: 12.5px; line-height: 1.65; color: var(--text-light); }

/* ---------- 平台卡片：Android 卡右侧扫码（保持与 Windows 卡等高对齐） ---------- */
.dw-platform-card--split { display: flex; gap: 24px; align-items: stretch; padding: 30px; }
.dw-platform-card--split .dw-platform-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.dw-platform-card--split .dw-platform-main .dw-btn-row { margin-top: auto; }
.dw-platform-card--split .dw-platform-head { flex-wrap: nowrap; gap: 12px; }
.dw-platform-card--split .dw-platform-head h2 { min-width: 0; font-size: 21px; white-space: nowrap; }
.dw-platform-card--split .dw-platform-qr {
    flex: 0 0 168px;
    align-self: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; padding: 16px 12px; text-align: center;
    border: 1px dashed var(--border); border-radius: 12px; background: var(--bg-alt);
}
.dw-platform-card--split .dw-platform-qr img {
    width: 124px; height: 124px; background: #fff;
    border: 1px solid var(--border); border-radius: 8px;
}
.dw-platform-card--split .dw-platform-qr strong { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; }
.dw-platform-card--split .dw-platform-qr span { font-size: 11.5px; line-height: 1.55; color: var(--text-light); }

/* ---------- 详情：步骤 / 规格 / 提示 ---------- */
.dw-detail { padding: 32px 34px; }
.dw-detail h2, .dw-detail h3 { font-weight: 700; margin-bottom: 20px; }
.dw-detail h2 { font-size: 22px; }
.dw-detail h3 { font-size: 18px; }
.dw-steps { list-style: none; margin: 0; padding: 0; counter-reset: dwstep; }
.dw-steps li {
    position: relative; padding: 0 0 24px 52px; counter-increment: dwstep;
    font-size: 14.5px; line-height: 1.8; color: var(--text-light);
}
.dw-steps li:not(:last-child)::after {
    content: ''; position: absolute; left: 17px; top: 36px; bottom: 4px;
    width: 1px; background: var(--border);
}
.dw-steps li::before {
    content: counter(dwstep); position: absolute; left: 0; top: 0;
    width: 35px; height: 35px; border-radius: 50%;
    background: #eff6ff; color: var(--primary); border: 1px solid #bfdbfe;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
}
.dw-steps li strong { color: var(--text); font-weight: 700; }
.dw-spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dw-spec-table th, .dw-spec-table td {
    padding: 13px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top;
}
.dw-spec-table th { width: 34%; color: var(--text-light); font-weight: 500; background: var(--bg-alt); }
.dw-spec-table tr:last-child th, .dw-spec-table tr:last-child td { border-bottom: none; }
.dw-note {
    margin-top: 22px; padding: 16px 18px; border-radius: 10px;
    background: #f0f9ff; border: 1px solid #bae6fd;
    font-size: 13.5px; line-height: 1.8; color: #075985;
}
.dw-note--warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.dw-note strong { font-weight: 700; }
.dw-feature-list { list-style: none; margin: 0; padding: 0; }
.dw-feature-list li {
    position: relative; padding: 9px 0 9px 26px;
    font-size: 14.5px; color: var(--text-light); line-height: 1.7;
}
.dw-feature-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ---------- 安装步骤双栏（左右内容与平台卡对齐） ---------- */
.dw-steps-grid { align-items: stretch; }
.dw-steps-grid .dw-detail { display: flex; flex-direction: column; }
.dw-detail-foot { margin-top: auto; }
.dw-detail-foot .dw-inline-actions { margin-top: 20px; }
/* 桌面双栏：两条提示文案长短不同，统一最小高度让提示框顶部也对齐 */
@media (min-width: 769px) {
    .dw-steps-grid .dw-note { box-sizing: border-box; min-height: 108px; }
}
/* 窄桌面双栏更窄，提示会多换一行，补一档高度保持左右对齐 */
@media (min-width: 769px) and (max-width: 1023px) {
    .dw-steps-grid .dw-note { min-height: 132px; }
}

/* ---------- 扫码下载横条（与两卡同宽，避免单侧卡片被撑高） ---------- */
.dw-qr-wide {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    padding: 20px 24px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: var(--bg-alt);
}
.dw-qr-wide img {
    width: 132px;
    height: 132px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
}

/* ---------- 底部引导 ---------- */
.dw-cta { padding: 64px 0; text-align: center; background: var(--bg-alt); }
.dw-cta h2 { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.dw-cta p { color: var(--text-light); font-size: 15px; margin-bottom: 26px; }
.dw-cta-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.dw-cta-links a {
    padding: 12px 26px; border-radius: 9px; text-decoration: none;
    font-size: 14.5px; font-weight: 600; transition: var(--transition);
}
.dw-cta-links .primary { background: var(--primary); color: #fff; }
.dw-cta-links .primary:hover { background: var(--primary-dark); }
.dw-cta-links .ghost { background: var(--bg); color: var(--primary); border: 1px solid var(--primary); }
.dw-cta-links .ghost:hover { background: #eff6ff; }

.dw-footer-links { display: flex; gap: 32px; flex-wrap: wrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .dw-grid-side { grid-template-columns: 1fr; }
    .dw-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .dw-page-banner { padding: 128px 0 56px; }
    .dw-page-banner h1 { font-size: 30px; }
    .dw-page-banner p { font-size: 15px; }
    .dw-section { padding: 56px 0; }
    .dw-home-grid { grid-template-columns: 1fr; }
    .dw-platform-card--split { flex-direction: column; }
    .dw-platform-card--split .dw-platform-qr { flex-basis: auto; }
    .dw-home-card, .dw-platform-card, .dw-detail { padding: 26px 22px; }
    .hero-actions .btn { width: 100%; }
}
@media (max-width: 480px) {
    .dw-qr, .dw-qr-wide { flex-direction: column; text-align: center; }
    .dw-page-banner h1 { font-size: 26px; }
    .dw-platform-head { flex-wrap: wrap; }
    .dw-platform-head .dw-badge { margin-left: 0; }
    .dw-spec-table th { width: 38%; }
    .dw-spec-table th, .dw-spec-table td { padding: 11px 10px; font-size: 13px; }
    .dw-footer-links { gap: 16px; }
}
