/* ========== 举报弹窗组件 - CCConfirm 风格 ========== */

/* 弹窗容器 */
.report-dialog-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.report-dialog-modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 模糊背景遮罩 */
.report-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: reportFadeIn 0.2s ease;
    z-index: 1;
}

@keyframes reportFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes reportSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 弹窗内容主体 */
.report-dialog-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 420px;
    width: calc(100% - 32px);
    animation: reportSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 2;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* 弹窗头部 */
.report-dialog-header {
    padding: 24px 24px 0;
    text-align: center;
    flex-shrink: 0;
}

.report-dialog-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255, 167, 38, 0.3);
}

.report-dialog-icon i {
    font-size: 22px;
    color: white;
}

.report-dialog-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px;
}

.report-dialog-subtitle {
    font-size: 12px;
    color: #999;
    margin: 0 0 16px;
}

/* 弹窗主体（可滚动） */
.report-dialog-body {
    padding: 0 24px;
    overflow-y: auto;
    flex: 1;
}

/* 举报原因区域 */
.report-section-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}

/* Chip 标签选择 */
.report-reason-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.report-reason-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    background: #f5f5f5;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.report-reason-chip:hover {
    background: #eee;
    color: #333;
}

.report-reason-chip.active {
    background: #fff3e0;
    border-color: #fb8c00;
    color: #e65100;
    font-weight: 500;
}

.report-reason-chip i {
    margin-right: 5px;
    font-size: 12px;
}

/* 补充说明 */
.report-detail-textarea {
    width: 100%;
    min-height: 72px;
    max-height: 120px;
    padding: 10px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    background: #fafafa;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.report-detail-textarea:focus {
    border-color: #fb8c00;
    background: #fff;
}

.report-detail-textarea::placeholder {
    color: #bbb;
}

.report-detail-count {
    text-align: right;
    font-size: 11px;
    color: #bbb;
    margin-top: 4px;
    margin-bottom: 12px;
}

/* 截图上传区域 */
.report-screenshot-section {
    margin-bottom: 16px;
}

.report-screenshot-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.report-screenshot-item {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.report-screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.report-screenshot-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    line-height: 1;
    border: none;
    padding: 0;
}

.report-screenshot-remove:hover {
    background: rgba(220, 53, 69, 0.85);
}

.report-screenshot-add {
    width: 72px;
    height: 72px;
    border: 1.5px dashed #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #bbb;
    font-size: 11px;
    transition: all 0.2s ease;
    background: #fafafa;
}

.report-screenshot-add:hover {
    border-color: #fb8c00;
    color: #fb8c00;
    background: #fff8f0;
}

.report-screenshot-add i {
    font-size: 18px;
    margin-bottom: 2px;
}

.report-screenshot-add span {
    font-size: 10px;
}

.report-screenshot-uploading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-screenshot-uploading i {
    font-size: 18px;
    color: #fb8c00;
    animation: reportSpin 1s linear infinite;
}

@keyframes reportSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 弹窗底部 */
.report-dialog-footer {
    padding: 16px 24px 20px;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.report-btn {
    flex: 1;
    padding: 10px 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.report-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.report-btn-cancel:hover {
    background: #eee;
    color: #333;
}

.report-btn-submit {
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(251, 140, 0, 0.3);
}

.report-btn-submit:hover {
    box-shadow: 0 4px 14px rgba(251, 140, 0, 0.4);
    transform: translateY(-1px);
}

.report-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 成功状态 */
.report-success-state {
    text-align: center;
    padding: 32px 24px;
}

.report-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

.report-success-icon i {
    font-size: 28px;
    color: #fff;
}

.report-success-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.report-success-msg {
    font-size: 13px;
    color: #999;
    margin: 0;
    line-height: 1.5;
}

/* 响应式 */
@media (max-width: 576px) {
    .report-dialog-content {
        max-width: 100%;
        width: calc(100% - 24px);
        margin: 0 12px;
        max-height: 85vh;
    }

    .report-dialog-header {
        padding: 20px 16px 0;
    }

    .report-dialog-body {
        padding: 0 16px;
    }

    .report-dialog-footer {
        padding: 12px 16px 16px;
    }

    .report-reason-chip {
        padding: 6px 12px;
        font-size: 12px;
    }

    .report-screenshot-item,
    .report-screenshot-add {
        width: 64px;
        height: 64px;
    }
}
