/* =========================================
   联系我们页面专属样式 (无侧边栏版)
   ========================================= */

.contact-page-wrapper {
    padding: 80px 0;
    background-color: #f9f9f9;
    min-height: 80vh;
}

.contact-container-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部居中标题区 */
.page-header-center {
    text-align: center;
    margin-bottom: 60px;
}

.page-main-title {
    color: var(--brand-red, var(--brand-blue));
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-weight: 600;
}

/* 标题下划线装饰 */
.page-main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) scaleX(1); /* ✅ 初始缩放为 1 */
    transform-origin: center; /* ✅ 从中心向两边扩展 */
    width: 60px;
    height: 3px;
    background-color: var(--brand-blue, #2793ff);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* ✅ 流畅的缓动效果 */
}

/* ✅ 鼠标悬停时放大 2 倍 */
.page-main-title:hover::after {
    transform: translateX(-50%) scaleX(4); /* 2 倍长度，可改为 1.5、2.5 等 */
}

.page-subtitle {
    color: #666;
    font-size: 16px;
    margin-top: 20px;
}

/* 双列布局网格 */
.content-grid-no-sidebar {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.section-subtitle {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    border-left: 4px solid var(--brand-blue);
    padding-left: 15px;
}

/* --- 左侧联系信息 --- */
.contact-info-col {
    flex: 1;
}

.info-block {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--brand-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.text-box h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    margin-top: 5px;
}

.address-content p, .text-box p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 8px;
}

.factory-list {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

/* --- 右侧留言表单 --- */
.contact-form-col {
    flex: 1;
}

.form-wrapper {
    border: 1px solid #eee;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.form-header {
    background-color: #003366; 
    color: #fff;
    padding: 18px 25px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.form-body {
    padding: 30px;
}

/* CF7 表单样式适配 */
.cf7-custom-form p { margin-bottom: 20px; }
.cf7-custom-form label { display: block; width: 100%; font-size: 14px; color: #666; margin-bottom: 8px;}

.cf7-custom-form .form-input,
.cf7-custom-form .form-textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #e0e0e0;
    border-left: 3px solid var(--brand-blue, #2793ff); 
    background: #fafafa;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
    border-radius: 2px;
}

.cf7-custom-form .form-input:focus,
.cf7-custom-form .form-textarea:focus {
    border-color: var(--brand-blue, #2793ff);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(39, 147, 255, 0.1);
}

.cf7-custom-form .form-textarea { height: 140px; resize: vertical; }

.cf7-custom-form .submit-btn {
    background-color: var(--brand-blue);
    color: #fff !important;
    border: none;
    padding: 14px 40px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
    margin-top: 10px;
    display: inline-block;
    border-radius: 2px;
    width: 100%; /* 手机端全宽 */
}

.cf7-custom-form .submit-btn:hover {
    background-color: var(--brand-blue);
    transform: translateY(-2px);
}

/* =========================================
    移动端适配 (< 992px)
   ========================================= */
@media (max-width: 992px) {
    .contact-page-wrapper { padding: 40px 0; }
    
    .content-grid-no-sidebar {
        flex-direction: column;
        gap: 50px;
    }
    
    .page-main-title { font-size: 28px; }
    
    .contact-info-col, .contact-form-col {
        width: 100%;
    }
    
    .form-body { padding: 20px; }
}