/**
 * 投诉页面样式文件
 * @author: Your Name
 * @date: 2025-12-14
 */

/* ==================== 全局样式 ==================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #f8f8f8;
}

/* ==================== 加载动画样式 ==================== */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-dots {
    display: flex;
    gap: 8px;
}

.loading-dot {
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    animation: loading-bounce 1s infinite ease-in-out;
}

.loading-dot:nth-child(1) {
    animation-delay: 0s;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==================== 页面容器样式 ==================== */
.complaint-container {
    min-height: 100vh;
    padding-bottom: 20px;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

/* ==================== 投诉原因列表样式 ==================== */
#reasonSection .weui-cells {
    margin-top: 0;
}

#reasonSection .weui-cell {
    padding: 18px 15px;
    font-size: 17px;
}

#reasonSection .weui-cell__bd p {
    font-size: 17px;
    color: #000;
}

#reasonSection .weui-cells__title,
#subReasonInappropriate .weui-cells__title {
    padding: 15px 15px 10px;
    font-size: 14px;
}

#subReasonInappropriate .weui-cells {
    margin-top: 0;
}

#subReasonInappropriate .weui-cell {
    padding: 18px 15px;
    font-size: 17px;
}

#subReasonInappropriate .weui-cell__bd p,
#subReasonFraud .weui-cell__bd p {
    font-size: 17px;
    color: #000;
}

#subReasonFraud .weui-cells {
    margin-top: 0;
}

#subReasonFraud .weui-cell {
    padding: 18px 15px;
    font-size: 17px;
}

#subReasonFraud .weui-cells__title {
    padding: 15px 15px 10px;
    font-size: 14px;
}

/* ==================== 成功提示页面样式 ==================== */
.success-page {
    display: none;
}

.success-page.active {
    display: block;
}

/* ==================== 图片上传样式 ==================== */
.weui-uploader__bd {
    margin-bottom: -4px;
    margin-right: -9px;
    overflow: hidden;
}

.weui-uploader__file {
    float: left;
    margin-right: 9px;
    margin-bottom: 9px;
    width: 79px;
    height: 79px;
    background: no-repeat center center;
    background-size: cover;
    position: relative;
}

.weui-uploader__input-box {
    float: left;
    position: relative;
    margin-right: 9px;
    margin-bottom: 9px;
    width: 77px;
    height: 77px;
    border: 1px solid #D9D9D9;
}

.weui-uploader__input-box:before,
.weui-uploader__input-box:after {
    content: " ";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #D9D9D9;
}

.weui-uploader__input-box:before {
    width: 2px;
    height: 39.5px;
}

.weui-uploader__input-box:after {
    width: 39.5px;
    height: 2px;
}

.weui-uploader__input {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.file-delete {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 0 0 0 4px;
}

.file-delete:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* ==================== 表单样式 ==================== */
.form-tips {
    color: #999;
    font-size: 14px;
    padding: 10px 15px;
}

.submit-btn-area {
    margin: 20px 15px;
}

.required-mark {
    color: #ff0000;
    margin-left: 2px;
}

/* ==================== 响应式设计 ==================== */
@media screen and (max-width: 320px) {
    .weui-uploader__file,
    .weui-uploader__input-box {
        width: 60px;
        height: 60px;
    }
}