/* ============================================
   发布信息页 - 卡片式 UI v6
   2026-09-10：每个栏目独立卡片 / 配色统一站点橙 #FF6C00
   ============================================ */

/* ---- 页面基础 ---- */
.wrapper {
    background: #f2f3f5;
    min-height: 100vh;
    padding-bottom: 100px;
}

/* ---- 卡片容器：每个栏目一张独立卡片 ---- */
.post-card {
    background: #fff;
    margin: 0 12px 12px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f1f3;
    box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 20px rgba(0,0,0,.05);
}

/* 第一张卡片与顶部搜索栏的间距 */
.wrapper > .post-card:first-of-type {
    margin-top: 12px;
}

/* ---- 卡片头部 ---- */
.post-card-head {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f2f3f5;
}

.post-card-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: linear-gradient(135deg, #FFF0E4 0%, #FFE2CE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    margin-right: 10px;
    flex-shrink: 0;
}

.post-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
    letter-spacing: .3px;
}

.post-card-tip {
    font-size: 12px;
    color: #b0b3b8;
    font-weight: 400;
}

/* ---- 卡片内容 ---- */
.post-card-body {
    padding: 0;
}

/* ---- 表单行 ---- */
.post-row {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 16px;
    border-bottom: 1px solid #f5f6f8;
    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: 54px;
}

/* 必填标记 */
.post-row-label.required::after {
    content: '*';
    color: #FF3B30;
    font-size: 13px;
    margin-left: 2px;
    vertical-align: middle;
}

.post-row-value {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 54px;
    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: #FF6C00;
}

.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%;
    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: #FF6C00;
    font-size: 13px;
    text-decoration: none;
    padding: 4px 12px;
    border: 1px solid #FF6C00;
    border-radius: 14px;
    transition: all 0.2s;
}

.post-reset-btn:active {
    background: #FF6C00;
    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: #f7f8fa;
    border-radius: 12px;
    -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: #FFF8F3;
}

.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: #FF6C00;
    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 #FF6C00;
    border-radius: 50%;
    box-sizing: border-box;
}

.addIco::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #FF6C00;
    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 #FFB27A;
    border-radius: 12px;
    margin-left: 12px;
    position: relative;
    background: #FFF8F3;
    transition: all 0.2s;
}

#filePicker1:active {
    background: #FFEFE3;
    transform: scale(0.95);
}

.webuploader-pick {
    line-height: 60px;
    text-align: center;
    font-size: 32px;
    color: #FF6C00;
    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: #FF6C00;
    transition: width 200ms linear;
}

/* ---- 提交栏 ---- */
.post-submit-bar {
    padding: 8px 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, #FF9A3C 0%, #FF6C00 100%);
    box-shadow: 0 6px 20px rgba(255,108,0,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(255,108,0,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: #FF6C00;
    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;
}

/* ============================================
   分类选择页 post_cat —— 每个栏目一张独立卡片
   ============================================ */
.business {
    display: block;
    width: auto;
    box-sizing: border-box;
    padding: 0;
    background: #fff;
    margin: 0 12px 12px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f1f3;
    box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 20px rgba(0,0,0,.05);
}

.business:first-of-type {
    margin-top: 12px;
}

.business dt {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 58px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 58px;
    text-indent: 0;
    border-bottom: 1px solid #f5f6f8;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.business dt .ico {
    position: static;
    float: none;
    display: block;
    width: 36px;
    height: 36px;
    margin: 0 10px 0 0;
    border-radius: 10px;
    background-color: #FFF4EC;
    background-size: 22px auto;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* 展开箭头 */
.business dt::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #c8c8cc;
    border-bottom: 2px solid #c8c8cc;
    transform: rotate(45deg);
    transition: transform .25s;
    margin-left: auto;
    flex-shrink: 0;
}

.business.exp dt {
    border-bottom-color: #f0f1f3;
}

.business.exp dt::after {
    transform: rotate(-135deg);
}

.business dd {
    display: none;
    padding: 10px 10px 12px;
    background: #fff;
    border-bottom: none;
    line-height: normal;
}

.business.exp dd {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.business dd a {
    display: block;
    box-sizing: border-box;
    width: calc(50% - 4px);
    margin: 0;
    height: 42px;
    line-height: 42px;
    padding: 0 10px;
    text-align: center;
    font-size: 13px;
    color: #444;
    background: #f7f8fa;
    border-radius: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all .2s;
}

.business dd a:active {
    background: #FFF0E4;
    color: #FF6C00;
}

.cat-tip {
    font-size: 12px;
    color: #FF6C00;
    font-weight: normal;
    margin-left: 4px;
}

/* ---- 响应式 ---- */
@media screen and (max-width: 375px) {
    .post-row-label {
        width: 66px;
        font-size: 14px;
    }
    .post-card,
    .business {
        margin-left: 10px;
        margin-right: 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 {
        width: 24px;
        height: 24px;
        font-size: 13px;
        border-radius: 7px;
    }
    .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;
    }
    .business dd a {
        width: calc(50% - 4px);
    }
}


/* ===== 发布须知（卡片式列表） ===== */
.pn-card .post-card-body { padding-top: 4px; }
.pn-list { list-style: none; margin: 0; padding: 0; }
.pn-item { display: flex; padding: 12px 0; border-bottom: 1px dashed #eef0f3; }
.pn-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.pn-no {
    flex: 0 0 20px; height: 20px; line-height: 20px; text-align: center;
    border-radius: 50%; color: #fff; font-size: 12px; font-weight: 600;
    background: linear-gradient(135deg, #FF9A3C, #FF6C00);
    box-shadow: 0 2px 5px rgba(255,108,0,.25);
    margin: 1px 10px 0 0;
}
.pn-txt { flex: 1; min-width: 0; font-size: 13px; line-height: 1.75; color: #666; }
.pn-t { display: block; color: #222; font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.pn-c { display: block; word-break: break-word; }
