/* ============================================================
   Download Center Styles — MD/css/download.css
   根据你的设计稿覆盖这里的样式即可
   ============================================================ */

/* Page Layout */
.download-page {
    padding: 48px 0;
    background: #fff;
    min-height: 60vh;
}
.download-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Page Header */
.download-page-header {
    margin-bottom: 40px;
}
.download-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
}
.download-page-desc {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Filter Tabs */
.download-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 20px;
}
.download-filter-btn {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #444;
    text-decoration: none;
    background: #fff;
    transition: all 0.2s ease;
}
.download-filter-btn:hover,
.download-filter-btn.active {
    background: #98292b;
    border-color: #98292b;
    color: #fff;
}

/* Download Item Row */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.download-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease;
}
.download-item:first-child {
    border-top: 1px solid #f0f0f0;
}
.download-item:hover {
    background: #fafafa;
}

/* File Type Icon */
.download-item-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: #e8e8e8;
    color: #555;
}
.download-type-pdf  { background: #fde8e8; color: #c0392b; }
.download-type-doc,
.download-type-docx { background: #e8f0fe; color: #1a73e8; }
.download-type-xls,
.download-type-xlsx { background: #e8f5e9; color: #2e7d32; }
.download-type-zip  { background: #fff8e1; color: #f57f17; }
.download-type-exe,
.download-type-iso  { background: #f3e5f5; color: #7b1fa2; }
.download-type-mp4  { background: #e3f2fd; color: #1565c0; }

/* Item Info */
.download-item-info {
    flex: 1;
    min-width: 0;
}
.download-item-title {
    font-size: 0.975rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.download-item-desc {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.download-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: #999;
}
.download-meta-size::before  { content: "Size: "; }
.download-meta-count::after  { content: ""; }
.download-meta-private {
    color: #98292b;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 1px 6px;
    border: 1px solid #98292b;
    border-radius: 3px;
}

/* Download Button */
.download-item-action {
    flex-shrink: 0;
}
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: #98292b;
    color: #fff;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
    white-space: nowrap;
}
.download-btn:hover {
    background: #7a2020;
    color: #fff;
}
.download-btn-login {
    background: #555;
}
.download-btn-login:hover {
    background: #333;
}
.download-btn-disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
}
.download-btn svg {
    flex-shrink: 0;
}

/* Empty State */
.download-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 0.975rem;
}

/* Responsive */
@media (max-width: 768px) {
    .download-inner { padding: 0 16px; }
    .download-page  { padding: 32px 0; }

    .download-item {
        flex-wrap: wrap;
    }
    .download-item-icon {
        width: 44px;
        height: 44px;
        font-size: 0.65rem;
    }
    .download-item-info {
        flex: 1;
    }
    .download-item-action {
        width: 100%;
        padding-left: 64px;
    }
    .download-btn {
        width: 100%;
        justify-content: center;
    }
    .download-filter-bar {
        gap: 6px;
    }
    .download-filter-btn {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}
