/* 排行榜页面 */
.rank-tabs {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    gap: 30px;
}

.rank-tabs a {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.rank-tabs a i {
    font-style: normal;
}

.rank-tabs a:hover,
.rank-tabs a.active {
    color: #ff6b35;
}

.rank-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rank-column {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rank-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.rank-column-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.rank-more {
    font-size: 12px;
    color: #999;
}

.rank-more:hover {
    color: #ff6b35;
}

.rank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rank-item {
    display: block;
}

.rank-item.first {
    margin-bottom: 10px;
}

.rank-first-content {
    display: flex;
    gap: 12px;
    position: relative;
}

.rank-cover {
    width: 100px;
    height: 130px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-first-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rank-name {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
}

.rank-author {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.rank-author span {
    color: #1890ff;
}

.rank-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-update {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.rank-update span {
    color: #ff6b35;
}

.rank-hits {
    font-size: 12px;
    color: #999;
}

.rank-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border: 2px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

/* 列表项 */
.rank-item:not(.first) {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.rank-item:not(.first):last-child {
    border-bottom: none;
}

.rank-num {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.rank-num.orange {
    background-color: #ff6b35;
    color: #fff;
}

.rank-num.gray {
    background-color: #e0e0e0;
    color: #666;
}

.rank-item-name {
    flex: 1;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-item-hits {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

/* 单个榜单网格布局（图1样式） */
.rank-single-grid {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rank-grid-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.rank-grid-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.rank-grid-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rank-grid-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background-color: #fff;
    transition: background-color 0.3s;
    box-shadow: 0px 2px 9px 0 #e5e5e5;
}

.rank-grid-card:hover {
    background-color: #f5f5f5;
}

.rank-grid-cover-wrap {
    width: 100px;
    height: 130px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.rank-grid-cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-grid-num {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #666;
}

.rank-grid-num.top {
    background-color: #ff6b35;
    color: #fff;
}

.rank-grid-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rank-grid-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
}

.rank-grid-author {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.rank-grid-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-grid-update {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.rank-grid-update span {
    color: #ff6b35;
}

.rank-grid-hits {
    font-size: 12px;
    color: #999;
}

@media (max-width: 1024px) {
    .rank-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    .rank-grid-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rank-columns {
        grid-template-columns: 1fr;
    }
    .rank-grid-list {
        grid-template-columns: 1fr;
    }
    .rank-tabs {
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* 漫画详情提示框 */
.comic-tooltip {
    position: absolute;
    display: none;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    padding: 15px;
    z-index: 9999;
    width: 320px;
    flex-direction: row;
    gap: 15px;
}

.tooltip-cover {
    width: 100px;
    height: 130px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.tooltip-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tooltip-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tooltip-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.tooltip-author {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.tooltip-author span {
    color: #1890ff;
}

.tooltip-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tooltip-update {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

.tooltip-update span {
    color: #ff6b35;
}

.tooltip-hits {
    font-size: 12px;
    color: #999;
}
