﻿/* 容器 */
.gh-rank-box {
    border: 1px solid #eee;
    background: #fff;
    font-family: "Microsoft YaHei", sans-serif;
}

/* Tab 导航 */
.gh-tab-nav {
    display: flex;
    flex-wrap: wrap;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.gh-tab-nav span {
    flex: 1;
    text-align: center;
    padding: 8px 2px;
    font-size: 12px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
}

.gh-tab-nav span.active {
    background: #fff;
    color: #7266ba;
    font-weight: bold;
    border-top: 2px solid #7266ba;
}

/* 列表内容 */
.gh-cat-content {
    list-style: none !important;
    margin: 0 !important;
    padding: 10px !important;
}

.gh-cat-content li {
    display: flex;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #f9f9f9;
    font-size: 13px;
}

.gh-cat-content li:last-child { border-bottom: none; }

/* 排名角标 */
.rank-idx {
    font-style: normal;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: #ccc;
    color: #fff;
    font-size: 10px;
    margin-right: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}

.idx-1 { background: #ff4d4f; }
.idx-2 { background: #ff7a45; }
.idx-3 { background: #ffc53d; }

/* 链接 */
.gh-cat-content li a {
    flex: 1;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gh-cat-content li a:hover { color: #7266ba; text-decoration: underline; }

/* Star 数 */
.gh-star {
    font-size: 11px;
    color: #999;
    margin-left: 5px;
}

.gh-footer {
    font-size: 10px;
    color: #bbb;
    text-align: right;
    padding: 5px 10px;
    background: #fcfcfc;
}