/* 潋华直聘 商家工作台 - 通用样式 */
:root {
    --mm-primary: #2f7cf6;
    --mm-primary-deep: #1f5fd6;
    --mm-primary-soft: #eaf3ff;
    --mm-text: #1f2d3d;
    --mm-muted: #8a97a8;
    --mm-line: #e2eafa;
    --mm-danger: #e5484d;
    --mm-success: #17a673;
    --mm-radius: 16px;
    --mm-shadow: 0 18px 50px rgba(47, 124, 246, 0.16);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    padding: 0;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--mm-text);
    background: #eef5ff;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--mm-primary); text-decoration: none; }
a:hover { color: var(--mm-primary-deep); }

/* ================= 认证页通用布局 ================= */
.auth-page {
    position: relative;
    min-height: 100vh;
    padding: 32px 16px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #f2f9ff 0%, #dceefd 45%, #c7e2fb 100%);
    overflow: hidden;
}
.auth-page.wide { justify-content: flex-start; padding-top: 40px; }

.bubble { position: absolute; border-radius: 50%; filter: blur(6px); opacity: .5; pointer-events: none; }
.bubble-1 { width: 220px; height: 220px; background: #bcd9ff; top: -70px; left: -60px; }
.bubble-2 { width: 160px; height: 160px; background: #cfe6ff; bottom: -50px; right: -40px; }
.bubble-3 { width: 120px; height: 120px; background: #a9cdfd; top: 42%; right: 6%; opacity: .35; }

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--mm-shadow);
    padding: 30px 26px 26px;
}
.auth-page.wide .auth-card { max-width: 680px; }

.brand { text-align: center; margin-bottom: 22px; }
.brand .logo {
    width: 60px; height: 60px; margin: 0 auto 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, #4a92ff 0%, #2f7cf6 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px rgba(47, 124, 246, .35);
}
.brand h1 { font-size: 22px; font-weight: 600; letter-spacing: 3px; margin: 0; }
.brand .slogan { font-size: 13px; color: var(--mm-muted); letter-spacing: 1px; margin-top: 6px; }

/* ================= 表单 ================= */
.form-item {
    position: relative;
    display: flex;
    align-items: center;
    background: #f6f9fe;
    border: 1px solid var(--mm-line);
    border-radius: 12px;
    padding: 0 12px;
    margin-bottom: 14px;
    transition: border-color .2s, box-shadow .2s;
}
.form-item:focus-within { border-color: var(--mm-primary); box-shadow: 0 0 0 3px rgba(47, 124, 246, .12); }
.form-item .icon { width: 20px; height: 20px; color: #9fb0c7; flex: 0 0 auto; }
.form-item input,
.form-item select,
.form-item textarea {
    flex: 1 1 auto;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--mm-text);
    padding: 13px 10px;
    min-width: 0;
}
.form-item textarea { resize: vertical; min-height: 76px; font-family: inherit; }
.form-item select { appearance: none; cursor: pointer; }
.form-item .toggle-pwd {
    border: 0; background: transparent; padding: 6px; cursor: pointer;
    color: #9fb0c7; display: flex;
}
.form-item .toggle-pwd .eye-closed { display: none; }
.form-item .toggle-pwd.active .eye-open { display: none; }
.form-item .toggle-pwd.active .eye-closed { display: block; }

.form-item.code-item input { flex: 1 1 auto; }
.btn-code {
    border: 1px solid var(--mm-primary);
    color: var(--mm-primary);
    background: #fff;
    border-radius: 9px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
}
.btn-code:disabled { border-color: #cbd7e6; color: #a9b6c7; background: #f4f7fc; cursor: not-allowed; }
.captcha-img {
    height: 42px; border-radius: 9px; cursor: pointer; flex: 0 0 auto;
    border: 1px solid var(--mm-line); background: #f6f9fe;
}

.form-links {
    display: flex; justify-content: space-between;
    font-size: 13px; margin: 2px 2px 16px;
}

.btn-primary {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    letter-spacing: 4px;
    color: #fff;
    background: linear-gradient(135deg, #4a92ff 0%, #2f7cf6 100%);
    box-shadow: 0 10px 22px rgba(47, 124, 246, .32);
    cursor: pointer;
    transition: transform .12s, box-shadow .2s, opacity .2s;
}
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .65; cursor: not-allowed; box-shadow: none; }

.btn-ghost {
    width: 100%; border: 1px solid var(--mm-line); background: #fff; color: var(--mm-text);
    border-radius: 12px; padding: 12px; font-size: 15px; cursor: pointer;
}

.agreement {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 12.5px; color: var(--mm-muted); margin-top: 14px; line-height: 1.6;
}
.agreement input { margin-top: 2px; accent-color: var(--mm-primary); }
.agreement a { color: var(--mm-primary); }

.tip-line { text-align: center; font-size: 13px; color: var(--mm-muted); margin-top: 18px; }

/* ================= 入驻表单分组 ================= */
.section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 600; margin: 22px 0 12px;
}
.section-title::before { content: ""; width: 4px; height: 16px; border-radius: 3px; background: var(--mm-primary); }
.section-title:first-of-type { margin-top: 4px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

.field-label { font-size: 13px; color: var(--mm-muted); margin: 0 2px 8px; }
.field-label .req { color: var(--mm-danger); margin-left: 2px; }

/* 上传 */
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .upload-grid { grid-template-columns: 1fr; } }
.upload-box {
    position: relative;
    border: 1.5px dashed #bcd0ec;
    border-radius: 12px;
    min-height: 110px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--mm-muted); font-size: 13px; cursor: pointer;
    background: #f8fbff; overflow: hidden; text-align: center; padding: 10px;
}
.upload-box:hover { border-color: var(--mm-primary); color: var(--mm-primary); }
.upload-box .u-icon { width: 26px; height: 26px; margin-bottom: 6px; }
.upload-box input[type=file] { display: none; }
.upload-box img.preview {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.upload-box.has-img { border-style: solid; border-color: var(--mm-primary); padding: 0; }
.upload-box .u-state { position: relative; z-index: 1; }
.upload-box.has-img .u-state { position: absolute; inset: auto 0 0 0; background: rgba(31,45,61,.62); color: #fff; padding: 4px; font-size: 12px; }

/* ================= 工作台 / 首页 ================= */
.mm-topbar {
    width: 100%; max-width: 680px; display: flex; align-items: center; justify-content: space-between;
    margin: 0 auto 18px; color: var(--mm-text);
}
.mm-topbar .who { font-size: 14px; color: var(--mm-muted); }
.mm-topbar .who b { color: var(--mm-text); font-weight: 600; }

.status-card {
    width: 100%; max-width: 680px; margin: 0 auto;
    background: #fff; border-radius: 20px; box-shadow: var(--mm-shadow); padding: 26px;
}
.status-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-head h2 { font-size: 18px; margin: 0; }
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge-0 { background: #fff3e0; color: #e08b1a; }
.badge-1 { background: #e5f8f0; color: var(--mm-success); }
.badge-2 { background: #fdecec; color: var(--mm-danger); }
.badge-3 { background: #eef1f5; color: #7b8794; }

.kv { display: grid; grid-template-columns: 96px 1fr; gap: 10px 14px; margin-top: 20px; font-size: 14px; }
.kv .k { color: var(--mm-muted); }
.kv .v { color: var(--mm-text); word-break: break-all; }

.reject-box {
    margin-top: 18px; background: #fdecec; border: 1px solid #f7caca; color: #b3302f;
    border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.7;
}
.progress {
    display: flex; margin-top: 24px; gap: 0;
}
.progress .step { flex: 1; text-align: center; font-size: 12px; color: var(--mm-muted); position: relative; }
.progress .dot {
    width: 22px; height: 22px; border-radius: 50%; margin: 0 auto 8px;
    background: #e5ecf6; color: #9fb0c7; line-height: 22px; font-size: 12px; font-weight: 600;
}
.progress .step.on .dot { background: var(--mm-primary); color: #fff; }
.progress .step.on { color: var(--mm-primary); }
.progress .step:not(:last-child)::after {
    content: ""; position: absolute; top: 11px; left: 50%; width: 100%; height: 2px; background: #e5ecf6; z-index: -1;
}

/* ================= Toast ================= */
.toast {
    position: fixed; left: 50%; top: 42%; 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; line-height: 1.6;
    opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 99;
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.copyright { position: relative; z-index: 1; margin-top: 22px; font-size: 12px; color: #7f95b2; text-align: center; }
