/* ============================================
   举报弹窗样式
   ============================================ */

.jt-report-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 20px;
    font-size: 11px;
    color: #7f8c98;
    cursor: pointer;
    padding: 0 8px;
    border-radius: 10px;
    border: 1px solid #e5eaf0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    opacity: 0;
    transform: translateY(2px);
    pointer-events: none;
    transition: color 0.2s, background 0.2s, opacity 0.18s, transform 0.18s;
    user-select: none;
    z-index: 3;
}

.jt-site-card:hover .jt-report-btn,
.jt-site-card:focus-within .jt-report-btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.jt-report-btn:hover {
    color: #e74c3c;
    background: #fef0f0;
    border-color: #fad2cf;
}

/* Modal overlay */
.jt-report-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jt-report-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.jt-report-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    animation: jt-report-slide-in 0.2s ease-out;
}

@keyframes jt-report-slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jt-report-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

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

.jt-report-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

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

.jt-report-modal-body {
    padding: 20px;
}

.jt-report-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
    border-radius: 0 0 8px 8px;
}

/* Form fields */
.jt-report-field {
    margin-bottom: 16px;
}

.jt-report-field:last-child {
    margin-bottom: 0;
}

.jt-report-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}

.jt-report-required {
    color: #e74c3c;
}

.jt-report-optional {
    font-weight: 400;
    color: #999;
    font-size: 12px;
}

.jt-report-readonly {
    font-size: 14px;
    color: #333;
    padding: 6px 0;
    word-break: break-all;
}

.jt-report-url {
    font-size: 12px;
    color: #666;
}

.jt-report-select {
    width: 100%;
    height: 36px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    appearance: auto;
}

.jt-report-select:focus {
    border-color: #4080e0;
    outline: none;
    box-shadow: 0 0 0 2px rgba(64, 128, 224, 0.15);
}

.jt-report-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    resize: vertical;
    min-height: 60px;
    box-sizing: border-box;
}

.jt-report-textarea:focus {
    border-color: #4080e0;
    outline: none;
    box-shadow: 0 0 0 2px rgba(64, 128, 224, 0.15);
}

/* Error message */
.jt-report-error {
    color: #e74c3c;
    font-size: 13px;
    padding: 8px 12px;
    background: #fef0f0;
    border-radius: 4px;
    margin-top: 8px;
}

/* Toast notification */
.jt-report-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 10001;
    animation: jt-report-toast-in 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.jt-report-toast--success {
    background: #f0f9eb;
    color: #67c23a;
    border: 1px solid #e1f3d8;
}

.jt-report-toast--error {
    background: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fde2e2;
}

@keyframes jt-report-toast-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile adjustments */
@media (max-width: 520px) {
    .jt-report-modal-dialog {
        width: 95%;
        margin: 10px;
    }
}
