/**
 * 评论举报功能样式
 * 适配移动端APP环境
 */

/* 举报按钮样式 */
.report-modal {
    color: #999;
    font-size: 14px;
    cursor: pointer;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.report-modal:hover {
    color: #ff4757;
}

.report-modal i {
    margin-right: 4px;
}

/* 举报弹窗遮罩层 */
.report-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* 举报弹窗内容 */
.report-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: reportModalSlideIn 0.3s ease-out;
}

@keyframes reportModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 弹窗头部 */
.report-modal-header {
    padding: 20px 20px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.report-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.report-modal-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.3s ease;
}

.report-modal-close:hover {
    color: #666;
}

/* 弹窗主体 */
.report-modal-body {
    padding: 0 20px 20px 20px;
}

.report-modal-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* 举报选项 */
.report-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.report-option:hover {
    border-color: #2F92EE;
    background: #f8fbff;
}

.report-option.selected {
    border-color: #2F92EE;
    background: #f0f8ff;
}

.report-option input[type="radio"] {
    margin: 0 12px 0 0;
    width: 18px;
    height: 18px;
    accent-color: #2F92EE;
}

.report-option-text {
    font-size: 15px;
    color: #333;
    flex: 1;
}

/* 弹窗底部 */
.report-modal-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.report-cancel-btn,
.report-submit-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.report-cancel-btn {
    background: #f5f5f5;
    color: #666;
}

.report-cancel-btn:hover {
    background: #e8e8e8;
}

.report-submit-btn {
    background: #2F92EE;
    color: #fff;
}

.report-submit-btn:hover:not(:disabled) {
    background: #1e7dd8;
}

.report-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 成功提示Toast */
.report-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    animation: reportToastSlideIn 0.3s ease-out;
}

@keyframes reportToastSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.report-toast-content {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.report-toast-content i {
    color: #4CAF50;
    font-size: 18px;
}

/* 防止页面滚动 */
body.report-modal-open {
    overflow: hidden;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .report-modal-overlay {
        padding: 15px;
    }
    
    .report-modal-content {
        max-width: 100%;
        border-radius: 10px;
    }
    
    .report-modal-header {
        padding: 15px 15px 0 15px;
    }
    
    .report-modal-body {
        padding: 0 15px 15px 15px;
    }
    
    .report-modal-footer {
        padding: 15px;
        flex-direction: column;
    }
    
    .report-cancel-btn,
    .report-submit-btn {
        width: 100%;
        padding: 12px;
    }
    
    .report-option {
        padding: 14px 16px;
    }
    
    .report-option-text {
        font-size: 16px;
    }
}

/* 小屏幕设备 */
@media (max-width: 480px) {
    .report-modal-header h3 {
        font-size: 16px;
    }
    
    .report-modal-title {
        font-size: 15px;
    }
    
    .report-toast-content {
        padding: 14px 20px;
        font-size: 14px;
        margin: 0 20px;
    }
}
