/* mx-matrix-engine: About Us Component Styles (Pure CSS, No JS) */

.mx-about-wrapper {
    /* 布局与盒模型已由全局 .mx-container 接管，此处仅保留字体与颜色 */
    font-family: inherit;
    color: #222222;
    /* ⚠️ 这里原本的两行 padding-left/right 已经删除了 */
}

/* =========================================
   🛡️ MX Matrix 终极防御：单层绝对控制 (30px)
========================================= */

/* 1. 外部绝对清零：彻底干掉 WordPress 主题默认的 20px 留白 */
body .inside-article:has(.mx-about-wrapper),
body .entry-content:has(.mx-about-wrapper) {
    padding: 0 !important; 
}

/* 2. 内部独揽大权：仅在电脑端让容器全权接管 30px 的安全距离 */
@media (min-width: 769px) {
    .mx-matrix-wrapper:has(.mx-about-wrapper) .mx-container.mx-about-wrapper {
        padding: 30px !important; 
        max-width: 1640px; 
        margin: 0 auto;    
    }
}

/* =========================================
   0. 全局普通文本规范
========================================= */
.mx-about-wrapper p,
.mx-faq-content {
    font-size: 14px;
    color: #222222;
    margin: 0 0 21px 0;
    line-height: 1.7; 
    text-align: left;
}

.mx-about-wrapper p:last-child {
    margin-bottom: 0;
}

/* =========================================
   1. 经典公司介绍 (左文右图)
========================================= */
.mx-company-intro-classic {
    display: flex;
    align-items: center;
    gap: 60px;
    /* padding: 10px;  <-- 删掉这一行，或者改成 padding: 0; */
}

.mx-intro-text {
    flex: 1.2;
}

.mx-intro-text h3 {
    font-size: 1.8rem; 
    color: #0B192C;
    margin-bottom: 15px; 
    font-weight: 700;
    line-height: 1.3;
    border-left: none !important; /* 彻底去除左侧蓝条 */
    padding-left: 0 !important;   /* 彻底去除左侧留白 */
    margin-top: 0 !important; 
}

.mx-intro-image {
    flex: 1;
}

/* 针对视频标签的纯 CSS 响应式控制 */
.mx-intro-image video.mx-intro-video {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background-color: #0B192C; /* 在海报加载前提供一个符合工业风的底色 */
}

/* =========================================
   2. 扁平化图标数据面板
========================================= */
.mx-stats-classic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px 40px 40px 40px;
}

.mx-stat-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.mx-stat-icon {
    color: #0284c7; 
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mx-stat-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.mx-stat-data {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mx-stat-num {
    font-size: clamp(1.6rem, 2.2vw, 2.2rem); 
    font-weight: 800;
    color: #000000;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.mx-stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

/* =========================================
   3. 详细介绍：通栏堆叠布局 (上图下文)
========================================= */
.mx-about-details-stacked {
    padding: 40px 40px 40px 40px;
    background: #f8fafc; 
}

.mx-stacked-block {
    max-width: 1200px; 
    margin: 0 auto 50px auto;
}

.mx-stacked-block:last-child {
    margin-bottom: 0;
}

.mx-stacked-image {
    margin-bottom: 30px;
    text-align: center;
}

.mx-stacked-image img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05); 
}

.mx-stacked-text {
    padding: 0 10px;
}

/* =========================================
   4. E-E-A-T 专家矩阵
========================================= */
.mx-about-experts {
    padding: 50px 40px;
    background: #0B192C; 
    color: #fff;
}

.mx-about-experts .mx-about-section-title {
    color: #ffffff; 
    text-align: center;
    font-size: 2.2rem;
    margin-top: 0 !important; 
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.mx-about-experts .mx-about-section-subtitle {
    color: #cbd5e1; 
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.mx-expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 修改专家卡片容器，使其变为 flex 垂直布局 */
.mx-expert-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 0;
    border-top: 5px solid #3b82f6;
    
    /* 核心修改点：开启 Flex 模式 */
    display: flex;
    flex-direction: column;
    height: 100%; /* 确保所有卡片等高 */
}

/* 让中间的段落文字自动撑开，把按钮“顶”到底部 */
.mx-expert-card p {
    flex-grow: 1; 
    margin-bottom: 20px; /* 留出一点间距 */
    color: #222222;
}

.mx-expert-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.mx-expert-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.mx-expert-name {
    /* 👇 照搬图1 (Contact Us) 的高级黑体名字 */
    font-size: 21px !important;
    color: #111827 !important;
    font-weight: 700 !important;
    
    /* 强制收紧行高并清空边距，确保和左侧头像完美垂直对齐 */
    margin: 0 0 4px 0 !important;
    line-height: 1.2 !important;
    
    /* 保持防御，防止主题加蓝条 */
    border-left: none !important;
    padding-left: 0 !important;
}

.mx-expert-title {
    /* 👇 照搬图1 (Contact Us) 的高级灰、常规字重职位 */
    font-size: 14px !important;
    color: #64748b !important; 
    font-weight: 400 !important;
    
    /* 👇 核心：彻底干掉全部大写，恢复成图1那样温柔正常的样式 */
    text-transform: none !important; 
    letter-spacing: 0 !important;
    
    /* 强制收紧行高并清空边距，配合名字实现居中 */
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* 专家卡片内部的精准联系按钮 */
.mx-expert-card-btn {
    align-self: flex-start; /* 保持按钮靠左对齐 */
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #0056b3;
    border: 1px solid #0056b3;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mx-expert-card-btn span {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 5px;
}

.mx-expert-card-btn:hover {
    background-color: #0056b3;
    color: #ffffff;
}

.mx-expert-card-btn:hover span {
    transform: translateX(4px);
}

/* =========================================
   5. 信任解答：纯黑/深色固定 FAQ 模块
========================================= */
.mx-about-faq-v2 {
    max-width: 1400px;            
    margin: 60px auto 80px auto; 
    border-radius: 0;            
    overflow: hidden;            
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15); 
    
    padding: 80px 70px; /* 保持电脑端四周的大气留白 */
    position: relative;
    color: #ffffff;
    box-sizing: border-box;
    
    /* 直接使用深色背景，极大提升网页加载速度 */
    background-color: #111827; 
}

.mx-faq-v2-container {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center; 
    justify-content: space-between;
    gap: 60px; 
}

/* 左侧文本区 */
.mx-faq-v2-text {
    flex: 1.2;
}

.mx-qa-block {
    margin-bottom: 20px;
}

.mx-qa-block:last-child {
    margin-bottom: 0;
}

.mx-qa-block p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 4px 0;
}

.mx-qa-block .mx-q {
    font-weight: 700;
    color: #ffffff;
}

.mx-qa-block .mx-a {
    color: #cbd5e1;
}

/* 右侧 Logo 图片区 */
.mx-faq-v2-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mx-logo-box {
    display: block;
    width: 100%;
    max-width: 480px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.4); 
    padding: 0; /* 彻底去掉内边距 */
    background: transparent; 
}

.mx-logo-box img {
    width: 100%;  /* 强制图片宽度撑满整个容器 */
    height: auto; /* 高度根据您上传的图片比例自然缩放，不拉伸 */
    display: block;
}

/* =========================================
   6. 底部 Call to Action 模块 (电脑端)
========================================= */
.mx-about-cta {
    padding: 60px 40px;
    background: #f8fafc;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.mx-about-cta .mx-about-section-title {
    color: #0B192C;
    font-size: 2.2rem;
    margin-top: 0 !important;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.mx-about-cta .mx-about-section-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.mx-cta-button {
    display: inline-block;
    background-color: #1a1a1a; 
    color: #ffffff !important; 
    padding: 15px 45px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 0;          
    transition: background-color 0.3s ease;
}

.mx-cta-button:hover {
    background-color: #0056b3; 
    color: #ffffff !important; 
}


/* =========================================
   7. 平板与移动端响应式适配
========================================= */
@media (max-width: 1024px) {
    .mx-company-intro-classic {
        flex-direction: column;
        gap: 40px;
    }
    
    .mx-stats-classic {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* --- 0. 核心修正：抹除全局容器的双层叠加，将边距控制权下放 --- */
    .mx-container.mx-about-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* --- 1. 标题与公司介绍 --- */
    .mx-company-intro-classic {
        /* 强制执行：上下 30px，左右 10px 单层留白 */
        padding: 30px 10px !important; 
        gap: 15px; 
    }
    .mx-intro-text h3 {
        font-size: 24px !important; 
        color: #222222 !important; 
        margin-bottom: 10px !important;
    }

    /* --- 2. 统一手机端正文与文章的排版 --- */
    .mx-about-wrapper p,
    .mx-faq-content {
        font-size: 15px !important; 
        color: #222222 !important; 
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
    }
    .mx-about-wrapper p:last-child {
        margin-bottom: 0 !important;
    }

    /* --- 3. 数据面板 --- */
    .mx-stats-classic {
        grid-template-columns: 1fr;
        padding: 30px 10px !important; 
        gap: 15px; 
    }
    .mx-stat-block {
        justify-content: flex-start !important; 
        width: 240px !important; 
        margin: 0 auto !important; 
    }

    /* --- 4. 详细介绍通栏 --- */
    .mx-about-details-stacked {
        padding: 30px 10px !important; 
    }
    .mx-stacked-block {
        margin-bottom: 20px !important; 
    }
    .mx-stacked-image {
        margin-bottom: 10px !important; 
    }
    .mx-stacked-text {
        /* 清除默认自带的 10px 内部边距，防止在此处产生二次嵌套 */
        padding: 0 !important; 
    }

    /* --- 5. 专家矩阵区 --- */
    .mx-about-experts {
        padding: 30px 10px !important; 
    }
    .mx-about-experts .mx-about-section-title {
        font-size: 24px !important; 
        margin-bottom: 10px !important; 
    }
    .mx-about-experts .mx-about-section-subtitle {
        margin-bottom: 15px !important; 
        color: #cbd5e1 !important; 
    }
    .mx-expert-card {
        padding: 15px !important; 
    }

    /* --- 6. 图文 FAQ 问答区 --- */
    .mx-faq-v2-container {
        flex-direction: column;
        gap: 15px; 
    }
    .mx-about-faq-v2 {
        max-width: none !important;
        /* 外围确保 10px 单层留白，维持与上下区块对齐 */
        margin: 30px 10px !important; 
        border-radius: 0 !important; 
        /* 内部保留基础 padding，确保文字不贴住黑色背景边缘 */
        padding: 30px 15px !important; 
    }

    .mx-qa-block {
        margin-bottom: 20px !important; 
    }
    .mx-qa-block:last-child {
        margin-bottom: 0 !important;
    }
    .mx-qa-block p {
        margin-bottom: 4px !important; 
    }
    .mx-qa-block p:last-child {
        margin-bottom: 0 !important; 
    }
    .mx-qa-block p.mx-q {
        font-size: 15px !important;
        color: #ffffff !important; 
    }
    .mx-qa-block p.mx-a {
        font-size: 14px !important;
        color: #cbd5e1 !important; 
    }
    .mx-logo-box {
        padding: 0 10px !important;
        aspect-ratio: auto !important; 
    }

    /* --- 7. 底部 Call to Action 模块 --- */
    .mx-about-cta {
        padding: 30px 10px !important; 
    }
    .mx-about-cta .mx-about-section-title {
        font-size: 24px !important;
        color: #222222 !important;
        margin-bottom: 10px !important;
    }
    .mx-about-cta .mx-about-section-subtitle {
        font-size: 15px !important;
        margin-bottom: 25px !important;
        padding: 0 !important; 
    }
    .mx-cta-button {
        display: block;
        width: 100%; 
        margin: 0 auto;
        box-sizing: border-box;
    }
}