.contact-area{
    width: 1200px;
    margin: 100px auto;
    display: flex;
    align-items: start;
    justify-content: space-between;
}
.contact-info {
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 25px; /* 每块之间的间距 */
    margin-top: 18px;
}

.contact-item {
    display: flex;
    flex-direction: column; /* 垂直排列 */
    align-items: center;
    justify-content: center;
    gap: 8px; /* 图标、名称、内容之间的间距 */
    background-color: #f5f5f5;
    height: 144px;
}

.contact-item img {
    width: 40px;
    height: auto;
}

.contact-text .title {
    position: relative;
    font-weight: bold;
    font-size: 16px;
    color: #000;
    text-align: center;
}

.contact-text .title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 30px; /* 固定宽度 */
    height: 2px; /* 下划线高度 */
    background-color: #d30014;
    transform: translateX(-50%);
}

.contact-text .content {
    font-size: 14px;
    color: #666;
    word-break: break-word;
    margin-top: 4px;
    text-align: center;
}


.contact-form-wrapper{
    width: 800px;
}

.contact-form-wrapper h4{
    font-size: 35px;
    font-weight: bold;
    color: #000;
    padding-left: 15px;
}

form.contact-form {
    display: flex;
    flex-direction: column;
}
form.contact-form label {
    margin: 10px 0 5px;
    font-weight: bold;
}
form.contact-form input, 
form.contact-form textarea {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}
form.contact-form button {
    margin-top: 15px;
    padding: 10px;
    background-color: #d30014;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}
form.contact-form button:hover {
    background-color: #d30014;
}
/* 手机端自适应 */
@media screen and (max-width: 768px) {
    .contact-area {
        width: 90%;
        max-width: 100%;
        margin: 50px auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
    }
    .contact-info {
        width: 100%;
        max-width: 400px;
        gap: 25px;
        margin-top: 0;
    }
    .contact-item {
        gap: 12px;
    }
    .contact-item img {
        width: 30px;
        height: 30px;
    }
    .contact-text .title {
        font-size: 14px;
    }
    .contact-text .content {
        font-size: 13px;
    }
    .contact-form-wrapper {
        width: 100%;
        max-width: 400px;
    }
    .contact-form-wrapper h4 {
        font-size: 28px;
        padding-left: 0;
        text-align: center;
    }
    form.contact-form label {
        font-size: 14px;
    }
    form.contact-form input,
    form.contact-form textarea {
        font-size: 14px;
        padding: 6px;
    }
    form.contact-form button {
        font-size: 15px;
        padding: 10px;
    }
}
