/* ================================================================
   全站排行榜页面样式 (v2026)
   路径: /public/css/v2026/top.css
   依赖: v2026/global.css（--primary: #13c2c2）
   结构: 左侧分类导航 + 右侧榜单主体（领奖台 + 列表）
   ================================================================ */

/* ---- 页面外层 ---- */
.rank-wrap { padding: 28px 0 60px; }
.rank-pagetitle {
    font-size: 20px; font-weight: bold; color: #333;
    border-left: 3px solid var(--primary); padding-left: 12px; line-height: 1.1;
    margin-bottom: 20px;
}
.rank-layout { display: flex; gap: 24px; align-items: flex-start; }


/* ================================================================
   左侧分类导航
   ================================================================ */
.rank-sidebar {
    width: 200px; flex-shrink: 0; background: #fff;
    border-radius: 10px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; top: 20px;
}
.rank-sidebar-title {
    background: var(--primary); color: #fff;
    font-size: 15px; font-weight: bold; padding: 14px 18px; letter-spacing: 1px;
}
.rank-nav { list-style: none; margin: 0; padding: 8px 0; }
.rank-nav-group { margin-bottom: 2px; }
.rank-nav-hd {
    font-size: 13px; font-weight: bold; color: #888;
    padding: 10px 18px 6px; letter-spacing: 0.5px;
    display: flex; align-items: center; gap: 5px;
}
.rank-nav-hd i { font-size: 14px; color: var(--primary); }
.rank-nav-sub { list-style: none; margin: 0; padding: 0 0 6px; }

.rank-nav-sub li a,
.rank-nav-sub li .soon {
    display: block; padding: 8px 18px 8px 34px; font-size: 14px;
    color: #555; transition: all 0.2s; position: relative;
}
.rank-nav-sub li a::before,
.rank-nav-sub li .soon::before {
    content: ''; position: absolute; left: 20px; top: 50%;
    transform: translateY(-50%); width: 5px; height: 5px;
    border-radius: 50%; background: #ddd; transition: background 0.2s;
}
.rank-nav-sub li a:hover { color: var(--primary); background: #f5fefe; }
.rank-nav-sub li a:hover::before { background: var(--primary); }

/* 当前激活榜单 */
.rank-nav-sub li a.active {
    color: var(--primary); background: rgba(19, 194, 194, 0.07); font-weight: bold;
}
.rank-nav-sub li a.active::before { background: var(--primary); }

/* 预留（待上线）项：不可点，弱化 */
.rank-nav-sub li .soon { color: #c0c0c0; cursor: default; }
.rank-nav-sub li .soon::before { background: #eee; }
.rank-nav-sub li .soon em {
    font-style: normal; font-size: 11px; color: #ccc; margin-left: 4px;
}


/* ================================================================
   右侧榜单主体
   ================================================================ */
.rank-main { flex: 1; min-width: 0; }
.rank-panel {
    background: #fff; border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04); padding: 24px 28px;
}

/* ---- 头部：标题 + 时间维度 tab ---- */
.rank-panel-hd {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-bottom: 22px;
    padding-bottom: 18px; border-bottom: 1px solid #f2f2f2;
}
.rank-panel-tit h1 { font-size: 20px; font-weight: 800; color: #333; margin: 0; }
.rank-panel-tit p { font-size: 13px; color: #999; margin: 6px 0 0; }

.rank-tabs { display: flex; background: #f4f6f8; border-radius: 8px; padding: 3px; }
.rank-tab {
    font-size: 13px; padding: 6px 16px; border-radius: 6px;
    color: #666; cursor: pointer; transition: all 0.2s; user-select: none;
}
.rank-tab.on { background: var(--primary); color: #fff; font-weight: bold; }
.rank-tab.soon { color: #c0c0c0; cursor: not-allowed; }

.rank-empty { text-align: center; color: #999; padding: 60px 0; font-size: 14px; }


/* ================================================================
   前三名 · 领奖台
   ================================================================ */
.rank-podium { display: flex; gap: 14px; margin-bottom: 22px; }
.podium-item {
    flex: 1; text-align: center; padding: 22px 12px 18px;
    background: #f8fafb; border-radius: 12px; position: relative;
    border-top: 3px solid #e5e9ec; transition: transform 0.2s;
}
.podium-item:hover { transform: translateY(-3px); }
.podium-item.p1 { background: #fffdf3; border-top-color: #f0b429; }
.podium-item.p2 { background: #f9fafb; border-top-color: #b6bcc4; }
.podium-item.p3 { background: #fdf7f1; border-top-color: #d69a5c; }

.podium-rank {
    position: absolute; top: 12px; left: 14px;
    width: 24px; height: 24px; line-height: 24px; text-align: center;
    border-radius: 50%; font-size: 13px; font-weight: bold; color: #fff;
    background: #c0c6cc;
}
.podium-item.p1 .podium-rank { background: #f0b429; }
.podium-item.p2 .podium-rank { background: #b6bcc4; }
.podium-item.p3 .podium-rank { background: #d69a5c; }

.podium-avatar {
    display: inline-block; width: 72px; height: 72px; border-radius: 50%;
    overflow: hidden; background: #f0f2f5; margin-bottom: 10px;
    border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); transition: 0.2s;
}
.podium-item.p1 .podium-avatar { width: 84px; height: 84px; border-color: #fff6da; }
.podium-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.podium-item:hover .podium-avatar { box-shadow: 0 4px 14px rgba(19,194,194,0.22); }

.podium-name {
    display: block; font-size: 15px; font-weight: bold; color: #333;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.podium-item:hover .podium-name { color: var(--primary); }
.podium-value { margin-top: 8px; font-size: 13px; color: #999; }
.podium-value b { font-size: 18px; color: var(--primary-hover); font-weight: 800; margin-right: 3px; }
.podium-value em { font-style: normal; }


/* ================================================================
   第 4 名起 · 列表
   ================================================================ */
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 6px; border-bottom: 1px solid #f4f4f4;
}
.rank-row:last-child { border-bottom: 0; }
.rank-row:hover { background: #fbfefe; }

.rank-no {
    width: 30px; flex-shrink: 0; text-align: center;
    font-size: 16px; font-weight: bold; color: #b8b8b8; font-family: Arial, sans-serif;
}
.rank-avatar {
    width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%;
    overflow: hidden; background: #f0f2f5; box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.rank-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; transition: 0.2s; }
.rank-row:hover .rank-avatar img { transform: scale(1.05); }

.rank-body { flex: 1; min-width: 0; }
.rank-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.rank-name {
    font-size: 15px; font-weight: bold; color: #333;
    max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-name:hover { color: var(--primary); }
.rank-level {
    flex-shrink: 0; font-size: 11px; color: var(--primary-hover);
    background: #e6f7f7; padding: 1px 8px; border-radius: 10px; line-height: 1.6;
}

.rank-meta {
    display: flex; align-items: center; gap: 8px; margin: 0;
    font-size: 12px; color: #999; overflow: hidden; white-space: nowrap;
}
.rank-meta-divider { width: 1px; height: 11px; background: #e0e0e0; flex-shrink: 0; }
.rank-works {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.rank-works a { color: #888; }
.rank-works a:hover { color: var(--primary); }
.rank-works a:not(:last-child)::after { content: '、'; color: #ccc; }

/* 右侧统一数值槽位（换字段即可复用于打赏/播放/收藏等榜单） */
.rank-value { flex-shrink: 0; text-align: right; min-width: 72px; }
.rank-value b { display: block; font-size: 17px; font-weight: 800; color: #333; font-family: Arial, sans-serif; }
.rank-value em { font-style: normal; font-size: 11px; color: #bbb; }