﻿/* 页签容器 */
.ranking-tabs {
    display: flex;
    justify-content: left; /* 居左 */
    margin: 0;
    padding: 0;
}
/* 页签按钮 */
.tab-button {
    display: inline-block; /* 让页签不会占满整行 */
    width: 120px; /* 控制页签宽度 */
    padding: 10px;
    text-align: center;
    cursor: pointer;
    background: #ddd;
    border: 1px solid #bbb;
    border-bottom: none; /* 让页签和表格无缝衔接 */
}
.tab-button:first-child {
    border-radius: 5px 0 0 0;
}
.tab-button:last-child {
    border-radius: 0 5px 0 0;
}
.tab-button.active {
    background: #fff;
    font-weight: bold;
}

/* 排名表格 */
.ranking-content {
    border: 1px solid #bbb;
}
.ranking-table {
    width: 100%;
    border-collapse: collapse;
}
.ranking-table th, .ranking-table td {
    border: 1px solid #bbb;
    padding: 8px;
    text-align: center;
}
.ranking-table th {
    background: #f3f3f3;
}

/* 排名奖励 */
.rank-reward-btn-container {
    text-align: center;
    margin-top: 20px;
}

.rank-reward-btn {
    padding: 10px 24px;
    font-size: 16px;
    background-color: #ffd180;
    color: #333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.rank-reward-btn:hover {
    background-color: #ffca63;
}

#rewardModal {
    display: none;
    position: absolute;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 720px;
    background-color: white;
    color: black;
    border-radius: 10px;
    overflow: hidden; /* 不让整体滚动 */
    z-index: 1001;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}


#modalBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.modal-header {
    position: relative;
    padding: 12px 40px 12px 20px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    background-color: #f9f9f9;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 18px;
    color: #999;
    cursor: pointer;
}

.modal-close-btn:hover {
    color: #333;
}

.modal-body {
    max-height: 620px;
    overflow-y: auto;
    padding: 15px 20px;
}

.reward-item {
    margin-bottom: 16px;
}

.reward-rank {
    font-weight: bold;
    margin-bottom: 6px;
}

.reward-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reward-tag {
    display: inline-block;
    background-color: #ffffff;
    color: #333;
    border-radius: 4px;         /* 圆角更小 */
    padding: 2px 5px;           /* 更窄的内边距 */
    margin: 1px 2px 0 0;        /* 几乎贴着 */
    font-size: 13px;            /* 字体略小 */
    line-height: 1.2;
}

.reward-rank {
    font-weight: bold;
    margin-bottom: 6px;
}

.reward-card {
    background-color: #f6f6f6;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
