/* ========== 基础布局 ========== */
.page-paihang {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.bgg {
    padding: 1rem;
    box-sizing: border-box;
    position: relative;
    height: calc(100vh - 64px);
    margin-top: 64px;
    overflow-y: auto;
}

/* ========== 标题样式 ========== */
.ti {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== 表格容器 ========== */
.table {
    background: var(--bg-card);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ========== 选项卡样式 ========== */
.hty {
    display: flex;
    background: var(--bg-secondary);
    padding: 0.5rem;
}

.hty div {
    flex: 1;
    text-align: center;
    padding: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.hty div.activeL {
    color: var(--accent-primary);
    background: var(--bg-card);
    border-radius: 0.8rem;
    box-shadow: 0 2px 8px rgba(124,77,255,0.3);
}

/* ========== 分隔线 ========== */
.linddd {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--border-color), 
        transparent);
    margin: 0 1rem;
}

/* ========== 表格内容 ========== */
.contaninner {
    padding: 0.5rem;
}

.tr {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tr:last-child {
    border-bottom: none;
}

.tr:hover {
    background: rgba(124,77,255,0.05);
    transform: translateX(5px);
}

/* ========== 表格单元格 ========== */
.th {
    padding: 0 0.5rem;
    font-size: 0.95rem;
}

.pre {
    flex: 0 0 3rem;
    text-align: center;
}

.pre div {
    width: 1.8rem;
    height: 1.8rem;
    line-height: 1.8rem;
    border-radius: 50%;
    background: var(--bg-secondary);
    margin: 0 auto;
    font-weight: bold;
}

/* 排名前三特殊样式 */
.tr:nth-child(1) .pre div {
    background: linear-gradient(135deg, #ffd700, #ff9500);
    color: var(--text-dark);
}

.tr:nth-child(2) .pre div {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
}

.tr:nth-child(3) .pre div {
    background: linear-gradient(135deg, #cd7f32, #a05a2c);
}

.gg {
    flex: 0 0 4rem;
    text-align: center;
    color: var(--text-secondary);
}

.hh {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
}

.money {
    flex: 0 0 8rem;
    text-align: right;
    color: var(--accent-secondary);
    font-weight: 600;
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* ========== 响应式调整 ========== */
@media (max-width: 480px) {
    .hty div {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
    
    .th {
        font-size: 0.85rem;
    }
    
    .money {
        flex: 0 0 6rem;
    }
    
    .pre {
        flex: 0 0 2.5rem;
    }
}