body {
    background-color: #f8f9fa;
}
.page-header {
    background-color: #343a40;
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
}
.avatar-container {
    width: 80px;
    height: 60px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}
.avatar-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: scale(1.5);
    margin-left: 12%;
}
.rank-tabs .nav-link {
    color: #495057;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    margin-right: 5px;
    transition: all 0.3s;
}
.rank-tabs .nav-link:hover {
    background-color: #e9ecef;
}
.rank-tabs .nav-link.active {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}
.date-selector {
    max-width: 200px;
}
.pagination {
    justify-content: center;
    margin-top: 20px;
}
.table th {
    position: sticky;
    top: 0;
    background-color: #212529;
    z-index: 10;
    color: white;
}
.table {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.table td {
    vertical-align: middle;
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
}
.table tr:last-child td {
    border-bottom: none;
}
.table tr:hover {
    background-color: #f5f5f5;
}
.stats-card {
    transition: transform 0.3s;
}
.stats-card:hover {
    transform: translateY(-5px);
}
.highlight {
    background-color: rgba(255, 248, 220, 0.2) !important;
}
.table-responsive {
    max-height: 700px;
    border-radius: 8px;
    overflow: auto;
}
.table-responsive table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.table tbody tr {
    height: auto;
}
.progress {
    border-radius: 3px;
    background-color: #555;
    overflow: hidden;
    height: 15px;
    border: 1px solid #222;
}
.progress-bar {
    transition: width 0.3s ease;
}
.exp-progress-bar {
    background: linear-gradient(to bottom, #aaee00, #88cc00);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.progress-text {
    color: #000;
    font-weight: bold;
    font-size: 0.75em;
    text-shadow: 0 0 2px rgba(255,255,255,0.7);
}
.exp-container {
    background-color: #222;
    border: 1px solid #444;
    border-radius: 3px;
    padding: 4px 8px;
    color: white;
    display: flex;
    flex-direction: column;
    height: 60px;
    justify-content: space-between;
}
.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
    font-family: Arial, sans-serif;
}
.exp-label {
    font-weight: bold;
    font-size: 0.75em;
    color: #aaa;
}
.exp-value {
    color: #eee;
    font-size: 1em;
}
.exp-percent {
    font-size: 0.75em;
    color: #aaa;
}
.exp-footer {
    font-size: 0.65em;
    color: #aaa;
    text-align: right;
    margin-top: 4px;
}
.change-area {
    display: flex;
    flex-direction: column;
    height: 60px;
    justify-content: center;
    padding: 0;
}
.rank-change {
    margin-bottom: 6px;
}
.exp-change {
    display: flex;
    flex-direction: column;
}
.user-info {
    display: flex;
    align-items: center;
    background-color: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    padding-right: 8px;
    height: 60px;
}
.user-level {
    display: flex;
    align-items: center;
    margin-right: 8px;
    background-color: #222;
    padding: 4px;
    font-weight: bold;
    white-space: nowrap;
    color: white;
    height: 60px;
}
.level-label {
    font-size: 0.8em;
    padding: 2px 4px;
    margin-right: 2px;
}
.level-number {
    display: flex;
    align-items: center;
}
.digit-box {
    background: linear-gradient(to bottom, #ff8800, #cc6600);
    color: white;
    font-weight: bold;
    display: inline-block;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    margin-right: 1px;
    border-radius: 2px;
    font-size: 0.9em;
}
.user-details {
    display: flex;
    flex-direction: column;
    padding: 4px 0;
}
.user-job {
    font-weight: 500;
    color: #f5f5f5;
    font-size: 0.9em;
}
.user-name {
    font-size: 0.85em;
    color: #aaa;
}
.mud-monster-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background-color: #444;
    border: 1px solid #555;
    border-radius: 0.25rem;
    color: #f5f5f5;
}
.mud-monster-badge img {
    margin-right: 0.25rem;
    background-color: #fff;
    border-radius: 50%;
    padding: 1px;
}
.change-badge {
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    font-weight: bold;
    font-size: 0.8em;
}
.change-up {
    background-color: #28a745;
    color: white;
}
.change-down {
    background-color: #dc3545;
    color: white;
}
@media (max-width: 768px) {
    .rank-tabs .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }
    .avatar-container {
        width: 60px;
        height: 60px;
    }
}
.no-data-container {
    text-align: center;
    padding: 50px 20px;
}
.refresh-btn {
    margin-top: 20px;
}
.missing-players-section {
    margin-top: 30px;
    margin-bottom: 50px;
}
.missing-players-title {
    background-color: #343a40;
    color: white;
    padding: 10px 15px;
    border-radius: 5px 5px 0 0;
    margin-bottom: 0;
}
.missing-players-card {
    border: 1px solid #dee2e6;
    border-radius: 0 0 5px 5px;
    border-top: none;
}
.missing-players-table th {
    background-color: #495057;
}
.missing-player-row {
    background-color: #f8d7da;
}
.missing-player-row:hover {
    background-color: #f5c6cb !important;
}

/* 经验计算器浮动按钮样式 */
.calculator-btn-container {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.calculator-btn {
    border-radius: 10px;
    padding: 12px 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.calculator-btn i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

/* 经验计算器弹窗样式 */
.modal-dialog-right {
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0;
    height: 100%;
    width: 500px;
    max-width: 500px;
    position: fixed;
    right: 0;
    top: 0;
}

.modal.fade .modal-dialog-right {
    transform: translate(100%, 0);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog-right {
    transform: translate(0, 0);
}

@media (max-width: 768px) {
    .calculator-btn {
        padding: 8px 10px;
    }
    
    .calculator-btn i {
        font-size: 1.2rem;
        margin-bottom: 3px;
    }
    
    .modal-dialog-right {
        width: 100%;
        max-width: 500px;
    }
}

.profile-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.profile-link:hover {
    text-decoration: none;
    color: inherit;
}

.profile-link:hover .user-info {
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.4);
    transition: box-shadow 0.3s ease;
}

.avatar-container a {
    display: block;
    width: 100%;
    height: 100%;
}

.avatar-container:hover {
    border-color: #ff8800;
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.4);
    transition: all 0.3s ease;
}

/* 全局链接样式 */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* 站点头部样式 */
.site-header {
    position: relative;
    padding: 30px 0;
    margin-bottom: 40px;
    color: white;
    overflow: hidden;
}

.header-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
    z-index: -2;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
}

.header-content {
    position: relative;
    z-index: 1;
}

.site-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: auto;
    height: 50px;
    margin-right: 15px;
    border-radius: 0;
    box-shadow: none;
}

.site-title-container {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.site-description {
    font-size: 16px;
    margin: 5px 0 0;
    opacity: 0.9;
}

.header-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 15px;
}

.stats-card {
    background-color: rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, background-color 0.3s;
}

.stats-card:hover {
    background-color: rgba(255,255,255,0.25);
    transform: translateY(-5px);
}

.stats-icon {
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
}

.warning-icon {
    background-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.stats-info {
    display: flex;
    flex-direction: column;
}

.stats-label {
    font-size: 12px;
    opacity: 0.8;
}

.stats-value {
    font-size: 18px;
    font-weight: 600;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 页脚样式 */
.site-footer {
    position: relative;
    margin-top: 100px;
    background-color: #212529;
    color: white;
    overflow: hidden;
}

.footer-waves {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    line-height: 0;
}

.footer-waves svg {
    display: block;
    width: 100%;
    height: 100px;
}

.footer-content {
    padding: 60px 0 30px;
}

.footer-branding {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo {
    width: auto;
    height: 30px;
    margin-right: 10px;
    border-radius: 0;
}

.footer-title {
    margin: 0;
    font-size: 18px;
}

.footer-desc {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 0;
}

.footer-heading {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, #ff8800, #ff4500);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li i {
    margin-right: 8px;
    color: #ff8800;
}

.footer-data {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-data-item {
    display: flex;
    align-items: center;
}

.footer-data-item i {
    color: #ff8800;
    margin-right: 10px;
    font-size: 16px;
}

.footer-divider {
    margin: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.copyright, .disclaimer {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
    .site-logo {
        margin-bottom: 20px;
    }
    
    .header-stats {
        justify-content: center;
        margin-top: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* 肝帝排行区块样式 - 扁平化设计 (蓝绿色系) */
.grinder-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    margin-top: -25px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,150,136,0.08);
    position: relative;
    z-index: 10;
    border: 1px solid #e3f2fd;
    overflow: hidden;
}

.grinder-section .row {
    margin: 0;
    padding: 15px;
}

.grinder-section .card {
    border: none;
    box-shadow: none;
    border-radius: 10px;
    overflow: hidden;
}

.grinder-section .card-header {
    background: #e3f2fd;
    border-radius: 10px 10px 0 0 !important;
    padding: 18px 20px;
    border: none;
    position: relative;
    border-bottom: 2px solid #bbdefb;
}

.grinder-section .card-title {
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    color: #1565c0;
    font-weight: 600;
}

.grinder-section .card-title i {
    margin-right: 12px;
    color: #0288d1;
    font-size: 1.4rem;
}

.grinder-section .card-body {
    padding: 0;
    background-color: #fff;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

/* 肝帝卡片样式 - 扁平化设计 (蓝绿色系) */
.grinder-card {
    background-color: #fff;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border: 1px solid #e3f2fd !important;
}

.grinder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,188,212,0.15);
    border-color: #bbdefb !important;
}

.grinder-card .card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 0 0 10px 10px !important;
    overflow: hidden;
}

.grinder-card .grinder-rank {
    margin-bottom: 5px;
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.grinder-card .badge {
    padding: 6px 12px;
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 30px;
    letter-spacing: 0.3px;
}

.grinder-card .badge.bg-warning {
    background: #00acc1 !important;
    color: #fff !important;
    box-shadow: 0 2px 5px rgba(0,172,193,0.3);
}

.grinder-card .badge.bg-secondary {
    background: #26a69a !important;
    box-shadow: 0 2px 5px rgba(38,166,154,0.3);
    color: #fff !important;
}

.grinder-card .avatar-container {
    width: 100%;
    height: 0;
    padding-bottom: 90%;
    position: relative;
    border-radius: 8px 8px 0px 0px;
    overflow: hidden;
    margin: 0px auto 15px;
    border: 1px solid #e3f2fd;
    transition: all 0.3s ease;
    background-color: #f5f5f5;
}

.grinder-card:hover .avatar-container {
    border-color: #bbdefb;
}

.grinder-card .avatar-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
    transform-origin: center;
    transition: transform 0.5s ease;
    background-color: transparent;
    transform: scale(1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.grinder-card:hover .avatar-iframe {
    transform: scale(1.03);
}

.grinder-card:first-child .avatar-container {
    border: 1px solid #80deea;
}

.grinder-card .user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: none;
    box-shadow: none;
    height: auto;
    padding: 0;
    margin-top: 10px;
}

.grinder-card .user-level {
    background: #e0f7fa;
    border-radius: 30px;
    padding: 5px 12px;
    margin-bottom: 8px;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #b2ebf2;
    color: #00838f;
    transition: all 0.3s ease;
}

.grinder-card .user-level .level-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #0097a7;
    margin-right: 4px;
}

.grinder-card .level-number {
    font-weight: 600;
    font-size: 1.1rem;
    color: #006064;
}

.grinder-card .user-job {
    color: #00796b;
    font-size: 0.9rem;
    font-weight: 400;
}

.grinder-card .user-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1976d2;
    max-width: 100%;
    margin-bottom: 12px;
    text-align: center;
    word-break: break-word;
    line-height: 1.4;
}

.grinder-card .exp-gain {
    width: 100%;
    margin-top: 15px;
    background: #e0f2f1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #b2dfdb;
    text-align: center;
    clear: both;
    display: block;
    transition: all 0.3s ease;
}

.grinder-card:hover .exp-gain {
    background: #e8f5e9;
}

.grinder-card .exp-gain .text-success {
    font-size: 1.1rem;
    font-weight: 600;
    color: #00897b !important;
}

.grinder-card .mud-monster-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #e8f5e9;
    padding: 6px 10px;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-top: 8px;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
    transition: all 0.3s ease;
    font-weight: 400;
}

.grinder-card .mud-monster-badge img {
    margin-right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* 第一名特殊样式 - 扁平化设计 (蓝绿色系) */
.grinder-card:first-child {
    background: #fff;
    border: 1px solid #4fc3f7 !important;
}

.grinder-card:first-child .avatar-container {
    border: 0px solid #4fc3f7;
}

.grinder-card:first-child .user-level {
    background: #e1f5fe;
    border-color: #81d4fa;
}

.grinder-card:first-child .exp-gain {
    background: #e1f5fe;
    border-color: #81d4fa;
}

.grinder-card:first-child .text-success {
    color: #0288d1 !important;
    font-size: 1.15rem;
}

.grinder-card:first-child:hover {
    box-shadow: 0 8px 20px rgba(3,169,244,0.2);
}

/* 响应式优化 - 保持扁平风格 */
@media (max-width: 992px) {
    .grinder-section {
        padding: 15px;
    }
    
    .grinder-card .avatar-container {
        width: 85%;
        padding-bottom: 85%;
    }
}

@media (max-width: 576px) {
    .grinder-section .card-title {
        font-size: 1.1rem;
    }
    
    .grinder-card .card-body {
        padding: 15px 10px;
    }
    
    .grinder-card .user-name {
        font-size: 1rem;
    }
    
    .grinder-card .exp-gain {
        padding: 10px;
    }
    
    .grinder-card .mud-monster-badge {
        font-size: 0.8rem;
    }
} 