h2 {
    font-size: 30px;
}

.wrapper {
    padding: 40px 0;
}



.card-box {
    margin: 32px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    align-content: start;
}

.phone_box {
    border-radius: 15px;
    border-bottom: 3px solid #0560f6;
    display: flex;
    background-color: #fff;
    flex: 1;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, .1);
}

.icon_phone {
    width: 40%;
    display: flex;
    justify-content: center;
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    border: 2px solid #0560f6;
    padding: 10px;
}

.phone_intro {
    font-size: 13px;
    color: #666;
    margin-top: 32px;
}

.service_title {
    font-size: 16px;
    color: #333;
    margin-top: 32px;
}

.service_intro {
    font-size: 13px;
    color: #666;
    line-height: 32px;
    margin-bottom: 32px;
}

.service_btn {
    /* background: #275baf; */
    color: #fff;
    flex: 0 0 auto;
    width: 150px;
    padding: 0 .5em;
    border-color: #fff;
    line-height: 1;
    text-align: center;
    justify-content: center;
    align-items: center;
    height: 30px;
    border-radius: 5px;
    font-size: 13px;
    /* border: 1px solid rgba(5, 96, 246, .6); */
    border-radius: 5px;
    transition: 300ms ease all;
    background: #1D428A;
    border: 1px solid #1D428A;
    font-size: 14px;
    margin-top: 24px;
}

.service_btn:hover {
    background: #fff;
    color: #0560f6;
    transition: 300ms ease all;
}

.phone_number {
    font-size: 22px;
    color: #0560f6;
    margin-bottom: 32px;
}

/* .phone {
    font-size: 22px;
    color: #0560f6;
    margin-bottom: 32px;
} */

.contact_address {
    display: flex;
    flex-direction: column;
    background-color: #fcfcfc;
    box-shadow: 0 2px 20px rgba(0, 0, 0, .1);
    border-radius: 20px;
    align-items: center;
    padding: 35px 65px;
    margin: 32px 0;
}

.address_title {
    font-size: 24px;
    color: #0560f6;
    margin-bottom: .5em;
    text-align: center;
}

.address_intor {
    font-size: 13px;
    color: #666;
}

.form-ul {
    flex-direction: column;
    margin: 0;
}

.form-ul>li {
    display: flex;
    /* margin: 0 0 22px 0;
    padding: 0 20px 0 0; */
    text-align: left;
    line-height: 30px;
    /*background: #8FB5E8;*/
}

label {
    flex: 0 0 auto;
    width: 150px;
    padding: 0 16px 0 0;
    line-height: 40px;
    text-align: right;
    color: #606266;
    /*background: #ca63e4;*/
    box-sizing: border-box;
    white-space: nowrap;
    margin-top: 0;
}

.label_type {
    width: 100px;
    text-align: left;
    margin-right: 24px;
}

.label_name {
    width: 80px;
    margin-left: 16px;
}

label.mline {
    line-height: 20px;
    white-space: normal;
}

label.star:before {
    content: '*';
    color: #f56c6c;
    margin-right: 4px;
}

.yours_name {
    width: 150px;
    /* max-width: 700px; */
    height: 40px;
    line-height: 30px;
    margin: 0;
    padding: 0 10px 0 5px;
    text-indent: 5px;
    color: #606266;
    border: 1px solid #CFCFCF;
    outline: none;
    border-radius: 5px;
}

.yours_contact {
    width: 350px;
    /* max-width: 700px; */
    height: 40px;
    line-height: 30px;
    margin: 0;
    padding: 0 10px 0 5px;
    text-indent: 5px;
    color: #606266;
    border: 1px solid #CFCFCF;
    outline: none;
    border-radius: 5px;
}

input[type='text'].datepicker {
    background: url(../images/date.png) no-repeat right 10px top 50%;
    background-size: 18px 18px;
}

textarea {
    width: 1050px;
    /* max-width: 700px; */
    height: 80px;
    line-height: 30px;
    margin: 0;
    padding: 0 10px 0 5px;
    text-indent: 5px;
    color: #606266;
    border: 1px solid #CFCFCF;
    outline: none;
    border-radius: 5px;
}

.errorinfo {
    font-size: 12px;
    line-height: 35px;
    color: red;
    margin-left: 150px;
    visibility: hidden;
}

.errorinfo2 {
    font-size: 12px;
    line-height: 35px;
    color: red;
    margin-left: 150px;
    visibility: hidden;
}

.contact_type {
    margin-bottom: 24px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
}

h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

/* 第一部分：联系方式 */
.contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-card {
    flex: 1;
    min-width: 300px;
    padding: 25px;
    background: #FAF3DB;
    border-radius: var(--border-radius);
}

.contact-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info {
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qr-code {
    text-align: center;
    margin-top: 15px;
}

.qr-code img {
    max-width: 150px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* 第二部分：联系表单 */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

.submit-btn {
    background-color: rgb(242, 207, 86);
    color: white;
    border: none;
    padding: 14px 25px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 600;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.submit-btn:hover {
    background-color: #f39110;
}

/* 第三部分：公司地址 */
.address-box {
    background: var(--accent-color);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
}

.address-details p {
    margin-bottom: 10px;
}

.company-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}


.section {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
}

h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.address-box {
    background: #FAF3DB;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
}

.address-details p {
    margin-bottom: 10px;
}

.company-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}


:root {
    --primary-color: #292b30;
    --secondary-color: #64748b;
    --accent-color: rgb(242, 207, 86);
    --text-color: #334155;
    --light-color: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    background-color: #f8fafc;
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
}

.footer {
    width: 100%;
    margin-top: 10px;
    margin-left: 45%;
}

/* 响应式布局 */
@media (max-width: 768px) {

    .container {
        padding: 24px;
    }

    .card-box {
        grid-template-columns: repeat(1, 1fr);
    }

    .phone_box {
        flex-direction: column;
        flex: 1;
        justify-content: center;
        padding: 24px 0;
        text-align: center;
    }

    .address_title {
        font-size: 5vw;
    }

    label {
        flex: 0 0 auto;
        width: 150px;
        padding: 0 16px 0 0;
        line-height: 40px;
        text-align: right;
        color: #606266;
        /*background: #ca63e4;*/
        box-sizing: border-box;
        white-space: nowrap;
        display: block;
        /* 使得label内的内容作为块级元素显示 */
        white-space: normal;
        /* 允许自动换行 */
        word-break: break-word;
        /* 允许单词内断行 */
    }

    .form-ul {
        padding-left: 22px;
    }

    .form-ul>li {
        display: block;
        /*background: #8FB5E8;*/
    }

    .label_type {
        width: 100px;
        text-align: left;
    }

    .label_name {
        width: 80px;
        text-align: left;
        margin: 0;
    }

    textarea {
        width: 300px;
    }

    input[type='text'] {
        width: 300px;
    }

    label.star {
        text-align: left;
    }

    /* .yoursname {
        width: 100px;
    } */
    .errorinfo {
        margin-left: 0;
    }

    .errorinfo2 {
        margin-left: 0;
    }

    .section {
        padding: 20px;
    }

    .contact-methods {
        flex-direction: column;
    }

    .contact-card {
        min-width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    .section {
        padding: 20px;
    }
}