.download-page {
    padding: 24px 0;
}

/* =========================
   页面头部
========================= */

.download-header {
    margin-bottom: 18px;
}

.download-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    line-height: 1.35;
    color: #222;
}

.download-header p {
    margin: 0;
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}


/* =========================
   分类按钮
========================= */

.download-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.download-categories .btn {
    white-space: nowrap;
}

.download-categories .btn.active {
    background: #1f6feb;
    color: #fff;
    border-color: #1f6feb;
}


/* =========================
   下载列表
========================= */

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.download-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 210px;
    padding: 18px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.download-card:hover {
    border-color: #1f6feb;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.download-card-main {
    display: flex;
    gap: 14px;
}

.download-icon {
    flex: 0 0 48px;
    height: 48px;
    border-radius: 8px;
    background: #f2f6ff;
    color: #1f6feb;
    font-size: 13px;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
}

.download-info {
    flex: 1;
    min-width: 0;
}

.download-info h3 {
    margin: 0 0 8px 0;
    font-size: 17px;
    line-height: 1.45;
    color: #222;
}

.download-info p {
    margin: 0;
    min-height: 48px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 12px;
    color: #888;
    font-size: 13px;
}

.download-meta span {
    display: inline-flex;
    align-items: center;
}

.download-action {
    margin-top: 18px;
    text-align: right;
}

.download-action .btn {
    min-width: 86px;
}


/* =========================
   空状态
========================= */

.empty-box {
    padding: 40px 20px;
    text-align: center;
    color: #888;
    background: #fff;
    border: 1px dashed #ddd;
    border-radius: 8px;
}


/* =========================
   响应式
========================= */

@media (max-width: 1000px) {

    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .download-page {
        padding: 14px 0;
    }

    .download-header h1 {
        font-size: 24px;
    }

    .download-header p {
        font-size: 14px;
    }

    .download-categories {
        gap: 8px;
    }

    .download-categories .btn {
        flex: 1 1 calc(50% - 8px);
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .download-card {
        min-height: auto;
        padding: 16px;
    }

    .download-card-main {
        gap: 12px;
    }

    .download-icon {
        flex-basis: 44px;
        height: 44px;
        line-height: 44px;
        font-size: 12px;
    }

    .download-action {
        text-align: left;
    }

    .download-action .btn {
        width: 100%;
    }

}

.download-card-main {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.download-cover {
    width: 120px;
    height: 90px;
    flex: 0 0 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f5f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================
   Mobile Header Spacing Fix
   防止顶部搜索栏遮住下载页标题
========================= */

@media (max-width: 768px) {

    .download-page {
        padding: 24px 14px 28px !important;
    }

    .download-header {
        margin-top: 14px;
        padding: 18px 16px;
        border-radius: 10px;
    }

    .download-header h1 {
        font-size: 22px;
        line-height: 1.35;
        margin-bottom: 8px;
    }

    .download-header p {
        font-size: 14px;
        line-height: 1.7;
    }

    .download-categories {
        margin-top: 14px;
    }

}