/* 注册页 — 顶栏 Flex 单行防换行 + 纯白单卡片（对齐 yinghuang：无左侧图） */

.page-register {
    min-width: 1176px;
}

/* ========== 顶栏：Flex 单行，避免「注册/登陆」掉行 ========== */
.page-register .m-head .m-head-nav ul.c-wrapper {
    float: none;
    width: 100%;
    max-width: 1176px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    height: 110px;
    margin: 0 auto;
    padding: 0 12px;
    box-sizing: border-box;
}

.page-register .m-head .m-head-nav ul.c-wrapper > li {
    float: none !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 110px;
    line-height: normal;
    margin: 0;
}

.page-register .m-head .m-head-nav ul .m-head-nav-logo {
    flex: 0 0 200px;
    width: 200px !important;
    max-width: 200px;
    margin-right: 8px;
    height: 70px !important;
    min-height: 0;
    align-self: center;
}

.page-register .m-head .m-head-nav ul li:not(.m-head-nav-logo):not(.m-head-nav-right) > a {
    padding: 0 10px;
    white-space: nowrap;
    line-height: 110px;
    height: 110px;
    display: flex;
    align-items: center;
}

.page-register .m-head .m-head-nav ul li.m-head-nav-right {
    float: none !important;
    margin-left: 0;
}

/* 「注册」按钮吸到右边，「登陆」跟它紧挨 */
.page-register .m-head .m-head-nav ul li.m-head-nav-right:nth-last-child(2) {
    margin-left: auto;
}

.page-register .m-head .m-head-nav ul li.m-head-nav-right + li.m-head-nav-right {
    margin-left: 10px;
}

.page-register .m-head .m-head-nav ul .m-head-nav-right a {
    float: none !important;
    margin-top: 0 !important;
    line-height: 32px !important;
    height: 36px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 18px !important;
}

.page-register .m-head .m-head-nav ul li {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.page-register .m-head .m-head-nav ul li.active {
    color: #fc5916;
    text-shadow: none;
}

.page-register .m-head .m-head-nav ul li:hover {
    color: #ffe0cc;
}

.page-register .m-head .m-head-nav ul .m-head-nav-logo {
    background: url(../images/logo.png) no-repeat center;
    background-size: contain;
}

.page-register .m-head .nav-ico {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: -3px;
}

.page-register .m-head .nav-ico svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: #fc5916;
}

.page-register .m-head-nav-right a.nav-btn-login {
    background: #6ec5f5 !important;
    color: #fff !important;
}

.page-register .m-head-nav-right a.nav-btn-register {
    background: #00a8ff !important;
    color: #fff !important;
}

.page-register .m-head-nav-right a.nav-btn-login:hover {
    background: #5ab8e8 !important;
}

.page-register .m-head-nav-right a.nav-btn-register:hover {
    background: #0096e6 !important;
}

/* 飞机横幅（与登录页共用） */
.page-register .log-banner {
    position: relative;
    height: 380px;
    width: 100%;
    background: url(../images/log-banner.jpg) no-repeat center top;
    background-size: cover;
}

/* ========== 纯白单卡片（无左侧图） ========== */
.register-page-body {
    background: #e8e8e8;
    padding: 40px 20px 60px;
    min-height: 420px;
}

.register-card-single {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    padding: 28px 40px 36px;
    box-sizing: border-box;
}

.register-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.btn-login-small {
    display: inline-block;
    padding: 6px 18px;
    background: #fc5916;
    color: #fff !important;
    border-radius: 16px;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-login-small:hover {
    background: #e04d0e;
}

.role-select {
    text-align: center;
    margin-bottom: 20px;
}

.role-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
}

.role-radio-label input[type="radio"] {
    width: auto;
    height: auto;
    accent-color: #2196f3;
}

.form-line {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.form-line-label {
    flex: 0 0 100px;
    text-align: right;
    font-size: 14px;
    color: #333;
}

.form-line-label span {
    color: #ff0000;
}

.form-line-field {
    flex: 1;
    min-width: 0;
}

.form-line-field input,
.form-line-field select {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-line-field input:focus,
.form-line-field select:focus {
    outline: none;
    border-color: #fc5916;
    box-shadow: 0 0 0 2px rgba(252, 89, 22, 0.1);
}

.form-line-field input.error,
.form-line-field select.error {
    border-color: #ff4444;
}

.verify-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.verify-row input {
    flex: 1;
    min-width: 0;
}

.verify-code {
    width: 120px;
    height: 38px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    flex-shrink: 0;
    overflow: hidden;
}

.verify-code:hover {
    background: #e5e5e5;
}

.verify-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.verify-hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* yinghuang：接受条款 + 查看细则按钮 */
.terms-row.terms-yinghuang {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 8px;
    padding-left: 112px;
}

.terms-row.terms-yinghuang input[type="checkbox"] {
    width: auto;
    height: auto;
}

.terms-accept {
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.btn-terms-detail {
    display: inline-block;
    padding: 4px 14px;
    background: #c45c1a;
    color: #fff !important;
    border: none;
    border-radius: 2px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

.btn-terms-detail:hover {
    background: #a84d15;
}

.agree-error {
    margin-left: 112px;
    margin-top: -4px;
}

.btn-register {
    display: block;
    width: 200px;
    max-width: 100%;
    margin: 20px auto 0;
    height: 44px;
    background: #fc5916;
    color: #fff;
    border: none;
    border-radius: 22px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-register:hover {
    background: #e04d0e;
}

.btn-register:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.error-msg {
    color: #ff4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

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

.success-msg {
    color: #00b42a;
    font-size: 14px;
    text-align: center;
    margin: 12px 0 0;
    display: none;
}

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

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== 服务条款弹窗 ========== */
.terms-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

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

.terms-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.terms-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.terms-modal-header h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.terms-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #666;
}

.terms-modal-close:hover {
    background: #eee;
}

.terms-modal-body {
    padding: 16px 20px 24px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.8;
    color: #555;
}

.terms-modal-body h4 {
    font-size: 14px;
    margin: 14px 0 8px;
    color: #333;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .page-register {
        min-width: 0;
    }

    .register-card-single {
        padding: 20px 16px;
    }

    .form-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .form-line-label {
        text-align: left;
        padding-top: 0;
    }

    .terms-row.terms-yinghuang {
        padding-left: 0;
    }

    .agree-error {
        margin-left: 0;
    }
}
