@charset "utf-8";

/* 注册页面通用样式 */
.register-wrap {
    max-width: 660px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 会员注册标题 */
.register-header {
    text-align: center;
    margin-bottom: 40px;
}
.register-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}
.register-header p {
    color: #666;
    font-size: 15px;
    margin: 0;
}

/* 会员注册协议 */
.register {
    background: #fff;
}

/* 提示信息 */
.register .register-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 18px 24px;
    border-radius: 12px;
    text-align: center;
    font-size: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.register .register-notice i {
    margin-right: 8px;
}

/* 条款区域 */
.register .terms-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.register .terms-section h2 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 18px 24px;
    margin: 0;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.register .terms-section textarea {
    width: 100%;
    height: 150px;
    padding: 20px;
    border: none;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    resize: none;
    background: #fff;
    box-sizing: border-box;
}

.register .terms-section .agree-row {
    padding: 16px 24px;
    background: #fafafa;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* 全选同意区域 */
.register .chk-all {
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
}
.register .chk-all:hover {
    border-color: #667eea;
}
.register .chk-all input[type="checkbox"] {
    display: none;
}
.register .chk-all input[type="checkbox"] + label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}
.register .chk-all input[type="checkbox"] + label span {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin-right: 14px;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}
.register .chk-all input[type="checkbox"]:checked + label span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}
.register .chk-all input[type="checkbox"]:checked + label span::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
}
.register .chk-all input[type="checkbox"]:checked + label {
    color: #1a1a1a;
}

/* 按钮区域 */
.register .btn_confirm {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}
.register .btn_confirm .btn {
    flex: 1;
    height: 54px;
    line-height: 54px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.register .btn_confirm .btn_close {
    background: #f5f5f5;
    color: #666;
}
.register .btn_confirm .btn_close:hover {
    background: #eee;
    color: #333;
}
.register .btn_confirm .btn_submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.register .btn_confirm .btn_submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}
.register .btn_confirm .btn_submit:active {
    transform: translateY(0);
}

/* 注册表单样式 */
.register .form-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
}

.register .form-section h2 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 18px 24px;
    margin: 0;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.register .form-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.register .form-section li {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}
.register .form-section li:last-child {
    border-bottom: none;
}

.register .form-section label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}
.register .form-section label .required-mark {
    color: #ff4757;
    margin-left: 4px;
}
.register .form-section label .desc {
    font-weight: 400;
    color: #888;
    font-size: 13px;
    margin-left: 6px;
}

.register .form-section .frm_input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fafafa;
}
.register .form-section .frm_input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.register .form-section .half-input-wrap {
    display: flex;
    gap: 12px;
}
.register .half-input {
    flex: 1;
}

/* 提示信息 */
.register .input-tip {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

/* 隐私表格 */
.register .privacy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.register .privacy-table th,
.register .privacy-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #eee;
}
.register .privacy-table th {
    background: #fafafa;
    font-weight: 500;
    color: #333;
}
.register .privacy-table td {
    color: #666;
}

/* 复选框样式 */
.register .fregister_agree input[type="checkbox"] {
    display: none;
}
.register .fregister_agree input[type="checkbox"] + label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}
.register .fregister_agree input[type="checkbox"] + label span {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
    transition: all 0.3s ease;
    position: relative;
}
.register .fregister_agree input[type="checkbox"]:checked + label span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}
.register .fregister_agree input[type="checkbox"]:checked + label span::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

/* 验证码 */
.register .captcha-wrap {
    padding: 20px 24px;
    background: #fafafa;
    border-top: 1px solid #eee;
}
.register .captcha-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

/* 本人认证按钮 */
.register .cert-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
}
.register .cert-btn:hover {
    background: #eee;
    border-color: #ddd;
}

/* SNS 社交登录 */
#sns_login {
    margin-top: 30px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 16px;
    text-align: center;
}
#sns_login h3 {
    font-size: 15px;
    font-weight: 500;
    color: #666;
    margin: 0 0 16px;
}
#sns_login .sns-wrap {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
#sns_login .sns-icon {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}
#sns_login .sns-icon:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
#sns_login .sns-naver { background: #03c75a; }
#sns_login .sns-kakao { background: #fee500; color: #333; }
#sns_login .sns-facebook { background: #1877f2; }
#sns_login .sns-google { background: #4285f4; }

/* 响应式 */
@media (max-width: 480px) {
    .register-wrap {
        padding: 30px 16px;
    }
    .register-header h1 {
        font-size: 24px;
    }
    .register .btn_confirm {
        flex-direction: column;
    }
    .register .btn_confirm .btn {
        width: 100%;
    }
    .register .half-input-wrap {
        flex-direction: column;
        gap: 12px;
    }
    #sns_login .sns-wrap {
        flex-direction: column;
    }
    #sns_login .sns-icon {
        width: 100%;
        justify-content: center;
    }
}
