
.index-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}
/* TAB 导航栏 - 现代简洁风格 */
.dashboard-tabs {
    display: flex;
    gap: 0.25rem;
    background: #FFFFFF;
    border-radius: 1.25rem;
    padding: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #EDF2F7;
}
.tab-btn {
    flex: 1;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    color: #4A5568;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.tab-btn i {
    font-size: 1.2rem;
}
.tab-btn.active {
    background: #0056b3;
    color: white;
    box-shadow: 0 2px 6px rgba(0,86,179,0.2);
}
.tab-btn:not(.active):hover {
    background: #F7FAFC;
    color: #2D3748;
}
.tab-pane {
    display: none;
    animation: fadeIn 0.2s ease-out;
}
.tab-pane.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
/* 筛选栏通用样式 */
.index-filter-bar, .role-filter-bar {
    background: white;
    border-radius: 1.25rem;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #EDF2F7;
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}
.filter-group {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}
.filter-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #F8FAFE;
    padding: 0.2rem 0.8rem;
    border-radius: 2rem;
}
.filter-label {
    font-size: 0.85rem;
    color: #4A5568;
    font-weight: 500;
}
.filter-input, .period-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    background: white;
    transition: 0.2s;
}
.filter-input:focus, .period-select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0,86,179,0.1);
}
.btn-primary, .btn-secondary {
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.2s;
}
.btn-primary {
    background: #0056b3;
    color: white;
}
.btn-primary:hover {
    background: #004099;
}
.btn-secondary {
    background: #F1F5F9;
    color: #2D3748;
    border: 1px solid #E2E8F0;
}
.btn-secondary:hover {
    background: #E9EEF3;
}
/* 强制一行布局，小屏滚动 */
.role-filter-bar {
    overflow-x: auto;
    white-space: nowrap;
}
.role-filter-bar .filter-group {
    flex-shrink: 0;
}
.role-filter-bar .btn-group {
    flex-shrink: 0;
    margin-left: auto;
}
/* 荣誉卡片区 */
.index-honor-section {
    margin-bottom: 2rem;
}
.index-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.index-honor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.index-honor-card {
    background: white;
    border-radius: 1.25rem;
    box-shadow: 0 4px 6px -2px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    border: 1px solid #EDF2F7;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.index-honor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
}
.index-honor-header {
    padding: 1rem 1.25rem;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.index-honor-body {
    padding: 1.25rem;
}
.honor-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.honor-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #EDF2F7;
}
.honor-list li:last-child {
    border-bottom: none;
}
.honor-rank {
    background: #F1F5F9;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}
.honor-name {
    font-weight: 600;
    color: #1E293B;
}
.honor-score {
    background: #EFF6FF;
    color: #0056b3;
    padding: 0.2rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}
.honor-empty {
    color: #94A3B8;
    text-align: center;
    font-style: italic;
    margin: 0.5rem 0;
}
/* 角色积分榜标题行 */
.role-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.role-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.time-range-badge {
    background: #F1F5F9;
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: normal;
    color: #475569;
}
/* 角色卡片网格 */
.index-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 1.75rem;
    margin-top: 1rem;
}
.index-role-card {
    background: white;
    border-radius: 1.25rem;
    box-shadow: 0 4px 6px -2px rgba(0,0,0,0.05);
    border: 1px solid #EDF2F7;
    cursor: pointer;
    transition: all 0.25s;
    overflow: hidden;
}
.index-role-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -12px rgba(0,0,0,0.1);
    border-color: #CBD5E1;
}
.role-card-header {
    background: #F8FAFE;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #EDF2F7;
}
.rank-badge {
    background: #EFF6FF;
    color: #0056b3;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
}
.points-badge {
    background: #0056b3;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
}
.role-card-body {
    padding: 1.25rem;
}
.role-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.role-desc {
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    border-left: 2px solid #E2E8F0;
    padding-left: 0.75rem;
}
.role-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #5B6E8C;
    border-top: 1px solid #EDF2F7;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}
.role-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
/* ========== 用户积分排行样式 ========== */
.ranking-table-container {
    overflow-x: auto;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    background: white;
}
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.ranking-table th {
    background: linear-gradient(135deg, #0056b3, #004099);
    color: white;
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}
.ranking-table td {
    padding: 0.875rem 0.75rem;
    border-bottom: 1px solid #E2E8F0;
    white-space: nowrap;
}
.ranking-table tbody tr:nth-child(even) {
    background: #F8FAFE;
}
.ranking-table tbody tr:hover {
    background: #EFF6FF;
}
.ranking-rank {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background: #E5E7EB;
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
}
.ranking-rank.top1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}
.ranking-rank.top2 {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: white;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}
.ranking-rank.top3 {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    color: white;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
}
.ranking-score {
    font-weight: 700;
    color: #0056b3;
    font-size: 1rem;
}
.ranking-pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.ranking-page-link {
    display: block;
    padding: 0.5rem 0.875rem;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 0.5rem;
    color: #0056b3;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.ranking-page-link:hover {
    background: #0056b3;
    color: white;
    border-color: #0056b3;
}
.ranking-page-link.active {
    background: #0056b3;
    color: white;
    border-color: #0056b3;
}
.ranking-page-info {
    padding: 0.5rem 0.875rem;
    color: #4A5568;
    font-size: 0.9rem;
    margin-right: auto;
}
.btn-view-detail {
    padding: 0.35rem 0.75rem;
    background: #EFF6FF;
    color: #0056b3;
    border: 1px solid #BFDBFE;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-view-detail:hover {
    background: #0056b3;
    color: white;
    border-color: #0056b3;
}
/* 模态框美化 */
.index-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}
.index-modal.index-show {
    opacity: 1;
    visibility: visible;
}
.index-modal-content {
    background: white;
    border-radius: 1.5rem;
    width: 90%;
    max-width: 1600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 40px -12px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
}
.index-modal-header {
    padding: 1rem 1.5rem;
    background: #0056b3;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.index-modal-header h5 {
    margin: 0;
    font-weight: 600;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.index-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}
.index-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}
.index-item-block {
    background: #F9FCFE;
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid #EFF3F8;
}
.index-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.index-item-title {
    font-weight: 700;
    color: #0F172A;
    font-size: 1rem;
}
.index-item-base {
    background: #EFF6FF;
    padding: 0.2rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    color: #0056b3;
}
.index-bonus-rule {
    background: #FEF9E6;
    padding: 0.5rem 0.8rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    border-left: 3px solid #F59E0B;
}
.index-employee-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.index-employee-table th, .index-employee-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #E2E8F0;
    text-align: left;
    white-space: nowrap;
}
.index-employee-table th {
    background: #F1F5F9;
    font-weight: 600;
    white-space: nowrap;
}
.item-pagination {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.pagination-link {
    padding: 0.3rem 0.7rem;
    border: 1px solid #CBD5E1;
    border-radius: 0.5rem;
    cursor: pointer;
    background: white;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.pagination-link:hover {
    background: #F1F5F9;
}
.pagination-link.active {
    background: #0056b3;
    color: white;
    border-color: #0056b3;
}
.index-empty-state {
    text-align: center;
    padding: 2rem;
    color: #64748B;
}
.index-loading {
    text-align: center;
    padding: 3rem;
    color: #0056b3;
}
.index-text-success {
    color: #059669;
    font-weight: 600;
}
.index-badge {
    background: #F1F5F9;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    color: #475569;
    display: inline-block;
}
.table-container {
    overflow-x: auto;
    border-radius: 0.5rem;
    border: 1px solid #E2E8F0;
}
/* 用户积分详情样式 */
.user-score-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.user-score-card {
    background: linear-gradient(135deg, #0056b3, #004099);
    color: white;
    padding: 1.25rem;
    border-radius: 0.75rem;
    text-align: center;
}
.user-score-card .score-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.user-score-card .score-label {
    font-size: 0.85rem;
    opacity: 0.9;
}
.score-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.score-detail-table th {
    background: #F1F5F9;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #2D3748;
}
.score-detail-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #E2E8F0;
}
.score-detail-table tbody tr:hover {
    background: #F8FAFE;
}
@media (max-width: 768px) {
    .index-page-container { padding: 1rem; }
    .filter-group { flex-wrap: wrap; }
    .role-filter-bar .filter-group { flex-wrap: wrap; }
    .dashboard-tabs { flex-wrap: wrap; }
    .tab-btn { flex: 1 1 45%; }
    .index-employee-table th:nth-child(4), .index-employee-table td:nth-child(4),
    .index-employee-table th:nth-child(5), .index-employee-table td:nth-child(5) {
        display: none;
    }
    .ranking-table th:nth-child(4), .ranking-table td:nth-child(4),
    .ranking-table th:nth-child(5), .ranking-table td:nth-child(5) {
        display: none;
    }
}