* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background-color: #3E6CF7;
    min-height: 100vh;
    color: #333;
}

/* 顶部白色标题栏 */
.header {
    background-color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-btn {
    width: 20px;
    height: 20px;
    background-image: url('../images/left-Arrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    border: none;
    background-color: transparent;
}

.header-title {
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    font-weight: bold;
    font-size: 32px;
    color: #000000;
    text-align: center;
    font-style: normal;
    text-transform: none;
    flex: 1;
    padding-right: 20px;
    /* 左右各留44px空间，与返回按钮对齐 */
}

/* 背景图片区域 */
.banner-section {
    position: relative;
    width: 100%;
    min-height: 560px;
    overflow: hidden;
    margin-top: 0;
}

.banner-image {
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: contain;
    object-position: center top;
    /* position: absolute; */
    top: 0;
    left: 0;
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding-top: 0;
    min-height: 200px;
    margin-top: -150px;
    margin-bottom: 40px;
}

/* 表单容器 */
.form-container {
    width: 620px;
    max-width: calc(100% - 40px);
    margin: 0 auto 20px;
    background-color: #fff;
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

/* 表单输入框 - 根据设计稿样式 */
.form-input {
    width: 100%;
    max-width: 620px;
    /* 桌面端最大宽度限制 */
    height: 88px;
    /* 设计稿指定高度 */
    padding: 0 24px;
    /* 左右内边距 */
    border: 1px solid #D2D2D2;
    /* 设计稿边框颜色 */
    border-radius: 18px;
    /* 设计稿圆角 */
    background: #FFFFFF;
    /* 设计稿背景色 */
    font-size: 18px;
    /* 适配高度的大字体 */
    font-weight: 400;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
    display: flex;
    align-items: center;
    /* 文字垂直居中 */
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #3E6CF7;
    /* 聚焦时主色调边框 */
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(62, 108, 247, 0.1);
}

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

/* 移动端响应式适配 */
@media (max-width: 768px) {
    .form-input {
        height: 60px;
        /* 平板端高度 */
        padding: 0 20px;
        font-size: 16px;
        border-radius: 14px;
    }

    .form-input::placeholder {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .form-input {
        height: 50px;
        /* 手机端高度 */
        padding: 0 16px;
        font-size: 16px;
        border-radius: 12px;
    }

    .form-input::placeholder {
        font-size: 16px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 360px) {
    .banner-section {
        min-height: 270px;
    }

    .banner-content {
        padding-top: 0;
        min-height: 120px;
        margin-top: -50px;
    }

    .form-input {
        height: 44px;
        padding: 0 12px;
        font-size: 14px;
        border-radius: 10px;
    }

    .form-input::placeholder {
        font-size: 14px;
    }
}

/* 验证码组 - 一体化布局 */
.verification-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.verification-input {
    width: 100%;
    height: 88px;
    padding: 0 24px 0 24px;
    padding-right: 160px;
    border: 1px solid #D2D2D2;
    border-radius: 18px 0px 0px 18px;
    background: #FFFFFF;
    font-size: 18px;
    font-weight: 400;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.verification-input:focus {
    border-color: #3E6CF7;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(62, 108, 247, 0.1);
}

.verification-input::placeholder {
    color: #999;
    font-size: 18px;
}

/* 获取验证码按钮 - 嵌套在输入框内 */
.get-code-btn {
    position: absolute;
    right: 0;
    top: 0;
    width: 150px;
    height: 88px;
    background: linear-gradient(180deg, #477DF7 0%, #4E66F3 100%);
    border: none;
    border-radius: 0px 18px 18px 0px;
    color: #FFFFFF;
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    font-weight: 500;
    font-size: 30px;
    font-style: normal;
    text-transform: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.get-code-btn:hover {
    background: linear-gradient(180deg, #3a6ae8 0%, #4558e0 100%);
    transform: translateY(-1px);
}

.get-code-btn:active {
    transform: translateY(0);
}

.get-code-btn:disabled {
    background: linear-gradient(180deg, #ccc 0%, #bbb 100%);
    cursor: not-allowed;
    transform: none;
}

/* 协议同意 */
.agreement-group {
    margin: 25px 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    margin-top: 2px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checkbox-input:checked+.checkbox-custom {
    background: #3E6CF7;
    border-color: #3E6CF7;
}

.checkbox-input:checked+.checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.agreement-text {
    color: #666;
}

.agreement-link {
    color: #3E6CF7;
    text-decoration: none;
}

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

/* 注册按钮 */
.register-btn {
    width: 620px;
    max-width: 100%;
    height: 88px;
    background: linear-gradient(90deg, #5449ED 0%, #4684F9 100%);
    color: white;
    border: none;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(62, 108, 247, 0.3);
}

.register-btn:active {
    transform: translateY(0);
}

.register-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 登录链接 */
.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.login-link a {
    color: #3E6CF7;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

/* 错误信息 */
.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
    display: none;
}

.error-message.show {
    display: block;
}

/* 加载提示 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3E6CF7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

/* 成功提示 */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.success-modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 300px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.modal-text {
    color: #666;
    margin-bottom: 30px;
}

.modal-btn {
    padding: 12px 30px;
    background: #3E6CF7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: #2c5ce6;
}

/* Toast 弹窗样式 - 简洁版本 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    max-width: 90%;
    min-width: 300px;
    background: white;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 0 20px;
    position: relative;
}

.toast-icon {
    font-size: 18px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.toast-success .toast-icon {
    color: #4CAF50;
}

.toast-error .toast-icon {
    color: #f44336;
}

.toast-message {
    flex: 1;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

.toast-footer {
    padding: 0 20px 20px 20px;
    text-align: center;
}

.toast-close-btn {
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
}

.toast-close-btn:hover {
    background: #0056CC;
}

.toast-close-btn:active {
    transform: scale(0.98);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .toast {
        min-width: 280px;
        max-width: 95%;
    }

    .toast-content {
        padding: 16px;
    }

    .toast-message {
        font-size: 15px;
    }
}

/* 平板端适配 */
@media (max-width: 768px) {
    .banner-section {
        min-height: 460px;
    }

    .banner-content {
        padding-top: 0;
        min-height: 180px;
        margin-top: -140px;
        margin-bottom: 40px;
    }

    .register-btn {
        width: 100%;
        height: 70px;
        border-radius: 16px;
    }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .header {
        padding: 12px 15px;
    }

    .header-title {
        font-size: 28px;
    }

    .banner-section {
        min-height: 350px;
        padding-bottom: 0;
    }

    .banner-content {
        padding-top: 0;
        min-height: 150px;
        margin-top: -80px;
        margin-bottom: 40px;
    }

    .form-container {
        padding: 25px 15px;
        margin-bottom: 20px;
    }

    .form-input {
        padding: 12px 15px;
        font-size: 16px;
    }

    .verification-input {
        height: 50px;
        padding-right: 110px;
        font-size: 16px;
        border-radius: 12px;
    }

    .verification-input::placeholder {
        font-size: 16px;
    }

    .get-code-btn {
        width: 100px;
        height: 50px;
        font-size: 16px;
        border-radius: 0px 12px 12px 0px;
    }

    .register-btn {
        width: 100%;
        height: 60px;
        font-size: 16px;
        border-radius: 14px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    animation: fadeIn 0.6s ease-out;
}

/* 功能介绍区域样式 */
.features-container {
    width: 620px;
    max-width: calc(100% - 40px);
    margin: 26px auto 0;
    background-image: url('../images/back-border.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    padding: 30px 20px;
    box-sizing: border-box;
    position: relative;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    margin-right: 16px;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-family: "PingFang SC", "PingFang SC";
    font-weight: bold;
    font-size: 26px;
    color: #FFFFFF;
    text-align: left;
    font-style: normal;
    text-transform: none;
    margin-bottom: 8px;
    line-height: 1.3;
}

.feature-desc {
    font-family: "PingFang SC", "PingFang SC";
    font-weight: 500;
    font-size: 14px;
    color: #BAD9FF;
    text-align: left;
    font-style: normal;
    text-transform: none;
    line-height: 1.5;
}

/* 响应式设计 - 功能介绍区域 */
@media (max-width: 768px) {
    .features-container {
        margin-top: 20px;
        padding: 25px 15px;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        margin-right: 12px;
    }

    .feature-title {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .feature-desc {
        font-size: 13px;
    }

    .feature-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .features-container {
        margin-top: 16px;
        margin-bottom: 20px;
        padding: 20px 12px;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        margin-right: 10px;
    }

    .feature-title {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .feature-desc {
        font-size: 13px;
        line-height: 1.4;
    }

    .feature-item {
        margin-bottom: 16px;
    }
}