body {
    font-family: Arial, sans-serif;
    margin: 20px;
}

label {
    display: block;
    margin-top: 10px;
}

#vehicleCard {
    margin: 0 auto;
    width: 50%;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 5px;
    background-color: #f2f2f2;
}

#vehicleCard2 {
    display: none;
}

#vehicleFormV2,
#vehicleFormV3 {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}

#vehicleFormV2 button ,
#vehicleFormV3 button {
    max-width: 20rem;
    height: 2rem;
    margin: 30px auto;
    transform: scale3d(1, 1, 1);
}

#displayBox {
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 20px;
    width: 100%;
    height: 150px;
    overflow-y: scroll;
}

.form-group {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    /* 自动换行 */
    flex-wrap: wrap;
    padding: .5rem;
    background-color: aliceblue;


    @media (max-width: 768px) {
        flex-direction: column;
        justify-content: center;
    }
}

.select-version{
    position: sticky;
    /* width: 100%; */
    top:1rem;
    left:50%;
    z-index: 1;
    background-color: rgba(255,255,255,0.7);
    /* 阴影 */
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    /* 圆角 */
    border-radius: 5px;
    padding: 10px;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
}
.select-version span:first-child{
    font-size: 10px;
    color: #2196F3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.select-version span:last-child{
    flex: 1;
}

.message-top{
    max-width:15rem;
    position: sticky;
    top:7rem;
    margin: 1rem auto;
    
    background-color: rgba(255,245,1,0.5);
    font-size: 2rem;
    font-weight: bold;
    z-index: 9999;

}

.form-group .switch-group-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border: solid 1px #ccc;
    width: 10rem;
    margin: .5rem 0;
}

select,
input[type="number"],
input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
}

input,
select {
    margin-top: 5px;
    padding: 5px;
    width: 100%;
    box-sizing: border-box;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

#messageDisplay {
    width: 100%;
    height: 300px;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 5px;
    background-color: #f9f9f9;
    overflow-y: scroll;
    margin-top: 20px;
}

.message-row {
    margin-bottom: 10px;
}

.message-table {
    width: 100%;
    border-collapse: collapse;
}

.message-table th,
.message-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.message-table th {
    background-color: #f2f2f2;
    text-align: left;
}