/* ================================================
   responsibility-detail.html 移动端响应式样式（社会责任详情页）
   - 仅 @media only screen and (max-width: 767px) 生效（全站唯一断点）
   - 无平板过渡样式（禁止 768px~1200px 区间样式）
   - 顶部导航/页脚公共部分见 css/responsive/common-responsive.css，本文件不重复
   - 适配要点：Banner 压缩、正文区域宽度 100%、
     富文本图片防横向溢出、字号改固定 px、间距缩小、
     触控目标 >=44px
   ================================================ */
@media only screen and (max-width: 767px) {

    /* ---------- 顶部导航汉堡按钮对齐修复 ----------
       公共 header.html 的 DOM 顺序为 logo → nav → 汉堡 → 搜索表单，
       flex space-between 下汉堡不会自动靠右，而是悬在中间偏左；
       首页（index.css）给汉堡设置了 margin-left:auto 使其靠右。
       此处复刻首页写法：margin-left:auto 把汉堡推到最右，
       右侧间距与首页完全一致。 */
    header .nav-toggle,
    .header .nav-toggle {
        margin-left: auto !important;
    }

    /* 强制导航容器 flex 两端对齐（覆盖各内页自身 header 布局差异） */
    header,
    .header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 16px !important;
        box-sizing: border-box;
    }

    /* 清除 Logo 区多余左内边距，保证左右视觉对齐 */
    header .logo-area,
    .header .logo-area {
        padding-left: 0 !important;
    }

    /* ---------- 新闻 Banner：压缩高度、文字靠左固定间距 ---------- */
    .news-banner {
        width: 100%;
        max-width: 100%;
        height: 160px;
        background-size: cover;
    }

    .news-banner-text {
        margin-left: 16px;
        padding-left: 10px;
        border-left: 3px solid #fff;
    }

    .news-banner-en {
        font-size: 14px;
        line-height: 1.3;
        letter-spacing: 1px;
    }

    .news-banner-cn {
        font-size: 20px;
        line-height: 1.3;
    }

    /* Banner 栏目链接：触控目标 >=44px */
    .news-banner-cn a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 4px 0;
        box-sizing: border-box;
    }

    /* ---------- 内容容器：正文区域宽度 100% ---------- */
    .news-container {
        width: 100%;
        max-width: 100%;
        padding: 24px 16px 40px;
        box-sizing: border-box;
    }

    /* ---------- 标题区 ---------- */
    .news-header {
        margin-bottom: 24px;
    }

    .news-title {
        font-size: 24px;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .news-date {
        font-size: 14px;
        line-height: 1.6;
        padding-bottom: 16px;
    }

    /* ---------- 正文（富文本区域） ---------- */
    .news-article {
        font-size: 15px;
        line-height: 1.8;
        /* 长 URL / 长单词换行，避免撑破容器 */
        overflow-wrap: break-word;
        word-break: normal;
    }

    .news-article p {
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 16px;
    }

    /* 富文本图片防横向溢出（!important 覆盖编辑器生成的内联尺寸） */
    .news-article img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 20px 0;
    }

    /* 富文本嵌入媒体 / 表格防横向溢出 */
    .news-article iframe,
    .news-article video,
    .news-article embed {
        max-width: 100% !important;
    }

    .news-article table {
        max-width: 100% !important;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}