/* ============================================
   汇友之家 会员注册/登录页样式 v3.0 清新明亮
   色系：紫#7C3AED / 青#0891B2 / 白底#F8FAFC
   ============================================ */

/* ===== 本地变量（覆盖暗色主题） ===== */
:root {
    --lm-primary: #7C3AED;
    --lm-primary-light: #8B5CF6;
    --lm-primary-dark: #6D28D9;
    --lm-primary-bg: rgba(124,58,237,.08);
    --lm-accent: #0891B2;
    --lm-accent-light: #06B6D4;
    --lm-accent-bg: rgba(8,145,178,.08);
    --lm-success: #059669;
    --lm-success-light: #10B981;
    --lm-success-bg: rgba(5,150,105,.08);
    --lm-danger: #DC2626;
    --lm-danger-light: #EF4444;
    --lm-danger-bg: rgba(220,38,38,.06);
    --lm-warning: #D97706;
    --lm-bg-page: #F0F4FF;
    --lm-bg-card: #FFFFFF;
    --lm-bg-input: #F8FAFC;
    --lm-bg-hover: #F1F5F9;
    --lm-text-primary: #1E293B;
    --lm-text-regular: #475569;
    --lm-text-secondary: #94A3B8;
    --lm-text-placeholder: #CBD5E1;
    --lm-border: #E2E8F0;
    --lm-border-light: #F1F5F9;
    --lm-shadow: 0 4px 24px rgba(124,58,237,.08), 0 1px 4px rgba(0,0,0,.04);
    --lm-shadow-hover: 0 8px 32px rgba(124,58,237,.12), 0 2px 8px rgba(0,0,0,.06);
    --lm-radius: 12px;
    --lm-radius-sm: 6px;
    --lm-transition: all .25s cubic-bezier(.4,0,.2,1);
}

/* ===== 表单分区标题 ===== */
.hy-form-section {
    margin-bottom: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(248,250,252,.7) 0%, rgba(248,250,252,.35) 100%);
    border: 1px solid var(--lm-border-light);
    border-radius: var(--lm-radius);
    transition: var(--lm-transition);
}

.hy-form-section:focus-within {
    border-color: rgba(124,58,237,.25);
    box-shadow: 0 4px 16px rgba(124,58,237,.08);
    background: linear-gradient(135deg, rgba(248,250,252,.9) 0%, rgba(248,250,252,.5) 100%);
}

.hy-form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--lm-text-regular);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--lm-border);
}

.hy-form-section-icon {
    font-size: 16px;
    line-height: 1;
}

.hy-form-section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--lm-border), transparent);
    margin-left: 4px;
}

/* 分区内字段间距重置 */
.hy-form-section .hy-field:first-child {
    animation-delay: 0s;
}

.hy-form-section .hy-field-row:first-child .hy-field:first-child {
    animation-delay: 0s;
}

/* ===== 表单进度条 ===== */
.hy-form-progress {
    height: 4px;
    background: var(--lm-border-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 18px;
    position: relative;
}

.hy-form-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--lm-primary) 0%, var(--lm-accent) 100%);
    border-radius: 4px;
    transition: width .4s cubic-bezier(.4,0,.2,1);
    position: relative;
    box-shadow: 0 0 8px rgba(124,58,237,.3);
}

.hy-form-progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.7));
    filter: blur(2px);
}

/* ===== 页面背景 ===== */
body {
    background: linear-gradient(160deg, #EEF2FF 0%, #F0F9FF 40%, #FAFAFF 100%);
    background-image:
        radial-gradient(circle at 1px 1px, rgba(124,58,237,.06) 1px, transparent 0),
        linear-gradient(160deg, #EEF2FF 0%, #F0F9FF 40%, #FAFAFF 100%);
    background-size: 24px 24px, 100% 100%;
}

/* ===== 沉浸分屏布局 ===== */
.hy-split-wrap {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 620px;
    margin: 24px auto;
    border-radius: var(--lm-radius);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(124,58,237,.1), 0 2px 8px rgba(0,0,0,.04);
    border: 1px solid rgba(124,58,237,.06);
    animation: hyMemberSlideIn .5s cubic-bezier(.4,0,.2,1);
    background: var(--lm-bg-card);
}

@keyframes hyMemberSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== 左侧品牌视觉区 ===== */
.hy-split-brand {
    flex: 0 0 38%;
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 40%, #4C1D95 100%);
    background-image:
        radial-gradient(circle at 2px 2px, rgba(255,255,255,.04) 1px, transparent 0),
        linear-gradient(135deg, #7C3AED 0%, #6D28D9 40%, #4C1D95 100%);
    background-size: 20px 20px, 100% 100%;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 28px;
}

.hy-split-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.hy-split-orb.orb-1 {
    width: 280px;
    height: 280px;
    top: -80px;
    right: -60px;
    background: radial-gradient(circle, rgba(139,92,246,.35) 0%, transparent 70%);
    animation: hyOrbFloat1 12s ease-in-out infinite;
}

.hy-split-orb.orb-2 {
    width: 220px;
    height: 220px;
    bottom: -60px;
    left: -40px;
    background: radial-gradient(circle, rgba(8,145,178,.3) 0%, transparent 70%);
    animation: hyOrbFloat2 15s ease-in-out infinite;
}

.hy-split-orb.orb-3 {
    width: 160px;
    height: 160px;
    top: 35%;
    left: 25%;
    background: radial-gradient(circle, rgba(124,58,237,.2) 0%, transparent 70%);
    animation: hyOrbFloat1 10s ease-in-out infinite reverse;
}

@keyframes hyOrbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 30px) scale(1.1); }
}

@keyframes hyOrbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, -20px) scale(1.15); }
}

.hy-split-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hy-split-logo {
    font-size: 44px;
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    animation: hyLogoFloat 4s ease-in-out infinite;
}

@keyframes hyLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hy-split-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: 1px;
}

.hy-split-subtitle {
    font-size: 13px;
    opacity: .65;
    margin: 0 0 28px;
    line-height: 1.6;
}

.hy-split-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
}

.hy-split-stat-num {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.hy-split-stat-label {
    font-size: 11px;
    opacity: .55;
    margin-top: 4px;
}

.hy-split-stat-div {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,.15);
}

.hy-split-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    max-width: 280px;
    margin: 0 auto;
}

.hy-split-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    opacity: .8;
}

.hy-split-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    font-size: 11px;
    flex-shrink: 0;
}

/* ===== 右侧表单区 ===== */
.hy-split-form {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
    background: var(--lm-bg-card);
    position: relative;
    overflow: hidden;
}

.hy-split-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lm-primary) 0%, var(--lm-accent) 100%);
    opacity: .5;
}

.hy-split-form-inner {
    width: 100%;
    max-width: 560px;
}

.hy-split-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 18px;
    font-size: 13px;
}

.hy-split-top-label {
    color: var(--lm-text-secondary);
}

.hy-split-top-link {
    color: var(--lm-primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--lm-transition);
}

.hy-split-top-link:hover {
    color: var(--lm-primary-dark);
}

.hy-split-footer {
    text-align: center;
    font-size: 12px;
    color: var(--lm-text-secondary);
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--lm-border-light);
}

.hy-split-footer a {
    color: var(--lm-primary);
    font-weight: 600;
}

/* 头像工具栏 */
.hy-avatar-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

/* ===== 双列字段行 ===== */
.hy-field-row {
    display: flex;
    gap: 12px;
}

.hy-field-row .hy-field {
    flex: 1;
    margin-bottom: 0;
}

.hy-field-row + .hy-field-row {
    margin-top: 10px;
}

.hy-field-row + .hy-field {
    margin-top: 10px;
}

.hy-field + .hy-field-row {
    margin-top: 10px;
}

/* ===== 表单字段 ===== */
.hy-field,
.hy-field-group {
    margin-bottom: 10px;
    position: relative;
}

/* 覆盖 Discuz .px 类可能残留的样式 */
.hy-field-input.px,
input.px.hy-field-input {
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
}

.hy-field-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lm-text-regular);
    margin-bottom: 4px;
}

.hy-field-label .rq {
    color: var(--lm-danger);
    font-size: 14px;
}

.hy-field-input-wrap {
    position: relative;
}

.hy-field-input {
    width: 100%;
    padding: 11px 16px;
    font-size: 14px;
    color: var(--lm-text-primary);
    background: var(--lm-bg-input);
    border: 1px solid var(--lm-border);
    border-radius: var(--lm-radius-sm);
    transition: var(--lm-transition);
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}

.hy-field-input:hover {
    border-color: rgba(124,58,237,.3);
    background: var(--lm-bg-hover);
}

.hy-field-input:focus {
    border-color: var(--lm-primary);
    box-shadow: 0 0 0 4px rgba(124,58,237,.1), 0 2px 12px rgba(124,58,237,.08);
    background: #fff;
}

.hy-field-input-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--lm-primary), var(--lm-accent));
    border-radius: 1px;
    transition: width .3s ease;
    pointer-events: none;
}

.hy-field-input-wrap:focus-within::after {
    width: 100%;
}

.hy-field-input::placeholder {
    color: var(--lm-text-placeholder);
}

.hy-field-input.error {
    border-color: var(--lm-danger);
    box-shadow: 0 0 0 3px rgba(220,38,38,.08);
}

.hy-field-input.valid {
    border-color: var(--lm-success);
    box-shadow: 0 0 0 3px rgba(5,150,105,.08);
}

/* 密码字段带图标 */
.hy-field-input.has-icon {
    padding-left: 40px;
}

.hy-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--lm-text-secondary);
    pointer-events: none;
}

/* 登录方式选择器 */
.hy-login-field-wrap {
    display: flex;
    gap: 0;
}

.hy-login-field-select {
    padding: 8px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--lm-primary);
    background: var(--lm-primary-bg);
    border: 1px solid var(--lm-border);
    border-right: none;
    border-radius: var(--lm-radius-sm) 0 0 var(--lm-radius-sm);
    cursor: pointer;
    outline: none;
    white-space: nowrap;
    transition: var(--lm-transition);
}

.hy-login-field-select:hover,
.hy-login-field-select:focus {
    background: var(--lm-primary-bg);
    color: var(--lm-primary);
}

.hy-login-field-wrap .hy-field-input {
    border-radius: 0 var(--lm-radius-sm) var(--lm-radius-sm) 0;
}

/* 提示文字 */
.hy-field-tip {
    font-size: 11px;
    color: var(--lm-text-secondary);
    margin-top: 2px;
    min-height: 14px;
    line-height: 1.4;
}

.hy-field-tip.error {
    color: var(--lm-danger);
}

.hy-field-tip.success {
    color: var(--lm-success);
}

/* 密码强度条 */
.hy-pw-strength {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    height: 4px;
}

.hy-pw-strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--lm-border);
    transition: var(--lm-transition);
}

.hy-pw-strength-bar.active.weak { background: var(--lm-danger); }
.hy-pw-strength-bar.active.medium { background: var(--lm-warning); }
.hy-pw-strength-bar.active.strong { background: var(--lm-success); }

.hy-pw-strength-text {
    font-size: 11px;
    color: var(--lm-text-secondary);
    margin-top: 2px;
}

/* ===== 头像选择区 ===== */
.hy-avatar-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.hy-avatar-preview-sm {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--lm-primary);
    box-shadow: 0 2px 12px rgba(124,58,237,.15), 0 0 0 3px rgba(124,58,237,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--lm-text-secondary);
    background: var(--lm-bg-input);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    transition: var(--lm-transition);
}

.hy-avatar-preview-sm img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.hy-avatar-preview-sm:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(124,58,237,.2);
}

/* 头像横向滚动条 */
.hy-avatar-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.hy-avatar-strip::-webkit-scrollbar {
    height: 4px;
}

.hy-avatar-strip::-webkit-scrollbar-track {
    background: transparent;
}

.hy-avatar-strip::-webkit-scrollbar-thumb {
    background: var(--lm-border);
    border-radius: 2px;
}

.hy-avatar-card {
    width: 40px;
    height: 40px;
    border-radius: var(--lm-radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: var(--lm-bg-input);
    transition: var(--lm-transition);
    position: relative;
    flex-shrink: 0;
}

.hy-avatar-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.hy-avatar-card:hover {
    border-color: var(--lm-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124,58,237,.15);
}

.hy-avatar-card:hover img {
    transform: scale(1.1);
}

.hy-avatar-card.selected {
    border-color: var(--lm-primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,.15), 0 4px 12px rgba(124,58,237,.2);
    transform: translateY(-2px);
}

.hy-avatar-card.selected::after {
    content: "\2713";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--lm-primary);
    color: #fff;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(124,58,237,.3);
}

/* ===== 按钮 ===== */
.hy-btn-submit {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--lm-primary) 0%, var(--lm-primary-dark) 50%, var(--lm-accent) 100%);
    background-size: 200% 100%;
    border: none;
    border-radius: var(--lm-radius-sm);
    cursor: pointer;
    transition: var(--lm-transition);
    box-shadow: 0 4px 16px rgba(124,58,237,.25);
    position: relative;
    overflow: hidden;
    font-family: inherit;
    letter-spacing: .5px;
}

.hy-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124,58,237,.35), 0 0 0 1px rgba(124,58,237,.1);
    background-position: 100% 0;
}

.hy-btn-submit:active {
    transform: translateY(0);
}

.hy-btn-submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
    transition: left .6s ease;
}

.hy-btn-submit:hover::before {
    left: 120%;
}

.hy-btn-submit::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.1) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: hyBtnShimmer 3s ease infinite;
    pointer-events: none;
}

@keyframes hyBtnShimmer {
    0%, 100% { background-position: 200% 200%; }
    50% { background-position: 0% 0%; }
}

.hy-btn-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* ===== 复选框 ===== */
.hy-checkbox-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--lm-text-regular);
}

.hy-checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--lm-primary);
    cursor: pointer;
    border-radius: 4px;
    transition: var(--lm-transition);
}

.hy-checkbox-row input[type="checkbox"]:checked {
    box-shadow: 0 0 0 3px var(--lm-primary-bg);
}

.hy-checkbox-row label {
    cursor: pointer;
    user-select: none;
}

.hy-checkbox-row a {
    color: var(--lm-primary);
    text-decoration: underline;
}

/* ===== 安全验证区（详细样式见底部） ===== */
.hy-seccheck-row .hy-field-label {
    margin-bottom: 6px;
}

/* ===== 分隔线 ===== */
.hy-member-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    color: var(--lm-text-secondary);
    font-size: 12px;
}

.hy-member-divider::before,
.hy-member-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--lm-border), transparent);
}

/* ===== 第三方登录 ===== */
.hy-oauth-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

.hy-oauth-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--lm-border);
    background: var(--lm-bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: var(--lm-transition);
    color: var(--lm-text-secondary);
}

.hy-oauth-btn:hover {
    border-color: var(--lm-primary);
    color: var(--lm-primary);
    background: var(--lm-primary-bg);
    box-shadow: 0 2px 8px rgba(124,58,237,.12);
    transform: translateY(-2px);
}

/* ===== 卡片底部 ===== */
.hy-member-footer {
    padding: 6px 20px 10px;
    text-align: center;
    font-size: 12px;
    color: var(--lm-text-secondary);
    border-top: 1px solid var(--lm-border-light);
    position: relative;
}

.hy-member-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--lm-primary), transparent);
    opacity: .3;
}

.hy-member-footer a {
    color: var(--lm-primary);
    font-weight: 600;
    transition: var(--lm-transition);
}

.hy-member-footer a:hover {
    color: var(--lm-primary-dark);
    text-decoration: underline;
}

/* ===== 邀请码字段 ===== */
.hy-invite-row {
    padding: 6px 8px;
    background: var(--lm-accent-bg);
    border: 1px solid rgba(8,145,178,.15);
    border-radius: var(--lm-radius-sm);
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--lm-text-regular);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hy-invite-row strong {
    color: var(--lm-accent);
}

/* ===== 成功提示 ===== */
.hy-member-success {
    text-align: center;
    padding: 40px 20px;
}

.hy-member-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--lm-success-bg);
    border: 2px solid var(--lm-success);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--lm-success);
    animation: hySuccessPop .4s cubic-bezier(.4,0,.2,1);
}

@keyframes hySuccessPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== 找回密码 ===== */
.hy-lostpw-toggle {
    text-align: right;
    margin-bottom: 10px;
}

.hy-lostpw-toggle a {
    font-size: 13px;
    color: var(--lm-text-secondary);
    transition: var(--lm-transition);
}

.hy-lostpw-toggle a:hover {
    color: var(--lm-primary);
}

/* ===== 浮窗模式适配 ===== */
.hy-split-wrap.infloat {
    max-width: 400px;
    min-height: auto;
}

.hy-split-wrap.infloat .hy-split-brand {
    display: none;
}

/* ===== 响应式 · 触摸优化 ===== */
@media (max-width: 768px) {
    /* 隐藏品牌区，表单全宽 */
    .hy-split-brand {
        display: none;
    }

    .hy-split-wrap {
        max-width: 460px;
        min-height: auto;
        margin: 12px auto;
        border-top: 3px solid var(--lm-primary);
    }

    /* 触摸优化 */
    button,
    .hy-avatar-tab,
    .hy-avatar-card,
    .hy-oauth-btn,
    a {
        -webkit-tap-highlight-color: transparent;
    }

    button,
    .hy-sms-btn {
        touch-action: manipulation;
    }
}

@media (max-width: 600px) {
    .hy-split-wrap {
        margin: 12px 8px;
    }

    .hy-split-form {
        padding: 24px 18px;
    }

    /* 双列变单列 */
    .hy-field-row {
        flex-direction: column;
        gap: 0;
    }

    .hy-field-row .hy-field {
        margin-bottom: 10px;
    }

    .hy-field-row + .hy-field-row {
        margin-top: 0;
    }

    .hy-field {
        margin-bottom: 10px;
    }

    .hy-field-label {
        font-size: 12px;
    }

    .hy-field-input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .hy-avatar-preview-sm {
        width: 48px;
        height: 48px;
    }

    .hy-avatar-card {
        width: 44px;
        height: 44px;
    }

    .hy-avatar-toolbar {
        gap: 4px;
    }

    .hy-avatar-action-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .hy-avatar-tab {
        padding: 4px 8px;
        font-size: 11px;
    }

    .hy-btn-submit {
        padding: 12px;
        font-size: 14px;
    }

    /* SMS验证码按钮缩小 */
    .hy-sms-code-wrap .hy-field-input {
        padding-right: 96px;
    }

    .hy-sms-code-wrap .hy-sms-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    /* 验证码输入框缩小 */
    .hy-seccheck-row input.px,
    .hy-seccheck-row input[type="text"].px {
        flex: 0 0 100px;
        width: 100px !important;
        max-width: 100px;
        padding: 9px 10px !important;
        font-size: 13px !important;
    }

    .hy-seccheck-row img {
        height: 34px !important;
    }

    /* SMS快捷登录紧凑化 */
    .hy-sms-login-fields {
        padding: 12px;
    }

    .hy-sms-login-tab {
        padding: 5px 12px;
        font-size: 12px;
    }

    /* 找回密码 */
    .hy-lostpw-toggle {
        text-align: center;
    }

    /* 邀请行防溢出 */
    .hy-invite-row {
        padding: 10px 12px;
        font-size: 12px;
    }

    .hy-invite-row a {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 140px;
        display: inline-block;
        vertical-align: bottom;
    }
}

@media (max-width: 480px) {
    .hy-split-wrap {
        margin: 8px 4px;
    }

    .hy-split-form {
        padding: 20px 14px;
    }

    .hy-field {
        margin-bottom: 10px;
    }

    .hy-avatar-card {
        width: 40px;
        height: 40px;
    }

    /* 登录选择器紧凑 */
    .hy-login-field-select {
        padding: 10px 8px;
        font-size: 12px;
    }

    /* SMS验证码更紧凑 */
    .hy-sms-code-wrap .hy-field-input {
        padding-right: 88px;
    }

    .hy-sms-code-wrap .hy-sms-btn {
        padding: 5px 8px;
        font-size: 11px;
    }

    /* 验证码更紧凑 */
    .hy-seccheck-row .hy-field-input-wrap {
        gap: 6px;
    }

    .hy-seccheck-row input.px,
    .hy-seccheck-row input[type="text"].px {
        flex: 0 0 90px;
        width: 90px !important;
        max-width: 90px;
    }

    .hy-seccheck-row img {
        height: 32px !important;
    }

    .hy-seccheck-row a {
        padding: 3px 6px;
        font-size: 11px;
    }

    .hy-btn-submit {
        padding: 11px;
        font-size: 14px;
    }

    /* SMS登录紧凑 */
    .hy-sms-login-wrap {
        margin-top: 14px;
        padding-top: 12px;
    }

    .hy-sms-login-fields {
        padding: 10px;
    }

    .hy-sms-login-submit {
        padding: 10px;
        font-size: 14px;
    }

    /* 第三方按钮缩小 */
    .hy-oauth-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    /* 复选框紧凑 */
    .hy-checkbox-row {
        gap: 6px;
        font-size: 12px;
        margin-bottom: 10px;
    }

    .hy-checkbox-row input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    /* 浮窗模式紧凑 */
    .hy-split-wrap.infloat {
        max-width: 100%;
    }
}

@media (max-width: 380px) {
    .hy-split-wrap {
        margin: 4px 2px;
    }

    .hy-split-form {
        padding: 16px 12px;
    }

    .hy-avatar-tab {
        padding: 3px 6px;
        font-size: 11px;
    }

    /* SMS验证码：按钮下移到输入框下方 */
    .hy-sms-code-wrap .hy-field-input {
        padding-right: 12px;
    }

    .hy-sms-code-wrap .hy-sms-btn {
        position: static;
        transform: none;
        width: 100%;
        padding: 9px;
        margin-top: 6px;
        font-size: 12px;
    }

    /* 验证码：堆叠布局 */
    .hy-seccheck-row .hy-field-input-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .hy-seccheck-row input.px,
    .hy-seccheck-row input[type="text"].px {
        flex: 1;
        width: 100% !important;
        max-width: 100%;
    }

    .hy-seccheck-row img {
        height: 36px !important;
        align-self: flex-start;
    }

    /* 登录选择器堆叠 */
    .hy-login-field-wrap {
        flex-direction: column;
    }

    .hy-login-field-select {
        border-radius: var(--lm-radius-sm) var(--lm-radius-sm) 0 0;
        border: 1px solid var(--lm-border);
        border-bottom: none;
        width: 100%;
    }

    .hy-login-field-wrap .hy-field-input {
        border-radius: 0 0 var(--lm-radius-sm) var(--lm-radius-sm);
    }

    /* 信任栏隐藏 */
    .hy-trust-bar {
        display: none;
    }
}

/* ===== 隐藏原始Discuz样式 ===== */
.bm,
.bm_h,
.bm_c {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.rfm table,
.rfm tr,
.rfm th,
.rfm td {
    all: revert;
}

/* 保持Discuz安全验证样式 */
.seccheck {
    margin-bottom: 12px;
}

/* ===== 动画类 ===== */
.hy-fade-in {
    animation: hyFadeIn .4s ease;
}

@keyframes hyFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hy-shake {
    animation: hyShake .4s ease;
}

@keyframes hyShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* ===== 加载动画 ===== */
.hy-member-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hySpin .6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes hySpin {
    to { transform: rotate(360deg); }
}

/* ============================================
   v2.0 增强样式
   ============================================ */

/* ===== 密码可见性切换按钮 ===== */
.hy-pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--lm-text-secondary);
    padding: 4px 6px;
    border-radius: 4px;
    transition: var(--lm-transition);
    z-index: 2;
    line-height: 1;
}

.hy-pw-toggle:hover {
    color: var(--lm-primary);
    background: var(--lm-primary-bg);
}

.hy-field-input.has-pw-toggle {
    padding-right: 42px;
}

/* ===== Caps Lock 警告 ===== */
.hy-capslock-warning {
    position: absolute;
    right: 44px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--lm-warning);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
    z-index: 2;
}

.hy-capslock-warning.show {
    opacity: 1;
}

/* ===== 信任栏 ===== */
.hy-trust-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 8px 0;
    margin-bottom: 4px;
}

.hy-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--lm-text-secondary);
    padding: 6px 14px;
    background: var(--lm-bg-input);
    border: 1px solid var(--lm-border-light);
    border-radius: 20px;
    transition: var(--lm-transition);
}

.hy-trust-item:hover {
    border-color: var(--lm-primary);
    background: var(--lm-primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124,58,237,.1);
}

.hy-trust-item-icon {
    font-size: 16px;
    line-height: 1;
}

.hy-trust-item-num {
    font-weight: 700;
    color: var(--lm-primary);
    font-family: inherit;
}

/* ===== 随机头像按钮 ===== */
.hy-avatar-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.hy-avatar-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 500;
    color: var(--lm-text-secondary);
    background: var(--lm-bg-input);
    border: 1px solid var(--lm-border);
    border-radius: 16px;
    cursor: pointer;
    transition: var(--lm-transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.hy-avatar-action-btn:hover {
    color: var(--lm-primary);
    border-color: var(--lm-primary);
    background: var(--lm-primary-bg);
}

.hy-avatar-action-btn input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* ===== 头像分类标签 ===== */
.hy-avatar-tab {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 500;
    color: var(--lm-text-secondary);
    background: var(--lm-bg-input);
    border: 1px solid var(--lm-border);
    border-radius: 16px;
    cursor: pointer;
    transition: var(--lm-transition);
    white-space: nowrap;
    user-select: none;
}

.hy-avatar-tab:hover {
    color: var(--lm-primary);
    border-color: var(--lm-primary);
    background: var(--lm-primary-bg);
}

.hy-avatar-tab.active {
    color: #fff;
    background: var(--lm-primary);
    border-color: var(--lm-primary);
    box-shadow: 0 2px 8px rgba(124,58,237,.25);
}

/* ===== 用户名检测指示器 ===== */
.hy-username-check {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    pointer-events: none;
    z-index: 2;
}

.hy-username-check.checking {
    color: var(--lm-text-secondary);
}

.hy-username-check.available {
    color: var(--lm-success);
}

.hy-username-check.unavailable {
    color: var(--lm-danger);
}

.hy-username-check .hy-check-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
}

.hy-username-check .hy-check-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(148,163,184,.3);
    border-top-color: var(--lm-text-secondary);
    border-radius: 50%;
    animation: hySpin .5s linear infinite;
}

.hy-field-input.has-check {
    padding-right: 100px;
}

/* ===== 字段交错入场动画 ===== */
.hy-field {
    animation: hyFieldSlideIn .4s ease both;
}

.hy-field:nth-child(1) { animation-delay: .05s; }
.hy-field:nth-child(2) { animation-delay: .1s; }
.hy-field:nth-child(3) { animation-delay: .15s; }
.hy-field:nth-child(4) { animation-delay: .2s; }
.hy-field:nth-child(5) { animation-delay: .25s; }
.hy-field:nth-child(6) { animation-delay: .3s; }
.hy-field:nth-child(7) { animation-delay: .35s; }
.hy-field:nth-child(8) { animation-delay: .4s; }

@keyframes hyFieldSlideIn {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== 表单入场动画 ===== */
.hy-split-form-inner {
    animation: hyFieldSlideIn .4s ease both;
}

/* ===== 按钮入场动画 ===== */
.hy-btn-submit {
    animation: hyFieldSlideIn .4s ease .45s both;
}

/* ===== Toast 提示 ===== */
.hy-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-60px);
    padding: 12px 24px;
    border-radius: var(--lm-radius-sm);
    font-size: 13px;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
}

.hy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.hy-toast.success {
    background: #fff;
    border: 1px solid var(--lm-success);
    color: var(--lm-success);
}

.hy-toast.error {
    background: #fff;
    border: 1px solid var(--lm-danger);
    color: var(--lm-danger);
}

.hy-toast.info {
    background: #fff;
    border: 1px solid var(--lm-primary);
    color: var(--lm-primary);
}

/* ===== 上传头像预览 ===== */
.hy-avatar-card.uploaded {
    border-color: var(--lm-accent);
}

.hy-avatar-card.uploaded.selected {
    border-color: var(--lm-accent);
    box-shadow: 0 0 0 2px rgba(8,145,178,.2);
}

.hy-avatar-card.uploaded.selected::after {
    background: var(--lm-accent);
}

/* ===== SMS 验证块通用样式 ===== */
.hy-sms-reg-block {
    margin: 4px 0 8px;
}

.hy-sms-code-wrap {
    position: relative;
}

.hy-sms-code-wrap .hy-field-input {
    padding-right: 110px;
}

.hy-sms-code-wrap .hy-sms-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    font-size: 12px;
}

/* ===== SMS 发送按钮 ===== */
.hy-sms-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--lm-primary) 0%, var(--lm-primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: var(--lm-radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--lm-transition);
}

.hy-sms-btn:hover {
    background: linear-gradient(135deg, var(--lm-primary-dark) 0%, #5B21B6 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124,58,237,.25);
}

.hy-sms-btn:active {
    transform: translateY(0);
}

.hy-sms-btn:disabled {
    background: #CBD5E1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== SMS 提示文字 ===== */
.hy-sms-tip {
    font-size: 12px;
    color: var(--lm-text-secondary);
    margin: 4px 0 6px;
    min-height: 16px;
    transition: color .2s ease;
}

.hy-sms-ok {
    color: var(--lm-success);
}

.hy-sms-err {
    color: var(--lm-danger);
}

/* ===== 登录页 SMS 快捷登录 ===== */
.hy-sms-login-wrap {
    margin-top: 20px;
    border-top: 1px solid var(--lm-border);
    padding-top: 16px;
}

.hy-sms-login-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--lm-bg-input);
    color: var(--lm-primary);
    border: 1.5px solid var(--lm-primary);
    border-radius: var(--lm-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--lm-transition);
    margin-bottom: 12px;
}

.hy-sms-login-tab:hover {
    background: var(--lm-primary);
    color: #fff;
}

.hy-sms-login-tab-icon {
    font-size: 15px;
}

.hy-sms-login-fields {
    padding: 16px;
    background: var(--lm-bg-input);
    border-radius: var(--lm-radius);
    border: 1px solid var(--lm-border);
    display: none;
    animation: hyFadeSlide .3s ease;
}

.hy-sms-login-fields.show {
    display: block;
}

.hy-sms-login-submit {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    font-size: 15px;
}

@keyframes hyFadeSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 个人资料页 SMS 绑定卡片 ===== */
.hy-sms-profile-card {
    background: var(--lm-bg-card);
    border-radius: var(--lm-radius);
    padding: 20px;
    margin: 10px 0;
    border: 1px solid var(--lm-border);
    box-shadow: 0 2px 8px rgba(124,58,237,.06);
}

.hy-sms-profile-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--lm-text-primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--lm-primary);
}

.hy-sms-profile-current {
    font-size: 13px;
    color: var(--lm-text-regular);
    margin-bottom: 14px;
}

.hy-sms-profile-current strong {
    color: var(--lm-primary);
    font-weight: 600;
}

.hy-sms-bind-btn {
    padding: 12px 30px;
    margin-top: 6px;
}

/* ===== Discuz 安全验证码（seccheck）适配 ===== */
.hy-seccheck-row {
    margin-bottom: 16px;
}

/* 验证码输入框 */
.hy-seccheck-row .hy-field-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hy-seccheck-row input.px,
.hy-seccheck-row input[type="text"].px {
    flex: 0 0 120px;
    width: 120px !important;
    max-width: 120px;
    padding: 10px 14px !important;
    border: 1.5px solid var(--lm-border) !important;
    border-radius: var(--lm-radius-sm) !important;
    font-size: 14px !important;
    color: var(--lm-text-primary) !important;
    background: var(--lm-bg-input) !important;
    transition: var(--lm-transition);
    box-sizing: border-box !important;
    height: auto !important;
    line-height: 1.5 !important;
}

.hy-seccheck-row input.px:focus,
.hy-seccheck-row input[type="text"].px:focus {
    border-color: var(--lm-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(124,58,237,.1) !important;
}

/* 验证码图片 */
.hy-seccheck-row img {
    height: 38px !important;
    border-radius: var(--lm-radius-sm);
    border: 1px solid var(--lm-border);
    cursor: pointer;
    vertical-align: middle;
    transition: var(--lm-transition);
}

.hy-seccheck-row img:hover {
    border-color: var(--lm-primary);
    opacity: .9;
}

/* "换一个"链接 */
.hy-seccheck-row a {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: var(--lm-text-secondary);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: var(--lm-radius-sm);
    background: var(--lm-bg-input);
    transition: var(--lm-transition);
    cursor: pointer;
}

.hy-seccheck-row a:hover {
    color: var(--lm-primary);
    background: rgba(124,58,237,.06);
}

/* 验证问题(secqaa)输入框 */
.hy-seccheck-row .hy-field-input-wrap input.px[type="text"]:not([id^="seccode"]) {
    flex: 1;
    width: 100% !important;
    max-width: 100% !important;
}

/* ===== 响应式增强 · 触摸热区/溢出防护 ===== */
@media (max-width: 600px) {
    /* 头像操作按钮确保触摸热区 */
    .hy-avatar-action-btn {
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        flex-wrap: wrap;
    }

    .hy-avatar-tab {
        min-height: 28px;
        display: inline-flex;
        align-items: center;
    }

    /* 用户名检测缩小 */
    .hy-field-input.has-check {
        padding-right: 42px;
    }

    .hy-username-check span:not(.hy-check-icon):not(.hy-check-spinner) {
        display: none;
    }

    /* 防止水平溢出 */
    body {
        overflow-x: hidden;
    }

    img,
    table {
        max-width: 100%;
    }

    /* 表单元素盒模型统一 */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    select,
    textarea {
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    /* 确保所有可点击元素最小热区 */
    .hy-avatar-action-btn,
    .hy-avatar-tab,
    .hy-sms-btn,
    .hy-checkbox-row label,
    .hy-member-footer a,
    .hy-lostpw-toggle a {
        min-height: 32px;
        display: inline-flex;
        align-items: center;
    }

    .hy-btn-submit {
        min-height: 44px;
    }

    .hy-oauth-btn {
        min-width: 38px;
        min-height: 38px;
    }
}

@media (max-width: 380px) {
    /* 头像最小触摸尺寸 */
    .hy-avatar-card {
        min-height: 44px;
    }

    /* 验证码图片最大宽度 */
    .hy-seccheck-row img {
        max-width: 100%;
        height: auto !important;
        max-height: 40px;
    }
}

/* ============================================
   v3.1 表单分区 & 交互优化
   ============================================ */

/* 分区移动端紧凑化 */
@media (max-width: 600px) {
    .hy-form-section {
        padding: 10px 12px;
        margin-bottom: 12px;
    }

    .hy-form-section-title {
        font-size: 11px;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }

    .hy-form-section-icon {
        font-size: 13px;
    }

    .hy-form-progress {
        margin-bottom: 12px;
    }
}

@media (max-width: 380px) {
    .hy-form-section {
        padding: 8px 10px;
    }
}

/* 行内验证状态图标 */
.hy-field-status {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
    z-index: 2;
}

.hy-field-status.show {
    opacity: 1;
}

.hy-field-status.valid {
    background: var(--lm-success-bg);
    color: var(--lm-success);
}

.hy-field-status.invalid {
    background: var(--lm-danger-bg);
    color: var(--lm-danger);
}

/* 有验证图标的输入框增加右内边距 */
.hy-field-input.has-status {
    padding-right: 40px;
}

/* 自动聚焦闪光提示 */
@keyframes hyFocusHint {
    0% { box-shadow: 0 0 0 0 rgba(124,58,237,.3); }
    50% { box-shadow: 0 0 0 6px rgba(124,58,237,0); }
    100% { box-shadow: 0 0 0 0 rgba(124,58,237,0); }
}

.hy-field-input.auto-focus-hint {
    animation: hyFocusHint .8s ease;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 分区入场动画 */
.hy-form-section {
    animation: hyFieldSlideIn .4s ease both;
}

.hy-form-section:nth-child(2) { animation-delay: .1s; }
.hy-form-section:nth-child(3) { animation-delay: .2s; }
.hy-form-section:nth-child(4) { animation-delay: .3s; }

/* ============================================
   v3.2 SMS插件注入字段统一化（hy_member插件）
   插件已使用 hy-field-group + hy-field-input 结构
   ============================================ */

/* SMS字段组：与 hy-field 一致的间距 */
.hy-form-section .hy-sms-reg-block {
    margin: 0;
    padding: 0;
}

.hy-form-section .hy-sms-reg-block .hy-field-group {
    margin-bottom: 10px;
    position: relative;
}

/* 验证码输入框 + 按钮组合 */
.hy-form-section .hy-sms-code-wrap {
    position: relative;
}

.hy-form-section .hy-sms-code-wrap .hy-field-input {
    padding-right: 110px;
}

.hy-form-section .hy-sms-code-wrap .hy-sms-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 14px;
    font-size: 12px;
}

/* 发送按钮：紫色渐变 */
.hy-form-section .hy-sms-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--lm-primary) 0%, var(--lm-primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: var(--lm-radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    white-space: nowrap;
    transition: var(--lm-transition);
    box-shadow: 0 2px 8px rgba(124,58,237,.2);
    flex-shrink: 0;
}

.hy-form-section .hy-sms-btn:hover {
    background: linear-gradient(135deg, var(--lm-primary-dark) 0%, #5B21B6 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124,58,237,.3);
}

.hy-form-section .hy-sms-btn:active {
    transform: translateY(0);
}

.hy-form-section .hy-sms-btn:disabled {
    background: #CBD5E1;
    color: #fff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 提示文字 */
.hy-form-section .hy-sms-tip {
    font-size: 12px;
    color: var(--lm-text-secondary);
    margin: 2px 0 8px;
    min-height: 16px;
    line-height: 1.4;
    transition: color .2s ease;
}

.hy-form-section .hy-sms-ok,
.hy-form-section .hy-sms-tip.hy-sms-ok {
    color: var(--lm-success);
}

.hy-form-section .hy-sms-err,
.hy-form-section .hy-sms-tip.hy-sms-err {
    color: var(--lm-danger);
}

/* SMS → 图形验证码 分隔线 */
.hy-sms-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--lm-text-secondary);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.hy-sms-divider::before,
.hy-sms-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--lm-border), transparent);
}

.hy-sms-divider span {
    white-space: nowrap;
}

/* 移动端：SMS 输入框和按钮优化 */
@media (max-width: 600px) {
    .hy-form-section .hy-sms-code-wrap .hy-field-input {
        padding-right: 96px;
    }

    .hy-form-section .hy-sms-code-wrap .hy-sms-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .hy-form-section .hy-sms-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .hy-form-section .hy-sms-code-wrap .hy-field-input {
        padding-right: 12px;
    }

    .hy-form-section .hy-sms-code-wrap .hy-sms-btn {
        position: static;
        transform: none;
        width: 100%;
        padding: 9px;
        margin-top: 6px;
        font-size: 12px;
    }
}

/* ============================================
   v3.3 完成注册/登录分区 & 登录页分区
   ============================================ */

/* “完成注册/登录”分区：突出提交按钮区域 */
.hy-form-section-final {
    background: linear-gradient(135deg, rgba(124,58,237,.04) 0%, rgba(8,145,178,.03) 100%) !important;
    border-color: rgba(124,58,237,.12) !important;
}

.hy-form-section-final .hy-form-section-title {
    color: var(--lm-primary) !important;
}

/* 提交按钮与分区之间间距收紧 */
.hy-form-section-final .hy-btn-submit {
    margin-top: 4px;
}

/* AJAX 登录/找回密码返回消息容器 */
.hy-return-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: var(--lm-radius-sm);
    font-size: 13px;
    line-height: 1.5;
    color: #dc2626;
    background: rgba(220,38,38,.08);
    border: 1px solid rgba(220,38,38,.2);
    text-align: center;
}
.hy-return-message:empty {
    display: none;
    margin: 0;
    padding: 0;
    border: none;
}

/* 分区内复选框与按钮间距 */
.hy-form-section-final .hy-checkbox-row {
    margin-bottom: 10px;
}

/* 分区内分隔线与第三方登录 */
.hy-form-section-final .hy-member-divider {
    margin-top: 14px;
}

/* 登录页 SMS 快捷登录区域整合 */
.hy-sms-login-wrap {
    margin-top: 16px !important;
}

/* 登录页找回密码表单分区 */
#layer_lostpw_ .hy-form-section {
    margin-bottom: 0;
}

/* 登录页表单分区间距优化 */
.hy-split-form-inner .hy-form-section + .hy-form-section {
    margin-top: 0;
}

/* 安全验证分区内图形验证码与 SMS 的间距 */
.hy-form-section .hy-seccheck-row {
    margin-top: 8px;
}

/* 最终分区移动端优化 */
@media (max-width: 600px) {
    .hy-form-section-final {
        padding: 10px 12px !important;
    }

    .hy-form-section-final .hy-btn-submit {
        margin-top: 6px;
    }
}

/* 登录页分区标题图标颜色 */
.hy-split-form .hy-form-section-title .hy-form-section-icon {
    filter: none;
}
