@charset "utf-8";
/* ============================================================
   上海立信会计金融学院 继续教育学院 · 网宝预报名
   移动优先 UI 设计系统  wb-ui.css
   —— 覆盖老 bootstrap / table 布局，所有前台报名页共用
   ============================================================ */

:root {
    --wb-primary: #1a73e8;
    --wb-primary-d: #0d47a1;
    --wb-grad: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    --wb-bg: #eef2f8;
    --wb-card: #ffffff;
    --wb-line: #e5ecf6;
    --wb-text: #1e2837;
    --wb-sub: #6b7a90;
    --wb-danger: #e53935;
    --wb-ok: #0f9d58;
    --wb-warn: #f59e0b;
    --wb-r: 16px;
    --wb-shadow: 0 8px 28px rgba(16, 42, 89, .09);
    --wb-shadow-s: 0 2px 10px rgba(16, 42, 89, .06);
}

* { -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body.wb-ui,
body.wb-ui.bodyBG {
    background: var(--wb-bg) !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "微软雅黑", Arial, sans-serif !important;
    color: var(--wb-text);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------- 顶部标题栏 ---------- */
.wb-top {
    background: var(--wb-grad);
    color: #fff;
    padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px 22px;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 6px 22px rgba(13, 71, 161, .28);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}
.wb-top::after {
    content: "";
    position: absolute;
    right: -46px; top: -66px;
    width: 168px; height: 168px;
    background: rgba(255, 255, 255, .09);
    border-radius: 50%;
}
.wb-top__logo {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
    padding: 3px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
    flex: 0 0 auto;
}
.wb-top__box { flex: 1 1 auto; min-width: 0; position: relative; z-index: 1; }
.wb-top__title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1.3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wb-top__sub {
    font-size: 11.5px;
    opacity: .84;
    margin-top: 2px;
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wb-top__link {
    flex: 0 0 auto;
    color: #fff !important;
    font-size: 13px;
    text-decoration: none !important;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
    padding: 7px 13px;
    border-radius: 999px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    transition: background .18s;
}
.wb-top__link:active { background: rgba(255, 255, 255, .3); }

/* ---------- 页面容器 ---------- */
.wb-page {
    max-width: 660px;
    margin: 0 auto;
    padding: 16px 14px calc(env(safe-area-inset-bottom, 0px) + 28px);
    box-sizing: border-box;
}

/* ---------- 卡片 ---------- */
.wb-card {
    background: var(--wb-card);
    border-radius: var(--wb-r);
    box-shadow: var(--wb-shadow-s);
    padding: 6px 16px 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(229, 236, 246, .9);
    box-sizing: border-box;
}
.wb-card--flat { box-shadow: none; }

/* ---------- 分组标题 ---------- */
.wb-sec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--wb-primary-d);
    padding: 16px 0 10px;
    letter-spacing: .5px;
}
.wb-sec::before {
    content: "";
    width: 4px; height: 15px;
    border-radius: 3px;
    background: var(--wb-grad);
    flex: 0 0 auto;
}
.wb-sec__hint {
    margin-left: auto;
    font-size: 12px;
    font-weight: 400;
    color: var(--wb-sub);
    letter-spacing: 0;
}

/* ---------- 表单字段 ---------- */
.wb-field { margin-bottom: 14px; }
.wb-field:last-child { margin-bottom: 0; }

.wb-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #3a4759;
    margin-bottom: 7px;
    line-height: 1.4;
}
.wb-label .req { color: var(--wb-danger); margin-right: 3px; font-weight: 700; }
.wb-label .wb-label__opt { color: var(--wb-sub); font-weight: 400; font-size: 12px; }

.wb-input,
.wb-select,
.wb-ui input[type="text"].wb-input,
.wb-ui input[type="password"],
.wb-ui input[type="tel"],
.wb-ui textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    height: 50px;
    padding: 0 15px;
    font-size: 16px !important; /* iOS 聚焦不缩放 */
    font-family: inherit;
    color: var(--wb-text);
    background: #f7f9fc;
    border: 1.5px solid #e3e9f2;
    border-radius: 12px;
    outline: none;
    transition: border-color .18s, background .18s, box-shadow .18s;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.4;
}
.wb-ui textarea { height: auto; min-height: 96px; padding: 12px 15px; resize: vertical; }

.wb-input::placeholder,
.wb-ui input::placeholder { color: #a8b4c6; }

.wb-input:focus,
.wb-select:focus,
.wb-ui input[type="text"]:focus,
.wb-ui input[type="password"]:focus,
.wb-ui input[type="tel"]:focus,
.wb-ui textarea:focus {
    border-color: var(--wb-primary);
    background: #fff;
    box-shadow: 0 0 0 3.5px rgba(26, 115, 232, .13);
}

.wb-select {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7a90' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 42px;
    cursor: pointer;
}
.wb-select:disabled { color: #a8b4c6; background-color: #f2f4f8; cursor: not-allowed; }

/* 只读展示值 */
.wb-static {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 15px;
    background: #f2f5fa;
    border: 1.5px dashed #dde5f0;
    border-radius: 12px;
    color: #46536b;
    font-size: 15px;
    font-weight: 600;
    box-sizing: border-box;
}

.wb-tip {
    font-size: 12.5px;
    color: var(--wb-sub);
    margin-top: 6px;
    line-height: 1.5;
}

/* ---------- 验证码行 ---------- */
.wb-code-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.wb-code-row .wb-input { flex: 1 1 auto; min-width: 0; }
.wb-code-btn {
    flex: 0 0 auto;
    min-width: 106px;
    height: 50px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1.5px solid #c9dcf8;
    background: #eaf2fe;
    color: var(--wb-primary-d) !important;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s, transform .1s;
    -webkit-appearance: none;
    appearance: none;
}
.wb-code-btn:active { transform: scale(.97); background: #dbe9fd; }
.wb-code-btn:disabled,
.wb-code-btn[disabled] {
    background: #f2f4f8 !important;
    border-color: #e3e9f2 !important;
    color: #9aa7ba !important;
    cursor: not-allowed;
}

/* ---------- 按钮 ---------- */
.wb-btn {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
    min-height: 50px;
    padding: 13px 20px;
    border: none;
    border-radius: 13px;
    background: var(--wb-grad);
    color: #fff !important;
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-family: inherit;
    text-align: center;
    line-height: 1.5;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(26, 115, 232, .3);
    transition: transform .1s, box-shadow .18s, opacity .18s;
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none !important;
}
a.wb-btn { display: block; }
.wb-btn:active { transform: scale(.985); box-shadow: 0 4px 12px rgba(26, 115, 232, .3); }
.wb-btn:disabled,
.wb-btn[disabled] { opacity: .55; box-shadow: none; cursor: not-allowed; }

.wb-btn--ghost {
    background: #fff !important;
    color: var(--wb-primary-d) !important;
    border: 1.5px solid #cfdff5;
    box-shadow: none;
}
.wb-btn--ghost:active { background: #f4f8fe !important; }

.wb-btn--sm { min-height: 42px; font-size: 14.5px; letter-spacing: .5px; border-radius: 11px; }

.wb-actions { margin-top: 20px; }
.wb-actions .wb-btn + .wb-btn { margin-top: 10px; }

/* 底部固定操作条 */
.wb-footer-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 0 -14px calc(env(safe-area-inset-bottom, 0px) * -1);
    padding: 12px 14px calc(env(safe-area-inset-bottom, 0px) + 12px);
    background: linear-gradient(to top, rgba(238, 242, 248, .98) 62%, rgba(238, 242, 248, 0));
    backdrop-filter: blur(3px);
}

/* ---------- 信息确认表（key-value） ---------- */
.wb-kv {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--wb-line);
    background: #fbfcfe;
}
.wb-kv__k {
    padding: 13px 14px;
    font-size: 13.5px;
    color: var(--wb-sub);
    background: #f4f7fc;
    border-bottom: 1px solid var(--wb-line);
    white-space: nowrap;
    font-weight: 500;
}
.wb-kv__v {
    padding: 13px 14px;
    font-size: 14.5px;
    color: var(--wb-text);
    font-weight: 600;
    border-bottom: 1px solid var(--wb-line);
    word-break: break-all;
    min-width: 0;
}
.wb-kv__k:last-of-type,
.wb-kv__v:last-of-type { border-bottom: none; }
.wb-kv__v--accent { color: var(--wb-primary-d); }

/* ---------- 提示块 ---------- */
.wb-note {
    display: flex;
    gap: 9px;
    background: #eef6ff;
    border: 1px solid #d6e7fc;
    border-left: 3px solid var(--wb-primary);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.65;
    color: #3b5a80;
    margin-bottom: 14px;
}
.wb-note--warn { background: #fff8ec; border-color: #fce4b8; border-left-color: var(--wb-warn); color: #8a6116; }
.wb-note__icon { flex: 0 0 auto; font-size: 15px; line-height: 1.5; }

.wb-alert {
    background: #fff3f2;
    border: 1px solid #ffd7d3;
    border-left: 3px solid var(--wb-danger);
    color: #a5342f;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13.5px;
    margin-bottom: 14px;
    line-height: 1.6;
}

/* ---------- 老师名片 ---------- */
.wb-teacher {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #eaf3ff 0%, #f5f9ff 100%);
    border: 1px solid #d9e8fd;
    border-radius: 13px;
    padding: 13px 15px;
    margin-top: 4px;
}
.wb-teacher__avatar {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--wb-grad);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700;
}
.wb-teacher__box { min-width: 0; flex: 1 1 auto; }
.wb-teacher__name { font-size: 14.5px; font-weight: 700; color: var(--wb-primary-d); }
.wb-teacher__tel {
    font-size: 13.5px;
    color: #4a6285;
    margin-top: 1px;
    text-decoration: none !important;
}
.wb-teacher__tel b { font-size: 15px; letter-spacing: .4px; color: #1a4d8f; }

/* ---------- 成功页 ---------- */
.wb-done { text-align: center; padding: 8px 4px 0; }
.wb-done__icon {
    width: 74px; height: 74px;
    margin: 4px auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #0f9d58 100%);
    box-shadow: 0 10px 24px rgba(15, 157, 88, .3);
    display: flex; align-items: center; justify-content: center;
}
.wb-done__icon svg { width: 38px; height: 38px; }
.wb-done__title {
    font-size: 21px;
    font-weight: 700;
    color: var(--wb-text);
    letter-spacing: 1px;
    margin: 0 0 10px;
}
.wb-done__text {
    font-size: 14px;
    line-height: 1.85;
    color: #4a5768;
    text-align: justify;
    margin: 0 0 14px;
}
.wb-done__qr {
    display: block;
    width: 132px; height: 132px;
    margin: 6px auto 8px;
    border-radius: 12px;
    border: 1px solid var(--wb-line);
    padding: 4px;
    background: #fff;
    object-fit: contain;
}
.wb-done__qrcap { font-size: 12.5px; color: var(--wb-sub); margin-bottom: 4px; }

/* ---------- 进度条 ---------- */
.wb-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 4px 14px;
    font-size: 12px;
    color: var(--wb-sub);
}
.wb-steps__item { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.wb-steps__dot {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #dfe7f2;
    color: #8c9bb0;
    font-size: 11px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
}
.wb-steps__item.is-on .wb-steps__dot { background: var(--wb-grad); color: #fff; }
.wb-steps__item.is-on { color: var(--wb-primary-d); font-weight: 600; }
.wb-steps__line { width: 16px; height: 2px; background: #dfe7f2; border-radius: 2px; }

/* ---------- 老结构兜底 ---------- */
.wb-ui .container { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
.wb-ui .row { margin: 0 !important; }
.wb-ui table { max-width: 100%; }
.wb-ui .formCard { padding: 4px 16px 16px !important; max-width: 660px !important; margin: 0 auto 14px !important; }
.wb-ui .formCard table,
.wb-ui .formCard tbody,
.wb-ui .formCard tr,
.wb-ui .formCard td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
}
.wb-ui .formCard td { padding: 0 !important; border: none !important; }
.wb-ui hr { display: none !important; }
.wb-ui .STYLE47,
.wb-ui .STYLE45,
.wb-ui .STYLE46,
.wb-ui .STYLE50,
.wb-ui .STYLE51 { font-size: inherit !important; }
.wb-ui font[size="5"] { font-size: inherit !important; }

/* 隐藏老装饰性图片与空 div */
.wb-ui .divNav2bg { display: none !important; }

/* ---------- 平板/桌面增强 ---------- */
@media (min-width: 620px) {
    .wb-page { padding: 24px 20px 34px; }
    .wb-top { padding: 24px 28px 26px; border-radius: 0 0 26px 26px; }
    .wb-top__title { font-size: 21px; }
    .wb-card { padding: 8px 22px 20px; }
}

/* ---------- 子导航（推荐人端） ---------- */
.wb-subnav {
    display: flex;
    gap: 8px;
    padding: 14px 0 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.wb-subnav::-webkit-scrollbar { display: none; }
.wb-subnav a {
    flex: 0 0 auto;
    padding: 8px 15px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--wb-line);
    color: #4a5b72 !important;
    font-size: 13px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all .18s;
}
.wb-subnav a.is-on {
    background: var(--wb-grad);
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(26, 115, 232, .25);
}

/* ---------- 二维码 ---------- */
.wb-qr { text-align: center; padding: 8px 0 2px; }
.wb-qr img {
    width: 196px; height: 196px;
    border-radius: 12px;
    border: 1px solid var(--wb-line);
    padding: 6px;
    background: #fff;
    box-shadow: var(--wb-shadow-s);
    image-rendering: pixelated;
}

/* ---------- 链接展示框 ---------- */
.wb-link-box {
    background: #f4f7fc;
    border: 1px solid var(--wb-line);
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 12.5px;
    line-height: 1.65;
    color: #53617a;
    word-break: break-all;
    font-family: ui-monospace, Menlo, Consolas, "Courier New", monospace;
}

/* ---------- 数据列表 ---------- */
.wb-list__item { padding: 13px 0; border-bottom: 1px solid var(--wb-line); }
.wb-list__item:last-child { border-bottom: none; }
.wb-list__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 6px;
}
.wb-list__name { font-size: 15px; font-weight: 700; color: var(--wb-text); }
.wb-list__tag {
    font-size: 11.5px; padding: 2px 9px; border-radius: 999px;
    background: #eaf2fe; color: #1a5bb8; font-weight: 600; white-space: nowrap;
}
.wb-list__row { display: flex; gap: 10px; font-size: 13px; color: var(--wb-sub); margin-top: 3px; }
.wb-list__row b { color: #33415a; font-weight: 600; word-break: break-all; }
.wb-empty { text-align: center; color: var(--wb-sub); font-size: 13.5px; padding: 34px 0; }

/* ---------- 表格兜底（移动端转卡片，不溢出） ---------- */
@media (max-width: 560px) {
    .wb-ui .table { font-size: 13px; }
    .wb-ui .table > tbody > tr > td,
    .wb-ui .table > tbody > tr > th { padding: 9px 8px; }
}

/* ---------- 对齐兜底：老页面外层常见 <td align="center"> 会污染内容 ---------- */
.wb-ui .wb-card,
.wb-ui .wb-field,
.wb-ui .wb-note,
.wb-ui .wb-alert,
.wb-ui .wb-teacher,
.wb-ui .wb-list__item,
.wb-ui .wb-kv__k,
.wb-ui .wb-kv__v {
    text-align: left;
}
.wb-ui .wb-label,
.wb-ui .wb-tip,
.wb-ui .wb-input,
.wb-ui .wb-select {
    text-align: left !important;
}

/* 操作区：不在 .wb-page 内时补左右留白（老模板直出 form 的情况） */
.wb-ui .wb-actions {
    max-width: 660px;
    margin: 20px auto 0;
    padding: 0 14px;
    box-sizing: border-box;
}
.wb-page .wb-actions,
.wb-card .wb-actions {
    max-width: none;
    margin: 18px 0 0;
    padding: 0;
}

/* 成功页/落地页的居中块豁免 */
.wb-ui .wb-done,
.wb-ui .wb-done__qrcap { text-align: center; }

/* ---------- 桌面端：卡片/提示统一限宽居中（老模板无 max-width，会拉满整屏） ---------- */
.wb-ui .wb-card,
.wb-ui .wb-note,
.wb-ui .wb-alert {
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- 二维码缺失时的文字兜底 ---------- */
.wb-qr-fallback {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 168px;
    margin: 10px auto 4px;
    padding: 18px 12px;
    border-radius: 12px;
    border: 1px dashed #cfdff5;
    background: #f7faff;
    color: #43536b;
    font-size: 12.5px;
    line-height: 1.6;
}
.wb-qr-fallback b { font-size: 15px; color: var(--wb-primary-d); letter-spacing: .5px; }

/* 桌面端操作区与卡片同宽对齐 */
@media (min-width: 620px) {
    .wb-ui .wb-actions { padding: 0; }
}

/* ---------- 超窄屏（320~359）：收紧顶部与验证码按钮 ---------- */
@media (max-width: 359px) {
    .wb-top { padding: 15px 12px 17px; gap: 9px; }
    .wb-top__logo { width: 36px; height: 36px; }
    .wb-top__title { font-size: 16px; letter-spacing: 0; }
    .wb-top__sub { font-size: 11px; }
    .wb-top__link { padding: 6px 10px; font-size: 12px; }
    .wb-code-btn { min-width: 90px; padding: 0 9px; font-size: 12.5px; }
    .wb-page { padding: 14px 10px 24px; }
    .wb-card { padding: 4px 13px 14px; }
}
