/* ========== 光荣榜弹窗样式 ========== */

#honorModal .honor-modal-content {
    width: 600px;
    max-width: 95%;
}

.honor-list-container {
    max-height: 500px;
    overflow-y: auto;
}

.honor-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.honor-list-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

.honor-list-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

/* 光荣榜项目 */
.honor-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.honor-item:hover {
    border-color: var(--theme-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 前三名特殊样式 */
.honor-item.rank-1 {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
    border-color: #ffd700;
}

.honor-item.rank-2 {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-color: #c0c0c0;
}

.honor-item.rank-3 {
    background: linear-gradient(135deg, #fdf5ef 0%, #f5e6d8 100%);
    border-color: #cd7f32;
}

/* 排名数字 */
.honor-rank {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50%;
    flex-shrink: 0;
}

.honor-item.rank-1 .honor-rank {
    background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.honor-item.rank-2 .honor-rank {
    background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}

.honor-item.rank-3 .honor-rank {
    background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
}

.honor-item:not(.rank-1):not(.rank-2):not(.rank-3) .honor-rank {
    background: #f0f0f0;
    color: #666;
}

/* 前三名奖杯图片样式 - 放大25%（50px，原40px的125%） */
.honor-trophy-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* 前三名使用奖杯图片时，移除背景色并调整容器大小 */
.honor-item.rank-1 .honor-rank,
.honor-item.rank-2 .honor-rank,
.honor-item.rank-3 .honor-rank {
    width: 50px;
    height: 50px;
    background: transparent;
    box-shadow: none;
}

/* 宠物头像 */
.honor-pet {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.honor-pet img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 学生信息 */
.honor-info {
    flex: 1;
    min-width: 0;
}

.honor-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.honor-level {
    font-size: 12px;
    color: #666;
}

/* 统计数据 */
.honor-stats {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.honor-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.honor-stat-label {
    font-size: 11px;
    color: #999;
}

.honor-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--theme-color);
}

.honor-stat-value.food {
    color: #4caf50;
}

.honor-stat-value.round {
    color: #2196f3;
}

.honor-stat-value.gifts {
    color: #e91e63;
}

.honor-stat-value.badges {
    color: #ffc107;
}


/* ========== 成长记录弹窗样式 ========== */

#recordModal .record-modal-content {
    width: 800px;
    max-width: 95%;
}

/* 记录筛选区 */
.record-filter-section {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.record-filter-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 12px;
    color: #666;
}

.filter-group .form-control {
    min-width: 120px;
}

.filter-group select.form-control {
    min-width: 100px;
}

.filter-group input[type="date"].form-control {
    min-width: 140px;
}

/* 记录列表容器 */
.record-list-container {
    max-height: 400px;
    overflow-y: auto;
}

.record-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.record-list-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

.record-list-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

/* 记录项 */
.record-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.record-item:hover {
    background: #f0f0f0;
}

/* 记录类型图标 */
.record-type-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    flex-shrink: 0;
}

.record-type-icon.score-add {
    background: #e8f5e9;
    color: #4caf50;
}

.record-type-icon.score-sub {
    background: #ffebee;
    color: #e53935;
}

.record-type-icon.level-up {
    background: #fff3e0;
    color: #ff9800;
}

.record-type-icon.badge {
    background: #fff8e1;
    color: #ffc107;
}

.record-type-icon.gift {
    background: #fce4ec;
    color: #e91e63;
}

.record-type-icon.pet {
    background: #e3f2fd;
    color: #2196f3;
}

/* 记录内容 */
.record-content {
    flex: 1;
    min-width: 0;
}

.record-text {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.record-text .student-name {
    font-weight: 600;
    color: var(--theme-color);
}

.record-text .highlight {
    font-weight: 600;
}

.record-text .positive {
    color: #4caf50;
}

.record-text .negative {
    color: #e53935;
}

/* 记录时间 */
.record-time {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 删除记录提示 */
.delete-records-tip {
    color: #e53935;
    font-size: 14px;
    margin-top: 15px;
    padding: 10px;
    background: #ffebee;
    border-radius: 6px;
    text-align: center;
}


/* ========== 打印样式 ========== */

@media print {
    body * {
        visibility: hidden;
    }
    
    .print-content,
    .print-content * {
        visibility: visible;
    }
    
    .print-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    .honor-item,
    .record-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .modal-footer,
    .record-filter-section {
        display: none !important;
    }
}


/* ========== 响应式样式 ========== */

@media (max-width: 768px) {
    #honorModal .honor-modal-content {
        width: 95%;
    }
    
    .honor-item {
        flex-wrap: wrap;
    }
    
    .honor-stats {
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #e0e0e0;
    }
    
    #recordModal .record-modal-content {
        width: 95%;
    }
    
    .record-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group .form-control {
        width: 100%;
    }
    
    .record-filter-row .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .honor-rank {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .honor-pet {
        width: 40px;
        height: 40px;
    }
    
    .honor-name {
        font-size: 14px;
    }
    
    .honor-stats {
        gap: 15px;
    }
    
    .honor-stat-value {
        font-size: 14px;
    }
    
    .record-item {
        flex-wrap: wrap;
    }
    
    .record-time {
        width: 100%;
        text-align: right;
        margin-top: 5px;
    }
}
