/* 页面主体样式 */
.register-main {
    margin-bottom: 50px;
    background-color: #f5f5f5;
}

/* 页面横幅样式 */
.page-banner {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin-bottom: -40px;
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-banner h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 36px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

/* 内容区域样式 */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 注册表单容器 */
.register-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 40px;
}

.register-header {
    text-align: center;
    margin-bottom: 40px;
}

.register-header h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 600;
}

.register-header p {
    color: #666;
    font-size: 16px;
}

/* 头像上传样式 */
.avatar-upload {
    text-align: center;
    margin-bottom: 40px;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: border-color 0.3s;
}

.avatar-preview:hover {
    border-color: #c41230;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-edit input {
    display: none;
}

.avatar-edit label {
    display: inline-block;
    padding: 10px 24px;
    background: #f5f5f5;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
}

.avatar-edit label:hover {
    background: #e0e0e0;
    color: #333;
}

/* 表单区域样式 */
.form-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 15px;
    color: #333;
}

.input-wrapper input:hover {
    border-color: #c41230;
}

.input-wrapper input:focus {
    border-color: #c41230;
    box-shadow: 0 0 0 3px rgba(196,18,48,0.1);
    outline: none;
}

.validation-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.validation-icon.success {
    background-image: url('../images/icon-success.png');
    opacity: 1;
}

.validation-icon.error {
    background-image: url('../images/icon-error.png');
    opacity: 1;
}

.validation-message {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #dc3545;
    min-height: 20px;
}

/* 密码强度样式 */
.password-strength {
    margin-top: 12px;
}

.strength-bar {
    display: block;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-bar::before {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: #dc3545;
    transition: all 0.3s;
}

.strength-bar.weak::before {
    width: 33.33%;
    background: #dc3545;
}

.strength-bar.medium::before {
    width: 66.66%;
    background: #ffc107;
}

.strength-bar.strong::before {
    width: 100%;
    background: #28a745;
}

.strength-text {
    font-size: 13px;
    color: #666;
}

/* 单选框和复选框样式 */
.radio-group,
.interest-group {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.radio-label input,
.checkbox-label input {
    margin-right: 8px;
    cursor: pointer;
}

.radio-label span,
.checkbox-label span {
    font-size: 15px;
    color: #333;
}

/* 地区选择样式 */
.region-select {
    display: flex;
    gap: 15px;
}

.region-select select {
    flex: 1;
    height: 44px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6"><path d="M0 0l6 6 6-6z" fill="%23666"/></svg>') no-repeat;
    background-position: right 15px center;
    background-color: #fff;
}

.region-select select:hover {
    border-color: #c41230;
}

.region-select select:focus {
    border-color: #c41230;
    box-shadow: 0 0 0 3px rgba(196,18,48,0.1);
    outline: none;
}

/* 验证码样式 */
.captcha-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
}

.captcha-wrapper input {
    width: 140px;
    height: 44px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 18px;
    letter-spacing: 4px;
    text-align: center;
    transition: all 0.3s;
}

.captcha-wrapper input:hover {
    border-color: #c41230;
}

.captcha-wrapper input:focus {
    border-color: #c41230;
    box-shadow: 0 0 0 3px rgba(196,18,48,0.1);
    outline: none;
}

.captcha-image {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-image img {
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.captcha-image img:hover {
    border-color: #c41230;
}

#refreshCaptcha {
    height: 44px;
    padding: 0 15px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
}

#refreshCaptcha:hover {
    background: #f5f5f5;
    border-color: #c41230;
    color: #c41230;
}

/* 用户协议样式 */
.agreement-group {
    margin: 30px 0;
}

.agreement-link {
    color: #c41230;
    text-decoration: none;
    transition: color 0.3s;
}

.agreement-link:hover {
    color: #a00f28;
    text-decoration: underline;
}

/* 提交按钮样式 */
.form-submit {
    text-align: center;
}

.submit-btn {
    width: 100%;
    max-width: 320px;
    height: 48px;
    background: #c41230;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: #a00f28;
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.login-link {
    margin-top: 20px;
    color: #666;
    font-size: 15px;
}

.login-link a {
    color: #c41230;
    text-decoration: none;
    transition: color 0.3s;
}

.login-link a:hover {
    color: #a00f28;
    text-decoration: underline;
}

/* 用户协议弹窗样式 */
.agreement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.agreement-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.agreement-modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: #c41230;
    background: #f5f5f5;
}

.agreement-content {
    margin-top: 20px;
    color: #333;
    line-height: 1.8;
}

.agreement-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.agreement-content p {
    margin-bottom: 15px;
    font-size: 15px;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .register-container {
        padding: 30px 20px;
    }

    .page-banner h1 {
        font-size: 28px;
    }

    .register-header h2 {
        font-size: 24px;
    }

    .form-section h3 {
        font-size: 18px;
    }

    .region-select {
        flex-direction: column;
    }

    .radio-group,
    .interest-group {
        gap: 15px;
    }

    .captcha-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .captcha-wrapper input {
        width: 100%;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .close-modal {
        top: 15px;
        right: 15px;
    }
}

@media screen and (max-width: 480px) {
    .page-banner {
        height: 200px;
    }

    .page-banner h1 {
        font-size: 24px;
    }

    .content-wrapper {
        padding: 30px 15px;
    }

    .register-container {
        padding: 20px 15px;
    }

    .avatar-preview {
        width: 100px;
        height: 100px;
    }

    .form-section {
        margin-bottom: 25px;
        padding-bottom: 25px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .input-wrapper input,
    .region-select select,
    .captcha-wrapper input,
    #refreshCaptcha {
        height: 40px;
    }

    .submit-btn {
        height: 44px;
        font-size: 15px;
    }
} 