/* 潋华直聘 商家工作台 - 子页面通用样式 */

/* ================= 顶部导航 ================= */
.sub-nav {
    position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 20;
    display: flex; align-items: center; gap: 6px; padding: 0 12px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(47, 124, 246, .12);
    box-shadow: 0 6px 24px rgba(47, 124, 246, .08);
}
.sub-nav .back {
    width: 38px; height: 38px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
    border-radius: 11px; color: var(--mm-text); cursor: pointer; transition: background .15s;
}
.sub-nav .back:hover { background: #eef5ff; color: var(--mm-primary); }
.sub-nav .title { font-size: 16px; font-weight: 700; color: var(--mm-text); }

.page-body {
    min-height: 100vh; padding-top: 56px;
    background: linear-gradient(160deg, #f2f9ff 0%, #dceefd 45%, #c7e2fb 100%);
}
.content { max-width: 920px; margin: 0 auto; padding: 18px 16px 24px; }

/* ================= 卡片 ================= */
.card {
    background: #fff; border-radius: 18px; margin-top: 14px;
    box-shadow: 0 12px 30px rgba(47, 124, 246, .10);
    border: 1px solid rgba(226, 234, 250, .9);
    overflow: hidden;
}
.card-hd {
    display: flex; align-items: center; gap: 9px;
    padding: 16px 18px 10px; font-size: 15px; font-weight: 700; color: var(--mm-text);
}
.card-hd .dot { width: 4px; height: 15px; border-radius: 2px; background: var(--mm-primary); }

/* 键值行 */
.kv-row {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    padding: 14px 18px; font-size: 14px; color: var(--mm-muted);
    border-bottom: 1px solid #f2f6fd;
}
.kv-row:last-child { border-bottom: none; }
.kv-row b { color: var(--mm-text); font-weight: 600; text-align: right; word-break: break-all; }
.kv-row .muted { color: var(--mm-muted); font-weight: 400; }

/* ================= 徽标 ================= */
.badge { font-size: 12px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.badge.s1 { background: #e5f8f0; color: #17a673; }
.badge.s0 { background: #fff3e0; color: #e08b1a; }
.badge.s2 { background: #fdecec; color: #e5484d; }
.badge.s3 { background: #eef1f5; color: #7b8794; }

/* ================= 证件缩略图 ================= */
.thumb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 6px 18px 18px; }
.thumb-item { border: 1px solid var(--mm-line); border-radius: 14px; overflow: hidden; background: #f7faff; }
.thumb-item .t-img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #eef5ff; cursor: pointer;
}
.thumb-item .t-ph {
    width: 100%; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
    color: #b9c9dd; font-size: 13px;
}
.thumb-item .t-cap { padding: 9px 12px; font-size: 13px; color: var(--mm-text); }

/* ================= 表单 ================= */
.form-item { padding: 6px 18px 14px; }
.form-item label { display: block; font-size: 13px; color: var(--mm-muted); margin-bottom: 7px; }
.form-item .req { color: var(--mm-danger); margin-left: 3px; }
.form-item input,
.form-item select,
.form-item textarea {
    width: 100%; border: 1px solid var(--mm-line); border-radius: 12px; padding: 11px 13px;
    font-size: 14px; color: var(--mm-text); background: #f9fbff; outline: none;
    font-family: inherit; transition: border-color .15s, background .15s;
}
.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus { border-color: var(--mm-primary); background: #fff; }
.form-item textarea { resize: vertical; min-height: 92px; line-height: 1.6; }
.form-tip { font-size: 12px; color: var(--mm-muted); margin-top: 6px; }

.btn {
    display: block; width: 100%; border: none; border-radius: 14px; padding: 14px;
    font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; transition: filter .15s, background .15s;
}
.btn-primary { background: linear-gradient(135deg, #4a92ff, #2f7cf6); color: #fff; box-shadow: 0 10px 24px rgba(47,124,246,.30); }
.btn-primary:hover { filter: brightness(1.04); }
.btn-primary:disabled { opacity: .6; cursor: default; filter: none; }
.btn-outline { background: #fff; border: 1px solid var(--mm-line); color: var(--mm-text); }
.btn-outline:hover { border-color: var(--mm-primary); color: var(--mm-primary); }
.btn-wrap { padding: 6px 18px 18px; }

/* ================= 钱包 ================= */
.wallet-hero {
    border-radius: 20px; padding: 22px 20px; color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #4a92ff 0%, #2f7cf6 55%, #1f5fd6 100%);
    box-shadow: 0 18px 40px rgba(47, 124, 246, .35);
}
.wallet-hero::after {
    content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
    background: rgba(255, 255, 255, .14); top: -80px; right: -40px;
}
.wallet-hero .w-label { font-size: 13px; opacity: .9; }
.wallet-hero .w-amount { font-size: 34px; font-weight: 700; margin: 8px 0 4px; letter-spacing: .5px; }
.wallet-hero .w-amount small { font-size: 18px; font-weight: 600; margin-right: 2px; }
.wallet-hero .w-sub { font-size: 12px; opacity: .9; }

.wallet-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.wallet-mini .m-item {
    background: #fff; border-radius: 16px; padding: 15px 16px;
    border: 1px solid rgba(226, 234, 250, .9); box-shadow: 0 10px 26px rgba(47,124,246,.10);
}
.wallet-mini .m-num { font-size: 20px; font-weight: 700; color: var(--mm-text); }
.wallet-mini .m-num small { font-size: 13px; font-weight: 600; }
.wallet-mini .m-label { font-size: 12px; color: var(--mm-muted); margin-top: 5px; }

.seg-tabs { display: flex; gap: 8px; padding: 14px 18px 4px; }
.seg-tabs .sg {
    flex: 1; text-align: center; padding: 9px; border-radius: 12px; font-size: 14px;
    background: #f5f9ff; color: var(--mm-muted); cursor: pointer; border: 1px solid transparent; transition: .15s;
}
.seg-tabs .sg.active { background: #eaf3ff; color: var(--mm-primary); font-weight: 600; border-color: #cfe0f7; }

.rec-item { padding: 14px 18px; border-bottom: 1px solid #f2f6fd; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.rec-item:last-child { border-bottom: none; }
.rec-item .r-main { min-width: 0; }
.rec-item .r-name { font-size: 14px; color: var(--mm-text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-item .r-meta { font-size: 12px; color: var(--mm-muted); margin-top: 5px; line-height: 1.6; }
.rec-item .r-amt { font-size: 15px; font-weight: 700; white-space: nowrap; }
.r-in { color: #17a673; }
.r-out { color: #e5484d; }
.r-st { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #eef5ff; color: var(--mm-primary); margin-left: 2px; }

/* ================= 联系客服 ================= */
.contact-item { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-bottom: 1px solid #f2f6fd; }
.contact-item:last-child { border-bottom: none; }
.contact-item .c-ico { width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: #fff; }
.contact-item .c-ico svg { width: 21px; height: 21px; }
.c-blue { background: linear-gradient(135deg,#4a92ff,#2f7cf6); }
.c-green { background: linear-gradient(135deg,#3fd39a,#17a673); }
.c-orange { background: linear-gradient(135deg,#ffb347,#f5891a); }
.contact-item .c-txt { min-width: 0; flex: 1; }
.contact-item .c-txt b { display: block; font-size: 15px; color: var(--mm-text); }
.contact-item .c-txt span { font-size: 12px; color: var(--mm-muted); }
.c-arrow { color: #c3cede; font-size: 20px; }

.faq-item { padding: 15px 18px; border-bottom: 1px solid #f2f6fd; }
.faq-item:last-child { border-bottom: none; }
.faq-item .q { font-size: 14px; font-weight: 600; color: var(--mm-text); }
.faq-item .a { font-size: 13px; color: var(--mm-muted); margin-top: 7px; line-height: 1.7; }

/* ================= 关于我们 ================= */
.about-hero { text-align: center; padding: 26px 18px 8px; }
.about-hero .logo-lg {
    width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #4a92ff, #2f7cf6); box-shadow: 0 12px 30px rgba(47,124,246,.35);
}
.about-hero .a-name { font-size: 20px; font-weight: 700; color: var(--mm-text); }
.about-hero .a-ver { font-size: 12px; color: var(--mm-muted); margin-top: 6px; }
.about-p { padding: 4px 18px 16px; font-size: 14px; color: #4a586b; line-height: 1.85; }

.cert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 6px 18px 18px; }
.cert-item { border: 1px solid var(--mm-line); border-radius: 14px; overflow: hidden; background: #f7faff; }
.cert-item.full { grid-column: 1 / -1; }
.cert-img { position: relative; width: 100%; aspect-ratio: 3 / 4; background: #f5f8ff; overflow: hidden; cursor: pointer; }
.cert-item.full .cert-img { aspect-ratio: 3 / 2; }
.cert-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.cert-item .ct-cap { padding: 9px 12px; font-size: 13px; color: var(--mm-text); text-align: center; }

.empty { text-align: center; color: var(--mm-muted); padding: 40px 0; font-size: 14px; }

/* ================= 底部导航 ================= */
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    display: flex; align-items: center;
    height: 60px; padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(47, 124, 246, .12);
    box-shadow: 0 -6px 24px rgba(47, 124, 246, .08);
}
.bn-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; font-size: 12px; color: var(--mm-muted); cursor: pointer; transition: color .15s;
}
.bn-item svg { width: 22px; height: 22px; }
.bn-item.active { color: var(--mm-primary); font-weight: 600; }

/* ================= 提示 ================= */
.toast {
    position: fixed; left: 50%; top: 44%; transform: translate(-50%,-50%) scale(.96); background: rgba(31,45,61,.92);
    color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; max-width: 80vw; text-align: center;
    opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 99;
}
.toast.show { opacity: 1; transform: translate(-50%,-50%) scale(1); }

.img-viewer {
    position: fixed; inset: 0; background: rgba(15, 23, 34, .88); z-index: 120;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.img-viewer.show { display: flex; }
.img-viewer img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.img-viewer img.rot { max-width: 86vh; max-height: 86vw; transform: rotate(-90deg); }

/* ================= 商品管理 ================= */
.goods-item { display: flex; gap: 13px; padding: 14px 18px; border-bottom: 1px solid #f2f6fd; }
.goods-item:last-child { border-bottom: none; }
.goods-item .g-thumb {
    width: 76px; height: 76px; flex: 0 0 auto; border-radius: 13px; overflow: hidden;
    background: #eef5ff; display: flex; align-items: center; justify-content: center; color: #b9c9dd; font-size: 12px;
}
.goods-item .g-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.goods-item .g-main { min-width: 0; flex: 1; }
.goods-item .g-name {
    font-size: 14px; font-weight: 600; color: var(--mm-text); line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.goods-item .g-meta { font-size: 12px; color: var(--mm-muted); margin-top: 6px; }
.goods-item .g-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.goods-item .g-price { color: #e5484d; font-weight: 700; font-size: 15px; }
.goods-item .g-price small { font-size: 12px; font-weight: 600; }
.goods-item .g-act { display: flex; flex-direction: column; justify-content: center; flex: 0 0 auto; }
.g-btn {
    border: 1px solid var(--mm-line); background: #fff; color: var(--mm-primary);
    border-radius: 10px; padding: 7px 13px; font-size: 13px; font-family: inherit; cursor: pointer;
    transition: .15s; white-space: nowrap;
}
.g-btn:hover { border-color: var(--mm-primary); }
.g-btn.off { color: var(--mm-muted); }
.g-btn.off:hover { border-color: var(--mm-danger); color: var(--mm-danger); }
.g-btn:disabled { opacity: .55; cursor: default; }

/* 商品滑动操作 */
.swipe-item { position: relative; overflow: hidden; }
.swipe-item .goods-item {
    position: relative; z-index: 1; background: #fff;
    transition: transform .2s ease; touch-action: pan-y;
}
.swipe-item:last-child .goods-item { border-bottom: none; }
.swipe-actions { position: absolute; top: 0; left: 0; height: 100%; display: flex; z-index: 0; }
.swipe-btn {
    width: 70px; border: none; color: #fff; font-family: inherit; font-size: 14px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.swipe-btn.edit { background: #2f7cf6; }
.swipe-btn.del { background: #e5484d; }

/* ================= 悬浮添加按钮 ================= */
.fab {
    position: fixed; right: 20px; bottom: 24px; z-index: 30;
    width: 54px; height: 54px; border-radius: 50%; text-decoration: none;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #4a92ff, #2f7cf6); color: #fff;
    box-shadow: 0 12px 28px rgba(47, 124, 246, .45); cursor: pointer;
    transition: transform .15s, filter .15s;
}
.fab:hover { filter: brightness(1.05); }
.fab:active { transform: scale(.94); }
.fab svg { width: 26px; height: 26px; }

/* ================= 主图上传 ================= */
.cover-uploader { display: flex; align-items: center; gap: 14px; }
.cover-box {
    width: 92px; height: 92px; flex: 0 0 auto; border-radius: 14px; overflow: hidden;
    border: 1px dashed #c6d7ee; background: #f7fbff; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #9db3cd; font-size: 12px; gap: 4px;
}
.cover-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-box svg { width: 22px; height: 22px; }
.cover-tip { font-size: 12px; color: var(--mm-muted); line-height: 1.6; }

/* ================= 商品图片（多图，最多5张） ================= */
.img-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.img-grid .img-cell {
    position: relative; width: 92px; height: 92px; flex: 0 0 auto;
    border-radius: 14px; overflow: hidden; border: 1px solid #e2ecf7; background: #f7fbff;
}
.img-grid .img-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-grid .img-del {
    position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%;
    background: rgba(0,0,0,.55); color: #fff; font-size: 13px; line-height: 20px; text-align: center;
    cursor: pointer; border: none; padding: 0;
}
.img-grid .img-add {
    width: 92px; height: 92px; flex: 0 0 auto; border-radius: 14px; overflow: hidden;
    border: 1px dashed #c6d7ee; background: #f7fbff; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #9db3cd; font-size: 12px; gap: 4px;
}
.img-grid .img-add svg { width: 22px; height: 22px; }
.img-grid .img-add.disabled { opacity: .5; pointer-events: none; }



