        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }
        html, body {
            font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
            background: #f3f4f6;
            color: #333;
            font-size: 14px;
            line-height: 1.6;
        }
        html, body { height: 100%; }
        a { text-decoration: none; color: inherit; }

        .app-wrap {
            position: relative;
            width: 100%;
            max-width: 480px;
            min-height: 100vh;
            margin: 0 auto;
            background: #fff;
            padding: 24px 22px 30px;
        }

        /* 桌面端（含平板横屏）：卡片水平居中、垂直方向位于视窗上 1/3 偏上的位置，
           背景使用品牌色柔和渐变。注册项较多，超过视窗高度时也能正常滚动。 */
        @media (min-width: 768px) {
            body {
                min-height: 100vh;
                display: flex;
                flex-direction: column;
                align-items: center;
                padding: clamp(32px, 6vh, 80px) 24px 32px;
                background:
                    radial-gradient(1200px 600px at 12% -10%, rgba(255, 120, 117, 0.18), transparent 60%),
                    radial-gradient(900px 500px at 110% 110%, rgba(255, 77, 79, 0.16), transparent 60%),
                    linear-gradient(135deg, #f6f7fb 0%, #eceff5 100%);
            }
            .app-wrap {
                width: 440px;
                max-width: 100%;
                min-height: auto;
                margin: 0;
                padding: 34px 36px 30px;
                border-radius: 14px;
                background: #fff;
                box-shadow:
                    0 18px 40px rgba(40, 50, 80, 0.12),
                    0 4px 12px rgba(40, 50, 80, 0.06);
            }
        }
        @media (min-width: 768px) and (min-height: 760px) {
            .app-wrap { padding: 40px 40px 34px; }
        }

        .reg-head { margin-bottom: 22px; }
        .reg-head h1 {
            font-size: 22px;
            font-weight: 800;
            color: #222;
            line-height: 1.3;
        }
        .reg-head .tip {
            margin-top: 6px;
            font-size: 14px;
            color: #888;
        }
        .reg-head .tip a {
            color: #1890ff;
            margin-left: 6px;
        }

        .reg-field {
            position: relative;
            margin-bottom: 14px;
        }
        .reg-field .ico {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
            font-size: 16px;
        }
        .reg-field input {
            width: 100%;
            height: 50px;
            padding: 0 16px 0 42px;
            border: 1px solid #d9d9d9;
            border-radius: 8px;
            background: #fff;
            font-size: 14px;
            color: #222;
            outline: none;
            transition: border-color .15s;
        }
        .reg-field input:focus {
            border-color: #ff4d4f;
        }
        .reg-field input::placeholder { color: #b0b3bd; }

        /* 验证码行：左输入 / 右图片 */
        .reg-field.with-captcha input {
            padding-right: 130px;
        }
        .reg-field.with-captcha .captcha-img {
            position: absolute;
            right: 6px;
            top: 50%;
            transform: translateY(-50%);
            height: 38px;
            width: 118px;
            border-radius: 6px;
            cursor: pointer;
            background: #f5f5f5;
            object-fit: cover;
        }

        .reg-divider {
            margin: 18px 0;
            border-top: 1px dashed #e0e0e0;
        }

        .reg-policy {
            font-size: 13px;
            color: #555;
            line-height: 1.8;
            margin-bottom: 12px;
        }
        .reg-policy.warn {
            color: #ff4d4f;
            font-size: 13px;
            margin-bottom: 4px;
        }

        .reg-agree {
            display: flex;
            align-items: center;
            margin: 18px 0;
            font-size: 13px;
            cursor: pointer;
            user-select: none;
        }
        .reg-agree .radio {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            border: 1.5px solid #ff4d4f;
            margin-right: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-sizing: border-box;
        }
        .reg-agree.checked .radio {
            background: #ff4d4f;
        }
        .reg-agree.checked .radio::after {
            content: "";
            width: 8px;
            height: 4px;
            border-left: 2px solid #fff;
            border-bottom: 2px solid #fff;
            transform: rotate(-45deg) translate(1px, -1px);
        }
        .reg-agree .text { color: #555; }
        .reg-agree .text a { color: #1890ff; }

        .reg-submit {
            width: 100%;
            padding: 16px 0 12px;
            background: linear-gradient(180deg, #ff5a5c, #ff4d4f);
            border: none;
            border-radius: 8px;
            color: #fff;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(255, 77, 79, 0.25);
            transition: opacity .15s;
        }
        .reg-submit:disabled {
            opacity: .55;
            cursor: not-allowed;
            box-shadow: none;
        }

        /* 缺少 agent 时禁止填写 */
        .reg-locked .reg-field,
        .reg-locked input,
        .reg-locked button.reg-submit { pointer-events: none; opacity: 0.88; }

        .reg-agent-banner {
            display: none;
            margin-bottom: 14px;
            padding: 10px 12px;
            background: #fff2f0;
            border: 1px solid #ffccc7;
            border-radius: 8px;
            color: #cf1322;
            font-size: 13px;
            line-height: 1.5;
        }

        input[readonly].from-agent {
            background: #f7f7f7;
            color: #555;
        }
        .reg-submit.is-loading { opacity: 0.7; pointer-events: none; }
        .reg-submit .main {
            font-size: 19px;
            font-weight: 700;
            display: block;
        }
        .reg-submit .sub {
            display: block;
            margin-top: 4px;
            font-size: 12px;
            font-weight: 400;
            opacity: 0.9;
        }
