
    .hkt-register-modal {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 99999;
        align-items: center;
        justify-content: center;
        padding: clamp(12px, 4vh, 30px) 16px;
        overflow-y: auto;
        background: rgba(0, 0, 0, 0.72);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    @supports (align-items: safe center) {
        .hkt-register-modal {
            align-items: safe center;
        }
    }

    .hkt-register-panel {
        position: relative;
        width: min(92vw, 460px);
        margin: 0;
        padding: 22px 24px 20px;
        overflow: hidden;
        color: #fff;
        border: 1px solid rgba(119, 230, 208, 0.46);
        border-radius: 22px;
        background:
            linear-gradient(180deg, rgba(10, 12, 22, 0.68), rgba(8, 9, 18, 0.86)),
            url('/images/hkt-register-bg.webp') center / cover no-repeat;
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 36px rgba(45, 212, 191, 0.12);
        isolation: isolate;
    }

    .hkt-register-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background:
            radial-gradient(circle at 16% 8%, rgba(255, 217, 122, 0.14), transparent 28%),
            radial-gradient(circle at 84% 16%, rgba(68, 210, 190, 0.15), transparent 30%),
            linear-gradient(90deg, rgba(6, 8, 17, 0.08), rgba(6, 8, 17, 0.56) 48%, rgba(6, 8, 17, 0.12));
    }

    .hkt-close-btn {
        position: absolute;
        top: 16px;
        right: 18px;
        z-index: 2;
        width: 34px;
        height: 34px;
        border: 0;
        border-radius: 50%;
        color: rgba(255, 255, 255, 0.72);
        background: rgba(5, 7, 14, 0.38);
        font-size: 1.45rem;
        line-height: 1;
        cursor: pointer;
    }

    .hkt-register-title {
        margin: 0 0 6px;
        font-size: 1.42rem;
        font-weight: 800;
        letter-spacing: 0;
        text-shadow: 0 3px 14px rgba(0, 0, 0, 0.54);
    }

    .hkt-register-subtitle {
        margin: 0 0 10px;
        font-size: 0.84rem;
        color: rgba(255, 255, 255, 0.68);
    }

    .hkt-register-notice {
        margin: 0 0 12px;
        padding: 8px 11px;
        border: 1px solid rgba(245, 180, 56, 0.34);
        border-radius: 10px;
        color: #f7c35d;
        background: rgba(110, 67, 7, 0.28);
        font-size: 0.8rem;
        font-weight: 700;
    }

    .hkt-version-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 12px;
    }

    .hkt-version-card {
        position: relative;
        min-height: 78px;
        padding: 11px 13px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 16px;
        color: #fff;
        background: rgba(22, 24, 36, 0.78);
        text-align: left;
        cursor: pointer;
        transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

    .hkt-version-card:hover {
        transform: translateY(-1px);
        border-color: rgba(255, 255, 255, 0.34);
    }

    .hkt-version-card.active {
        border-color: rgba(91, 231, 211, 0.92);
        background: linear-gradient(135deg, rgba(16, 120, 112, 0.9), rgba(23, 60, 78, 0.82));
        box-shadow: 0 0 0 1px rgba(91, 231, 211, 0.24) inset, 0 16px 34px rgba(20, 184, 166, 0.24);
    }

    .hkt-version-card.active::before {
        content: "✓";
        position: absolute;
        top: 10px;
        right: 10px;
        display: grid;
        width: 22px;
        height: 22px;
        place-items: center;
        border-radius: 50%;
        color: #09211f;
        background: #77e6d0;
        font-size: 0.86rem;
        font-weight: 900;
    }

    .hkt-version-label {
        display: inline-block;
        margin-bottom: 6px;
        padding: 2px 7px;
        border-radius: 999px;
        color: #f9d986;
        background: rgba(245, 180, 56, 0.16);
        font-size: 0.68rem;
        font-weight: 800;
    }

    .hkt-version-name {
        display: block;
        font-size: 1.08rem;
        font-weight: 900;
        line-height: 1.12;
    }

    .hkt-version-desc {
        display: block;
        margin-top: 5px;
        color: rgba(255, 255, 255, 0.58);
        font-size: 0.76rem;
        font-weight: 700;
    }

    .hkt-version-card.active .hkt-version-desc {
        color: rgba(255, 255, 255, 0.78);
    }

    .hkt-field-row {
        display: flex;
        gap: 8px;
        margin-bottom: 9px;
    }

    .hkt-input,
    .hkt-select {
        min-height: 40px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        color: #fff;
        background: rgba(22, 24, 34, 0.78);
        outline: none;
        font-size: 0.86rem;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    }

    .hkt-input {
        width: 100%;
        box-sizing: border-box;
        padding: 0.55rem 0.72rem;
    }

    .hkt-select {
        flex-shrink: 0;
        padding: 0.55rem 0.62rem;
        cursor: pointer;
    }

    .hkt-input::placeholder {
        color: rgba(255, 255, 255, 0.34);
    }

    .hkt-get-code-btn {
        flex-shrink: 0;
        min-height: 40px;
        padding: 0.52rem 0.78rem;
        border: 1px solid rgba(91, 231, 211, 0.56);
        border-radius: 10px;
        color: #77e6d0;
        background: rgba(16, 120, 112, 0.28);
        font-size: 0.82rem;
        font-weight: 800;
        white-space: nowrap;
        cursor: pointer;
    }

    .hkt-submit-btn {
        width: 100%;
        margin-top: 8px;
        padding: 0.72rem;
        border: 0;
        border-radius: 13px;
        color: #fff;
        background: linear-gradient(135deg, #20b8a5, #0d8577);
        box-shadow: 0 14px 28px rgba(20, 184, 166, 0.26);
        font-size: 1rem;
        font-weight: 900;
        letter-spacing: 0;
        cursor: pointer;
    }

    .hkt-register-tip {
        margin: 10px 0 0;
        color: rgba(255, 255, 255, 0.48);
        text-align: center;
        font-size: 0.74rem;
        font-weight: 700;
    }

    @media (max-width: 520px) {
        .hkt-register-panel {
            width: min(94vw, 390px);
            padding: 20px 16px 18px;
        }

        .hkt-version-grid {
            gap: 8px;
        }

        .hkt-version-card {
            min-height: 76px;
            padding: 11px 10px;
        }

        .hkt-version-name {
            font-size: 1rem;
        }

        .hkt-field-row {
            gap: 7px;
        }

        .hkt-get-code-btn {
            padding-inline: 0.72rem;
        }
    }

    @media (max-height: 760px) and (min-width: 521px) {
        .hkt-register-modal {
            padding-top: 12px;
            padding-bottom: 12px;
        }

        .hkt-register-panel {
            width: min(90vw, 430px);
            padding: 18px 22px 16px;
        }

        .hkt-register-title {
            font-size: 1.28rem;
        }

        .hkt-register-subtitle {
            margin-bottom: 8px;
        }

        .hkt-register-notice {
            margin-bottom: 10px;
        }

        .hkt-version-card {
            min-height: 70px;
            padding: 10px 12px;
        }

        .hkt-input,
        .hkt-select,
        .hkt-get-code-btn {
            min-height: 38px;
        }

        .hkt-submit-btn {
            padding: 0.66rem;
        }
    }

/* 注册页和弹窗共用的密码强度条及规则提示。 */
#hkt-register-modal .hkt-password-strength{margin:0 0 20px;font-size:12px;line-height:1.7;color:#758269}
.hkt-strength-track{height:6px;background:#e6eadf;border-radius:20px;overflow:hidden;margin:4px 0 9px}
.hkt-strength-track span{display:block;width:0;height:100%;border-radius:inherit;transition:width .2s,background .2s}
.hkt-password-strength[data-level="weak"] .hkt-strength-track span{width:33.33%;background:#ac7650}
.hkt-password-strength[data-level="medium"] .hkt-strength-track span{width:66.66%;background:#ac963f}
.hkt-password-strength[data-level="strong"] .hkt-strength-track span{width:100%;background:#4d7d54}
.hkt-strength-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hkt-strength-heading strong{color:#365b40;font-weight:650}
.hkt-password-strength ul{list-style:none;padding:0;margin:10px 0 6px}
.hkt-password-strength li{display:flex;align-items:center;gap:8px;margin:2px 0}
.hkt-password-strength li:before{content:'•';color:#b7c1ad;width:12px;text-align:center}
.hkt-password-strength li.met{color:#41694b}
.hkt-password-strength li.met:before{content:'✓';color:#41694b}
.hkt-password-strength p{margin:0;font-size:11px;color:#85907b}
@media(prefers-reduced-motion:reduce){.hkt-strength-track span{transition:none}}
