/*
作者：smwj
邮箱：shengmiwanjia@outlook.com
微信：huyc54
开发时间：2026-01-26
版本号：1.0.0
*/

.report-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
}

.report-modal.is-open {
    display: flex;
}

.report-modal__mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.report-modal__dialog {
    position: relative;
    width: 560px;
    max-width: calc(100vw - 40px);
    max-height: 78vh;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.report-modal__form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.report-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f1f1;
}

.report-modal__header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-modal__header-icon {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #ff4b93;
    position: relative;
    flex: 0 0 16px;
}

.report-modal__header-icon::after {
    content: "!";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    transform: translateY(-0.5px);
}

.report-modal__header-title {
    font-size: 16px;
    font-weight: 600;
    color: #444;
}

.report-modal__close {
    border: none;
    background: transparent;
    color: #c8c8c8;
    font-size: 22px;
    line-height: 22px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    padding: 0;
}

.report-modal__close:hover {
    color: #9a9a9a;
}

.report-modal__body {
    padding: 16px 18px 8px;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

.report-modal__footer {
    flex: 0 0 auto;
    background: #fff;
}
.report-modal__field {
    margin-bottom: 14px;
}

.report-modal__label {
    font-size: 14px;
    color: #4a4a4a;
    margin-bottom: 6px;
}

.report-modal__control {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
}

.report-modal__control::placeholder {
    color: #c3c3c3;
}

.report-modal__control:focus {
    border-color: #ff4b93;
    box-shadow: 0 0 0 2px rgba(255, 75, 147, 0.12);
}

.report-modal__select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #c3c3c3 50%),
        linear-gradient(135deg, #c3c3c3 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 32px;
}

.report-modal__textarea {
    min-height: 92px;
    resize: none;
    line-height: 1.4;
}

.report-modal__upload {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.report-modal__preview {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 78px;
    align-items: flex-start;
}

.report-modal__preview-item {
    width: 78px;
    height: 78px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-modal__preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.report-modal__file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.report-modal__upload-box {
    width: 78px;
    height: 78px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #8a8a8a;
    cursor: pointer;
    user-select: none;
}

.report-modal__upload-box:hover {
    border-color: #ff4b93;
    color: #ff4b93;
}

.report-modal__note {
    margin-top: 2px;
    padding-top: 4px;
}

.report-modal__note-text {
    font-size: 12px;
    color: #9a9a9a;
    line-height: 1.5;
}

.report-modal__note-warn {
    margin-top: 8px;
    font-size: 12px;
    color: #ff4b93;
    text-align: center;
}

.report-modal__footer {
    padding: 14px 18px 18px;
    display: flex;
    justify-content: flex-end;
}

.report-modal__submit {
    border: none;
    background: #ff4b93;
    color: #fff;
    font-size: 14px;
    padding: 9px 18px;
    border-radius: 4px;
    cursor: pointer;
}

.report-modal__submit:hover {
    background: #ff2d84;
}

.report-modal__submit:active {
    background: #e81f74;
}

.report-modal--locked,
.report-modal--locked body {
    overflow: hidden;
}
