/* =====================================================
   审核大厅样式
   ===================================================== */

/* 整体布局 */
.review-stats-bar {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f0e6 0%, #e8e4db 100%);
    border-radius: 12px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-icon {
    font-size: 28px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #418060;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

/* 主内容区 */
.review-main {
    display: grid;
    grid-template-columns: 280px 1fr 260px;
    gap: 20px;
    min-height: 600px;
}

/* 侧边栏 */
.review-sidebar {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-header h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

/* 筛选标签 */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.tab-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    border-color: #418060;
    color: #418060;
}

.tab-btn.active {
    background: #418060;
    color: white;
    border-color: #418060;
}

/* 审核员卡片 */
.reviewer-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #418060 0%, #2d5a43 100%);
    border-radius: 10px;
    color: white;
    margin-bottom: 15px;
}

.reviewer-card.guest {
    background: #666;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-size: 16px;
    font-weight: 600;
}

.reviewer-status {
    font-size: 12px;
    opacity: 0.8;
}

/* 每日进度 */
.daily-progress {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #418060, #5a9a78);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.level-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #d4a84b 0%, #c49a3a 100%);
    border-radius: 20px;
    font-size: 13px;
    color: white;
}

.badge-icon {
    font-size: 16px;
}

/* 任务列表 */
.task-list {
    max-height: 400px;
    overflow-y: auto;
}

.task-item {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.task-item:hover {
    border-color: #418060;
    background: #f8f8f8;
}

.task-item.active {
    border-color: #418060;
    background: #e8f5ec;
}

.task-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-bottom: 6px;
}

.task-type.correction { background: #fff3e0; color: #e65100; }
.task-type.review { background: #e3f2fd; color: #1565c0; }
.task-type.note { background: #f3e5f5; color: #7b1fa2; }
.task-type.report { background: #ffebee; color: #c62828; }

.task-title {
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #999;
}

/* 审核内容区 */
.review-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #666;
}

/* 任务详情 */
.task-detail {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.detail-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.detail-type {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
}

/* 内容卡片 */
.content-card {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.content-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.content-value {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.content-value.error {
    color: #c62828;
    text-decoration: line-through;
}

.content-value.correct {
    color: #2e7d32;
    font-weight: 600;
}

/* 对比视图 */
.diff-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.diff-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
}

.diff-item.old {
    border-left: 3px solid #c62828;
}

.diff-item.new {
    border-left: 3px solid #2e7d32;
}

.diff-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 20px;
}

/* 审核操作 */
.review-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.action-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn.approve {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
}

.action-btn.reject {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.action-btn.skip {
    background: #e0e0e0;
    color: #666;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.comment-area {
    margin-top: 15px;
}

.comment-area textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.comment-area textarea:focus {
    outline: none;
    border-color: #418060;
}

/* 投票进度 */
.vote-progress {
    margin-top: 15px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
}

.vote-stat {
    display: flex;
    justify-content: space-around;
    margin-top: 8px;
}

.vote-count {
    font-weight: 600;
}

.vote-count.approve { color: #4caf50; }
.vote-count.reject { color: #f44336; }

/* 右侧栏 */
.review-rightbar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.leaderboard-card,
.tips-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.leaderboard-card h3,
.tips-card h4 {
    margin: 0 0 15px 0;
    font-size: 15px;
    color: #333;
}

.lb-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.lb-tab {
    flex: 1;
    padding: 6px;
    border: none;
    background: #f0f0f0;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
}

.lb-tab.active {
    background: #418060;
    color: white;
}

.lb-list {
    max-height: 250px;
    overflow-y: auto;
}

.lb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.lb-rank {
    width: 24px;
    height: 24px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.lb-rank.top1 { background: linear-gradient(135deg, #ffd700, #ffb300); color: white; }
.lb-rank.top2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: white; }
.lb-rank.top3 { background: linear-gradient(135deg, #cd7f32, #b87333); color: white; }

.lb-user {
    flex: 1;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-score {
    font-size: 13px;
    font-weight: 600;
    color: #418060;
}

/* 提示卡片 */
.tips-card ul {
    margin: 0;
    padding: 0 0 0 18px;
    font-size: 12px;
    color: #666;
    line-height: 1.8;
}

/* 成为审核员弹窗 */
.become-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.modal-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.progress-ring {
    margin: 20px auto;
}

.become-btn {
    width: 100%;
    padding: 12px;
    background: #418060;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

.become-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 响应式 */
@media (max-width: 1024px) {
    .review-main {
        grid-template-columns: 1fr;
    }
    
    .review-rightbar {
        order: -1;
    }
}
