/* ============================================================
   联系我们页面专用样式 (前缀 rfc- 确保不冲突)
   ============================================================ */




/* 2. 排版公用变量 */
.rfc-container { width:100%; max-width: 1440px; margin: 0 auto; position: relative; }
.rfc-bg-light { background-color: #F8F8F8; }

.section-padding { padding: 120px 0; }

.rfc-title-sub { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--primary-color, #0909B7); font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; }
.rfc-title-sub::before { content: ""; display: inline-block; width: 40px; height: 1px; background: var(--primary-color, #0909B7); margin-right: 15px; }

/* 滚动动画初始状态 */
.rfc-reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.rfc-reveal.active { opacity: 1; transform: translateY(0); }
.rfc-reveal.delay-1 { transition-delay: 0.1s; }
.rfc-reveal.delay-2 { transition-delay: 0.2s; }

/* ============================================================
   1. 首屏区域 (Hero Section) - 大气留白
   ============================================================ */
.rfc-hero {
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0.7) 100%), 
                url('../images/contact.webp') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
}

/* 巨大背景文字 - 国际范点睛之笔 */
.rfc-hero-bg-text {
    position: absolute; top: 50%; left: -2%; transform: translateY(-50%);
    font-size: 15vw; font-weight: 900; color: rgba(0,0,0,0.02);
    white-space: nowrap; pointer-events: none; user-select: none; font-family: 'Arial Black', sans-serif;
    z-index: 1;
}

.rfc-hero-content { max-width: 800px; position: relative; z-index: 2; }
.rfc-hero-content h1 {font-size: 56px; line-height: 1.1; margin-bottom: 24px; font-weight: 700; color: #111; }
.rfc-hero-content h1 span { color: var(--primary-color, #0909B7); }
.rfc-hero-content p { font-size: 18px; color: var(--text-gray, #666); max-width: 600px; }

/* ============================================================
   2. 联系信息区域 (Methods Section) - 非对称排版
   ============================================================ */
.rfc-methods-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; }

/* 2.1 品牌格言块 */
.rfc-quote-block { padding: 60px 40px; background: #fafafa; border-top: 2px solid var(--primary-color, #0909B7); position: relative; }
.rfc-quote-block .rfc-icon-wrap i { font-size: 48px; color: var(--primary-color, #0909B7); opacity: 0.3; display: block; margin-bottom: 30px; }
.rfc-quote-text {font-size: 28px; line-height: 1.4; color: #333; font-style: italic; font-weight: 500; margin-bottom: 20px; }
.rfc-quote-author { font-size: 13px; color: #999; letter-spacing: 1px; font-weight: 600; text-transform: uppercase; }

/* 2.2 联系信息具体块 */
.rfc-info-blocks { display: flex; flex-direction: column; gap: 40px; }
.rfc-info-item { padding-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.rfc-item-header { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; }
.rfc-item-header i { font-size: 24px; color: var(--primary-color, #0909B7); }
.rfc-item-header h4 { font-size: 18px; font-weight: 700; color: #333; letter-spacing: 1px; }

.rfc-item-link { font-size: 36px; font-weight: 700; color: var(--text-dark, #111); display: block; margin-bottom: 8px;text-decoration: none; transition: 0.3s; }
.rfc-item-link:hover { color: var(--primary-light, #0749d4); }
.rfc-info-item a.rfc-item-link { display: inline-block; } /* tel and mailto fix */

.rfc-item-desc { font-size: 14px; color: var(--text-gray, #666); }

/* tel: email: specifics */
.rfc-info-item:nth-child(2) .rfc-item-link { font-size: 28px; }
.rfc-info-item:nth-child(3) .rfc-item-link { font-size: 16px; text-decoration: underline; color: var(--primary-color, #0909B7); text-transform: uppercase; font-weight: 600; font-family: inherit; }

/* ============================================================
   3. 地图与表单区域 (Map & Form) - 模块化现代风
   ============================================================ */
.rfc-form-map-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; padding: 100px 0; }

/* 3.1 地图模块 */
.rfc-map-wrapper { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.rfc-map-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.rfc-address-box { position: absolute; bottom: 30px; left: 30px; background: rgba(255,255,255,0.95); padding: 30px; border-radius: 6px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); width: 80%; }
.rfc-address-box h5 { font-size: 18px; color: #333; margin-bottom: 10px; font-weight: 700; }
.rfc-address-box p { font-size: 14px; color: var(--text-gray, #666); line-height: 1.5; margin-bottom: 20px; }
.rfc-map-link { font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--primary-color, #0909B7); letter-spacing: 1px; text-decoration: none; position: relative; }
.rfc-map-link::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--primary-color, #0909B7); transition: 0.3s; }
.rfc-map-link:hover::after { width: 100%; }

/* 3.2 意向申请表单模块 */
/* ============================================================
   3.2 意向申请表单模块 (针对 WPForms 真实嵌套结构完美复刻)
   ============================================================ */
.rfc-form-header h3 { font-size: 36px; line-height: 1.3; color: #111; margin-bottom: 40px; font-weight: 600; }

/* 1. 清理 WPForms 默认容器带来的多余原生边距 */
.rfc-form-wrapper .wpforms-container { margin: 0 !important; padding: 0 !important; max-width: 100% !important; width: 100% !important; }

/* 2. 核心修正：真正将大网格布局施加在 WPForms 的核心字段包裹层上 */
.rfc-form-wrapper .wpforms-field-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* 强制两列对齐布局 */
    gap: 20px !important;
}

/* 3. 基础字段项行为清理 */
.rfc-form-wrapper .wpforms-field {
    grid-column: span 1 !important; /* 姓名、电话、邮箱、企业默认各占 1 格 (即两两并排) */
    padding: 0 !important;
    margin: 0 !important;
    clear: none !important;
    width: 100% !important;
}

/* 4. 强行指定多选框/下拉框、大文本域横跨 2 列 (独占整行通栏) */
.rfc-form-wrapper .wpforms-field-checkbox,
.rfc-form-wrapper .wpforms-field-select,
.rfc-form-wrapper .wpforms-field-textarea {
    grid-column: span 2 !important;
}

/* 5. 输入框与文本域的高级基础样式复刻 */
.rfc-form-wrapper .wpforms-field input[type="text"],
.rfc-form-wrapper .wpforms-field input[type="tel"],
.rfc-form-wrapper .wpforms-field input[type="email"],
.rfc-form-wrapper .wpforms-field select,
.rfc-form-wrapper .wpforms-field textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    outline: none !important;
    transition: 0.3s !important;
    background: #fff !important;
}

/* 焦点激活时高亮深红色 */
.rfc-form-wrapper .wpforms-field input:focus,
.rfc-form-wrapper .wpforms-field select:focus,
.rfc-form-wrapper .wpforms-field textarea:focus { 
    border-color: #0909B7 !important; 
    box-shadow: 0 0 0 3px rgba(139,0,0,0.08) !important; 
}


/* 7. 复刻【多选框模块】的 Dashed 虚线框与 2x2 打勾网格 */
.rfc-form-wrapper .wpforms-field-checkbox .wpforms-field-label,
.rfc-form-wrapper .wpforms-field-select .wpforms-field-label {
    display: block !important;
    font-size: 14px !important;
    color: #444 !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
}
.rfc-form-wrapper .wpforms-field-checkbox ul {
    list-style: none !important;
    padding: 20px !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* 子选项两两并排 */
    gap: 15px !important;
    background: #fcfcfc !important;
    border: 1px dashed #e0e0e0 !important;
    border-radius: 6px !important;
}
.rfc-form-wrapper .wpforms-field-checkbox ul li {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}
.rfc-form-wrapper .wpforms-field-checkbox ul li input[type="checkbox"] {
    width: auto !important;
    margin: 0 10px 0 0 !important;
    cursor: pointer !important;
}
.rfc-form-wrapper .wpforms-field-checkbox ul li label {
    display: inline !important;
    font-size: 14px !important;
    color: #666 !important;
    font-weight: normal !important;
    margin: 0 !important;
    cursor: pointer !important;
}

/* 8. 复刻全宽深红提交按钮（移除了多余的 ::after 伪元素避免文字重复） */
.rfc-form-wrapper .wpforms-submit-container { 
    margin-top: 10px !important;
    padding: 0 !important; 
    clear: both !important;
}
.rfc-form-wrapper .wpforms-submit { 
    width: 100% !important; 
    background: #0909B7 !important; 
    color: #fff !important; 
    border: none !important; 
    border-radius: 6px !important; 
    font-size: 16px !important; 
    font-weight: bold !important; 
    cursor: pointer !important; 
    transition: 0.3s !important; 
    letter-spacing: 1px !important; 
}
.rfc-form-wrapper .wpforms-submit:hover { 
    background: #0749d4 !important; 
    box-shadow: 0 5px 15px rgba(102,0,0,0.2) !important; 
}
.rfc-form-privacy {
    font-size: 12px;
    color: rgb(187, 187, 187);
    text-align: center;
    margin-top: 10px;
}
div.wpforms-container-full .wpforms-confirmation-container-full, div[submit-success]>.wpforms-confirmation-container-full:not(.wpforms-redirection-message)
{background:#f9d9d9 !important;}
/* ============================================================
   移动端兼容性适配 (Mobile Compatible)
   ============================================================ */
@media (max-width: 1024px) {
    .section-padding { padding: 80px 0; }
    .rfc-hero-content h1 { font-size: 48px; }
    .rfc-methods-grid { gap: 40px; }
    .rfc-form-map-grid { gap: 40px; grid-template-columns: 1fr; padding: 60px 0; }
    .rfc-map-wrapper { min-height: 400px; }
    .rfc-address-box { width: 90%; bottom: 20px; left: 20px; }
}

@media (max-width: 768px) {
    .rfc-hero-content h1 { font-size: 36px; }
    .rfc-title-sub { font-size: 12px; margin-bottom: 15px; }
    
    .rfc-methods-grid { grid-template-columns: 1fr; }
    
    .rfc-quote-block { padding: 40px 25px; }
    .rfc-quote-text { font-size: 20px; }
    
    .rfc-item-link { font-size: 28px; }
    .rfc-info-item:nth-child(2) .rfc-item-link { font-size: 22px; }
    
    .rfc-form-header h3 { font-size: 28px; }
    .rfc-form-row { grid-template-columns: 1fr; gap: 20px; }
    .rfc-checkbox-grid { grid-template-columns: 1fr; gap: 10px; }
	.rfc-container{padding:20px;}
	.rfc-info-blocks{padding:20px}
}
.nav-item > a {
    color: #2A2A2A;
}