/* ========================================
   举报系统样式 - 黑白灰极简风格
   ======================================== */

/* 举报主面板 - 全屏覆盖 */
.report-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10200;
    display: none;
    align-items: center;
    justify-content: center;
    animation: reportFadeIn 0.25s ease;
}
.report-overlay.show {
    display: flex;
}

@keyframes reportFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes reportSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes reportShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

@keyframes reportPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes reportCountdown {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: 283; }
}

/* 举报面板容器 */
.report-panel {
    background: #fff;
    border-radius: 16px;
    width: 88%;
    max-width: 380px;
    max-height: 80vh;
    overflow-y: auto;
    animation: reportSlideUp 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.report-panel::-webkit-scrollbar {
    width: 3px;
}
.report-panel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* 面板头部 */
.report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.report-header-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

.report-header-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.report-header-close:active {
    background: #e8e8e8;
    transform: scale(0.9);
}

/* 步骤指示器 */
.report-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px 8px;
    gap: 8px;
}

.report-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: all 0.3s;
}
.report-step-dot.active {
    background: #333;
    width: 20px;
    border-radius: 4px;
}

/* 消息选择区域 */
.report-msg-section {
    padding: 12px 16px;
}

.report-msg-section-title {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
    padding-left: 4px;
}

.report-msg-list {
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    background: #fafafa;
}

.report-msg-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 14px;
    gap: 10px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.15s;
}
.report-msg-item:last-child {
    border-bottom: none;
}
.report-msg-item:active {
    background: #f0f0f0;
}
.report-msg-item.selected {
    background: #f0f0f0;
}

.report-msg-check {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 2px solid #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    transition: all 0.2s;
    font-size: 11px;
    color: transparent;
}
.report-msg-item.selected .report-msg-check {
    border-color: #333;
    background: #333;
    color: #fff;
}

.report-msg-content {
    flex: 1;
    min-width: 0;
}

.report-msg-sender {
    font-size: 12px;
    color: #999;
    margin-bottom: 3px;
}

.report-msg-text {
    font-size: 14px;
    color: #333;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.report-msg-time {
    font-size: 11px;
    color: #bbb;
    margin-top: 3px;
}

/* 举报原因选择 */
.report-reason-section {
    padding: 12px 16px;
}

.report-reason-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.report-reason-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    color: #666;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s;
    border-right: 1px solid #e0e0e0;
    font-weight: 500;
}
.report-reason-tab:last-child {
    border-right: none;
}
.report-reason-tab.active {
    background: #333;
    color: #fff;
}
.report-reason-tab:active {
    opacity: 0.8;
}

.report-reason-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.report-reason-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.report-reason-item:active {
    transform: scale(0.96);
}
.report-reason-item.selected {
    border-color: #333;
    background: #f8f8f8;
}
.report-reason-item .reason-icon {
    font-size: 18px;
    min-width: 24px;
    text-align: center;
}
.report-reason-item .reason-text {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
}

/* 严重原因的红色高亮 */
.report-reason-item.serious {
    border-color: #e8e8e8;
}
.report-reason-item.serious.selected {
    border-color: #555;
    background: #f5f5f5;
}

/* 提交按钮 */
.report-submit-section {
    padding: 16px 20px 20px;
}

.report-submit-btn {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 1px;
}

.report-submit-btn.primary {
    background: #333;
    color: #fff;
}
.report-submit-btn.primary:active {
    background: #111;
    transform: scale(0.98);
}
.report-submit-btn.primary:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
}

.report-submit-btn.secondary {
    background: #f5f5f5;
    color: #666;
    margin-top: 8px;
}
.report-submit-btn.secondary:active {
    background: #e8e8e8;
}

/* AI 判定动画面板 */
.report-judging {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 20px;
}
.report-judging.show {
    display: flex;
}

.report-judging-spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #e0e0e0;
    border-top-color: #333;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.report-judging-text {
    font-size: 15px;
    color: #666;
    text-align: center;
    line-height: 1.6;
}

.report-judging-dots {
    display: inline-flex;
    gap: 3px;
}
.report-judging-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #999;
    animation: dotBounce 1.2s ease-in-out infinite;
}
.report-judging-dots span:nth-child(2) { animation-delay: 0.2s; }
.report-judging-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-4px); }
}

/* 判定结果面板 */
.report-result {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    gap: 16px;
}
.report-result.show {
    display: flex;
}

.report-result-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.report-result-icon.success {
    background: #f0f0f0;
    color: #333;
}
.report-result-icon.fail {
    background: #f5f5f5;
    color: #999;
}

.report-result-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.report-result-desc {
    font-size: 14px;
    color: #888;
    text-align: center;
    line-height: 1.5;
    max-width: 280px;
}

/* ========== 禁言弹窗 ========== */
.mute-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10300;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.mute-overlay.show {
    display: flex;
}

.mute-panel {
    background: #fff;
    border-radius: 20px;
    width: 82%;
    max-width: 340px;
    padding: 30px 24px;
    text-align: center;
    animation: reportSlideUp 0.35s ease;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.mute-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: #333;
}

.mute-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.mute-reason {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* 倒计时环 */
.mute-countdown-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
}

.mute-countdown-svg {
    width: 100px;
    height: 100px;
    transform: rotate(-90deg);
}

.mute-countdown-bg {
    fill: none;
    stroke: #f0f0f0;
    stroke-width: 4;
}

.mute-countdown-ring {
    fill: none;
    stroke: #333;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.mute-countdown-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    font-weight: 700;
    color: #333;
    font-variant-numeric: tabular-nums;
}

.mute-countdown-label {
    font-size: 12px;
    color: #bbb;
    margin-bottom: 20px;
}

/* 作弊按钮 - 减短时间 */
.mute-cheat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1.5px dashed #d0d0d0;
    border-radius: 20px;
    background: transparent;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
}
.mute-cheat-btn:active {
    border-color: #999;
    color: #666;
    transform: scale(0.95);
}
.mute-cheat-btn i {
    font-size: 14px;
}

.mute-close-btn {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-radius: 10px;
    background: #333;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s;
}
.mute-close-btn:active {
    background: #111;
    transform: scale(0.98);
}

/* ========== 求情弹窗 (进入聊天时触发) ========== */
.report-plea-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 10150;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.report-plea-overlay.show {
    display: flex;
}

.report-plea-panel {
    background: #fff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 420px;
    padding: 24px 20px 30px;
    animation: pleaSlideUp 0.35s ease;
}

@keyframes pleaSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.report-plea-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.report-plea-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.report-plea-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.report-plea-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 6px;
    font-weight: 500;
}
.report-plea-tag.fun {
    background: #f5f5f5;
    color: #666;
}
.report-plea-tag.serious {
    background: #f0f0f0;
    color: #555;
}

.report-plea-reason {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.report-plea-content {
    background: #fafafa;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    min-height: 60px;
}

.report-plea-text {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    white-space: pre-wrap;
}

.report-plea-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bbb;
    font-size: 13px;
}
.report-plea-loading i {
    animation: spin 1s linear infinite;
}

.report-plea-actions {
    display: flex;
    gap: 10px;
}

.report-plea-btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.report-plea-btn:active {
    transform: scale(0.97);
}
.report-plea-btn.dismiss {
    background: #f5f5f5;
    color: #666;
}
.report-plea-btn.forgive {
    background: #333;
    color: #fff;
}

/* ========== 禁言状态栏 (聊天界面顶部) ========== */
.mute-status-bar {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f8f8;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #888;
}
.mute-status-bar.show {
    display: flex;
}
.mute-status-bar i {
    color: #bbb;
    font-size: 14px;
}
.mute-status-bar .mute-status-time {
    font-weight: 600;
    color: #555;
    font-variant-numeric: tabular-nums;
}

/* 举报历史记录标签 */
.report-history-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f5f5f5;
    color: #999;
    font-size: 11px;
    margin-left: 6px;
}

/* 空状态 */
.report-empty {
    text-align: center;
    padding: 30px 20px;
    color: #bbb;
    font-size: 14px;
}
.report-empty i {
    font-size: 36px;
    color: #e0e0e0;
    margin-bottom: 12px;
    display: block;
}
