/* ========================================
 * 联系我们模块样式 content-contact.php
 * 桌面端两栏卡片布局
 * ======================================== */

/* 模块整体：浅灰背景 + 上下内边距 */
.contact-section.index-section {
    padding: 60px 0;
    background-color: #f8f9fa !important;
}

/* 覆盖奇数段背景：设计图整体是浅色，不让 index-section odd 深蓝 */
.contact-section.index-section:nth-of-type(odd) {
    background-color: #f8f9fa !important;
}

/* 区块标题：居中 + 橙色短下划线 */
.contact-section .section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 50px;
    padding-bottom: 18px;
    position: relative;
    letter-spacing: 2px;
}

.contact-section .section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: #f26522;
    border-radius: 2px;
}

/* 两栏容器：左右卡片 + 间距 */
.contact-section .contact-container {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

/* 左：联系信息卡片 / 右：表单卡片 */
.contact-section .contact-info,
.contact-section .contact-form {
    flex: 1;
    background-color: #ffffff;
    border-radius: 14px;
    padding: 40px 45px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* =============== 左侧：联系信息 =============== */

/* 顶部说明文字 */
.contact-section .contact-desc {
    font-size: 17px;
    color: #666666;
    margin: 0 0 30px;
    line-height: 1.7;
}

/* 每个联系项：浅灰底 + 圆角 + 内边距 + 图标在圆里 */
.contact-section .contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    background-color: #f7f8f9;
    border-radius: 12px;
    margin-bottom: 18px;
    transition: background-color 0.25s ease;
}

.contact-section .contact-item:hover {
    background-color: #eef3f8;
}

/* 图标容器：蓝色圆（微信单独用绿色） */
.contact-section .contact-item > i {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    background-color: #0066cc;
    border-radius: 50%;
}

/* 热线/手机图标稍微深一点的蓝或保持统一蓝即可 */

/* 文本容器 */
.contact-section .contact-text {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
}

/* 标签：地址/热线/手机 加粗深色 */
.contact-section .contact-text > span:first-child {
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    flex: 0 0 auto;
}

/* 标签后的文本/链接 */
.contact-section .contact-text p {
    margin: 0;
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
}

/* 热线号码：橙色大字体 + 去下划线 */
.contact-section .hotline-number {
    margin: 0 !important;
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.contact-section .hotline-number > a {
    font-size: 30px;
    font-weight: 700;
    color: #f26522 !important;
    text-decoration: none !important;
    letter-spacing: 1px;
}

.contact-section .hotline-number .service-time {
    font-size: 14px;
    color: #888888;
    font-weight: 400;
}

/* 手机号码：蓝色 */
.contact-section .contact-item:last-of-type .contact-text p a,
.contact-section .contact-text > p a {
    font-size: 22px;
    font-weight: 700;
    color: #0066cc !important;
    text-decoration: none !important;
    letter-spacing: 0.5px;
}

/* =============== 微信块 =============== */

.contact-section .contact-wechat {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    background-color: #f7f8f9;
    border-radius: 12px;
}

.contact-section .wechat-info {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

/* 微信图标：绿色圆 */
.contact-section .wechat-info > i {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    background-color: #07c160;
    border-radius: 50%;
}

.contact-section .wechat-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-section .wechat-text > span {
    font-size: 18px;
    font-weight: 700;
    color: #333333;
}

.contact-section .wechat-text p {
    margin: 0;
    font-size: 15px;
    color: #666666;
}

/* 二维码 */
.contact-section .wechat-qrcode {
    flex: 0 0 auto;
    padding: 6px;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
}

.contact-section .wechat-qrcode img {
    width: 110px;
    height: 110px;
    display: block;
}

/* =============== 右侧：表单 =============== */

/* 提示文字 + 虚线分隔 */
.contact-section .form-tip {
    font-size: 16px;
    color: #666666;
    margin: 0 0 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #dddddd;
    line-height: 1.6;
}

/* 字段间距 */
.contact-section .form-field {
    margin-bottom: 20px;
}

/* 输入框/文本域：圆角 + 边框 + 聚焦效果 */
.contact-section .form-field input[type="text"],
.contact-section .form-field input[type="tel"],
.contact-section .form-field textarea {
    width: 100%;
    display: block;
    padding: 16px 18px;
    font-size: 15px;
    color: #333333;
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    line-height: 1.5;
}

.contact-section .form-field textarea {
    height: 140px;
    resize: vertical;
}

.contact-section .form-field input::placeholder,
.contact-section .form-field textarea::placeholder {
    color: #aaaaaa;
}

.contact-section .form-field input:focus,
.contact-section .form-field textarea:focus {
    border-color: #f26522;
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.12);
}

/* 电话+姓名：同一行两列 */
.contact-section .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-section .form-row .form-field {
    flex: 1;
    margin-bottom: 0;
}

/* 提交按钮：整行橙色实心 */
.contact-section .form-submit {
    margin-top: 10px;
}

.contact-section .button-group {
    display: flex;
}

.contact-section .submit-btn {
    flex: 1;
    width: 100%;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff !important;
    background-color: #0066cc !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 2px;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

.contact-section .submit-btn:hover {
    background-color: #0052a3 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 102, 204, 0.35);
}

.contact-section .submit-btn:active {
    transform: translateY(0);
}

/* =============== 响应式（中等/小屏幕自适应） =============== */

@media (max-width: 992px) {
    .contact-section .contact-container {
        flex-direction: column;
        gap: 28px;
    }

    .contact-section .contact-info,
    .contact-section .contact-form {
        padding: 30px 28px;
    }

    .contact-section .section-title {
        font-size: 32px;
        margin-bottom: 38px;
    }

    .contact-section .hotline-number > a {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .contact-section .contact-info,
    .contact-section .contact-form {
        padding: 24px 20px;
    }

    .contact-section .section-title {
        font-size: 26px;
        margin-bottom: 30px;
        padding-bottom: 14px;
        letter-spacing: 1px;
    }

    .contact-section .contact-item {
        padding: 16px;
        gap: 14px;
    }

    .contact-section .contact-item > i,
    .contact-section .wechat-info > i {
        width: 42px;
        height: 42px;
        font-size: 20px;
        flex-basis: 42px;
    }

    .contact-section .hotline-number > a {
        font-size: 22px;
    }

    .contact-section .contact-wechat {
        flex-wrap: wrap;
    }

    .contact-section .wechat-qrcode {
        margin: 0 auto;
    }

    .contact-section .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-section .form-row .form-field {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .contact-section.index-section {
        padding: 40px 0;
    }

    .contact-section .section-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .contact-section .contact-info,
    .contact-section .contact-form {
        padding: 20px 16px;
        border-radius: 10px;
    }

    .contact-section .contact-desc {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .contact-section .contact-text > span:first-child,
    .contact-section .wechat-text > span {
        font-size: 16px;
    }

    .contact-section .hotline-number > a {
        font-size: 20px;
    }

    .contact-section .wechat-qrcode img {
        width: 96px;
        height: 96px;
    }
}
