body {
    padding: 0;
    margin: 0;
    height: 100vh;
    min-height: 700px;
    overflow: auto;
}
main {
    margin: 0 auto;
}
form {
    padding-bottom: 10px;
}

input[type='checkbox'],
input[type='radio'] {
    margin-right: 0px;
}

.select-box {
}

.btn-primary {
    background-color: #304564;
    border-color: transparent !important;
}
.btn-primary:hover {
    background-color: #43618d;
}
.form-title {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    font-weight: 700;
}
.form-title .divider {
    width: 3px;
    height: 14px;
    background-color: #4c90f5;
    margin-right: 10px;
}
.form-item {
    display: flex;
    width: 100%;
}
.form-item + .form-item {
    margin-top: 10px;
}
.form-label {
    width: 220px;
    margin-right: 10px;
    padding-top: 6px; /* 32px 输入框和 20px label 行高的居中差值 */
    line-height: 20px;
    position: relative;
    padding-left: 10px;
    color: #515a6e;
    font-size: 14px;
    align-self: baseline;
    text-align: right;
}

.form-label .is-required {
    color: tomato;
    margin-right: 4px;
}
.form-content {
    flex: 1;
    font-size: 14px;
    position: relative;
}
.form-content.is-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.input-suffix {
    padding-right: 50px;
}
.input-suffix-text {
    position: absolute;
    right: 10px;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
}
.form-content input:not([type='radio']):not([type='checkbox']) {
    width: 100%;
}
.form-content input {
    color: #808695;
}
.form-content .tips {
    color: #808695;
    margin-bottom: 10px;
    margin-top: 6px;
}
.form-content input,
textarea,
select {
    border-radius: 4px;
    border: solid 1px #dcdee2;
    padding: 6px 12px;
}
/* 所有下拉框统一自定义箭头 */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23808695' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 7px;
}
.form-content input:focus,
textarea:focus,
select:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow:
            inset 0 1px 1px rgba(0, 0, 0, 0.075),
            0 0 8px rgba(102, 175, 233, 0.6);
}
.text-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    color: #808695;
}

.upload-box {
    display: flex;
    flex-direction: column;
    border: 1px dashed #dcdee2;
    width: 100px;
    height: 100px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: gray;
    border-radius: 4px;
    color: #aaaaaa;
    margin-top: 5px;
}
.upload-box:hover {
    border-color: #a2a4a7;
}
.upload-box span {
    font-size: 30px;
}
.upload-id-card-content {
    display: flex;
}
.upload-id-card-content .upload-box {
    margin-right: 10px;
    width: 150px;
}
.upload-id-card-front {
    background: url('../../img/hxy/identityCardFront.png') no-repeat;
    background-size: 100% 100%;
}
.upload-id-card-back {
    background: url('../../img/hxy/identityCardBack.png') no-repeat;
    background-size: 100% 100%;
}
.platform-content {
    display: flex;
    flex-wrap: wrap;
    row-gap: 5px;
}

.platform-content .platform-item {
    border: 1px solid #dcdee2;
    border-radius: 5px;
    width: 120px;
    height: 36px;
    text-align: center;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}
.platform-content .add-platform:hover {
    border-color: #a2a4a7;
}
.platform-content .add-platform {
    border-style: dashed;
}
.address-select-box {
    width: 100%;
}
.address-select-box .address-select {
    width: 23%;
    display: inline-block;
}
.address-select + .address-select {
    margin-left: 1%;
}
.address-select:last-of-type {
    width: 25%;
}

.warehouse-images {
    display: flex;
    flex-wrap: wrap;
}
.warehouse-images img {
    width: 100px;
    height: 100px;
    border: 1px gray;
    margin: 5px 10px 5px 0;
}
.warehouse-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}
.warehouse-title .form-title {
    font-weight: 700;
}
.warehouse-info {
    border-radius: 4px;
    border: solid 1px #e8eaec;
    padding: 20px 20px 20px 0;
    margin-bottom: 37px;
    position: relative;
}
.warehouse-title .btn {
    margin-bottom: 20px;
}
.phone-content {
    padding-top: 6px;
}
.phone-content label {
    display: inline-flex;
    align-items: center;
}
.phone-content input {
    margin-right: 5px;
    margin-top: -1px;
}
label + label {
    margin-left: 20px;
}
/* 发票类型 checkbox 组 */
.invoice-type-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-top: 6px;
}
.invoice-type-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
}
.invoice-type-item input[type='checkbox'] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}
.invoice-type-item label {
    cursor: pointer;
    margin: 0;
}

.dialog {
    display: none;
}
.dialog-mask {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(55, 55, 55, 0.6);
    height: 100%;
    z-index: 999;
}
.dialog-warp {
    position: fixed;
    overflow: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    -webkit-overflow-scrolling: touch;
    outline: 0;
}
.dialog-box {
    margin: 0 auto;
    position: relative;
    outline: 0;
    top: 0;
    width: 800px;
}
.dialog-content {
    position: relative;
    background-color: #fff;
    border: 0;
    border-radius: 8px;
    background-clip: padding-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    top: 150px;
    background: linear-gradient(35deg, #ffffff 0%, #fff 60%, #e6f2fe 100%);
}
.dialog-close {
    z-index: 1;
    font-size: 12px;
    position: absolute;
    right: 8px;
    top: 8px;
    cursor: pointer;
}
.dialog-close-btn {
    position: relative;
    margin: 3px;
    width: 20px;
    height: 20px;
    display: inline-block;
    cursor: pointer;
    box-sizing: border-box;
}
.dialog-close-btn:before {
    position: absolute;
    content: '';
    width: 1px;
    height: 25px;
    background: #999;
    transform: rotate(45deg);
    top: -3px;
    left: 10px;
}
.dialog-close-btn:after {
    content: '';
    position: absolute;
    width: 1px;
    height: 25px;
    background: #999;
    transform: rotate(-45deg);
    top: -3px;
    left: 10px;
}
.dialog-header {
    padding: 36px 16px 18px;
    line-height: 1;
    /* background: linear-gradient(135deg, #ffffff 0%, #fff 50%, #e6f2fe 100%); */
    border-radius: 8px 8px 0 0;
}

.dialog-header::after {
    position: absolute;
    content: '';
    display: block;
    width: 110px;
    height: 80px;
    right: 50px;
    top: 20px;
    background: url('../../img/hxy/terms_of_use.png');
}

.dialog-header-inner.protocol {
    display: inline-block;
    width: 168px;
    font-size: 24px;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: linear-gradient(90deg, #1b72d1 0%, #2aa49d 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.agreement-content {
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid;
    border-color: #d2e3f3;
    border-radius: 8px;
}

.dialog-body {
    padding: 16px;
    font-size: 12px;
    line-height: 1.5;
    min-height: 65px;
    position: relative;
    /* background: linear-gradient(45deg, #ffffff 0%, #ffffff 90%, #e6f2fe 100%); */
}
.dialog-body select {
    border-radius: 4px;
    border: solid 1px #dcdee2;
    padding: 6px 30px 6px 12px;
}
.dialog-body select:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow:
            inset 0 1px 1px rgba(0, 0, 0, 0.075),
            0 0 8px rgba(102, 175, 233, 0.6);
}
.dialog-footer {
    padding: 8px 18px 24px;
    text-align: right;
}
.operate-box {
    text-align: center;
    position: fixed;
    bottom: 0;
    padding: 11px 20px;
    background: white;
    width: 100%;
    left: 0;
    box-shadow: 0px -3px 6px rgba(0, 0, 0, 0.1);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.operate-box .tips {
    color: #515a6e;
    position: relative;
    margin-left: -100px;
    margin-right: 20px;
}
.operate-box .tips a {
    color: #296ba8;
    cursor: pointer;
}

.upload-image-box {
    position: relative;
}

.upload-image-content-box {
    position: absolute;
    z-index: 2;
    display: inline-block;
}
.upload-image-content-box img {
    border: 1px solid #dcdee2;
    object-fit: contain;
}

.image-remove-button,
.remove-item-button,
.remove-warehouse {
    position: absolute;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    top: -5px;
    right: -5px;
    border-radius: 20px;
    display: none;
    height: 25px;
    width: 25px;
    justify-content: center;
    align-items: center;
}
.upload-image-content-box-reverse {
    position: absolute;
    z-index: 2;
    display: inline-block;
    left: 160px;
}

.contactMobile[readonly] {
    background: #f1f1f1;
}

.register-agreement-dialog {
    display: block;
}
.register-agreement-dialog .dialog-footer {
    text-align: center;
}
.register-agreement-dialog .dialog-mask {
    background-color: #f2f3f6;
}
.register-agreement-dialog .agreement-content {
    height: 480px;
    overflow-y: auto;
}
.dialog-footer .btn.disabled {
    background: gray !important;
    border-color: gray !important;
    cursor: not-allowed;
    pointer-events: none;
}

.agreement-content .agreement-title {
    font-weight: bold;
}
.register-agreement-dialog .underline {
    text-decoration: underline;
}
.register-agreement-dialog .bold {
    font-weight: bold;
}
.agreement-content .agreement-content-title {
    margin-bottom: 10px;
    margin-top: 20px;
    font-weight: bold;
    font-size: 16px;
}
.agreement-content .agreement-content-sub {
    margin-left: 10px;
    line-height: 20px;
    margin-bottom: 5px;
}
.agreement-content .agreement-content-sub-item {
    margin-left: 20px;
}
.agreement-content .agreement-content-sub-item-sub {
    margin-left: 40px;
}
.register-agreement-dialog .dialog-box {
    width: 1200px;
}

.btn-send-validate-code {
    width: 88px;
}

.disabled {
    background-color: gray !important;
    border-color: gray !important;
    cursor: not-allowed;
    pointer-events: none;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #ed4014;
}
.was-validated :invalid ~ .invalid-feedback {
    display: block;
}
.validation-input {
    position: absolute;
    z-index: -1;
    visibility: hidden;
}

.mobile-validate-error {
    display: none;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #ed4014;
}

.show-mobile-validate-error .mobile-validate-error {
    display: block;
}

.tips {
    color: #808695;
}
.tips a {
    color: #296ba8 !important;
    cursor: pointer;
}

.check-example-popover {
    position: absolute;
    width: 300px;
    right: -310px;
    top: -2px;
    padding: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
    border-color: #eee;
    display: none;
    background-color: #fff;
    z-index: 2;
}
.check-example-popover img {
    width: 100%;
}
.check-example {
    position: relative;
}
.check-example:hover .check-example-popover {
    display: block;
}

.was-validated :invalid ~ .invalid-feedback {
    display: block;
}

.form-control:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.show-mobile-validate-error .form-control {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    background-image: none !important;
}

.was-validated :invalid ~ .text-count {
    bottom: 25px;
}

.customer-dialog .dialog-header {
    border-bottom: none;
}
.customer-dialog .dialog-box {
    width: 450px;
}
.customer-dialog .dialog-body {
    padding: 0 43px;
}
.customer-dialog .dialog-footer {
    border-top: none;
}
.customer-dialog .dialog-header-inner {
    height: 20px;
    line-height: 20px;
}

.customer-dialog .warning-icon {
    padding: 5px;
    background-color: #ff9900;
    height: 20px;
    width: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 27px;
    color: white;
    font-size: 15px;
    margin-right: 5px;
}
.customer-dialog .dialog-body div {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 10px;
    color: #333333;
}
.customer-dialog .dialog-body a {
    color: #296ba8 !important;
    cursor: pointer;
}

.upload-image-content-box:hover .image-remove-button {
    display: flex;
}
.platform-item:hover .remove-item-button {
    display: flex;
}
.warehouse-info .remove-warehouse {
    display: flex;
}
.upload-image-content-box-warehouse:hover .image-remove-button {
    display: flex;
}
.upload-image-content-box-warehouse {
    position: relative;
}

.customer-dialog .dialog-header {
    border-bottom: none;
}
.customer-dialog .dialog-box {
    width: 450px;
}
.customer-dialog .dialog-body {
    padding: 0 43px;
}
.customer-dialog .dialog-footer {
    border-top: none;
}
.customer-dialog .dialog-header-inner {
    height: 20px;
    line-height: 20px;
}

.customer-dialog .warning-icon {
    padding: 5px;
    background-color: #ff9900;
    height: 20px;
    width: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 27px;
    color: white;
    font-size: 15px;
    margin-right: 5px;
}
.customer-dialog .dialog-body div {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 10px;
    color: #333333;
}
.customer-dialog .dialog-body a {
    color: #296ba8 !important;
    cursor: pointer;
}

.warehouse-validate-code-button {
    position: absolute;
    right: 0;
    top: 24px;
    height: 35px;
    padding-top: 7px;
    width: 88px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    display: none;
}
.warehouse-validate-code-button.been-sent {
    background-color: gray;
    border-color: gray;
}

.mobile-info-content {
    margin: 10px 0;
}

.warehouse-validate-code-button.been-sent:hover .validate-code-tooltip {
    display: block;
}
.validate-code-tooltip {
    position: absolute;
    width: 365px;
    font-size: 13px;
    background-color: #000000b3 !important;
    top: -30px;
    right: -100px;
    padding: 3px 3px;
    border-radius: 3px;
    display: none;
}

.mobile-validate-input {
    display: none;
}

.show-validate-code .mobile-validate-input {
    display: flex;
}

.warehouse-validate-code-button.disabled {
    background-color: gray;
    border-color: gray;
    cursor: not-allowed;
    pointer-events: none;
}
.upload-video {
    width: 200px;
    height: 200px;
}

.select-platform {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    padding: 6px 0px !important;
    position: relative;
}
.select-platform option {
    position: relative;
    padding: 5px 12px;
}
.select-platform option:hover {
    background-color: #66afe9;
    color: white;
}

.select-platform option.checked::after {
    content: '✔';
    position: absolute;
    right: 0;
}

.hidden-platform-select {
    width: 100%;
    padding: 6px 12px;
    border-radius: 4px;
    border: solid 1px #dcdee2;
    height: 30px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hidden-platform-select.hidden {
    height: 0;
    visibility: hidden;
    padding: 0;
}

/* TODO */
.slider-verify-dialog .dialog-box {
    width: 262px;
}

.slider-verify-dialog .slider-verify-iframe-box {
    width: 262px;
    height: 262px;
    border: none;
}

.other-info-upload-box {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
}

.other-info-upload-box .check-example {
    margin-left: 10px;
}
.other-info-upload-box .check-example-popover {
    top: 10px;
    transform: translateY(-100%);
}

.validation-form,
.btn-submit,
.btn-next {
    display: none;
}

.active {
    display: block;
}
.btn.active {
    display: inline-block;
}

.step-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
}
.step-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    background-color: #efefef;
    position: relative;
    padding: 0 36px;
    box-sizing: border-box;
    -webkit-clip-path: polygon(
            90% 0%,
            100% 50%,
            90% 100%,
            0% 100%,
            10% 50%,
            0% 0%
    );
    clip-path: polygon(90% 0%, 100% 50%, 90% 100%, 0% 100%, 10% 50%, 0% 0%);
}

.step-item.active {
    background-color: #304564;
    color: #fff;
}

.step-item.active::after {
    background-color: #2aa59e;
}

.tms-text-danger {
    color: #ed4014;
}
.mb-10 {
    margin-bottom: 10px;
}
#deposit-bank-error-tip,
#deposit-select {
    margin-top: 0.25rem;
    font-size: 0.875em;
    display: none;
}
select:disabled {
    background-color: #f5f7fa;
    cursor: not-allowed;
}

/* =============================================
   移动端响应式适配
   ============================================= */

/* 汉堡菜单默认隐藏 */
.nav-mobile-toggle {
    display: none;
}

/* --- Tablet & below (≤1024px) --- */
@media (max-width: 1024px) {
    .navbar .container {
        padding: 0 16px;
    }

    /* Dialog boxes */
    .dialog-box {
        width: 90%;
        max-width: 600px;
    }
    .register-agreement-dialog .dialog-box {
        width: 90%;
        max-width: 686px;
    }
    .customer-dialog .dialog-box {
        width: 90%;
        max-width: 450px;
    }

    /* Step progress – 保持PC端单行+clip-path箭头样式 */
    .step-progress {
        padding-top: 70px !important;
    }
    .step-item {
        padding: 0 16px;
        font-size: 12px;
        height: 36px;
    }

    /* Form – label 在上, input 在下 */
    .form-item {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .form-label {
        width: 100% !important;
        text-align: left !important;
        padding-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 6px;
    }
    .form-content {
        width: 100% !important;
    }
    .form-content input,
    .form-content textarea,
    .form-content select {
        box-sizing: border-box;
    }

    /* Container */
    .container {
        padding: 0 12px !important;
    }

    /* Warehouse */
    .warehouse-info {
        padding: 16px;
    }
    .address-select-box .address-select {
        width: 48%;
        margin-bottom: 6px;
    }
    .address-select + .address-select {
        margin-left: 2%;
    }
    .address-select:last-of-type {
        width: 48%;
    }

    /* Operate box */
    .operate-box {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 16px;
    }
    .operate-box .tips {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
        text-align: center;
    }

    /* Dialog body select */
    .dialog-body select {
        width: 100%;
    }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
    /* Navbar */
    .navbar {
        height: 56px !important;
        --nav-height-m: 56px;
        z-index: 1002 !important;
    }
    .navbar .container {
        padding: 0 16px !important;
        width: 100% !important;
    }

    .nav-links {
        display: none !important;
        align-items: flex-start !important;
        position: absolute;
        top: 48px;
        left: 0;
        right: 0;
        color: #fff;
        background: #fff;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 0px 24px;
        gap: 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: var(--shadow-md);
        z-index: 1002;
    }
    .nav-links.open {
        display: flex !important;
    }

    .nav-links a {
        padding: 14px 0;
        border-bottom: 1px solid #d2d2d2c7;
        font-size: 15px !important;
        width: 100%;
    }
    .nav-links a:last-child {
        border-bottom: none;
    }
    .nav-links a::after {
        display: none;
    }
    .nav-cta {
        display: none;
    }

    /* Hamburger toggle */
    .nav-mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--brand-gradient);
        cursor: pointer;
        border: none;
        margin-left: 8px;
        flex-shrink: 0;
        transition: background 0.2s;
        color: #fff;
    }

    .nav-mobile-toggle:active {
        background: #e0e0e0;
    }
    .nav-mobile-toggle svg {
        width: 18px;
        height: 18px;
    }
    .nav-mobile-toggle svg line {
        transition:
                transform 0.3s,
                opacity 0.3s;
        transform-origin: center;
    }
    .nav-mobile-toggle.active svg line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-mobile-toggle.active svg line:nth-child(2) {
        opacity: 0;
    }
    .nav-mobile-toggle.active svg line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Container */
    .container {
        border-radius: 0 !important;
    }

    /* Main */
    main {
        padding: 64px 0 30px !important;
    }

    /* Step progress – 保持PC端单行+clip-path箭头样式 */
    .step-progress {
        padding-top: 24px !important;
        padding-bottom: 8px !important;
    }
    .step-item {
        padding: 0 16px !important;
        font-size: 11px;
        height: 34px;
        -webkit-clip-path: polygon(
                94% 0%,
                100% 50%,
                94% 100%,
                0% 100%,
                6% 50%,
                0% 0%
        ) !important;
        clip-path: polygon(
                94% 0%,
                100% 50%,
                94% 100%,
                0% 100%,
                6% 50%,
                0% 0%
        ) !important;
    }

    /* Form title */
    .form-title {
        margin-bottom: 20px !important;
        font-size: 15px;
    }

    /* 表单间距优化 */
    .form-item + .form-item {
        margin-top: 14px !important;
    }
    .form-label {
        font-size: 14px !important;
        color: #333 !important;
    }
    /* 输入框触控尺寸 ≥ 40px */
    .form-content input:not([type='radio']):not([type='checkbox']):not([hidden]),
    .form-content textarea,
    .form-content select {
        padding: 10px 12px !important;
        font-size: 15px !important;
        min-height: 40px;
        border-radius: 6px !important;
    }
    .form-content textarea {
        min-height: 100px;
    }

    /* 验证码行：输入框+按钮并排 */
    .form-content.is-flex {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px;
        align-items: center !important;
    }
    .form-content.is-flex input {
        flex: 1 !important;
        width: auto !important;
    }
    .btn-send-validate-code {
        flex-shrink: 0;
        min-width: 90px !important;
        width: auto !important;
        font-size: 13px !important;
        padding: 8px 12px !important;
        height: 40px !important;
        line-height: 24px !important;
        text-align: center;
        white-space: nowrap;
        border-radius: 6px !important;
    }

    /* Warehouse title */
    .warehouse-title {
        align-items: center !important;
        gap: 10px;
        margin-top: 20px !important;
    }
    .warehouse-info {
        padding: 14px !important;
        border-radius: 8px;
    }

    /* Address selects – 2列布局 + 自定义箭头 */
    .address-select-box {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 10px;
    }
    .address-select-box .address-select {
        width: calc(50% - 4px);
        display: block;
        margin-left: 0 !important;
        margin-bottom: 0;
        padding: 8px 30px 8px 10px;
        font-size: 14px;
        border-radius: 6px;
    }
    .address-select:last-of-type {
        width: calc(50% - 4px);
    }

    /* Dialog boxes */

    .register-agreement-dialog .dialog-mask {
        background: #fff;
    }
    .dialog-box {
        width: 95%;
        max-width: 100%;
        top: 20px;
    }
    .dialog-content {
        top: 60px;
        border-radius: 8px;
    }
    .dialog-header {
        padding: 20px 12px 20px;
    }
    .dialog-header-inner {
        font-size: 18px;
        width: auto;
    }
    .dialog-header::after {
        width: 70px;
        height: 50px;
        right: 16px;
        top: 10px;
        background-size: contain;
        background-repeat: no-repeat;
    }
    .dialog-body {
        padding: 12px;
        font-size: 13px;
    }
    .dialog-footer {
        padding: 10px 12px;
    }
    .dialog-header {
        border-bottom: none;
        background: none;
    }
    /* Register agreement dialog - 使用条款全屏适配 */
    .register-agreement-dialog .dialog-warp {
        overflow: hidden;
        z-index: 1001;
    }
    .register-agreement-dialog .dialog-box {
        width: 100%;
        max-width: 686px;
        top: var(--nav-height-m, 56px);
        height: calc(
                100vh - var(--nav-height-m, 56px) - env(safe-area-inset-bottom, 0px)
        );
        height: calc(100dvh - var(--nav-height-m, 56px));
    }
    .register-agreement-dialog .dialog-content {
        top: 0;
        border-radius: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        background: linear-gradient(45deg, #ffffff 0%, #fff 50%, #e6f2fe 100%);
    }
    .register-agreement-dialog .dialog-header {
        flex-shrink: 0;
    }
    .register-agreement-dialog .dialog-body {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0px 16px 12px;
        -webkit-overflow-scrolling: touch;
        min-height: 0;
        background: none;
    }
    .register-agreement-dialog .agreement-content {
        height: auto;
        max-height: none;
        overflow-y: visible;
        padding: 16px;
        border-radius: 6px;
        background: none;
    }
    .register-agreement-dialog .dialog-footer {
        flex-shrink: 0;
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid #e8eaec;
        text-align: center;
        background: #fff;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
    }
    .register-agreement-dialog .dialog-footer .btn {
        width: 100% !important;
        height: 48px !important;
        line-height: 48px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
        padding: 0 !important;
    }

    .agreement-content {
        border: none;
    }

    /* Agreement content typography */
    .agreement-content .agreement-content-title {
        font-size: 15px;
        margin-top: 18px;
        margin-bottom: 8px;
    }
    .agreement-content .agreement-content-sub {
        margin-left: 6px;
        line-height: 22px;
        margin-bottom: 6px;
        font-size: 13px;
    }
    .agreement-content .agreement-content-sub-item {
        margin-left: 14px;
        line-height: 22px;
        font-size: 13px;
    }
    .agreement-content .agreement-content-sub-item-sub {
        margin-left: 24px;
        line-height: 22px;
        font-size: 13px;
    }
    .agreement-content .agreement-title {
        font-size: 13px;
        line-height: 22px;
        margin-bottom: 4px;
    }

    /* Customer dialog */
    .customer-dialog .dialog-box {
        width: 90%;
        max-width: 400px;
    }
    .customer-dialog .dialog-body {
        padding: 0 20px;
    }

    /* Slider verify */
    .slider-verify-dialog .dialog-box {
        width: 280px;
    }

    /* Enterprise auth dialog */
    #enterprise-auth-dialog .dialog-box {
        width: 95%;
    }
    .enterprise-section {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Operate box – 固定底部，同意和下一步同行显示 */
    .operate-box {
        padding: 12px 16px !important;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        flex-direction: row !important;
        flex-wrap: nowrap;
        gap: 12px;
        justify-content: space-between !important;
        align-items: center !important;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06) !important;
    }
    .operate-box .tips {
        display: flex;
        margin-left: 0 !important;
        margin-right: 0 !important;
        font-size: 13px !important;
        text-align: left !important;
        flex: 1;
        margin-top: 5px;
    }
    .operate-box .btn-next,
    .operate-box .btn-submit {
        width: auto !important;
        min-width: 100px;
        height: 40px !important;
        line-height: 40px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
        padding: 0 20px !important;
        text-align: center;
        flex-shrink: 0;
    }

    /* 发票类型复选框纵向排列（flex垂直居中） */
    .invoice-type-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px;
        padding-top: 0;
    }
    .invoice-type-item {
        display: flex !important;
        align-items: center !important;
        gap: 6px;
        cursor: pointer;
        font-size: 14px;
    }
    .invoice-type-item input[type='checkbox'] {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        cursor: pointer;
    }
    .invoice-type-item label {
        cursor: pointer;
        margin: 0;
        display: inline !important;
        font-size: 14px !important;
    }

    label + label {
        margin-left: 0;
    }

    /* Phone content */
    .phone-content {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: wrap !important;
        justify-content: center;
        gap: 8px;
        padding-top: 0;
    }
    .phone-content label {
        font-size: 14px !important;
    }

    /* Warehouse validate button */
    .warehouse-validate-code-button {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        margin-top: 8px !important;
        border-radius: 6px !important;
        height: 40px !important;
        line-height: 26px !important;
    }

    /* Select platform dialog */
    .select-platform {
        width: 100%;
        position: relative;
    }

    /* 上传区域优化 */
    .upload-id-card-content {
        flex-direction: column !important;
        gap: 10px;
    }
    .upload-id-card-content .upload-box {
        margin-right: 0 !important;
    }
    .upload-box {
        width: 100px !important;
        height: 100px !important;
        border-radius: 8px !important;
    }
    .upload-video {
        width: 120px !important;
        height: 120px !important;
        border-radius: 8px !important;
    }
    .warehouse-images {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .warehouse-images .upload-box {
        margin-right: 0 !important;
    }

    /* 平台按钮 */
    .platform-content .platform-item {
        width: 100% !important;
        max-width: 200px;
        height: 40px !important;
        border-radius: 6px !important;
    }

    /* 文字计数 */
    .text-count {
        font-size: 12px;
    }

    /* 提示文字 */
    .form-content .tips {
        font-size: 12px !important;
        margin-bottom: 8px !important;
        line-height: 1.5;
        margin-top: 0;
    }
}

/* --- Small mobile (≤480px) --- */
@media (max-width: 480px) {
    .navbar {
        height: 48px !important;
        box-sizing: border-box;
        min-height: unset;
    }

    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .nav-logo {
        width: 80px;
        height: 24px;
    }

    .nav-mobile-toggle {
        width: 32px;
        height: 32px;
    }

    .nav-logo img {
        width: 100%;
        height: 100%;
    }
    .nav-mobile-toggle svg {
        width: 16px;
        height: 13px;
    }

    main {
        padding: 48px 0 80px !important;
    }

    /* Step progress */
    .step-progress {
        padding: 30px 0 20px !important;
    }
    .step-item {
        font-size: 13px;
        padding: 0 20px !important;
        height: 30px;
        -webkit-clip-path: polygon(
                95% 0%,
                100% 50%,
                95% 100%,
                0% 100%,
                5% 50%,
                0% 0%
        ) !important;
        clip-path: polygon(
                95% 0%,
                100% 50%,
                95% 100%,
                0% 100%,
                5% 50%,
                0% 0%
        ) !important;
    }

    /* Agreement dialog */
    .register-agreement-dialog .agreement-content {
        padding: 0 0 12px;
    }
    .agreement-content .agreement-content-title {
        font-size: 14px;
    }
    .agreement-content .agreement-content-sub,
    .agreement-content .agreement-content-sub-item,
    .agreement-content .agreement-content-sub-item-sub {
        font-size: 12px;
        line-height: 20px;
    }
    .register-agreement-dialog .dialog-footer .btn {
        height: 44px !important;
        line-height: 44px !important;
        font-size: 15px !important;
    }

    .register-agreement-dialog .dialog-box {
        top: var(--nav-height-m, 48px);
    }

    /* Dialog header */
    .dialog-header {
        padding: 20px 12px 20px;
    }
    .dialog-header-inner {
        font-size: 18px;
    }
    .dialog-header-inner.protocol {
        padding-left: 0px;
        font-size: 18px;
    }
    .dialog-header::after {
        width: 60px;
        height: 44px;
        right: 20px;
        top: 10px;
        background-size: contain;
        background-repeat: no-repeat;
    }

    /* Operate box */
    .operate-box {
        padding: 10px 12px !important;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .operate-box .btn-next,
    .operate-box .btn-submit {
        height: 44px !important;
        line-height: 44px !important;
        font-size: 15px !important;
    }

    /* 输入框小屏微调 */
    .form-content input:not([type='radio']):not([type='checkbox']):not([hidden]),
    .form-content textarea,
    .form-content select {
        font-size: 14px !important;
    }
}
