/* ========================================
   荣誉墙页面样式
   ======================================== */

.readerwall-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.tabs-container {
    background: #FFFEF5;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(47,47,47,.1);
    overflow: hidden;
    border: 1px solid rgba(93,79,66,.15);
}

.tabs-nav {
    display: flex;
    background: rgba(240,234,222,.95);
    border-bottom: 2px solid rgba(93,79,66,.15);
    position: sticky;
    top: 0;
    z-index: 10;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: #5D4F42;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s;
    font-size: .9375rem;
    font-family: 'TsangerYuYangT W03', 'Noto Serif SC', 'SimSun', serif;
}

.tab-btn.active {
    color: #b74137;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    display: block;
    margin: 0 auto;
    width: 60%;
    height: 2px;
    background: #cc493d;
    margin-top: .75rem;
}

.tab-btn:hover:not(.active) {
    background: rgba(93,79,66,.1);
    color: #2f2f2f;
}

.tabs-content {
    position: relative;
    min-height: 300px;
}

.tab-panel {
    display: none;
    padding: 1rem 1.25rem;
}

.tab-panel.active {
    display: block;
}

.rank-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem .75rem;
    border-bottom: 1px dashed rgba(93,79,66,.15);
    gap: .75rem;
}

.rank-item:last-child {
    border-bottom: none;
}

.rank-item:hover {
    background: rgba(240,234,222,.5);
}

.rank-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9375rem;
    color: #5D4F42;
    background: #f9f7f1;
    border-radius: 6px;
    border: 1px solid rgba(93,79,66,.15);
    font-family: 'TsangerYuYangT W03', serif;
}

.rank-first {
    background: linear-gradient(135deg, #f5c842, #d4a54a);
    color: #fff;
    border-color: #f5c842;
    box-shadow: 0 2px 8px rgba(245,200,66,.4);
}

.rank-second {
    background: linear-gradient(135deg, #b8b8b8, #8a8a8a);
    color: #fff;
    border-color: #b8b8b8;
    box-shadow: 0 2px 8px rgba(184,184,184,.4);
}

.rank-third {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    color: #fff;
    border-color: #cd7f32;
    box-shadow: 0 2px 8px rgba(205,127,50,.4);
}

.rank-main {
    flex: 1;
    min-width: 0;
}

.rank-top {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.avatar-container {
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(93,79,66,.15);
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-item:hover .avatar-container {
    border-color: #cc493d;
}

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-name-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .25rem;
    flex-wrap: wrap;
}

.rank-name {
    font-weight: 600;
    font-size: .9375rem;
    color: #2f2f2f;
    text-decoration: none;
    font-family: 'TsangerYuYangT W03', 'Noto Serif SC', serif;
    transition: color .3s;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-name:hover {
    color: #b74137;
}

.rank-time-inline {
    font-size: .6875rem;
    color: #816b4f;
    white-space: nowrap;
}

.rank-site-row {
    display: flex;
    align-items: center;
    gap: .375rem;
}

.site-favicon {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

.site-domain {
    font-size: .75rem;
    color: #816b4f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.rank-stats {
    text-align: right;
    flex-shrink: 0;
    margin-left: auto;
}

.stat-count {
    font-weight: 700;
    color: #b74137;
    font-size: 1.125rem;
    font-family: 'TsangerYuYangT W03', serif;
    line-height: 1;
}

.stat-label {
    font-size: .6875rem;
    color: #816b4f;
    margin-top: 2px;
}

.rank-progress {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .625rem;
}

.progress-track {
    flex: 1;
    height: 6px;
    background: rgba(93,79,66,.15);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #8b0000, #cc493d);
    border-radius: 3px;
    transition: width 1s ease-out;
}

.progress-percent {
    font-size: .6875rem;
    color: #816b4f;
    min-width: 32px;
    text-align: right;
}

.no-data-message {
    padding: 4rem 1.5rem;
    text-align: center;
    color: #5D4F42;
    font-size: 1rem;
    font-family: 'TsangerYuYangT W03', serif;
    letter-spacing: .2em;
}

@media (max-width: 768px) {
    .readerwall-container {
        padding: 1.5rem 1rem;
    }
    .tab-btn {
        padding: .75rem .25rem;
        font-size: .8125rem;
    }
    .rank-name {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .readerwall-container {
        padding: 1rem .75rem;
    }
    .tab-btn {
        padding: .625rem .125rem;
        font-size: .75rem;
    }
    .tabs-content {
        padding: .5rem;
    }
    .rank-item {
        padding: .75rem .5rem;
    }
    .avatar-container {
        width: 36px;
        height: 36px;
    }
    .rank-name {
        font-size: .875rem;
        max-width: 80px;
    }
    .stat-count {
        font-size: 1rem;
    }
}