/* ============ 下载站前台样式 ============ */
body {
    background: #f2f4f8;
    color: #2b3445;
}

.site-navbar {
    background: linear-gradient(90deg, #1d4ed8 0%, #0ea5e9 100%);
    box-shadow: 0 2px 10px rgba(29, 78, 216, .25);
}

.hero {
    background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 55%, #0ea5e9 100%);
    border-radius: 16px;
    color: #fff;
    padding: 42px 28px;
    margin-bottom: 24px;
}

.hero .hero-sub {
    color: rgba(255, 255, 255, .78);
}

.hero .stat-badge {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
}

.file-card {
    border: 1px solid #e6eaf2;
    border-radius: 12px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.file-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(23, 43, 99, .12);
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    padding-left: 10px;
    border-left: 4px solid #2563eb;
    margin: 6px 0 16px;
}

.hot-list .list-group-item {
    border: 0;
    border-bottom: 1px dashed #edf0f6;
    padding: 10px 2px;
    background: transparent;
}

.hot-list .list-group-item:last-child {
    border-bottom: 0;
}

.rank-no {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    background: #edf0f6;
    color: #6b7280;
    margin-right: 6px;
}

.rank-no.top1 { background: #ef4444; color: #fff; }
.rank-no.top2 { background: #f97316; color: #fff; }
.rank-no.top3 { background: #eab308; color: #fff; }

.sidebar-card {
    border: 1px solid #e6eaf2;
    border-radius: 12px;
    background: #fff;
}

.category-list a {
    display: block;
    padding: 7px 4px;
    border-bottom: 1px dashed #edf0f6;
    color: #3b4a63;
    text-decoration: none;
    font-size: 14px;
}

.category-list a:last-child {
    border-bottom: 0;
}

.category-list a:hover {
    color: #2563eb;
}

.site-footer {
    background: #101828;
    color: #98a2b3;
}

.site-footer a {
    color: #b9c3d6;
}

.detail-icon {
    font-size: 42px;
    line-height: 1;
}

.download-btn {
    padding: 12px 34px;
    font-size: 17px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
}

/* ============ 后台样式 ============ */
.admin-body {
    background: #f2f4f8;
}

.admin-sidebar {
    background: #101828 !important;
    min-height: 100vh;
}

.admin-sidebar .sidebar-brand {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    padding: 6px 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: 12px;
}

.admin-sidebar .nav-link {
    color: #98a2b3;
    border-radius: 8px;
    padding: 9px 12px;
    margin-bottom: 2px;
    font-size: 14px;
}

.admin-sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.admin-sidebar .nav-link.active {
    color: #fff;
    background: #2563eb;
}

.admin-main {
    min-height: 100vh;
}

.table-card {
    border: 1px solid #e6eaf2;
    border-radius: 12px;
    background: #fff;
}

.stat-card {
    border: 0;
    border-radius: 12px;
    color: #fff;
}

.stat-card .stat-num {
    font-size: 26px;
    font-weight: 700;
}

.bg-grad-blue { background: linear-gradient(120deg, #2563eb, #3b82f6); }
.bg-grad-green { background: linear-gradient(120deg, #059669, #10b981); }
.bg-grad-orange { background: linear-gradient(120deg, #ea580c, #f59e0b); }
.bg-grad-purple { background: linear-gradient(120deg, #7c3aed, #a855f7); }

@media (max-width: 767.98px) {
    .hero { padding: 28px 18px; }
}
