/* APP 下载 · 专题页 */

:root {
    --dl-accent: #2563eb;
    --dl-accent-dark: #1d4ed8;
    --dl-accent-deep: #1e3a8a;
    --dl-accent-soft: #eff6ff;
    --dl-bg: #f8fafc;
    --dl-surface: #fff;
    --dl-text: #0f172a;
    --dl-muted: #64748b;
    --dl-border: #e2e8f0;
    --dl-radius: 16px;
}

.downloads-page {
    background: var(--dl-bg);
    color: var(--dl-text);
    -webkit-font-smoothing: antialiased;
}

.downloads-page .site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--dl-border);
}

/* Hero */
.dl-lead {
    padding: 24px 0 0;
    background: var(--dl-bg);
}
.dl-lead .dl-panel {
    border-radius: var(--dl-radius);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
}
.dl-hero {
    display: grid;
    gap: 32px;
    align-items: center;
    padding: 48px 28px;
    color: #fff;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 38%, #2563eb 72%, #3b82f6 100%);
}
@media (min-width: 900px) {
    .dl-hero {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 40px;
        padding: 56px 48px;
    }
}
.dl-hero__kicker {
    display: inline-block;
    margin: 0 0 12px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #bfdbfe;
    background: rgba(147, 197, 253, 0.15);
    border: 1px solid rgba(147, 197, 253, 0.35);
}
.dl-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(1.5rem, 3.5vw, 2.125rem);
    font-weight: 800;
    line-height: 1.35;
}
.dl-hero__desc {
    margin: 0 0 20px;
    font-size: 0.9375rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.9);
}
.dl-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.dl-hero__tags span {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(191, 219, 254, 0.45);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    color: #dbeafe;
}
.dl-hero__note {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}
.dl-hero__visual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.dl-hero__app-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.6875rem;
    font-weight: 600;
    color: #e0f2fe;
    text-align: center;
    line-height: 1.35;
}
.dl-hero__app-chip em {
    font-style: normal;
    font-size: 1.5rem;
    line-height: 1;
}

/* Stats */
.dl-stats {
    padding: 28px 0;
    background: var(--dl-surface);
    border-bottom: 1px solid var(--dl-border);
}
.dl-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    text-align: center;
}
@media (min-width: 640px) {
    .dl-stats__grid { grid-template-columns: repeat(4, 1fr); }
}
.dl-stats__item strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dl-accent);
    line-height: 1.2;
}
.dl-stats__item span {
    font-size: 0.8125rem;
    color: var(--dl-muted);
}

/* Quick nav */
.dl-quick {
    padding: 48px 0 32px;
    background: var(--dl-bg);
}
.dl-section-head {
    text-align: center;
    margin-bottom: 28px;
}
.dl-section-head h2 {
    margin: 0 0 10px;
    font-size: clamp(1.25rem, 2.8vw, 1.625rem);
    font-weight: 800;
}
.dl-section-head p {
    margin: 0 auto;
    max-width: 40em;
    font-size: 0.9375rem;
    line-height: 1.85;
    color: var(--dl-muted);
}

/* Main sections area */
.dl-main {
    padding: 0 0 64px;
    background: var(--dl-bg);
}

/* Tips */
.dl-tips {
    padding: 0 0 64px;
    background: var(--dl-bg);
}
.dl-tips__grid {
    display: grid;
    gap: 16px;
}
@media (min-width: 768px) {
    .dl-tips__grid { grid-template-columns: repeat(3, 1fr); }
}
.dl-tip-card {
    padding: 22px 20px;
    border-radius: 12px;
    background: var(--dl-surface);
    border: 1px solid var(--dl-border);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.dl-tip-card h3 {
    margin: 0 0 10px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--dl-accent-dark);
}
.dl-tip-card p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.75;
    color: var(--dl-muted);
}

.dl-install-note {
    margin-top: 24px;
    padding: 20px 24px;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.85;
    color: var(--dl-muted);
    background: linear-gradient(135deg, #eff6ff, #fff);
    border: 1px solid #bfdbfe;
}
.dl-install-note strong { color: var(--dl-text); }

/* Role matrix */
.dl-roles {
    padding: 64px 0 72px;
    background: var(--dl-surface);
    border-top: 1px solid var(--dl-border);
}
.dl-role-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--dl-border);
    background: #fff;
}
.dl-role-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}
.dl-role-table th,
.dl-role-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}
.dl-role-table th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--dl-text);
    white-space: nowrap;
}
.dl-role-table td { color: var(--dl-muted); line-height: 1.65; }
.dl-role-table tr:last-child td { border-bottom: none; }
.dl-role-table .fn-name {
    font-weight: 700;
    color: var(--dl-accent-dark);
    white-space: nowrap;
}
.dl-role-table a {
    color: var(--dl-accent);
    font-weight: 600;
}

/* Dev section */
.dl-dev {
    padding: 0 0 64px;
    background: var(--dl-bg);
}
.dl-dev__panel {
    border-radius: 12px;
    border: 1px dashed var(--dl-border);
    background: #fff;
    overflow: hidden;
}
.dl-dev__summary {
    padding: 16px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dl-muted);
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.dl-dev__summary::-webkit-details-marker { display: none; }
.dl-dev__summary::before {
    content: '▸ ';
    color: var(--dl-accent);
}
.dl-dev__panel[open] .dl-dev__summary::before { content: '▾ '; }
.dl-dev__body {
    padding: 0 20px 20px;
    font-size: 0.8125rem;
    line-height: 1.8;
    color: #475569;
}
.dl-dev__body code {
    font-size: 0.8125em;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

/* CTA */
.dl-cta {
    padding: 48px 32px;
    border-radius: var(--dl-radius);
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    box-shadow: 0 16px 48px rgba(37, 99, 235, 0.3);
}
.dl-cta h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 800;
}
.dl-cta > p {
    margin: 0 0 24px;
    font-size: 0.875rem;
    opacity: 0.9;
}
.dl-cta__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.dl-cta__links a {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none !important;
    background: #fff;
    color: var(--dl-accent-deep) !important;
    transition: transform 0.2s;
}
.dl-cta__links a:hover { transform: translateY(-2px); }
.dl-cta__links a.dl-cta__link--ghost {
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.dl-footer-section {
    padding: 0 0 80px;
    background: var(--dl-bg);
}

@media (max-width: 767px) {
    .dl-hero { padding: 40px 24px; }
    .dl-hero__visual { grid-template-columns: repeat(2, 1fr); }
    .dl-quick,
    .dl-roles { padding: 40px 0; }
}
