/* @import url('webfonts.css'); */
/* ⚠️ 暂时禁用Web Font，等待字体文件上传 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #FFF4F6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* ⭐ 禁止滚动（桌面端/iPad） */
}

.container {
    width: 100%;
    max-width: 1920px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* ⭐ 禁止滚动 */
}

/* 主背景框 */
.main-frame {
    width: 1888px;
    height: 1048px;
    background: #FFF4F6;
    border: none;
    border-radius: 0;
    position: relative;
    display: flex;
    overflow: hidden;
    isolation: isolate;
}

/* 装饰性虚线 */
.decorative-line {
    position: absolute;
    top: 13px;
    left: 50%;
    width: 0;
    height: 1025px;
    border-left: 2px dashed #E0E0E0;
    z-index: 1;
}

/* 左侧装饰区域 */
.left-decoration {
    flex: 1;
    position: relative;
    background: #FFF4F6;
    overflow: hidden;
    pointer-events: none;
}

/* 背景装饰图片 */
.bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bg-mobile {
    display: none;
}

.bg-desktop {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
}

/* 标题区域布局 */
.title-section {
    padding-left: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.rabbit-image {
    margin-left: 46px;
    width: 140px;
    height: 145px;
    flex-shrink: 0;
}

.rabbit-character {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 右侧内容区域 */
.right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    position: relative;
    pointer-events: auto;
}

/* 欢迎标题 */
.welcome-title {
    font-family: 'Irish Grover', cursive;
    font-size: 64px;
    font-weight: 400;
    color: #333;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 20px;
}

/* 说明文字 */
.description-text {
    text-align: left;
    line-height: 1.4;
    flex: 1;
}

.description-text p {
    font-size: 20px;
    color: #333;
    margin-bottom: 6px;
}

/* 登录表单 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.input-group {
    width: 100%;
}

.input-container {
    position: relative;
    background: #FFFFFF;
    border-radius: 64px;
    padding: 19px 23px;
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.3s ease;
    max-width: 645px;
    margin: 0 auto;
}

.input-container:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.input-icon {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.form-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 24px;
    color: #333;
    background: transparent;
}

.form-input::placeholder {
    color: #999;
    font-size: 24px;
}

.forgot-link {
    color: #999;
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #EBB1C3;
}

/* 用户协议 */
.agreement-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 25px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 32px;
    height: 32px;
    border: 1px solid #999;
    border-radius: 50%;
    background: #FFFFFF;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: #EBB1C3;
    border-color: #EBB1C3;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.agreement-text {
    font-size: 24px;
    color: #999;
}

.agreement-link {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.agreement-link:hover {
    color: #EBB1C3;
    text-decoration: underline;
}

/* 按钮组 */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 37px;
    align-items: center;
}

.btn {
    width: 100%;
    max-width: 645px;
    padding: 17px 0;
    border: none;
    border-radius: 64px;
    font-size: 32px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.4;
}

.btn-login {
    background: #EBB1C3;
    color: #333;
}

.btn-login:hover {
    background: #D49BB0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 177, 195, 0.4);
}

.btn-register {
    background: #FFFFFF;
    color: #333;
    border: 2px solid #EBB1C3;
}

.btn-register:hover {
    background: #F9E4E9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */

/* ========================================
   iPad 横屏适配 (1024px - 1440px) - 使用 vh/vw 响应式单位
   基准: iPad 横屏 1366px × 1024px
   ======================================== */
@media (max-width: 1440px) and (min-width: 1024px) {
    
    /* 容器尺寸 */
    .container {
        width: 100vw; /* 1366px → 100vw */
        height: 100vh; /* 1024px → 100vh */
    }
    
    .main-frame {
        width: 97.66vw; /* 1334px → 97.66vw */
        height: 96.88vh; /* 992px → 96.88vh */
    }
    
    /* ========== 背景图处理 ========== */
    .left-decoration {
        width: 50%;
        background-image: url('/imgs/bg-imgs/首页图-ipad.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        padding: 0;
    }
    
    /* 隐藏原有的背景图img */
    .bg-decoration {
        display: none;
    }
    
    /* ========== 右侧内容区域 ========== */
    .right-content {
        width: 50%;
        padding: 5.47vh 0 5.47vh 7.32vw; /* 56px 0 56px 100px */
        justify-content: flex-start;
        gap: 0;
    }
    
    /* ========== 标题和兔子图标 ========== */
    .title-section {
        margin-bottom: 2.93vh; /* 30px → 2.93vh */
        padding-left: 0;
        gap: 1.1vw; /* 15px → 1.1vw */
    }
    
    .rabbit-image {
        width: 8.42vw; /* 115px → 8.42vw */
        height: 11.72vh; /* 120px → 11.72vh */
        margin-left: 0;
    }
    
    .description-text {
        padding-top: 2.93vh; /* 30px → 2.93vh */
        width: 100%;
        max-width: 32.95vw; /* 450px → 32.95vw */
    }
    
    .description-text p {
        font-size: 1.1vw; /* 15px → 1.1vw */
        line-height: 1.4;
        margin-bottom: 0.59vh; /* 6px → 0.59vh */
    }
    
    /* ========== 主标题 ========== */
    .welcome-title {
        font-size: 3.51vw; /* 48px → 3.51vw */
        line-height: 1.21;
        margin-bottom: 3.91vh; /* 40px → 3.91vh */
        text-align: center;
    }
    
    /* ========== 登录表单 ========== */
    .login-form {
        width: 100%;
        max-width: 41.07vw; /* 561px → 41.07vw */
        gap: 2.15vh; /* 22px → 2.15vh */
        margin-bottom: 3.91vh; /* 40px → 3.91vh */
    }
    
    .input-container {
        height: 7.81vh; /* 80px → 7.81vh */
        padding: 1.86vh 1.68vw; /* 19px 23px */
        max-width: 100%;
        gap: 1.83vw; /* 25px → 1.83vw */
    }
    
    .input-icon {
        width: 2.56vw; /* 35px → 2.56vw */
        height: 2.56vw; /* 35px → 2.56vw */
    }
    
    .form-input {
        font-size: 1.46vw; /* 20px → 1.46vw */
    }
    
    .form-input::placeholder {
        font-size: 1.46vw; /* 20px → 1.46vw */
    }
    
    .forgot-link {
        font-size: 1.46vw; /* 20px → 1.46vw */
    }
    
    /* ========== 按钮组 ========== */
    .button-group {
        width: 100%;
        max-width: 41.07vw; /* 561px → 41.07vw */
        gap: 2.71vw; /* 37px → 2.71vw */
        margin-bottom: 4.30vh; /* 44px → 4.30vh */
    }
    
    .btn {
        font-size: 2.34vw; /* 32px → 2.34vw */
        padding: 1.66vh 0; /* 17px 0 */
    }
    
    /* ========== 协议区域 ========== */
    .agreement-section {
        width: 100%;
        max-width: 41.07vw; /* 561px → 41.07vw */
        gap: 1.83vw; /* 25px → 1.83vw */
        margin-top: 4.30vh; /* 44px → 4.30vh */
        margin-bottom: 4.30vh; /* 44px → 4.30vh */
    }
    
    .checkmark {
        width: 2.34vw; /* 32px → 2.34vw */
        height: 2.34vw; /* 32px → 2.34vw */
    }
    
    .agreement-text {
        font-size: 1.76vw; /* 24px → 1.76vw */
    }
    
    /* ========== 装饰线 ========== */
    .decorative-line {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ========================================
   手机端适配 (max 768px) - 严格按照Figma设计
   iPhone 16: 393×852
   ======================================== */
@media (max-width: 768px) {
    
    /* ========== 容器 ========== */
    .container {
        width: 100%;
        height: 100vh;
        padding: 0;
        overflow: hidden;
    }
    
    /* ========== 主框架 - 使用背景图 ========== */
    .main-frame {
        width: 100%;
        max-width: 393px;
        height: 100%;
        max-height: 852px;
        margin: 0 auto;
        background-image: url('/imgs/bg-imgs/首页图-背景-手机端.png');
        background-size: 90%;
        background-position: center center;
        background-repeat: no-repeat;
        background-color: #FFF0F5;
        border: none;
        border-radius: 0;
        flex-direction: column;
        position: relative;
        padding: 0;
        overflow: hidden;
    }
    
    /* ========== 隐藏所有装饰元素 ========== */
    .decorative-line {
        display: none;
    }
    
    .left-decoration {
        display: none;
    }
    
    .bg-decoration {
        display: none;
    }
    
    .bg-mobile {
        display: none;
    }
    
    .bg-desktop {
        display: none;
    }
    
    .title-section {
        display: none;
    }
    
    .welcome-title {
        display: none;
    }
    
    /* ========== 右侧内容区域 ========== */
    .right-content {
        width: 100%;
        position: relative;
        padding: 0;
        gap: 0;
        display: block;
    }
    
    /* ========== 表单区域 ========== */
    .login-form {
        position: absolute;
        top: 460px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 48px);
        max-width: 340px;
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin: 0;
    }
    
    /* 输入框容器 */
    .input-group {
        width: 100%;
    }
    
    .input-container {
        width: 90%;
        height: 48px;
        padding: 12px 20px;
        gap: 12px;
        background: #FFFFFF;
        border-radius: 64px;
        display: flex;
        align-items: center;
        margin: 0 auto;
        max-width: none;
        box-shadow: 0 2px 6px rgba(235, 177, 195, 0.15);
    }
    
    .input-container:hover {
        box-shadow: 0 2px 10px rgba(235, 177, 195, 0.25);
        transform: none;
    }
    
    .input-icon {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
    
    .form-input {
        font-size: 15px;
        flex: 1;
    }
    
    .form-input::placeholder {
        font-size: 15px;
        color: #AAAAAA;
    }
    
    .forgot-link {
        font-size: 13px;
        flex-shrink: 0;
        color: #999999;
    }
    
    /* ========== 协议区域 ========== */
    .agreement-section {
        position: absolute;
        top: 600px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 80px);
        max-width: 260px;
        display: flex;
        align-items: flex-start;
        gap: 8px;
        margin: 0;
        justify-content: center;
    }
    
    .checkbox-container {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        cursor: pointer;
    }
    
    .checkmark {
        width: 12px;
        height: 12px;
        flex-shrink: 0;
        margin-top: 2px;
        border: 1px solid #999999;
    }
    
    .checkbox-container input[type="checkbox"]:checked + .checkmark::after {
        content: '';
        width: 6px;
        height: 6px;
        background: #FFFFFF;
        border-radius: 50%;
        font-size: 0;
    }
    
    .agreement-text {
        font-size: 12px;
        line-height: 1.4;
        color: #999999;
    }
    
    .agreement-link {
        font-size: 12px;
        color: #999999;
    }
    
    /* ========== 按钮组 ========== */
    .button-group {
        position: absolute;
        top: 630px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 48px);
        max-width: 340px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin: 0;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        max-width: none;
        padding: 14px 0;
        font-size: 16px;
        font-weight: 500;
        border-radius: 64px;
    }
    
    .btn-login {
        font-size: 14px;
        height: 40px;
        width: 90%;
        margin: 0 auto;
        background: #EBB1C3;
        color: #333333;
    }
    
    .btn-login:hover {
        background: #D49BB0;
        transform: none;
    }
    
    .btn-register {
        font-size: 14px;
        height: 40px;
        width: 90%;
        margin: 0 auto;
        background: #FFFFFF;
        color: #333333;
        border: 1px solid #EBB1C3;
    }
    
    .btn-register:hover {
        background: #F9E4E9;
        transform: none;
    }
}

/* 忘记密码弹窗样式 - 简化版（只显示图片） */
.forgot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.forgot-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.forgot-modal-image-wrapper {
    position: relative;
    z-index: 1;
    max-width: 90%;
    max-height: 90%;
}

.forgot-password-img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.forgot-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(235, 177, 195, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    color: #FFFFFF;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forgot-close-btn:hover {
    background: #EBB1C3;
    transform: scale(1.1) rotate(90deg);
}

/* 保留旧样式供参考 */
.scan-text {
    font-family: 'PingFang TC', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    text-align: left;
    white-space: pre-line;
}

.qrcode-image {
    width: 136px;
    height: 135px;
}

.qrcode-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-info-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 3px;
    width: 174px;
}

.account-name {
    font-family: 'PingFang TC', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #474747;
    line-height: 1.4;
    text-align: center;
}

.account-note {
    font-family: 'PingFang TC', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #474747;
    line-height: 1.4;
    text-align: center;
}

/* 注册弹窗样式 */
.register-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.register-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.register-modal-content {
    position: relative;
    background: #FFFFFF;
    border: 8px solid #EBB1C3;
    border-radius: 30px 16px 30px 16px;
    width: 776px;
    height: 871px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    z-index: 1;
    overflow: visible;
}

.register-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
    z-index: 2;
}

.register-close-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

.register-close-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.register-rabbit {
    position: absolute;
    left: 66px;
    top: 40px;
    width: 140px;
    height: 145px;
}

.register-rabbit img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.register-title {
    position: absolute;
    left: 231px;
    top: 102px;
    font-family: 'PingFang TC', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: #333;
    line-height: 1.2;
    margin: 0;
}

.register-subtitle {
    position: absolute;
    left: 246px;
    top: 182px;
    font-family: 'PingFang TC', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.register-form-section {
    position: absolute;
    left: 69px;
    top: 233px;
    width: 639px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.register-input-wrapper {
    width: 100%;
    background: #F9E4E9;
    border-radius: 64px;
    padding: 19px 23px;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 10px;
}

.register-input-wrapper.active {
    background: #EBB1C3;
}

.register-input-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 177, 195, 0.3);
}

.register-input-inner {
    display: flex;
    align-items: center;
    gap: 25px;
}

.register-input-icon {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.register-input-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.register-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 24px;
    color: #333;
    background: transparent;
    font-family: 'PingFang TC', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
}

.register-input::placeholder {
    color: #999;
    font-size: 24px;
    font-weight: 400;
}

.register-submit-btn {
    position: absolute;
    left: 198px;
    top: 529px;
    width: 380px;
    height: 80px;
    background: #EBB1C3;
    border: none;
    border-radius: 64px;
    font-family: 'PingFang TC', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-submit-btn:hover {
    background: #D49BB0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 177, 195, 0.4);
}

.register-heart-icon {
    position: absolute;
    left: 27px;
    top: 453px;
    width: 28px;
    height: 28px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.register-heart-icon.show {
    opacity: 1;
}

.register-heart-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.register-contact-section {
    position: absolute;
    left: 84px;
    top: 652px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
}

.register-contact-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 168px;
}

.register-xiaohongshu-btn {
    background: #F9E4E9;
    border: none;
    border-radius: 32px;
    padding: 11px 19px;
    width: 111px;
    height: 59px;
    font-family: 'PingFang TC', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.4;
}

.register-xiaohongshu-btn:hover {
    background: #EBB1C3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 177, 195, 0.3);
}

.register-scan-text {
    font-family: 'PingFang TC', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    text-align: left;
    white-space: pre-line;
}

.register-qrcode {
    width: 136px;
    height: 135px;
}

.register-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.register-contact-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 3px;
    width: 174px;
}

.register-account-name {
    font-family: 'PingFang TC', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #474747;
    line-height: 1.4;
    text-align: center;
}

.register-account-note {
    font-family: 'PingFang TC', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #474747;
    line-height: 1.4;
    text-align: center;
}

/* ========================================
   注册弹窗样式 - 严格按照Figma设计
   ======================================== */

/* 弹窗遮罩层 */
.register-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.register-modal-overlay.show {
    display: flex;
}

/* 主弹窗容器 - Rectangle 12 */
/* Figma: 776x871, 位置(580, 112) */
.register-modal-container {
    position: relative;
    width: 776px;
    height: 871px;
    background: #FFFFFF;
    border: 8px solid #EBB1C3;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* 关闭按钮 - Group 38 */
/* Figma相对位置: (696, 30) */
.register-close-btn {
    position: absolute;
    left: 696px;
    top: 30px;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
    z-index: 10;
}

.register-close-btn:hover {
    transform: rotate(90deg);
}

.register-close-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 顶部图片组（兔子+标题+副标题） - Group 324 */
/* Figma相对位置: (66, 40), 尺寸: 597x170 */
.register-header-group {
    position: absolute;
    left: 66px;
    top: 40px;
    width: 597px;
    height: 170px;
}

.register-header-group img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 输入框区域 - Frame 18 */
/* Figma相对位置: (69, 233), 宽639px */
.register-form {
    position: absolute;
    left: 69px;
    top: 233px;
    width: 639px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 输入框容器 */
.register-input-wrapper {
    width: 100%;
    height: 80px;
    border-radius: 64px;
    padding: 19px 23px;
}

/* 账号输入框 - 粉色-1背景 */
.register-input-wrapper.input-account {
    background: #F9E4E9;
}

/* 密钥输入框 - 粉色-1背景 */
.register-input-wrapper.input-key {
    background: #F9E4E9;
}

/* 密码输入框 - 粉色-2背景 */
.register-input-wrapper.input-password {
    background: #EBB1C3;
}

/* 输入框内部容器 */
.register-input-inner {
    display: flex;
    align-items: center;
    gap: 25px;
    height: 100%;
}

/* 图标容器 */
.register-icon {
    width: 39px;
    height: 39px;
    flex-shrink: 0;
}

.register-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 输入框 */
.register-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'PingFang TC', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #333333;
    outline: none;
}

.register-input::placeholder {
    color: #999999;
}

/* 爱心图标 - Frame */
/* Figma相对位置: (27, 453) */
.register-heart-icon {
    position: absolute;
    left: 27px;
    top: 453px;
    width: 28px;
    height: 28px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.register-heart-icon.show {
    opacity: 1;
}

.register-heart-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 立刻注册按钮 - Frame 3 */
/* Figma相对位置: (198, 529), 380x80 */
.register-submit-btn {
    position: absolute;
    left: 198px;
    top: 550px;
    width: 380px;
    height: 80px;
    background: #EBB1C3;
    border: none;
    border-radius: 64px;
    font-family: 'PingFang TC', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.register-submit-btn:hover {
    background: #D99FAF;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(235, 177, 195, 0.4);
}

/* 底部联系信息 - Frame 15 */
/* Figma相对位置: (84, 652), 593x152 - 居中放置 */
.register-contact-section {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
}

/* 左侧信息 - Frame 13 */
.register-contact-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 168px;
}

/* 小红书按钮 - Frame 12 */
.register-xiaohongshu-btn {
    background: #F9E4E9;
    border: none;
    border-radius: 32px;
    padding: 11px 19px;
    width: 111px;
    height: 59px;
    font-family: 'PingFang TC', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.4;
}

.register-xiaohongshu-btn:hover {
    background: #EBB1C3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 177, 195, 0.3);
}

/* 扫描文字 */
.register-scan-text {
    font-family: 'PingFang TC', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    text-align: left;
    margin: 0;
}

/* 二维码 - image 6 */
.register-qrcode {
    width: 136px;
    height: 135px;
}

.register-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右侧信息 - Frame 14 */
.register-contact-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 3px;
    width: 174px;
}

/* 账号名称 */
.register-account-name {
    font-family: 'PingFang TC', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #474747;
    line-height: 1.4;
    text-align: center;
    margin: 0;
}

/* 账号备注 */
.register-account-note {
    font-family: 'PingFang TC', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #474747;
    line-height: 1.4;
    text-align: center;
    margin: 0;
}

/* 响应式设计 - 弹窗 */

/* iPad 横屏适配 - 弹窗 (1024px - 1440px) */
@media (max-width: 1440px) and (min-width: 1024px) {
    .forgot-modal-content {
        width: 900px;
        height: 812px;
    }
    
    .forgot-title {
        font-size: 64px;
        left: 64px;
        top: 56px;
    }
    
    .forgot-description {
        font-size: 20px;
        left: 64px;
        top: 152px;
        width: 520px;
    }
    
    .forgot-rabbit {
        width: 130px;
        height: 135px;
        left: 100px;
        top: 320px;
    }
    
    .forgot-contact-section {
        left: 275px;
        top: 345px;
        gap: 35px;
    }
    
    .scan-text {
        font-size: 22px;
    }
    
    .xiaohongshu-btn {
        font-size: 22px;
        padding: 10px 18px;
    }
    
    .account-name {
        font-size: 22px;
    }
    
    .account-note {
        font-size: 16px;
    }
    
    .register-modal-content {
        width: 900px;
        height: 812px;
    }
    
    .register-title {
        font-size: 64px;
        left: 64px;
        top: 56px;
        width: 700px;
    }
    
    .register-subtitle {
        font-size: 20px;
        left: 64px;
        top: 152px;
        width: 720px;
    }
    
    .register-form-section {
        left: 64px;
        top: 240px;
        width: 460px;
    }
    
    .register-input {
        font-size: 22px;
        padding: 19px 23px;
        height: 75px;
    }
    
    .register-input::placeholder {
        font-size: 22px;
    }
    
    .register-submit-btn {
        font-size: 28px;
        height: 70px;
        margin-top: 30px;
    }
    
    .register-contact-section {
        margin: 0 auto;
        bottom: 20px;
        gap: 35px;
    }
    
    .register-scan-text {
        font-size: 22px;
    }
    
    .register-xiaohongshu-btn {
        font-size: 22px;
        padding: 10px 18px;
        width: 105px;
        height: 55px;
    }
    
    .register-account-name {
        font-size: 22px;
    }
    
    .register-account-note {
        font-size: 16px;
    }
}

/* 平板竖屏和小屏笔记本 - 弹窗 (769px - 1024px) */
@media (max-width: 1200px) and (min-width: 769px) {
    .forgot-modal-content {
        width: 90%;
        max-width: 700px;
    }
    
    .register-modal-content {
        width: 90%;
        max-width: 750px;
        height: auto;
        padding-bottom: 30px;
    }
}

/* 手机横屏和小平板 - 弹窗 (481px - 768px) */
@media (max-width: 768px) {
    .forgot-modal-content {
        width: 95%;
        padding: 40px 30px 30px;
    }
    
    .forgot-title {
        font-size: 48px;
    }
    
    .forgot-description {
        font-size: 18px;
    }
    
    .forgot-contact-section {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .register-modal-content {
        width: 95%;
    }
    
    .register-title {
        font-size: 36px;
        left: 20px;
        right: 80px;
        width: auto;
    }
    
    .register-form-section {
        left: 20px;
        right: 20px;
        width: auto;
    }
}

/* 手机竖屏 - 弹窗 (max 480px) */
@media (max-width: 480px) {
    .forgot-modal-content {
        padding: 30px 20px 20px;
    }
    
    .forgot-title {
        font-size: 32px;
    }
    
    .forgot-description {
        font-size: 16px;
    }
    
    .forgot-rabbit {
        width: 100px;
        height: 104px;
    }
    
    .scan-text {
        font-size: 18px;
    }
    
    .xiaohongshu-btn {
        font-size: 18px;
    }
    
    .account-name {
        font-size: 18px;
    }
    
    .account-note {
        font-size: 14px;
    }
}

/* ========================================
   移动端注册弹窗样式 - 完全重写
   ======================================== */

@media (max-width: 768px) {
    /* 注册弹窗容器 - 手机端缩小，禁止滚动 */
    .register-modal-container {
        width: 90vw;
        max-width: 500px;
        height: auto;
        max-height: 90vh;
        overflow: hidden; /* 禁止上下左右滚动 */
        padding: 20px;
        border: 4px solid #EBB1C3;
        box-sizing: border-box; /* 确保padding包含在宽度内 */
    }
    
    /* 禁止整个弹窗overlay的滚动 */
    .register-modal-overlay.show {
        overflow: hidden;
    }
    
    /* 禁止body滚动（当弹窗打开时） */
    body.modal-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    /* 关闭按钮 - 调整位置 */
    .register-close-btn {
        left: auto;
        right: 15px;
        top: 15px;
        width: 35px;
        height: 35px;
    }
    
    /* 顶部图片组 - 调整大小和位置 */
    .register-header-group {
        position: relative;
        left: 0;
        transform: none;
        top: 0;
        width: 100%;
        height: auto;
        margin: 0 0 20px 0;
        display: block;
        box-sizing: border-box;
    }
    
    .register-header-group img {
        width: 100%;
        height: auto;
        display: block;
    }
    
    /* 输入框区域 - 居中并调整宽度 */
    .register-form {
        position: relative;
        left: 0;
        transform: none;
        top: auto;
        width: 100%;
        max-width: 100%;
        margin: 20px 0;
        gap: 12px;
        box-sizing: border-box;
    }
    
    /* 输入框容器 - 调整高度和padding */
    .register-input-wrapper {
        height: 60px;
        padding: 12px 18px;
        border-radius: 48px;
    }
    
    /* Icon容器 - 缩小 */
    .register-icon {
        width: 28px;
        height: 28px;
    }
    
    /* 输入框内部 - 调整间距 */
    .register-input-inner {
        gap: 15px;
    }
    
    /* 输入框文字 - 缩小字体 */
    .register-input {
        font-size: 14px;
    }
    
    .register-input::placeholder {
        font-size: 13px;
    }
    
    /* 爱心图标 - 移动端隐藏 */
    .register-heart-icon {
        display: none;
    }
    
    /* 立刻注册按钮 - 调整大小和位置 */
    .register-submit-btn {
        position: relative;
        left: 0;
        transform: none;
        top: auto;
        width: 100%;
        max-width: 100%;
        height: 55px;
        font-size: 20px;
        padding: 12px;
        border-radius: 48px;
        margin: 15px 0;
        box-sizing: border-box;
    }
    
    /* 底部联系信息 - 垂直排列 */
    .register-contact-section {
        position: relative;
        left: 0;
        transform: none;
        bottom: auto;
        top: auto;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
        margin-top: 20px;
        padding-bottom: 20px;
        box-sizing: border-box;
    }
    
    /* 左侧信息 - 居中 */
    .register-contact-left {
        align-items: center;
        width: auto;
    }
    
    /* 小红书按钮 - 调整大小 */
    .register-xiaohongshu-btn {
        width: 90px;
        height: 45px;
        font-size: 18px;
        padding: 8px 15px;
        border-radius: 24px;
    }
    
    /* 扫描文字 - 居中对齐 */
    .register-scan-text {
        font-size: 16px;
        text-align: center;
    }
    
    /* 二维码 - 缩小 */
    .register-qrcode {
        width: 100px;
        height: 100px;
    }
    
    /* 右侧信息 - 居中 */
    .register-contact-right {
        width: auto;
    }
    
    /* 账号名称和备注 - 调整字体 */
    .register-account-name {
        font-size: 18px;
    }
    
    .register-account-note {
        font-size: 14px;
    }
    
    /* 输入框容器 - 确保不溢出 */
    .register-input-wrapper {
        box-sizing: border-box;
        width: 100%;
    }
    
    /* 确保所有元素不超出容器 */
    .register-modal-container * {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* 超小屏手机 (max 380px) */
@media (max-width: 380px) {
    .register-modal-container {
        width: 95vw;
        padding: 15px;
    }
    
    .register-header-group {
        width: 95%;
    }
    
    .register-input-wrapper {
        height: 55px;
        padding: 10px 15px;
    }
    
    .register-icon {
        width: 24px;
        height: 24px;
    }
    
    .register-input {
        font-size: 13px;
    }
    
    .register-input::placeholder {
        font-size: 12px;
    }
    
    .register-submit-btn {
        height: 50px;
        font-size: 18px;
        width: 90%;
    }
    
    .register-xiaohongshu-btn {
        width: 80px;
        height: 40px;
        font-size: 16px;
    }
    
    .register-scan-text {
        font-size: 14px;
    }
    
    .register-qrcode {
        width: 90px;
        height: 90px;
    }
    
    .register-account-name {
        font-size: 16px;
    }
    
    .register-account-note {
        font-size: 12px;
    }
}

/* ==================== 隐藏小红书二维码 ==================== */
/* 临时隐藏注册弹窗和忘记密码弹窗中的小红书二维码 */
/* 需要时删除此部分CSS即可恢复显示 */

/* 隐藏注册弹窗的小红书联系信息区域 */
.register-contact-section {
    display: none !important;
}

/* 隐藏忘记密码弹窗的图片 */
.forgot-password-img {
    display: none !important;
}

/* 忘记密码弹窗样式优化 */
.forgot-modal-image-wrapper {
    background: white;
    padding: 0;
    border-radius: 16px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.forgot-temp-message {
    padding: 60px 40px !important;
}

.forgot-temp-message h2 {
    font-size: 28px !important;
    margin-bottom: 20px !important;
    color: #EBB1C3 !important;
    font-weight: 600;
}

.forgot-temp-message p {
    font-size: 18px !important;
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
    color: #333 !important;
}

.forgot-temp-message p:last-child {
    font-size: 16px !important;
    color: #999 !important;
}

/* 如果完全不想显示忘记密码弹窗，取消下面的注释 */
/*
.forgot-modal {
    display: none !important;
}
*/
