* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-container {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
}

/* Banner区域 - 全屏背景 */
.banner-section {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 表单区域 - 底部定位 */
.form-section {
    position: absolute;
    bottom: 0.2rem;
    left: 50%;
    margin-left: -3.53rem;
    background-color: #fff;
    border-radius: 0.32rem;
    width: 7.06rem;
    height: 8.51rem;
    z-index: 2;
    padding: 0;
    /* overflow: hidden; */
    
}

.form-header {
    width: 100%;
    position: relative;
    width: 100%;
    height: 1.73rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    /* margin-bottom: 0.4rem; */
}

.form-title {
    width: 100%;
    font-size: 0.36rem;
    /* font-weight: 600; */
    color: #1a1a1a;
    margin-left: 0.33rem;
    /* margin-bottom: 0.08rem; */
}

.form-subtitle {
    width: 100%;
    font-size: 0.28rem;
    margin-left: 0.33rem;
    color: #000000;
}

.car-img {
    position: absolute;
    right: 0;
    top: 91%;
    transform: translateY(-50%);
    width: 3.6rem;
    height: auto;
    object-fit: contain;
}
.car-1{
    position: absolute;
    right: 0;
    top: 87%;
    transform: translateY(-50%);
    width: 4.43rem;
    height: auto;
    object-fit: contain;
}
.car-2{
    position: absolute;
    right: 0;
    top: 85%;
    transform: translateY(-50%);
    width: 4.33rem;
    height: auto;
    object-fit: contain;
}
.car-3{
    position: absolute;
    right: 0;
    top: 76%;
    transform: translateY(-50%);
    width: 3.25rem;
    height: auto;
    object-fit: contain;
}
.car-4{
    top: 71%;
}
.car-5{
    width: 3.8rem;
    right: 4%;
    top: 94%;
}
.car-6{
    right: 4%;
    top: 73%;
    width: 3.04rem;
}
.form-content {
    /* padding-top: 0.16rem; */
    width: 100%;
    height: 6.78rem;
    /* margin: 0 auto 9; */
    background-color: #ecf0f3;
    padding-top: 0.3rem;
    border-radius: 0 0 0.32rem 0.32rem;
    /* overflow: auto; */
}

.car-name {
    font-size: 0.33rem;
    /* font-weight: 600; */
    color: #1a1a1a;
    margin-bottom: 0.2rem;
    margin-left: 0.33rem;
    /* margin-top: 0.3rem; */
}

/* 表单元素 */
.form-group {
    /* margin-bottom: 0.24rem; */
    position: relative;
    width: 6.4rem;
    margin: 0.1rem auto 0;
}

.form-row {
    display: flex;
    gap: 0.12rem;
    width: 6.4rem;
    margin: 0.1rem auto 0;
}
.form-row .form-group{
    margin: 0 auto 0;
}

.form-group.half {
    flex: 1;
    margin-bottom: 0;
}

/* 选择框 */
.select-box {
    width: 100%;
    height: 0.75rem;
    border: 1px solid #b5b5b7;
    border-radius: 0.16rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.24rem;
    /* background-color: #fafafa; */
    cursor: pointer;
    transition: border-color 0.2s;
}

.select-box.active {
    border-color: #1e3a5f;
}

.select-text {
    font-size: 0.28rem;
    color: #999;
}

.select-text.selected {
    color: #333;
}

.select-arrow {
    width: 0.16rem;
    height: 0.16rem;
    border-right: 1.5px solid #999;
    border-bottom: 1.5px solid #999;
    transform: rotate(45deg);
    transition: transform 0.2s;
    margin-top: -0.04rem;
}

.select-box.active .select-arrow {
    transform: rotate(-135deg);
    margin-top: 0.04rem;
}

/* 下拉菜单 */
.select-dropdown {
    position: absolute;
    bottom: calc(100% + 0.08rem);
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0.16rem;
    box-shadow: 0 -0.08rem 0.24rem rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 4rem;
    overflow-y: auto;
    display: none;
}

.select-dropdown.show {
    display: block;
}

.dropdown-item {
    padding: 0.24rem;
    font-size: 0.28rem;
    color: #333;
    cursor: pointer;
    transition: background-color 0.15s;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item:active {
    background-color: #f5f7fa;
}

/* 手机号输入 */
.phone-input {
    width: 100%;
    height: 0.75rem;
    border: 1px solid #b5b5b7;
    border-radius: 0.16rem;
    padding: 0 0.24rem;
    font-size: 0.28rem;
    background-color: #ecf0f3;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.phone-input:focus {
    border-color: #1e3a5f;
}

.phone-input::placeholder {
    color: #999;
}

/* 协议勾选 */
.form-group.agreement {
    margin-top: 0.2rem;
    margin-bottom: 0.3rem;
}

.agreement-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.agreement-checkbox {
    display: none;
}

.checkbox-custom {
    width: 0.32rem;
    height: 0.32rem;
    border: 1.5px solid #ccc;
    border-radius: 50%;
    margin-right: 0.16rem;
    margin-top: 0.04rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.agreement-checkbox:checked + .checkbox-custom {
    border-color: #1e3a5f;
    background-color: #1e3a5f;
}

.checkbox-custom::after {
    content: '';
    width: 0.1rem;
    height: 0.16rem;
    border-right: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(45deg);
    margin-top: -0.02rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.agreement-checkbox:checked + .checkbox-custom::after {
    opacity: 1;
}

.agreement-text {
    font-size: 0.23rem;
    color: #939393;
    line-height: 1.6;
}

/* 提交按钮 */
.submit-btn {
    width: 6.4rem;
    height: 0.82rem;
    background-color: #001d51;
    color: #fff;
    border: none;
    border-radius: 0.48rem;
    font-size: 0.32rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    -webkit-tap-highlight-color: transparent;
    margin: 0 auto 0;
    display: block;
}

.submit-btn:active {
    opacity: 0.9;
}

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

/* 提示信息 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.24rem 0.48rem;
    border-radius: 0.16rem;
    font-size: 0.28rem;
    z-index: 200;
    display: none;
    white-space: nowrap;
}

.toast.show {
    display: block;
}

/* 提交成功弹窗 */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.success-modal.show {
    opacity: 1;
    visibility: visible;
}

.success-content {
    width: 5.6rem;
    background-color: #fff;
    border-radius: 0.24rem;
    padding: 0.56rem 0.4rem 0.48rem;
    text-align: center;
    transform: scale(0.85);
    transition: transform 0.3s;
}

.success-modal.show .success-content {
    transform: scale(1);
}

.success-icon {
    margin-bottom: 0.32rem;
}

.success-circle {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background-color: #52c41a;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPop 0.4s ease-out;
}

@keyframes successPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.success-check {
    width: 0.36rem;
    height: 0.6rem;
    border-right: 0.06rem solid #fff;
    border-bottom: 0.06rem solid #fff;
    transform: rotate(45deg);
    margin-top: -0.12rem;
}

.success-title {
    font-size: 0.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.16rem;
}

.success-desc {
    font-size: 0.28rem;
    color: #666;
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.success-btn {
    width: 100%;
    height: 0.88rem;
    background-color: #001d51;
    color: #fff;
    border: none;
    border-radius: 0.44rem;
    font-size: 0.32rem;
    cursor: pointer;
}
