/* ============================================
   发布信息页 - 现代H5 UI v5
   ============================================ */

/* ---- 页面基础 ---- */
.wrapper {
    background: #f5f6f8;
    min-height: 100vh;
    padding-bottom: 100px;
}

/* ---- 卡片容器 ---- */
.post-card {
    background: #fff;
    margin: 10px 12px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

/* ---- 卡片头部 ---- */
.post-card-head {
    display: flex;
    align-items: center;
    padding: 14px 16px 8px;
    border-bottom: 1px solid #f5f5f7;
}

.post-card-icon {
    font-size: 18px;
    margin-right: 8px;
    line-height: 1;
}

.post-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
}

.post-card-tip {
    font-size: 12px;
    color: #aaa;
    font-weight: 400;
}

/* ---- 卡片内容 ---- */
.post-card-body {
    padding: 0;
}

/* ---- 表单行 ---- */
.post-row {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 16px;
    border-bottom: 1px solid #f5f5f7;
    position: relative;
    transition: background 0.2s;
}

.post-row:last-child {
    border-bottom: none;
}

.post-row:active {
    background: #fafbfc;
}

.post-row-label {
    width: 76px;
    flex-shrink: 0;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    line-height: 52px;
}

.post-row-value {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 52px;
    position: relative;
}

/* ---- 输入框 ---- */
.post-row-value input[type=text],
.post-row-value input[type=tel],
.post-row-value input[type=password] {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #333;
    padding: 8px 0;
    line-height: 24px;
    -webkit-appearance: none;
    border-radius: 0;
}

.post-row-value input[type=text]:focus,
.post-row-value input[type=tel]:focus,
.post-row-value input[type=password]:focus {
    color: #07C160;
}

.post-row-value input::placeholder {
    color: #bbb;
    font-size: 14px;
}

/* ---- 下拉选择 ---- */
.post-row-value select {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #333;
    -webkit-appearance: none;
    appearance: none;
    padding: 8px 0;
    line-height: 24px;
}

.post-row-value select option {
    color: #333;
}

.post-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-right: 2px solid #c8c8cc;
    border-bottom: 2px solid #c8c8cc;
    transform: translateY(-50%) rotate(-45deg);
    pointer-events: none;
    margin-right: 2px;
}

/* ---- 类别显示 ---- */
.post-catname {
    flex: 1;
    font-size: 15px;
    color: #333;
    line-height: 24px;
}

.post-reset-btn {
    color: #07C160;
    font-size: 13px;
    text-decoration: none;
    padding: 4px 12px;
    border: 1px solid #07C160;
    border-radius: 14px;
    transition: all 0.2s;
}

.post-reset-btn:active {
    background: #07C160;
    color: #fff;
}

/* ---- 文本域 ---- */
.post-textarea-wrap {
    padding: 0 16px 12px;
    position: relative;
}

.post-textarea-wrap .txt {
    display: block;
    width: 100%;
    min-height: 130px;
    font-size: 15px;
    padding: 14px;
    border: none;
    background: #f8f9fa;
    border-radius: 10px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: 0;
    color: #333;
    line-height: 1.7;
    resize: none;
    transition: background 0.2s;
}

.post-textarea-wrap .txt:focus {
    background: #f0f7f4;
}

.post-textarea-wrap .txt::placeholder {
    color: #bbb;
    font-size: 14px;
    line-height: 1.6;
}

.post-char-count {
    text-align: right;
    font-size: 12px;
    color: #aaa;
    padding: 6px 4px 0;
}

.post-char-count span {
    color: #07C160;
    font-weight: 500;
}

/* ---- 管理密码 ---- */
.post-row-manage .post-row-value input {
    color: #e74c3c;
}

.post-row-manage .post-row-value input::placeholder {
    color: #f5c6cb;
}

/* ---- 验证码 ---- */
.post-row-checkcode .post-row-value {
    gap: 10px;
}

.post-row-checkcode .authcode {
    height: 36px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ---- 添加手机号按钮 ---- */
.addIco {
    width: 26px;
    height: 26px;
    display: inline-block;
    vertical-align: middle;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.addIco::before {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    border: 2px dashed #07C160;
    border-radius: 50%;
    box-sizing: border-box;
}

.addIco::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #07C160;
    font-weight: 300;
    line-height: 1;
}

/* ---- 图片上传 ---- */
.post-upload-area {
    padding: 14px 4px 14px;
}

.uploadImage {
    padding: 0 12px;
    background: transparent;
    border-bottom: none;
    overflow: hidden;
    position: relative;
}

.uploadImage ul {
    float: left;
}

.uploadImage li {
    position: relative;
    float: left;
    width: 76px;
    height: 76px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 12px;
    margin-left: 12px;
    overflow: hidden;
}

.uploadImage .thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#filePicker1 {
    float: left;
    box-shadow: none;
    width: 76px;
    height: 76px;
    border: 2px dashed #07C160;
    border-radius: 12px;
    margin-left: 12px;
    position: relative;
    background: #f0f7f4;
    transition: all 0.2s;
}

#filePicker1:active {
    background: #e0f0e8;
    transform: scale(0.95);
}

.webuploader-pick {
    line-height: 60px;
    text-align: center;
    font-size: 32px;
    color: #07C160;
    font-weight: 300;
}

.webuploader-container div {
    width: 76px;
    height: 76px;
}

.webuploader-element-invisible {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute !important;
    clip: rect(1px,1px,1px,1px);
}

/* 图片删除按钮 */
.uploadImage .thumbnail .file-panel {
    position: absolute;
    width: 22px;
    height: 22px;
    top: 4px;
    right: 4px;
    z-index: 10;
}

.uploadImage .thumbnail .file-panel .cancel {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.55);
    transform: rotate(45deg);
    cursor: pointer;
}

.uploadImage .thumbnail .file-panel .cancel:before,
.uploadImage .thumbnail .file-panel .cancel:after {
    content: '';
    position: absolute;
    background: #fff;
    left: 50%;
    top: 50%;
}

.uploadImage .thumbnail .file-panel .cancel:before {
    height: 12px;
    width: 2px;
    margin: -6px 0 0 -1px;
}

.uploadImage .thumbnail .file-panel .cancel:after {
    height: 2px;
    width: 12px;
    margin: -1px 0 0 -6px;
}

/* 上传进度条 */
.thumbnail .progress {
    position: absolute;
    right: 4px;
    bottom: 4px;
    left: 4px;
    height: 3px;
    overflow: hidden;
    z-index: 15;
    margin: 0;
    padding: 0;
    border-radius: 2px;
    background: transparent;
}

.thumbnail .progress span {
    display: block;
    overflow: hidden;
    width: 0;
    height: 100%;
    background: #07C160;
    transition: width 200ms linear;
}

/* ---- 提交栏 ---- */
.post-submit-bar {
    padding: 20px 12px 10px;
}

.post-submit-btn {
    display: block;
    width: 100%;
    height: 50px;
    border: none;
    outline: none;
    border-radius: 25px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #07C160 0%, #06AD56 100%);
    box-shadow: 0 6px 20px rgba(7,193,96,0.3);
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 3px;
}

.post-submit-btn:active {
    transform: scale(0.97);
    box-shadow: 0 3px 10px rgba(7,193,96,0.25);
}

.post-submit-tip {
    text-align: center;
    padding: 12px 20px 0;
    font-size: 12px;
    color: #bbb;
    line-height: 1.5;
}

/* ---- 加载遮罩 ---- */
#loadingPostdiv {
    z-index: 10000;
}

/* ---- 单选/多选美化 ---- */
.post-row-value input[type=radio],
.post-row-value input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: #07C160;
    margin-right: 6px;
    vertical-align: middle;
}

/* ---- 弹窗错误提示 ---- */
.popErr {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100001;
    visibility: hidden;
}

.popErr p {
    background: rgba(0,0,0,0.78);
    color: #fff;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 10px;
    max-width: 260px;
    text-align: center;
    line-height: 1.6;
}

/* ---- 清除浮动 ---- */
.fn-clear:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}

.fn-clear {
    zoom: 1;
}

.fn-hide {
    display: none;
}

/* ---- 响应式 ---- */
@media screen and (max-width: 375px) {
    .post-row-label {
        width: 66px;
        font-size: 14px;
    }
    .post-card {
        margin: 8px 10px;
    }
    .post-row {
        padding: 0 14px;
    }
    .post-submit-btn {
        font-size: 16px;
        height: 46px;
    }
}

@media screen and (max-width: 320px) {
    .post-row-label {
        width: 60px;
        font-size: 13px;
    }
    .post-card-icon {
        font-size: 16px;
    }
    .post-card-title {
        font-size: 14px;
    }
    .uploadImage li,
    #filePicker1 {
        width: 66px;
        height: 66px;
    }
    .webuploader-pick {
        line-height: 52px;
        font-size: 28px;
    }
    .webuploader-container div {
        width: 66px;
        height: 66px;
    }
}
/* ===== 分类选择页(post_cat)样式 20260819修复：post.css重写时误删，现补回 ===== */
.business { margin-top: 5px; margin-bottom: 5px; background: #FFF; color: #000; font-size: 14px; }
.business dt { position: relative; padding: 0 10px; height: 55px; border-top: 1px solid #E2E2E3; border-bottom: 1px solid #E2E2E3; text-indent: 1px; font-size: 16px; line-height: 55px; }
.business dd { display: none; border-bottom: 1px solid #DEDEDE; background: #FFF; padding: 10px 0; line-height: 36px; }
.exp dd { display: block; }
.exp dt:after { background-position: -127px -32px; }
.business a { display: inline-block; overflow: hidden; padding-left: 10px; width: 20%; height: 38px; color: #000; vertical-align: top; font-size: 14px; }
.ico { position: relative; float: left; display: block; margin-top: 7px; width: 42px; height: 42px; -webkit-border-radius: 10px; border-radius: 10px; margin-right: 10px; background-size: 100% 100%; background-repeat: no-repeat; }
.cat-tip { font-size: 13px; color: #42B712; font-weight: normal; }


/* ===== 2026-09-20 视频按钮与图片按钮同一行、同尺寸；图片按钮面积减半（76x76 -> 54x54） ===== */
#filePicker1, #filePicker2 {
    float: left;
    box-shadow: none;
    width: 54px;
    height: 54px;
    border: 2px dashed #07C160;
    border-radius: 12px;
    margin-left: 12px;
    position: relative;
    background: #f0f7f4;
    transition: all 0.2s;
}
#filePicker1:active, #filePicker2:active {
    background: #e0f0e8;
    transform: scale(0.95);
}
#filePicker1 .webuploader-pick, #filePicker2 .webuploader-pick {
    line-height: 42px;
    font-size: 26px;
}
#filePicker1 > div, #filePicker2 > div {
    width: 54px;
    height: 54px;
}
#filePicker2 .cxPickTag {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1px;
    height: 12px;
    line-height: 12px;
    text-align: center;
    font-size: 10px;
    color: #07C160;
}
.uploadImage .thumbnail video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}
@media screen and (max-width: 320px) {
    #filePicker1, #filePicker2 {
        width: 47px;
        height: 47px;
    }
    #filePicker1 .webuploader-pick, #filePicker2 .webuploader-pick {
        line-height: 34px;
        font-size: 22px;
    }
    #filePicker1 > div, #filePicker2 > div {
        width: 47px;
        height: 47px;
    }
}
