/* paihang.css */
.page-paihang {
    background-color: var(--primary-bg);
    color: var(--text-dark);
}

.bgg {
    padding: 20px;
    background-color: var(--secondary-bg);
    border-radius: 12px;
    margin-top: 64px;
    box-shadow: var(--shadow-sm);
    height: calc(100vh - 64px);
    overflow: auto;
    box-sizing: border-box;
}

.table {
    background-color: var(--primary-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hty {
    display: flex;
    padding: 0 15px;
    background-color: var(--primary-bg);
}

.hty div {
    padding: 12px 20px;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.hty div.activeL {
    color: var(--accent-blue);
    font-weight: 600;
}

.hty div.activeL::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: var(--accent-blue);
    border-radius: 3px;
}

.linddd {
    height: 1px;
    background-color: var(--border-color);
    margin: 0 15px;
}

.contaninner {
    padding: 10px 0;
}

.tr {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.tr:last-child {
    border-bottom: none;
}

.tr:hover {
    background-color: var(--secondary-bg);
}

.th {
    padding: 0 5px;
    font-size: 14px;
}

.tt {
    width: 15%;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
}

.tt div {
    width: 28px;
    height: 28px;
    line-height: 28px;
    border-radius: 50%;
    margin: 0 auto;
}

.tt div:first-child {
    background-color: var(--accent-blue);
    color: white;
}

.gg {
    width: 15%;
    text-align: center;
    color: var(--text-medium);
}

.hh {
    width: 40%;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mm {
    width: 30%;
    text-align: right;
    color: var(--accent-green);
    font-weight: 600;
}
/* Enhanced top 3 ranking styles */
.tr:nth-child(1) .tt div {
    background-color: #ff6b4a; /* Vibrant orange for 1st */
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(255, 107, 74, 0.3);
    position: relative;
}

.tr:nth-child(1) .tt div::after {
    content: '🥇';
    position: absolute;
    right: -5px;
    top: 10px;
    font-size: 12px;
}

.tr:nth-child(2) .tt div {
    background-color: #a0aec0; /* Silver gray for 2nd */
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(160, 174, 192, 0.3);
    position: relative;
}

.tr:nth-child(2) .tt div::after {
    content: '🥈';
    position: absolute;
    right: -5px;
    top: 10px;
    font-size: 12px;
}

.tr:nth-child(3) .tt div {
    background-color: #cd7f32; /* Bronze for 3rd */
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(205, 127, 50, 0.3);
    position: relative;
}

.tr:nth-child(3) .tt div::after {
    content: '🥉';
    position: absolute;
    right: -5px;
    top: 10px;
    font-size: 12px;
}


/* Make the top 3 rows stand out more */
.tr:nth-child(1),
.tr:nth-child(2),
.tr:nth-child(3) {
    border-left: 3px solid;
}

.tr:nth-child(1) {
    border-left-color: #ff6b4a;
}

.tr:nth-child(2) {
    border-left-color: #a0aec0;
}

.tr:nth-child(3) {
    border-left-color: #cd7f32;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .bgg {
        padding: 15px;
    }

    .hty div {
        padding: 10px 15px;
        font-size: 14px;
    }

    .th {
        font-size: 13px;
    }

    .hh {
        width: 35%;
    }

    .mm {
        width: 35%;
    }
}