/* =====================
   页面整体
===================== */
body {
    font-family: "Microsoft Yahei", sans-serif;
    background: linear-gradient(to bottom, #ffe066, #ff9f43, #48dbfb);
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* =====================
   主容器
===================== */
.container {
    margin-top: 2vh;
    width: 90%;
    max-width: 400px;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

/* =====================
   文本 & 标签
===================== */
.form-label {
    font-size: 15px;
    color: #555;
}

.small {
    font-size: 13px;
    color: #666;
}

.note {
    font-size: 13px;
    color: #888;
}

/* =====================
   输入框
===================== */
textarea,
input[type="text"] {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    resize: none;
}

/* =====================
   图片上传
===================== */
.upload-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.upload-btn {
    width: 80px;
    height: 80px;
    border: 2px dashed #ff9f43;
    border-radius: 12px;
    background: #fff9f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s;
}

.upload-btn:hover {
    background: #ffe8cc;
    border-color: #ff7820;
}

.upload-btn .plus {
    font-size: 42px;
    color: #ff9f1c;
    line-height: 1;
}

.upload-tip {
    font-size: 14px;
    color: #888;
}

/* =====================
   图片预览
===================== */
.images-box {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.img-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-wrapper span {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,.6);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
    cursor: pointer;
}

/* =====================
   提交按钮
===================== */
button {
    width: 100%;
    padding: 18px;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(135deg,#ff6f91,#ff9f1c);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    transition: all .3s ease;
}

button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,.3);
}

/* =====================
   SweetAlert2 层级修复
===================== */
.swal2-container {
    z-index: 2147483647 !important;
}

/* =====================
   移动端优化
===================== */
@media (max-width: 480px) {
    textarea,
    input[type="text"],
    button {
        font-size: 1rem;
        padding: 16px;
    }
}
