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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f6f8;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

input, button {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* ========== 顶部黑色导航栏 ========== */
.top-bar {
    background-color: #000;
    height: 40px;
    width: 100%;
}

.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 13px;
}

.top-brand-sub {
    color: #ccc;
}

.top-divider {
    margin: 0 8px;
    color: #666;
}

.top-brand-main {
    color: #fff;
    font-weight: 500;
}

.top-bar-right {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 13px;
}

.top-link {
    color: #fff;
    margin-right: 20px;
    cursor: pointer;
}

.top-link:hover {
    color: #e63540;
}

.top-phone {
    display: flex;
    align-items: center;
    color: #fff;
}

.phone-icon {
    margin-right: 4px;
    color: #e63540;
}

/* ========== 品牌头部 ========== */
.brand-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.brand-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.brand-logo .logo-text {
    font-size: 36px;
    font-weight: bold;
    color: #c8202c;
    letter-spacing: 2px;
}

.help-link {
    font-size: 16px;
    color: #666;
    cursor: pointer;
}

.help-link:hover {
    color: #c8202c;
}

/* ========== 主体内容 ========== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* ========== 步骤指示器 ========== */
.steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 120px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ccc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.step.active .step-circle {
    background-color: #c8202c;
    box-shadow: 0 0 0 6px rgba(200, 32, 44, 0.15);
}

.step-label {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.step.active .step-label {
    color: #333;
    font-weight: 500;
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: #ddd;
    margin-top: 19px;
    max-width: 180px;
    min-width: 60px;
}

.step-line.active-line {
    background: repeating-linear-gradient(
        to right,
        #c8202c 0,
        #c8202c 6px,
        transparent 6px,
        transparent 12px
    );
}

/* ========== 表单卡片 ========== */
.form-card {
    background-color: #fff;
    border-radius: 2px;
    padding: 0 40px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.form-card-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    padding: 24px 0 16px;
}

.form-card-divider {
    height: 1px;
    background-color: #e8e8e8;
    margin-bottom: 30px;
}

/* ========== 表单行 ========== */
.register-form {
    max-width: 680px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
}

.form-label {
    width: 180px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 15px;
    padding-top: 10px;
    font-size: 14px;
    color: #333;
}

.required {
    color: #c8202c;
    margin-right: 2px;
}

.form-field {
    flex: 1;
    position: relative;
}

/* ========== 输入框 ========== */
.form-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.2s;
}

.form-input::placeholder {
    color: #bbb;
}

.form-input:focus {
    border-color: #c8202c;
}

.form-input.error {
    border-color: #c8202c;
}

/* ========== 错误提示 ========== */
.error-msg {
    font-size: 12px;
    color: #c8202c;
    margin-top: 5px;
    min-height: 16px;
    line-height: 16px;
    display: none;
}

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

.error-msg.hint {
    color: #999;
    display: block;
}

.error-msg.hint.show-error {
    color: #c8202c;
}

/* ========== 图形验证码 ========== */
.captcha-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.captcha-input {
    flex: 1;
    min-width: 200px;
}

.captcha-img {
    width: 100px;
    height: 40px;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f5f5f5;
}

.captcha-img canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.captcha-field .error-msg {
    width: 100%;
}

/* ========== 手机验证码 ========== */
.sms-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.sms-input {
    flex: 1;
    min-width: 200px;
}

.sms-btn {
    height: 40px;
    padding: 0 18px;
    background-color: #f5f5f5;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    white-space: nowrap;
}

.sms-btn:hover:not(:disabled) {
    border-color: #c8202c;
    color: #c8202c;
}

.sms-btn:disabled {
    color: #999;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.sms-field .error-msg {
    width: 100%;
}

/* ========== 协议勾选 ========== */
.agreement-row {
    margin-top: 10px;
    margin-bottom: 20px;
}

.agreement-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.agreement-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #c8202c;
}

.agreement-link {
    color: #c8202c;
}

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

/* ========== 提交按钮 ========== */
.submit-row {
    margin-top: 10px;
}

.submit-btn {
    width: 200px;
    height: 44px;
    background-color: #c8202c;
    border: none;
    border-radius: 2px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    letter-spacing: 4px;
    display: block;
    margin: 0 auto;
}

.submit-btn:hover {
    background-color: #a81a24;
}

.submit-btn:active {
    background-color: #8f161f;
}

/* ========== 响应式 ========== */
.form-input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #666;
}

/* ========== 全局提示条（成功/错误） ========== */
.global-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    min-width: 320px;
    max-width: 80%;
    padding: 12px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s, top 0.3s;
    pointer-events: none;
}

.global-toast.show {
    opacity: 1;
    top: 100px;
}

.global-toast.success {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}

.global-toast.error {
    background-color: #fef0f0;
    border: 1px solid #fbc4c4;
    color: #c41e3a;
}

.global-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
}

.global-toast.success .global-toast-icon {
    background-color: #67c23a;
    color: #fff;
}

.global-toast.error .global-toast-icon {
    background-color: #c41e3a;
    color: #fff;
}

/* ========== 提交按钮加载状态 ========== */
.submit-btn.loading {
    background-color: #f5b7b1 !important;
    cursor: not-allowed;
    position: relative;
}

.submit-btn.loading::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    vertical-align: -3px;
    animation: btn-spin 0.8s linear infinite;
}

@keyframes btn-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== 通用模态确认弹窗 ========== */
.confirm-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

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

.confirm-modal {
    width: 480px;
    max-width: 90%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.confirm-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.confirm-modal-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.confirm-modal-body {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.confirm-modal-icon {
    width: 48px;
    height: 48px;
    border: 2px solid #c41e3a;
    border-radius: 50%;
    color: #c41e3a;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.confirm-modal-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.confirm-modal-text .highlight {
    color: #c41e3a;
    font-weight: 500;
}

.confirm-modal-footer {
    padding: 0 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-secondary {
    height: 36px;
    padding: 0 24px;
    background-color: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: #c41e3a;
    color: #c41e3a;
}

.btn-primary {
    height: 36px;
    padding: 0 24px;
    background-color: #c41e3a;
    border: 1px solid #c41e3a;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #a31722;
}

.btn-primary.loading {
    background-color: #f5b7b1;
    border-color: #f5b7b1;
    cursor: not-allowed;
}

/* ========== 区域标题（红色竖线+黑色文字） ========== */
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 24px 0 16px;
}

.section-title::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 16px;
    background-color: #c41e3a;
}

/* ========== 5步步骤指示器 ========== */
.steps-five .step {
    width: 100px;
}

.steps-five .step-circle {
    width: 32px;
    height: 32px;
    font-size: 14px;
    margin-bottom: 8px;
}

.steps-five .step-label {
    font-size: 13px;
    color: #666;
}

/* ========== 完成页（蓝色图标） ========== */
.complete-page {
    text-align: center;
    padding: 60px 20px;
}

.complete-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1890ff;
}

.complete-title {
    font-size: 18px;
    color: #999;
    margin-bottom: 12px;
}

.complete-text {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.complete-text .highlight {
    color: #c41e3a;
    font-weight: 500;
}

/* ========== 认证流程结束引导 ========== */
.auth-end-title {
    color: #c41e3a;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    line-height: 1.6;
    margin: 40px 0;
}

/* ========== 预约核实卡片（引导页） ========== */
.verify-guide-card {
    width: 400px;
    height: 280px;
    margin: 0 auto;
    background-color: #fff;
    border: 1px solid #c41e3a;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    box-sizing: border-box;
}

.verify-guide-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 16px;
}

.verify-guide-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #e6f7ff 0%, #c8e6ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1890ff;
}

.verify-guide-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

.verify-guide-btn {
    width: 120px;
    height: 36px;
    background-color: #c41e3a;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.verify-guide-btn:hover {
    background-color: #a31722;
}

.verify-guide-btn:disabled {
    background-color: #f5b7b1;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .form-label {
        width: 100%;
        text-align: left;
        padding-right: 0;
        padding-top: 0;
        margin-bottom: 6px;
    }

    .form-card {
        padding: 0 20px 30px;
    }

    .steps {
        flex-wrap: wrap;
    }

    .step-line {
        min-width: 30px;
    }

    .submit-btn {
        width: 100%;
    }
}
