/* ══════════ 前台 H5 样式（还原设计稿：深蓝主视觉） ══════════ */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #fff;
    background: #06174d url("../img/index-bg.jpg") center top / cover no-repeat fixed;
    min-height: 100vh;
}
/* 非注册屏（等待/二维码/驳回）：改用 bg.jpg 铺满整个视口，避免受 .screen 列宽限制出现双背景 */
body.bg-plain { background-image: url("../img/bg.jpg"); background-position: center bottom; }
.hidden { display: none !important; }

.screen { max-width: 540px; margin: 0 auto; padding: 0 14px; }
.screen-center {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
}

/* ── 注册页头部 ── */
.reg-wrap { padding: 34px 0 60px; }
.reg-header { text-align: center; margin-bottom: 22px; }
.reg-title { font-size: 25px; font-weight: 700; letter-spacing: 1px; text-shadow: 0 2px 8px rgba(0,10,60,.5); }
.reg-title-en { font-size: 12px; margin-top: 6px; letter-spacing: .5px; opacity: .95; }
.reg-meta { font-size: 12px; margin-top: 8px; opacity: .8; }
.login-entry {
    display: inline-block; margin-top: 14px; font-size: 14px; color: #cfe0ff;
    text-decoration: underline; letter-spacing: 1px;
}

/* ── 问题卡片 ── */
.q-card {
    background: linear-gradient(180deg, rgba(38, 74, 168, .55), rgba(20, 45, 120, .55));
    border: 1px solid rgba(140, 170, 255, .25);
    border-radius: 12px;
    padding: 16px 14px;
    margin-bottom: 14px;
    backdrop-filter: blur(2px);
}
.q-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.q-title .q-en {
    display: block; font-size: 12px; font-weight: 400;
    color: #9db4e8; margin-top: 3px; font-style: italic;
}

/* ── 选项（圆点样式，radio.png / radio-on.png） ── */
.opt { display: flex; align-items: center; padding: 9px 0; cursor: pointer; }
.opt .radio {
    width: 19px; height: 19px; flex: 0 0 19px; margin-right: 10px;
    background: url("../img/radio.png") center / contain no-repeat;
}
.opt .radio.on { background-image: url("../img/radio-on.png"); }
.opt-text { font-size: 14.5px; line-height: 1.4; }
.opt-last { margin-bottom: 4px; }

/* ── 其他-输入框 ── */
.other-input { padding: 4px 0 2px 29px; }
.other-input input {
    width: 100%; max-width: 250px; height: 36px; border: none; border-radius: 4px;
    background: #fff; color: #1a2a5e; font-size: 14px; padding: 0 10px; outline: none;
}

/* ── 填空输入框 ── */
.text-input {
    display: block; width: 100%; height: 44px; border: none; border-radius: 6px;
    background: #fff; color: #1a2a5e; font-size: 15px; padding: 0 12px; outline: none;
    margin-top: 10px;
}
.text-input::placeholder { color: #9aa7c7; }

/* ── 提交按钮 ── */
.submit-btn {
    display: block; width: 62%; max-width: 300px; margin: 26px auto 0;
    height: 52px; border: none; border-radius: 26px;
    background: #fff; color: #14357e; font-size: 20px; font-weight: 700; letter-spacing: 8px;
    cursor: pointer; box-shadow: 0 6px 18px rgba(0, 10, 50, .35);
    transition: opacity .2s, transform .1s;
}
.submit-btn:active { transform: scale(.98); }
.submit-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ── 审核等待页 ── */
.center-box { text-align: center; padding: 0 24px; }
.mail-icon { width: 80px; margin-bottom: 34px; }
.center-title { font-size: 25px; line-height: 1.55; font-weight: 700; }
.center-en {
    margin-top: 18px; font-size: 18px; line-height: 1.55; color: #5f7bbf; font-weight: 700;
}

/* ── 二维码页 ── */
.qr-wrap { padding: 46px 0; text-align: center; min-height: 100vh; }
.qr-logo { display: block; width: 204px; max-width: 60%; height: auto; margin: 0 auto 32px; }
.qr-header { margin-bottom: 40px; }
/* 气泡框：直接用素材 code-bg.png（315x347，含底部尖角），按原始宽高比锁定，避免被内容撑扁 */
.qr-bubble {
    position: relative;
    display: inline-block;
    width: 42%; min-width: 150px; max-width: 220px;
    aspect-ratio: 315 / 347;
    background: url("../img/code-bg.png") center / 100% 100% no-repeat;
}
/* 白色二维码卡绝对定位，居中于框体上半开口内（避开底部尖角） */
.qr-card {
    position: absolute; left: 50%; top: 43.5%;
    transform: translate(-50%, -50%);
    width: 80%;
}
#qr-img { display: block; width: 100%; height: auto; background: #fff; border-radius: 8px; }
.qr-tips { margin-top: 14px; }
.qr-tips .center-title { font-size: 17px; }
.qr-en { font-size: 15px; color: #7f96d4; }

/* ── 弹层 / 对话框（vant 风格） ── */
.mask {
    position: fixed; inset: 0; background: rgba(0, 8, 40, .6);
    display: flex; align-items: center; justify-content: center; z-index: 99;
}
.dialog {
    width: 86%; max-width: 360px; background: #fff; color: #333;
    border-radius: 14px; padding: 24px 20px 0; overflow: hidden;
}
.dialog-title { font-size: 17px; text-align: center; color: #14245c; }
.dialog-sub { font-size: 13px; color: #8a94b5; text-align: center; margin: 8px 0 4px; }
.dialog .text-input { background: #f4f6fb; color: #333; margin-top: 14px; height: 42px; }
.dialog-btns { display: flex; margin-top: 22px; border-top: 1px solid #eee; }
.dlg-btn {
    flex: 1; height: 48px; border: none; background: none; font-size: 16px; cursor: pointer;
}
.dlg-cancel { color: #8a94b5; border-right: 1px solid #eee; }
.dlg-ok { color: #1f56d6; font-weight: 700; }
.dlg-btn[disabled] { opacity: .5; }

/* ── Toast ── */
.toast {
    position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, .78); color: #fff; font-size: 14px;
    padding: 11px 18px; border-radius: 8px; max-width: 78vw;
    text-align: center; line-height: 1.5; z-index: 200;
}
