/* ==========================================================
   !!! MX MATRIX CORE ARCHITECTURE & SPLIT VIDEO !!!
   [工业高对比度风格 - 直角方正防线 V5]
   ========================================================== */

/* =========================================
   🛡️ MX Matrix 终极防御盾 (视频单页全域接管版 V4)
   ========================================= */

/* 1. 缝隙终结者：彻底击穿主题默认的外部断层 (含极细线段修复) */
body.single-videos.separate-containers .site-main {
    margin: 0 !important;
}

/* 清除 <article> 标签底部的默认间距残留 */
body.single-videos.separate-containers .site-main > article {
    margin-bottom: 0 !important; 
}

/* 彻底斩断 .inside-article 自带的 1px 边框和隐形阴影 */
body.single-videos .inside-article {
    border: none !important;
    box-shadow: none !important;
}

/* 2. 电脑端 (≥769px)：由最外层 inside-article 统一下发 30px 留白 */
@media (min-width: 769px) {
    body.single-videos .inside-article {
        padding: 30px !important; 
    }
}

/* 3. 手机/平板端 (≤768px)：由最外层 inside-article 统一下发 30px(上下) 10px(左右) 留白 */
@media (max-width: 768px) {
    body.single-videos .inside-article {
        padding: 30px 10px !important; 
    }
}

/* 4. 内部模块清零防御：强行脱去内部暗黑巨幕舱和正文的额外留白，防止双重叠加！ */
body.single-videos .mx-single-video-wrapper,
body.single-videos .mx-video-description-section {
    padding: 0 !important; 
}

/* 5. 👈 核心修复：加上 .inside-article 限定词！
   只清零正文内部的容器，绝对不碰外围的面包屑导航！ */
body.single-videos .inside-article .mx-matrix-wrapper .mx-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important; /* 确保内部撑满 */
}

:root {
    --mx-bg-white: #ffffff;
    --mx-text-dark: #111418;
    --mx-text-gray: #4b5563;
    --mx-accent-blue: #2b4c9b;
    --mx-accent-red: #E32D2D;
    --mx-border-light: #e5e7eb;
}

/* --- MX 全站底层安全阀门 --- */
html, body {
    overflow-x: clip;
}

.mx-matrix-wrapper {
    width: 100%;
    overflow-x: clip; 
    background-color: var(--mx-bg-white);
    color: var(--mx-text-dark); 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* 强制夺取第三方主题的宽度计算机制 */
.mx-matrix-wrapper *,
.mx-matrix-wrapper *::before,
.mx-matrix-wrapper *::after {
    box-sizing: border-box;
}

.mx-matrix-wrapper img, 
.mx-matrix-wrapper video {
    max-width: 100%;
    height: auto; 
    margin: 0;
    padding: 0;
    display: block;
}

.mx-matrix-wrapper svg {
    max-width: none;
    margin: 0;
    padding: 0;
    display: block;
}

.mx-matrix-wrapper h1, 
.mx-matrix-wrapper h2, 
.mx-matrix-wrapper h3, 
.mx-matrix-wrapper h4, 
.mx-matrix-wrapper p,
.mx-matrix-wrapper li {
    margin-top: 0;
    word-break: break-word;
}

.mx-matrix-wrapper ul, 
.mx-matrix-wrapper ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 全局内容定宽中央盾 */
.mx-matrix-wrapper .mx-container {
    width: 100%;
    max-width: 1640px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* --- MX 单一视频模块核心布局 --- */
.mx-single-video-wrapper {
    width: 100%;
    background-color: #0a0a0a; 
    padding: 0 !important; /* 👈 核心修复：把原来的 60px 0 改为 0，交由防御盾接管 */
    margin-bottom: 0;
}

/* 替代原来的 padding-top 方案 */
.mx-single-video-responsive {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* 现代属性，直接锁定比例 */
    background: #000;
    border: 1px solid #333;
}

.mx-single-video-responsive video.mx-single-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    border: none;
    border-radius: 0 !important; /* 强制直角 */
}

/* --- 非对称 Flex 左右分栏布局 --- */
.mx-video-split-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; 
    align-items: stretch; /* 右侧信息舱高度强制与左侧视频拉齐 */
}

/* 左侧视频主体列 */
.mx-video-main-col {
    flex: 1 1 68%;
    min-width: 0;
}

/* 右侧核心面板列 */
.mx-video-side-col {
    flex: 1 1 28%;
    min-width: 320px;
    display: flex;
    flex-direction: column;
}

/* --- 右侧面板精细化工业 UI 样式 --- */
.mx-video-info-panel {
    background-color: #1a1a1a;
    padding: 30px;
    border: 1px solid #333;
    border-radius: 0 !important; /* 强制直角 */
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.mx-video-title {
    font-size: 24px !important;
    font-weight: 700;
    color: var(--mx-bg-white) !important;
    margin-bottom: 20px !important;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
    line-height: 1.3;
}

.mx-video-meta-item {
    margin-bottom: 20px;
}

.mx-video-duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #333;
    color: #ccc;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 0 !important; /* 强制直角 */
}

/* 按钮转化区：自动靠底对齐 */
.mx-video-action-area {
    margin-top: auto; /* 核心机制：强制将行动按钮精准压在舱体底部 */
    padding-top: 20px;
}

/* 增强防御权重，提升移动端文本对比度 */
.mx-matrix-wrapper p.mx-video-desc {
    color: #d1d5db !important; /* 从 #999 提亮为更清晰的浅灰白，确保高对比度 */
    font-size: 14px !important; /* 强制锁定字号，防止第三方主题干扰 */
    line-height: 1.6;
    margin-bottom: 15px !important;
    opacity: 0.9; /* 稍微柔和一下边缘，保持质感 */
}

/* 高转化核心引导按钮 */
.mx-btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--mx-accent-blue);
    color: var(--mx-bg-white) !important; /* 现在可以成功覆盖主题默认颜色了 */
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 0 !important; /* 强制直角 */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* 高转化核心引导按钮 */
.mx-btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--mx-accent-blue);
    color: var(--mx-bg-white) !important;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 0 !important; /* 强制直角 */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.mx-btn-accent.mx-btn-full {
    display: flex;
    justify-content: center;
    width: 100%;
}

.mx-btn-accent:hover {
    background-color: var(--mx-accent-red); /* 悬停切换工业警告红，深度激发点击行为 */
    color: var(--mx-bg-white);
    transform: translateY(-2px);
}

/* --- 视频下方原生内容描述区域的标准化留白 --- */
.mx-video-description-section {
    width: 100%;
    background-color: var(--mx-bg-white);
    padding: 0 !important; /* 👈 核心修复：把原来的 50px 0 改为 0，交由防御盾接管 */
}

.mx-video-content-entry {
    font-size: 16px;
    line-height: 1.8;
    color: var(--mx-text-dark);
}

/* --- 移动端安全折叠防线 (低于 992px) --- */
@media (max-width: 992px) {
    .mx-video-split-layout {
        flex-direction: column;
        gap: 20px;
        display: block; /* 强制斩断 Flex 引擎的干扰 */
    }
    
    /* 强行重置左右两列的物理尺寸，清空 PC 端的 flex 比例残留 */
    .mx-video-main-col,
    .mx-video-side-col {
        width: 100%;
        min-width: 100%;
        flex: none !important; 
        display: block;
    }
    
    .mx-video-info-panel {
        padding: 20px;
        /* 确保背景色在移动端块级模式下重新被激活 */
        background-color: #1a1a1a; 
    }
}