/* ============================================================
   前台会员注册页 · 照参考站 register 版式量取（2026-11-21）
   关键值全部来自参考站 register 页面与其样式表：
   卡片 1200 宽 / 渐变条 50 高 / label 150 宽 / 输入 300×40 / 按钮 300×44 #f85252
   右侧竖线区 343 宽（左右 padding 80）/ 60px 顶部间距
   原创标识: wangyanqifu-5285
   ============================================================ */

* { box-sizing: border-box; }

html, body.reg-page {
    margin: 0;
    padding: 0;
}

body.reg-page {
    min-height: 100vh;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #606266;
    background: #ffffff;
    background-image:
        radial-gradient(1000px 460px at 50% -160px, #e6efff 0%, rgba(230, 239, 255, 0) 72%),
        linear-gradient(180deg, #f6f8fb 0%, #fbfcfe 60%, #ffffff 100%);
    background-repeat: no-repeat;
    background-position: center top;
}

a { text-decoration: none; color: inherit; }

.reg-center {
    width: 1280px;
    margin: 0 auto;
    padding-bottom: 30px;
}

/* ---------- 顶部：Logo + 返回 ---------- */
.reg-top {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reg-logo {
    padding-left: 30px;
    line-height: 100px;
}

.reg-logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.reg-logo img {
    display: inline-block;
    vertical-align: middle;
    max-width: 260px;
    max-height: 70px;
    /* logo 多为白底 png，浅色背景上用 multiply 去掉白块 */
    mix-blend-mode: multiply;
}

.reg-logo-tx {
    display: none;
    font-size: 22px;
    font-weight: 700;
    color: #1f2d3d;
    letter-spacing: .5px;
}

.reg-logo.is-tx .reg-logo-tx { display: inline-block; }

.reg-back {
    padding-right: 24px;
    font-size: 14px;
    color: #666666;
}

.reg-back a:hover { color: #3c7ee5; }

/* ---------- 白卡 ---------- */
.reg-box {
    background: #ffffff;
    box-shadow: 0 2px 12px 0 rgba(182, 192, 219, .2);
    padding-bottom: 16px;
}

/* 顶部渐变条（参考站 270deg #4eb8ff → #3c7ee5，50px 高） */
.reg-band {
    height: 50px;
    padding-left: 30px;
    background: linear-gradient(270deg, #4eb8ff 0%, #3c7ee5 100%);
    display: flex;
    align-items: center;
}

.reg-band h3 {
    margin: 0 10px 0 0;
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    line-height: 50px;
    display: inline-block;
}

.reg-band span {
    font-size: 12px;
    color: #ffffff;
    display: inline-block;
}

/* ---------- 主体两栏 ---------- */
.reg-body {
    padding: 60px 0 30px;
    overflow: hidden;
}

.reg-form {
    float: left;
    width: calc(100% - 343px);
    padding-left: 30px;
}

.reg-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.reg-item > label {
    width: 150px;
    flex: 0 0 150px;
    padding-right: 12px;
    line-height: 40px;
    text-align: right;
    font-size: 14px;
    color: #606266;
}

.reg-ctl {
    width: 450px;
    max-width: 100%;
}

.reg-input {
    width: 300px;
    max-width: 100%;
    height: 40px;
    line-height: 40px;
    padding: 0 12px;
    font-size: 14px;
    color: #303133;
    background: #ffffff;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    outline: none;
    transition: border-color .15s;
    font-family: inherit;
}

.reg-input::placeholder { color: #c0c4cc; }

.reg-input:focus { border-color: #3c7ee5; }

.reg-input--code { width: 130px; }

.reg-code-btn {
    width: 95px;
    height: 40px;
    margin-left: 10px;
    padding: 0;
    font-size: 13px;
    color: #ffffff;
    background: #3c7ee5;
    border: 1px solid #3c7ee5;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    vertical-align: top;
}

.reg-code-btn:hover:not(:disabled) { background: #2f6fd0; border-color: #2f6fd0; }

.reg-code-btn:disabled { cursor: default; color: #ffffff; background: #b9c8dd; border-color: #b9c8dd; }

.reg-tip {
    margin-top: 6px;
    font-size: 12px;
    color: #e6a23c;
    line-height: 1.6;
}

/* 条款行 */
.reg-item--agree { margin-top: 4px; }

.reg-agree {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #606266;
    cursor: pointer;
    vertical-align: middle;
}

.reg-agree input { width: 14px; height: 14px; margin: 0; cursor: pointer; accent-color: #3c7ee5; }

.reg-link { color: #3c7ee5; }

.reg-link:hover { text-decoration: underline; }

/* 立即注册按钮（参考站 300×44，主色实心，未勾选条款时转灰） */
.reg-item--btn { margin-top: 10px; }

.reg-submit {
    display: block;
    width: 300px;
    max-width: 100%;
    height: 44px;
    line-height: 44px;
    padding: 0;
    text-align: center;
    font-size: 16px;
    color: #ffffff;
    background: #3c7ee5;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}

.reg-submit:hover:not(:disabled) { background: #2f6fd0; }

.reg-submit.disabled,
.reg-submit:disabled {
    background: #dddddd;
    color: #ffffff;
    cursor: not-allowed;
}

.reg-err {
    margin-top: 10px;
    min-height: 18px;
    font-size: 13px;
    color: #f56c6c;
    line-height: 1.6;
}

.reg-msg {
    width: 450px;
    max-width: 100%;
    margin: 0 0 20px 150px;
    padding: 9px 12px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
}

.reg-msg--err { background: #fef0f0; color: #f56c6c; border: 1px solid #fde2e2; }

.reg-msg--note { background: #ecf5ff; color: #3c7ee5; border: 1px solid #d9ecff; }

/* ---------- 右侧：已有账号（343 宽 + 左侧 1px 分隔线） ---------- */
.reg-side {
    float: right;
    width: 343px;
    min-height: 316px;
    padding: 0 80px;
    border-left: 1px solid #dfe3f1;
}

.reg-side-t {
    font-size: 16px;
    color: #666666;
    line-height: 21px;
    margin-bottom: 56px;
}

.reg-side-tel {
    font-size: 13px;
    color: #909399;
    line-height: 1.8;
}

.reg-side-tel b { color: #3c7ee5; font-weight: 600; }

/* ---------- 右侧：第三方账号登录（照参考站 register 的微信圆按钮） ---------- */
.reg-side-third { margin-bottom: 26px; }
.reg-side-third-t { font-size: 13px; color: #909399; line-height: 1.8; margin-bottom: 16px; }
.reg-wx {
    width: 62px;
    height: 62px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #39b54a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .18s;
}
.reg-wx:hover { background: #2fa63f; }
.reg-wx.is-off { background: #c8d0dc; cursor: not-allowed; }
.reg-wx.is-off:hover { background: #c8d0dc; }
.reg-side-third-hint { margin-top: 10px; font-size: 12px; color: #9aa4b2; line-height: 1.6; }

/* ---------- 底部 ---------- */
.reg-foot-links { font-size: 12px; line-height: 2; }
.reg-foot-links a { color: #9aa4b2; text-decoration: none; }
.reg-foot-links a:hover { color: #3c7ee5; }
.reg-foot-links i { font-style: normal; margin: 0 9px; color: #d5dae3; }
.reg-foot-links span { color: #9aa4b2; }
.reg-foot-info,
.reg-foot-rec,
.reg-foot-copy { margin: 6px 0 0; font-size: 12px; line-height: 1.9; color: #9aa4b2; }
.reg-foot-rec a,
.reg-foot-rec span { color: #9aa4b2; text-decoration: none; margin: 0 7px; }
.reg-foot-rec a:hover { color: #3c7ee5; }

/* ---------- 底部 ---------- */
.reg-foot {
    padding: 20px 0 10px;
    text-align: center;
    font-size: 12px;
    color: #9aa4b2;
}

.reg-foot-sep { margin: 0 8px; color: #d5dae3; }

/* ---------- 图形验证码弹层 ---------- */
.reg-mask {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 24, 40, .45);
}

.reg-mask[hidden] { display: none; }

.reg-modal {
    width: 380px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .22);
    overflow: hidden;
}

.reg-modal-t {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2d3d;
    border-bottom: 1px solid #eef1f6;
}

.reg-modal-b {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
}

.reg-modal-b .reg-input { width: 170px; flex: 0 0 170px; }

.reg-cap {
    flex: 1 1 auto;
    height: 40px;
    padding: 0 8px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #f7f9fc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 12px;
    color: #909399;
}

.reg-cap svg { max-height: 36px; height: 36px; width: auto; }

.reg-cap.is-loading { color: #b8c0cc; }

.reg-modal-f {
    padding: 0 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.reg-modal-cancel,
.reg-modal-ok {
    height: 34px;
    min-width: 76px;
    padding: 0 16px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}

.reg-modal-cancel {
    color: #606266;
    background: #ffffff;
    border: 1px solid #dcdfe6;
}

.reg-modal-ok {
    color: #ffffff;
    background: #3c7ee5;
    border: 1px solid #3c7ee5;
}

.reg-modal-ok:hover { background: #2f6fd0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
    .reg-center { width: 100%; padding: 0 20px 30px; }
}

@media (max-width: 980px) {
    .reg-form { float: none; width: 100%; padding-left: 0; }
    .reg-side {
        float: none;
        width: 100%;
        min-height: 0;
        padding: 24px 0 0;
        border-left: 0;
        border-top: 1px solid #dfe3f1;
        margin-top: 10px;
    }
    .reg-side-t { margin-bottom: 12px; }
    .reg-item > label { width: 96px; flex: 0 0 96px; }
    .reg-msg { margin-left: 96px; }
}

@media (max-width: 560px) {
    .reg-band { padding-left: 16px; }
    .reg-band h3 { font-size: 17px; }
    .reg-body { padding: 30px 16px 20px; }
    .reg-item { display: block; margin-bottom: 16px; }
    .reg-item > label { display: block; width: auto; text-align: left; line-height: 30px; padding-right: 0; }
    .reg-ctl { width: 100%; }
    .reg-input, .reg-input--code { width: 100%; }
    .reg-code-btn { width: 108px; margin-left: 0; margin-top: 8px; }
    .reg-submit { width: 100%; }
    .reg-msg { margin-left: 0; width: 100%; }
    .reg-top { height: 72px; }
    .reg-logo { padding-left: 0; line-height: 72px; }
    .reg-back { padding-right: 0; }
}

/* ---------- 夜晚模式 ---------- */
html[data-theme="dark"] body.reg-page {
    background-color: #0f141b;
    background-image:
        radial-gradient(1000px 460px at 50% -160px, #17222f 0%, rgba(23, 34, 47, 0) 72%),
        linear-gradient(180deg, #101721 0%, #0f141b 100%);
    color: #c9d3de;
}

/* 2026-11-22 夜晚：logo 源图自带白底，深色页面上会是一块突兀的白方。
   不去改业主的图片资源，改成「白底小卡片」——白块变成有意为之的徽标底板。 */
html[data-theme="dark"] .reg-logo img {
    mix-blend-mode: normal;
    background: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] .reg-logo-tx { color: #e8eef6; }
html[data-theme="dark"] .reg-back { color: #9fb0c4; }
html[data-theme="dark"] .reg-box { background: #151c25; box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .45); }
html[data-theme="dark"] .reg-band { background: linear-gradient(270deg, #2e7fb8 0%, #2757a8 100%); }
html[data-theme="dark"] .reg-item > label { color: #b9c5d3; }
html[data-theme="dark"] .reg-input {
    background: #1b232e;
    border-color: #2c3846;
    color: #e8eef6;
}
html[data-theme="dark"] .reg-input::placeholder { color: #64748b; }
html[data-theme="dark"] .reg-input:focus { border-color: #58abe8; }
html[data-theme="dark"] .reg-code-btn { background: #1b232e; border-color: #2c3846; color: #b9c5d3; }
html[data-theme="dark"] .reg-agree { color: #b9c5d3; }
html[data-theme="dark"] .reg-link { color: #7ab4fa; }
html[data-theme="dark"] .reg-submit { background: #2d7fd4; }
html[data-theme="dark"] .reg-submit.disabled,
html[data-theme="dark"] .reg-submit:disabled { background: #2c3846; color: #7d8b9c; }
html[data-theme="dark"] .reg-side { border-left-color: #24303d; }
html[data-theme="dark"] .reg-side-t { color: #b9c5d3; }
html[data-theme="dark"] .reg-side-tel { color: #8a99ab; }
html[data-theme="dark"] .reg-foot { color: #73808f; }
html[data-theme="dark"] .reg-side-third-t,
html[data-theme="dark"] .reg-side-third-hint,
html[data-theme="dark"] .reg-foot-links a,
html[data-theme="dark"] .reg-foot-info,
html[data-theme="dark"] .reg-foot-rec a,
html[data-theme="dark"] .reg-foot-rec span,
html[data-theme="dark"] .reg-foot-copy { color: #73808f; }
html[data-theme="dark"] .reg-wx.is-off,
html[data-theme="dark"] .reg-wx.is-off:hover { background: #33404f; }
html[data-theme="dark"] .reg-modal { background: #151c25; }
html[data-theme="dark"] .reg-modal-t { color: #e8eef6; border-bottom-color: #24303d; }
html[data-theme="dark"] .reg-cap { background: #1b232e; border-color: #2c3846; }
html[data-theme="dark"] .reg-modal-cancel { background: #1b232e; border-color: #2c3846; color: #b9c5d3; }
html[data-theme="dark"] .reg-msg--err { background: #3a1d1f; color: #ff9b9b; border-color: #4d2426; }
html[data-theme="dark"] .reg-msg--note { background: #16283f; color: #7ab4fa; border-color: #1f3a58; }
html[data-theme="dark"] .reg-err { color: #ff9b9b; }
