/* ==========================================================================
   mx- 命名规范：Application Area Matrix (宽屏交错布局 - 直角版)
   ========================================================================== */
.mx-app-container {
    /* 基础设定：padding 控制权下放给下方的终极防御和媒体查询 */
    font-family: inherit;
}

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

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

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

/* 独立行区块 */
.mx-app-row {
    display: flex;
    align-items: center;
    gap: 80px; 
    margin-bottom: 120px; 
}

/* 消除最后一个模块的底部边距，防止大模块底部留白过大 */
.mx-app-row:last-child {
    margin-bottom: 0;
}

/* 偶数行翻转布局 */
.mx-app-row:nth-child(even) {
    flex-direction: row-reverse;
}

/* 文本区域 */
.mx-app-content {
    flex: 4;
}

/* 【修改】标题样式同步 (32px, #222222, 底部留白15px) */
.mx-app-title {
    font-size: 32px;
    color: #222222;
    margin: 0 0 15px 0; 
    line-height: 1.2;
    font-weight: 700;
}

/* 【修改】正文样式严格匹配您的截图 (14px, #222222, 底部留白21px) */
.mx-app-text {
    font-size: 14px;
    color: #222222;
    line-height: 1.6;
    margin: 0 0 21px 0;
}

/* 图片区域：移除圆角 */
.mx-app-media {
    flex: 6;
    position: relative;
    border-radius: 0; /* 强制直角 */
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); 
}

/* 锁定 839x411 比例 */
.mx-app-image-wrapper {
    width: 100%;
    aspect-ratio: 839 / 411; 
    background-color: #f1f5f9;
}

.mx-app-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    border-radius: 0; /* 确保图片本身也是直角 */
}

/* ==========================================================================
   响应式降级
   ========================================================================== */

/* 1. 平板端 (1024px 以下) */
@media (max-width: 1024px) {
    .mx-app-container {
        padding: 30px !important; /* 与电脑端保持一致，避免视觉跳跃 */
    }
    .mx-app-row,
    .mx-app-row:nth-child(even) {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
    }
    .mx-app-content, .mx-app-media {
        flex: 1;
        width: 100%;
    }
    .mx-app-title { 
        font-size: 28px; 
    }
}

/* 2. 手机端 (768px 以下) */
@media (max-width: 768px) {
    .mx-app-container {
        /* 📱 手机端：上下 30px，左右 10px */
        padding: 30px 10px !important; 
        margin-top: 0 !important; 
    }
    
    .mx-app-row,
    .mx-app-row:nth-child(even) {
        gap: 12px !important; 
        margin-bottom: 30px !important; 
    }
    
    .mx-app-row:last-child {
        margin-bottom: 0 !important; 
    }
    
    .mx-app-title { 
        font-size: 24px !important; 
        color: #222222 !important;  
        margin-top: 0 !important; 
        margin-bottom: 10px !important; 
    }
    
    .mx-app-text {
        font-size: 14px !important; 
        color: #222222 !important;  
        line-height: 1.6 !important; 
        margin-bottom: 0 !important; 
    }
    
    .mx-app-media {
        box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1); 
    }
}