
.dl-hero {
    min-height: 52vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 2rem 80px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, rgba(225, 29, 72, 0.1) 0%, transparent 65%);
    border-bottom: 1px solid var(--border-color);
}

.dl-hero-inner {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.dl-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin: 1.2rem 0 1.2rem;
    line-height: 1.1;
}

.dl-hero h1 span {
    background: linear-gradient(135deg, #fff 0%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dl-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.dl-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 1.8rem 2.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    display: inline-flex;
}

.dl-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.dl-stat strong {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
}

.dl-stat span {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dl-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}


.dl-section {
    padding: 80px 2rem 120px;
}

.dl-section-inner {
    max-width: 960px;
    margin: 0 auto;
}

.dl-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 6px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.dl-tab {
    flex: 1;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.9rem 1rem;
    background: none;
    border: none;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.dl-tab i {
    font-size: 1.4rem;
    transition: all 0.25s ease;
}

.dl-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.dl-tab.active {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.35);
}


.dl-panel {
    display: none;
    animation: panelFadeIn 0.35s ease;
}

.dl-panel.active {
    display: block;
}

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}


.dl-recommend-tip {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(225, 29, 72, 0.08);
    border: 1px solid rgba(225, 29, 72, 0.25);
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dl-recommend-tip i {
    color: var(--primary-red);
    flex-shrink: 0;
    font-size: 1rem;
}

.dl-recommend-tip strong {
    color: var(--text-main);
}


.dl-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.35s ease;
    backdrop-filter: blur(10px);
}

.dl-card:hover {
    border-color: rgba(225, 29, 72, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.dl-card-featured {
    border-color: rgba(225, 29, 72, 0.3);
    background: rgba(225, 29, 72, 0.04);
    position: relative;
    overflow: hidden;
}

.dl-card-featured::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary-red), rgba(225, 29, 72, 0.3));
}

.dl-card-deprecated {
    opacity: 0.6;
}

.dl-card-deprecated:hover {
    opacity: 0.8;
    transform: none;
    box-shadow: none;
}


.dl-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.dl-app-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.dl-icon-win  { background: rgba(0, 120, 212, 0.15); color: #60a5fa; }
.dl-icon-mac  { background: rgba(255, 255, 255, 0.08); color: #e2e8f0; }
.dl-icon-android { background: rgba(61, 220, 132, 0.15); color: #4ade80; }
.dl-icon-ios  { background: rgba(10, 132, 255, 0.15); color: #60a5fa; }
.dl-icon-linux { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.dl-icon-dim  { opacity: 0.45; }

.dl-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0;
}
.dl-icon-img {
    background: #ffffff;
    padding: 0;
    overflow: hidden;
}

.dl-app-info {
    flex: 1;
    min-width: 0;
}

.dl-app-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.dl-app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dl-app-meta i {
    margin-right: 4px;
}


.dl-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.dl-badge-recommended {
    background: rgba(225, 29, 72, 0.15);
    color: var(--primary-red);
    border: 1px solid rgba(225, 29, 72, 0.35);
}

.dl-badge-active {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.dl-badge-deprecated {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.dl-badge-paid {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.dl-badge-free {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}


.dl-app-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}


.dl-btn-group {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 1.3rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}

.dl-btn-primary {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 0 16px rgba(225, 29, 72, 0.3);
}

.dl-btn-primary:hover {
    background: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5);
}

.dl-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.dl-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #555;
    transform: translateY(-2px);
}

.dl-btn-ghost {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.dl-btn-ghost:hover {
    color: var(--text-main);
    border-color: #555;
}


.dl-guide-section {
    padding: 120px 2rem;
    border-top: 1px solid var(--border-color);
    background: radial-gradient(circle at 50% 50%, rgba(225, 29, 72, 0.05) 0%, transparent 60%);
}

.dl-guide-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.dl-guide-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.dl-guide-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    transition: all 0.35s ease;
    backdrop-filter: blur(10px);
}

.dl-guide-card:hover {
    border-color: rgba(225, 29, 72, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.dl-guide-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(225, 29, 72, 0.1);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    transition: 0.3s;
}

.dl-guide-card:hover .dl-guide-icon {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 0 15px var(--primary-red-glow);
}

.dl-guide-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.dl-guide-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

.dl-guide-card p strong {
    color: var(--text-main);
}


.dl-github-section {
    padding: 100px 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
}

.dl-github-inner {
    max-width: 600px;
    margin: 0 auto;
}

.dl-github-icon {
    font-size: 3.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.dl-github-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.dl-github-section p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}


@media (max-width: 1024px) {
    .dl-guide-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .dl-hero { padding: 120px 1.5rem 60px; }

    .dl-stats {
        gap: 1.5rem;
        padding: 1.2rem 1.5rem;
        flex-wrap: wrap;
    }

    .dl-stat-divider { display: none; }

    .dl-tabs {
        gap: 4px;
        padding: 4px;
    }

    .dl-tab {
        padding: 0.7rem 0.6rem;
        font-size: 0.78rem;
        gap: 4px;
    }

    .dl-tab i { font-size: 1.1rem; }

    .dl-card { padding: 1.5rem; }

    .dl-card-header { flex-direction: column; gap: 0.8rem; }

    .dl-btn-group { flex-direction: column; }
    .dl-btn { width: 100%; justify-content: center; }

    .dl-guide-grid { grid-template-columns: 1fr; }

    .dl-guide-section,
    .dl-github-section { padding: 80px 1.5rem; }
}

@media (max-width: 480px) {
    .dl-tab span { display: none; }
    .dl-tab { flex-direction: row; min-width: unset; }
    .dl-tab i { font-size: 1.3rem; }
}
