/* ============================================================
   申请入驻（咨询师 / 倾听师） - 前端样式
   风格与主站一致：紫调渐变 + 玻璃卡片 + 圆角大留白
   ============================================================ */

.apply-screen {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ---------- 顶部导航 ---------- */
.apply-nav {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--c-surface);
    border-bottom: 1px solid var(--line);
}
.apply-nav .apply-back {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--n-100);
    color: var(--gray-1);
    font-size: 17px;
}
.apply-nav .apply-title {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    text-align: center;
    letter-spacing: .5px;
}
.apply-nav .apply-track-btn {
    font-size: 12.5px;
    color: var(--purple-2);
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, .09);
}

/* ---------- 滚动主体 ---------- */
.apply-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 40px;
}

/* ---------- Hero ---------- */
.apply-hero {
    position: relative;
    padding: 26px 20px 70px;
    background: linear-gradient(150deg, var(--indigo-400) 0%, var(--v-600) 55%, var(--brand-3) 100%);
    color: var(--c-surface);
    overflow: hidden;
}
.apply-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 0%, rgba(255,255,255,.28), transparent 45%),
                radial-gradient(circle at 5% 95%, rgba(255,255,255,.16), transparent 40%);
}
.apply-hero > * { position: relative; z-index: 1; }
.apply-hero .ah-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.28);
    font-size: 12px;
    backdrop-filter: blur(6px);
}
.apply-hero h1 {
    margin: 14px 0 8px;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: .5px;
    line-height: 1.35;
}
.apply-hero p {
    font-size: 13.5px;
    line-height: 1.7;
    opacity: .92;
}
.ah-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 20px;
}
.ah-stats .ahs-item {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 14px;
    padding: 10px 6px;
    text-align: center;
    backdrop-filter: blur(6px);
}
.ah-stats .ahs-val { font-size: 18px; font-weight: 800; letter-spacing: .5px; }
.ah-stats .ahs-lab { font-size: 11px; opacity: .85; margin-top: 3px; }

/* ---------- 通用区块 ---------- */
.apply-block {
    margin: -48px 14px 0;
    position: relative;
    z-index: 2;
    background: var(--c-surface);
    border-radius: 18px;
    padding: 18px 16px;
    box-shadow: 0 10px 30px rgba(30, 41, 59, .08);
    margin-bottom: 14px;
}
.apply-block + .apply-block { margin-top: 0; }
.ab-head {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 6px;
}
.ab-head .ab-ico {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--indigo-400), var(--v-600));
    color: var(--c-surface); font-size: 14px;
}
.ab-head h2 { font-size: 16px; font-weight: 800; color: var(--ink); }
.ab-sub { font-size: 12px; color: var(--gray-2); line-height: 1.7; margin-bottom: 14px; }

/* ---------- 权益卡片 ---------- */
.abo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.abo-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px 12px;
    background: linear-gradient(180deg, var(--c-surface), var(--warm-50));
}
.abo-card .abo-ico { font-size: 20px; }
.abo-card .abo-title { font-size: 13.5px; font-weight: 700; margin: 6px 0 4px; color: var(--ink); }
.abo-card .abo-desc { font-size: 11.5px; color: var(--gray-2); line-height: 1.6; }

/* ---------- 入驻流程 ---------- */
.ab-steps { position: relative; padding-left: 26px; }
.ab-steps::before {
    content: '';
    position: absolute;
    left: 9px; top: 6px; bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--indigo-400), var(--v-300));
    border-radius: 2px;
}
.abs-item { position: relative; padding-bottom: 16px; }
.abs-item:last-child { padding-bottom: 0; }
.abs-item .abs-dot {
    position: absolute;
    left: -26px; top: 2px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--c-surface);
    border: 2px solid var(--purple-2);
    color: var(--purple-2);
    font-size: 11px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.abs-item .abs-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.abs-item .abs-desc { font-size: 12px; color: var(--gray-2); line-height: 1.65; margin-top: 3px; }

/* ---------- 材料清单 ---------- */
.abm-list { display: flex; flex-direction: column; gap: 9px; }
.abm-item {
    display: flex; gap: 9px; align-items: flex-start;
    background: var(--n-50);
    border: 1px solid var(--line);
    border-left: 3px solid var(--purple-3);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12.5px;
    color: var(--gray-1);
    line-height: 1.6;
}
.abm-item .abm-no {
    flex: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--purple-2);
    color: var(--c-surface);
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
}

/* ---------- 角色选择 ---------- */
.apy-role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.apy-role {
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 14px 12px;
    text-align: center;
    background: var(--c-surface);
    transition: .18s;
}
.apy-role.active {
    border-color: var(--purple-2);
    background: linear-gradient(180deg, rgba(16,185,129,.08), var(--c-surface));
    box-shadow: 0 6px 16px rgba(16, 185, 129, .14);
}
.apy-role .ar-ico { font-size: 24px; }
.apy-role .ar-name { font-size: 14px; font-weight: 700; margin-top: 6px; color: var(--ink); }
.apy-role .ar-desc { font-size: 11px; color: var(--gray-2); margin-top: 4px; line-height: 1.5; }

/* ---------- 步骤条 ---------- */
.apy-stepper {
    display: flex;
    align-items: center;
    margin: 4px 0 18px;
}
.apy-stepper .as-step {
    flex: 1;
    text-align: center;
    position: relative;
}
.apy-stepper .as-dot {
    width: 26px; height: 26px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: #eef2f7;
    color: var(--gray-3);
    font-size: 12px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid transparent;
    transition: .2s;
}
.apy-stepper .as-step.on .as-dot {
    background: linear-gradient(135deg, var(--indigo-400), var(--v-600));
    color: var(--c-surface);
}
.apy-stepper .as-step.done .as-dot { background: var(--s-green-600); color: var(--c-surface); }
.apy-stepper .as-name { font-size: 11px; color: var(--gray-3); }
.apy-stepper .as-step.on .as-name { color: var(--purple-2); font-weight: 700; }
.apy-stepper .as-line {
    position: absolute;
    top: 13px; left: 50%;
    width: 100%; height: 2px;
    background: #eef2f7;
}
.apy-stepper .as-step:last-child .as-line { display: none; }

/* ---------- 表单 ---------- */
.apy-form { display: flex; flex-direction: column; gap: 14px; }
.apy-step-pane { display: none; }
.apy-step-pane.active { display: block; animation: apyFade .28s ease; }
@keyframes apyFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.apy-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gray-1);
    margin-bottom: 6px;
}
.apy-field label .req { color: var(--red); margin-left: 2px; }
.apy-field input[type=text],
.apy-field input[type=tel],
.apy-field input[type=email],
.apy-field input[type=number],
.apy-field input[type=date],
.apy-field select,
.apy-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 13px;
    font-size: 14px;
    color: var(--ink);
    background: var(--n-50);
    outline: none;
    transition: .18s;
}
.apy-field input:focus, .apy-field select:focus, .apy-field textarea:focus {
    border-color: var(--purple-2);
    background: var(--c-surface);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .1);
}
.apy-field textarea { resize: vertical; line-height: 1.7; }
.apy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.apy-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.apy-hint { font-size: 11px; color: var(--gray-3); margin-top: 5px; line-height: 1.5; }
.apy-count { float: right; font-size: 11px; color: var(--gray-3); font-weight: 500; }

/* 标签多选 */
.apy-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.apy-chip {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--c-surface);
    font-size: 12.5px;
    color: var(--gray-1);
    transition: .16s;
}
.apy-chip.on {
    border-color: var(--purple-2);
    background: rgba(16, 185, 129, .1);
    color: var(--purple-2);
    font-weight: 600;
}
.apy-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.apy-level {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 4px;
    text-align: center;
    font-size: 12.5px;
    color: var(--gray-1);
    background: var(--c-surface);
}
.apy-level.on {
    border-color: var(--purple-2);
    color: var(--purple-2);
    font-weight: 700;
    background: rgba(16, 185, 129, .08);
}

/* 图片上传 */
.apy-uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.apy-up {
    position: relative;
    border: 1.5px dashed var(--n-300);
    border-radius: 14px;
    background: var(--n-50);
    height: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--gray-3);
    font-size: 12px;
    overflow: hidden;
}
.apy-up.has { border-style: solid; border-color: var(--purple-4); }
.apy-up img { width: 100%; height: 100%; object-fit: cover; }
.apy-up .apy-up-ico { font-size: 22px; }
.apy-up .apy-up-del {
    position: absolute;
    top: 5px; right: 5px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: var(--c-surface);
    font-size: 12px;
    display: none;
    align-items: center; justify-content: center;
}
.apy-up.has .apy-up-del { display: flex; }
.apy-up-single { height: 132px; }

/* 证书列表 */
.apy-cert-list { display: flex; flex-direction: column; gap: 10px; }
.apy-cert {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: #fbfcfe;
    position: relative;
}
.apy-cert .apy-cert-del {
    position: absolute; top: 8px; right: 8px;
    color: var(--gray-3); font-size: 16px; line-height: 1;
}
.apy-add-cert {
    margin-top: 10px;
    width: 100%;
    border: 1px dashed var(--purple-4);
    border-radius: 12px;
    padding: 10px;
    color: var(--purple-2);
    font-size: 13px;
    font-weight: 600;
    background: rgba(16, 185, 129, .04);
}

/* 协议 */
.apy-agree {
    display: flex; gap: 8px; align-items: flex-start;
    background: var(--n-50);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 12px;
    color: var(--gray-1);
    line-height: 1.7;
}
.apy-agree input { margin-top: 2px; accent-color: var(--v-600); }
.apy-agree a { color: var(--purple-2); font-weight: 600; }

/* 底部操作条 */
.apy-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}
.apy-btn {
    flex: 1;
    height: 46px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--c-surface);
    background: linear-gradient(135deg, var(--indigo-400), var(--v-600));
    box-shadow: 0 8px 20px rgba(16, 185, 129, .25);
}
.apy-btn:active { transform: scale(.98); }
.apy-btn.ghost {
    flex: 0 0 34%;
    background: var(--c-surface);
    color: var(--gray-1);
    border: 1px solid var(--line);
    box-shadow: none;
}

/* ---------- 提交成功 / 进度 ---------- */
.apply-success { padding: 40px 16px; text-align: center; }
.apply-success .as-ico {
    width: 68px; height: 68px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--s-green-600), #4ade80);
    color: var(--c-surface); font-size: 34px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 26px rgba(22, 163, 74, .3);
    animation: rise .5s cubic-bezier(.34,1.56,.64,1);
}
.apply-success h2 { font-size: 20px; font-weight: 800; }
.apply-success p { font-size: 13px; color: var(--gray-2); line-height: 1.8; margin-top: 8px; }
.apply-success .as-no {
    margin: 18px auto 0;
    max-width: 320px;
    border: 1px dashed var(--purple-4);
    border-radius: 14px;
    padding: 14px;
    background: rgba(16, 185, 129, .05);
}
.apply-success .as-no .as-no-lab { font-size: 12px; color: var(--gray-2); }
.apply-success .as-no .as-no-val {
    font-size: 19px; font-weight: 800; color: var(--purple-2);
    letter-spacing: 1.5px; margin-top: 4px;
}
.as-btns { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }

/* 进度时间轴 */
.apy-track { text-align: left; margin-top: 18px; }
.apy-track-item {
    position: relative;
    padding: 0 0 16px 24px;
    border-left: 2px solid var(--n-200);
}
.apy-track-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.apy-track-item .at-dot {
    position: absolute;
    left: -7px; top: 2px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--n-300);
    border: 2px solid var(--c-surface);
}
.apy-track-item.on .at-dot { background: var(--purple-2); }
.apy-track-item.ok .at-dot { background: var(--s-green-600); }
.apy-track-item .at-t { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.apy-track-item .at-n { font-size: 12px; color: var(--gray-2); margin-top: 3px; line-height: 1.6; }
.apy-track-item .at-d { font-size: 11px; color: var(--gray-3); margin-top: 4px; }

/* 状态徽标 */
.apy-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.apy-status.pending { background: var(--s-amber-25); color: var(--s-orange-700); }
.apy-status.reviewing { background: var(--s-blue-50); color: var(--s-blue-700); }
.apy-status.supplement { background: var(--s-yellow-50); color: var(--s-yellow-700); }
.apy-status.interview { background: var(--v-50); color: var(--v-700); }
.apy-status.approved { background: var(--s-green-50); color: var(--s-green-700); }
.apy-status.rejected { background: var(--s-red-50); color: var(--s-red-700); }

/* ---------- 未开放 ---------- */
.apply-closed { padding: 60px 24px; text-align: center; color: var(--gray-2); }
.apply-closed .ac-ico { font-size: 46px; }
.apply-closed h2 { font-size: 18px; margin: 14px 0 8px; color: var(--ink); }
.apply-closed p { font-size: 13px; line-height: 1.8; }

@media (max-width: 360px) {
    .apy-row-3 { grid-template-columns: 1fr 1fr; }
    .abo-grid { grid-template-columns: 1fr; }
}

/* ---------- 「我的」页入驻入口 ---------- */
.apply-entry-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(120deg, var(--v-50), var(--s-indigo-50));
    border: 1px solid var(--s-indigo-100);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
    cursor: pointer;
}
.apply-entry-card .ae-left { display: flex; align-items: center; gap: 12px; }
.apply-entry-card .ae-ico {
    width: 38px; height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--indigo-400), var(--v-600));
    color: var(--c-surface);
    font-size: 19px;
    display: flex; align-items: center; justify-content: center;
}
.apply-entry-card b { display: block; font-size: 14.5px; color: var(--ink); }
.apply-entry-card p { font-size: 11.5px; color: var(--gray-2); margin-top: 3px; }
.apply-entry-card .ae-go { font-size: 20px; color: var(--purple-3); }

/* ---------- 协议正文 ---------- */
.apply-agreement-body {
    max-height: 46vh;
    overflow-y: auto;
    font-size: 12.5px;
    line-height: 1.9;
    color: var(--gray-1);
    background: var(--n-50);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
}
.apply-agreement-body h4 { font-size: 13px; color: var(--ink); margin: 10px 0 4px; }
.apply-agreement-body h4:first-child { margin-top: 0; }
.apply-agreement-body p { margin-bottom: 8px; }
