/* ============================================================
   来源：views/theme/rank.html 内联 <style> 第 1 块（原位抽离，88 行）
   说明：在原位置以 <link rel="stylesheet"> 引入，来源顺序不变，
        层叠结果与抽离前逐字一致，不会引起样式变化。
   ============================================================ */
/* ===== 顶部栏（rank.html 特有） ===== */
.theme-header-wrapper {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e9ecf0;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}
.theme-header-wrapper .left { flex: 1; min-width: 0; }
.theme-header-wrapper .left .info h2 { font-size: 18px; margin: 0; color: #1f2a3a; }
.theme-header-wrapper .right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    flex-shrink: 0;
    gap: 8px;
    padding-left: 16px;
    border-left: 1px solid #d0d7e0;
    min-width: 160px;
}
.theme-header-wrapper .right .actions {
    display: flex;
    gap: 8px 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 14px;
}
.theme-header-wrapper .right .actions a { color: #5a6b7c; text-decoration: none; transition: color 0.2s; }
.theme-header-wrapper .right .actions a:hover { color: #eb1313; }
.theme-header-wrapper .right .actions .btn-special {
    background: #eb1313;
    color: #fff !important;
    padding: 3px 14px;
    border-radius: 4px;
    font-size: 13px;
}
.theme-header-wrapper .right .actions .btn-special:hover { background: #c00; }
.theme-header-wrapper .right .actions .sep { color: #d0d7e0; }

/* ===== 排行榜条目丰富样式 ===== */
.doc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    font-size: 13px;
    color: #7a8a9e;
    margin-top: 4px;
}
.doc-meta .file-type {
    font-size: 12px;
    color: #7a8a9e;
    background: #f0f2f5;
    padding: 0 8px;
    border-radius: 12px;
    line-height: 22px;
    white-space: nowrap;
}
.doc-meta .vip-badge {
    font-size: 12px;
    background: #f59e0b;
    color: #fff;
    padding: 0 8px;
    border-radius: 12px;
    line-height: 22px;
    font-weight: 600;
    white-space: nowrap;
}
.doc-meta .category-tag {
    background: #f0f2f5;
    padding: 0 10px;
    border-radius: 12px;
    line-height: 22px;
    font-size: 12px;
    color: #5a6b7c;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .theme-header-wrapper { flex-direction: column; align-items: stretch; }
    .theme-header-wrapper .right { border-left: none; border-top: 1px solid #d0d7e0; padding-left: 0; padding-top: 10px; align-items: flex-start; }
    .theme-header-wrapper .right .actions { justify-content: flex-start; }
}
