body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

button {
    background: none; /* 清除背景颜色 */
    border: none; /* 清除边框 */
    color: inherit; /* 继承父元素的文本颜色 */
    font: inherit; /* 继承父元素的字体样式 */
    line-height: normal; /* 重置行高 */
    overflow: visible; /* 显示溢出内容 */
    padding: 0; /* 清除内边距 */
    -webkit-appearance: none; /* 清除 WebKit 浏览器的默认样式 */
    -moz-appearance: none; /* 清除 Firefox 浏览器的默认样式 */
    appearance: none; /* 清除其他浏览器的默认样式 */
}
.search-container{
    margin-top: -30px;
}

/* 当屏幕宽度小于 1024px 时的样式 */
@media screen and (max-width: 1024px) {
    .tyresizeimg {
        width: 100%;
        height: auto;
        margin-top: -30px;
        
    }
    .tyresizeimg img {
        width: 100%;
        height: auto;
    }

    .main-content {
        padding: 10px;
    }
    
    /* 当屏幕宽度小于 390px 时的样式 */
    @media screen and (max-width: 390px) {
        .main-content {
            padding: 5px;
        }
        
        .style-tire-search select {
            font-size: 12px;
            padding: 6px;
        }
        
        .style-tire-search1 button {
            font-size: 14px;
            padding: 8px 16px;
        }
    }
    .tyresizeimg {
        width: 100%;
        height: auto;
        margin-top: -30px;
        
    }
    .tyresizeimg img {
        width: 100%;
        height: auto;
    }

    .main-content {
        padding: 10px;
    }

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

    .fone-bing {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .bing-size {
        margin-bottom: 10px;
    }

    .brand {
        text-align: center;
    }

    .brand img {
        width: 90%; /* 调整图片宽度为其父元素的 50%，你可以根据实际需求调整该值 */
        height: auto; /* 保持图片的宽高比 */
    }

    /* 下拉框容器样式 */
    .style-tire-search select {
        background-color: #f9f9f9;
        color: #333;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 4px;
        padding: 8px;
        width: 100%;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="50"><polygon points="0,0 100,0 50,50" style="fill:%23333;" /></svg>');
        background-size: 12px;
        background-position: right 10px center;
        background-repeat: no-repeat;
    }

    /* 下拉框选项样式 */
    .style-tire-search select option {
        background-color: #fff;
        color: #333;
    }

    /* 让下拉框容器居中 */
    .size-tire {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* 给下拉框容器设置宽度 */
    .style-tire-search {
        width: 80%; /* 可根据实际情况调整 */
        margin-bottom: 10px; /* 下拉框之间的间距 */
        margin-top: 20px;
    }

    /* 开始检索按钮样式 */
    .style-tire-search1 button {
        background-color: #007BFF;
        color: white;
        font-size: 16px;
        border: none;
        border-radius: 4px;
        padding: 10px 20px;
        width: 50%;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    /* 开始检索按钮鼠标悬停样式 */
    .style-tire-search1 button:hover {
        background-color: #0056b3;
    }

    /* 让开始检索按钮容器居中 */
    .style-tire-search1 {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
}



/* 当屏幕宽度大于 1025px 时的样式 */
@media screen and (min-width: 1025px) {
    .tyresizeimg {
        display: none;
    }

    /* 主体内容样式  */
    /* 搜索样式  */
    .main-content {
        width: 100%;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .search-container {
        width: 1191px;
        height: 345px;
        background-image: url(images/intelligent_bot@1x.png);
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .size-tire {
        width: 930px;
        height: 40px;
        display: flex;
        margin-top: 100px;
        justify-content: center;
        align-items: center;
    }

    .style-tire-search {
        width: 300px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 100px;
    }

    label {
        font-family: sans-serif;
        font-size: 1rem;
        padding-right: 10px;
    }

    select {
        font-size: 0.9rem;
        padding: 2px 5px;
    }

    .border1 {
        text-align: center;
        width: 260px;
        height: 39px;
        border: 2px solid #245287;
        border-radius: 5px;
        box-shadow: 0px 2px 4px 0px rgba(124.14, 111.51, 111.51, 0.5);
        background: #ffffff;
    }

    .style-tire-search1 {
        width: 150px;
        height: 30px;
        display: block;
        margin: auto;
        margin-top: 70px;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #139C43;
        border-radius: 5px;
    }

    .style-tire-search1 button {
        width: 150px;
        height: 30px;
        color: #ffffff;
    }

    .tuan {
        display: flex;
        justify-content: center; /* 水平居中 */
        align-items: center; /* 垂直居中 */
        margin: auto; /* 水平居中 */
        width: 1149px; /* 自动宽度 */
        height: 445px; /* 自动高度 */
        background-image: url(images/hero-bs-spring-savings-des@1x.png);
    }

    .text-overlay {
        color: white; /* 文字颜色 */
        text-align: center; /* 文字居中 */
        background-color: rgba(0, 0, 0, 0.5); /* 半透明背景色 */
        padding: 10px; /* 内边距 */
        border-radius: 5px; /* 圆角 */
    }

    .tuan1 {
        display: flex;
        justify-content: center; /* 水平居中 */
        align-items: center; /* 垂直居中 */
        margin: auto; /* 水平居中 */
        width: 1191px;
        height: 244px;
    }

    .text-overlay1 {
        color: black; /* 文字颜色 */
        text-align: center; /* 文字居中 */
    }
    
    /* 在移动端给text-overlay1添加左右内边距 */
    @media screen and (max-width: 1024px) {
        .text-overlay1 {
            padding-left: 20px;
            padding-right: 20px;
        }
        
        /* 在小屏幕设备上调整内边距 */
        @media screen and (max-width: 390px) {
            .text-overlay1 {
                padding-left: 15px;
                padding-right: 15px;
            }
        }
    }

    .tuan2 {
        display: flex;
        justify-content: center; /* 水平居中 */
        align-items: center; /* 垂直居中 */
        margin: auto; /* 水平居中 */
        width: 1149px; /* 自动宽度 */
        height: 328px; /* 自动高度 */
        background-image: url(images/容器@1x.png);
    }

    .tuan3 {
        display: flex;
        justify-content: center; /* 水平居中 */
        align-items: center; /* 垂直居中 */
        margin: auto; /* 水平居中 */
        width: 1149px; /* 自动宽度 */
        height: 265px; /* 自动高度 */
        background-image: url(images/容器@1x.svg);
    }
}