/* 全局重置 */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    /*font-family: "Microsoft YaHei", sans-serif;*/
}

main {
    width: 100%;
    /* 移除 min-width: 1200px */
    /*background: #F7F8FA;*/
    overflow-x: hidden;
}

.content_bg {
    width: 100%;
    overflow: hidden;
    background: linear-gradient( 180deg, #F0F7FF 0%, #E8F0FE 50%, #FFFFFF 100%);
}

/* 通用模块容器 */
.content_bg .module {
    width: 100%;
    height: 320px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- Module 1: Hero Section --- */
.module h1 {
    font-weight: 600;
    font-size: 40px;
    color: #333333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.module p {
    max-width: 617px; 
    font-size: 18px;
    color: rgba(51, 51, 51, 0.8);
    line-height: 28px;
    margin-bottom: 40px;
}

/* --- 内容容器 --- */
.contact_content {
    width: 100%;
    max-width: 1200px; /* 最大宽度限制 */
    margin: 0 auto;
    position: relative;
    z-index: 2; /* 确保内容在背景图之上 */
    top: -60px;
}

/* --- 服务咨询区域 --- */
.contact_content .service_cont { 
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 服务卡片 */
.service_card {
    width: 380px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    gap: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.service_card .icon {
    width: 80px;
    height: 80px;
}

.service_card .erweima {
    width: 120px;
    height: 120px;
}

.service_card img {
    width: 100%;
    height: 100%;
}

.service_card .info {
    text-align: left;
    font-size: 14px;
    color: #666;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.service_card .info a {
    color: #4671FE; /* 使用品牌蓝 */
    text-decoration: none;
    transition: color 0.3s;
}

.service_card .info a:hover {
    color: #355acf;
}

.conts_wrap {
    width: 100%;
    background: #F7F8FA;
}

.conts {
    width: 100%;
    max-width: 1200px;
    height: auto; /* 高度自适应 */
    min-height: 540px;
    padding-top: 80px;
    box-sizing: border-box;
    margin: 0 auto;
}

h2 {
    font-weight: 600;
    font-size: 36px;
    color: #333333;
    text-align: center;
    margin-bottom: 20px;
}

.conts .cards {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card_item {
    display: flex;
    width: 380px;
    height: 260px;
    background: #FFFFFF;
    border-radius: 8px 8px 8px 8px;
    border: 1px solid #F2F3F5;
    padding: 34px 40px;
    box-sizing: border-box;
}

.card_item .icon {
    width: 52px;
    height: 52px;
    margin-right: 16px;
}

.card_item .icon img {
    width: 100%;
    height: 100%;
}

.card_item .detail {
    flex: 1;
}

.detail h3 {
    font-weight: 600;
    font-size: 18px;
    color: #333333;
    margin-bottom: 14px;
}

.detail p {
    font-weight: 400;
    font-size: 14px;
    color: #666666;
    line-height: 24px;
}

/* --- 在线留言 --- */
.guestbook-wrap .guestbook-conts {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 80px;
}

.guestbook-sub {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin: -8px auto 40px;
    line-height: 1.6;
}

.guestbook-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 48px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #F2F3F5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.guestbook-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 32px;
    margin-bottom: 24px;
}

.guestbook-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guestbook-form-group label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.guestbook-req {
    color: #F5222D;
}

.guestbook-form-group input,
.guestbook-form-group textarea {
    width: 100%;
    background: #F7F8FA;
    border: 1px solid #E8EAED;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    padding: 0 14px;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.guestbook-form-group input {
    height: 44px;
}

.guestbook-form-group textarea {
    min-height: 120px;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.6;
}

.guestbook-form-group input:focus,
.guestbook-form-group textarea:focus {
    border-color: #4671FE;
    background: #fff;
}

.guestbook-form-group input::placeholder,
.guestbook-form-group textarea::placeholder {
    color: #999;
}

.guestbook-full {
    margin-bottom: 32px;
}

.guestbook-submit {
    text-align: center;
}

.guestbook-btn {
    min-width: 200px;
    height: 48px;
    padding: 0 40px;
    background: #4671FE;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.guestbook-btn:hover {
    opacity: 0.88;
}

.guestbook-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* =========================================
   响应式媒体查询
   ========================================= */

/* 平板及中等屏幕 (<= 992px) */
@media screen and (max-width: 992px) {
    .guestbook-grid {
        grid-template-columns: 1fr 1fr;
    }

    .guestbook-form {
        padding: 32px 28px;
    }

    .contact_bg {
        height: 400px; /* 减小背景图高度 */
    }

    .contact_content {
        padding-top: 80px;
    }
    
    .contact_content .service_cont {
        flex-direction: column;
    }

    .service_card {
        flex-direction: column; /* 卡片垂直堆叠 */
        margin-bottom: 20px;
    }
    
    .cards {
        flex-direction: column;
    }
    
    .card_item {
        margin-bottom: 20px;
    }
}

/* 手机屏幕 (<= 768px) */
@media screen and (max-width: 768px) {
    .guestbook-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .guestbook-form {
        padding: 24px 20px;
    }

    .guestbook-wrap .guestbook-conts {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .guestbook-btn {
        width: 100%;
    }

    .contact_bg {
        height: 300px;
    }


    .contact_content .service_cont {
        flex-direction: column;
    }
    
    .service_card {
        margin-bottom: 20px;
    }
    
    .cards {
        flex-direction: column;
    }
    
    .card_item {
        margin-bottom: 20px;
    }

}