/**
 * 热榜页面样式
 */

/* 热榜容器 */
.hot-container {
    width: 100%;
    padding: 15px;
}

/* 热榜头部 */
.hot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.hot-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.hot-actions {
    display: flex;
    align-items: center;
}

.refresh-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M23 4v6h-6"></path><path d="M1 20v-6h6"></path><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path></svg>');
    margin-right: 5px;
    vertical-align: middle;
}

.update-time {
    margin-left: 10px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* 榜单标签 */
.hot-board-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border-secondary);
    padding-bottom: 10px;
}

.board-tab {
    padding: 6px 12px;
    border: 1px solid var(--color-border-primary);
    border-radius: 20px;
    background-color: var(--color-gray-50);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.board-tab:hover {
    background-color: var(--color-border-secondary);
}

.board-tab.active {
    background-color: var(--color-info);
    color: var(--color-white);
    border-color: var(--color-info);
}

/* 热榜列表 */
.hot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.hot-item {
    display: flex;
    padding: 0px 12px;
    background-color: var(--color-white);
    border-radius: 8px;
    border: 1px solid var(--color-border-secondary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    width: calc(33.333% - 12px);
    min-width: 400px;
    box-sizing: border-box;
}

.hot-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 前三名特殊样式 */
.hot-top-1 .hot-rank {
    background-color: var(--color-error);
    color: white;
}

.hot-top-2 .hot-rank {
    background-color: var(--color-warning);
    color: white;
}

.hot-top-3 .hot-rank {
    background-color: var(--color-warning);
    color: white;
}

.hot-rank {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background-color: var(--color-gray-200);
    border-radius: 50%;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 8px;
}

.hot-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    align-items: center;
}

.hot-word {
    font-size: 0.875rem;
    font-weight: bold;
    margin-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.hot-info {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.hot-value {
    color: var(--color-error);
}

.hot-label {
    color: var(--color-info);
    display: none;
}

.hot-tag {
    background-color: var(--color-gray-200);
    padding: 2px 6px;
    border-radius: 4px;
}

.hot-cover {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-left: 10px;
    border-radius: 4px;
    overflow: hidden;
}

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

/* 加载中和空状态 */
.hot-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
}

.empty-message {
    text-align: center;
    padding: 30px 0;
    color: var(--color-text-tertiary);
    font-size: 0.875rem;
}

.error-message {
    text-align: center;
    padding: 20px 0;
    color: var(--color-error);
    font-size: 0.875rem;
}
