/* ============================================================
  mobile.css - show.html 移动优先独立布局
  默认: 手机端 (< 768px)
  平板: @media (min-width: 768px) and (max-width: 1200px)
  所有布局样式仅在 ≤1200px 时生效，PC端(>1200px)由style.v2.css+common.css接管
  ============================================================ */

/* --- CSS变量（全局可用，不依赖断点） --- */
:root {
    --primary: #d40300;
    --primary-dark: #b50200;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --bg-page: #fff;
    --bg-card: #f7f7f7;
    --bg-footer: #404040;
    --border-color: #eee;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --shadow-card: 0 1px 4px rgba(0,0,0,0.06);
}

/* ============================================================
  所有中小屏幕布局样式（≤1200px）
  ============================================================ */
@media (max-width: 1200px) {

/* --- 基础 Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; overflow-x: hidden; }

body, html {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-overflow-scrolling: touch;
    color: var(--text-primary);
    background: var(--bg-page);
}

a { color: var(--text-primary); text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; border: 0; vertical-align: top; }
ul, ol { list-style: none; }

.clearfix::after { content: ""; display: table; clear: both; }
.hidden { display: none; }

.mt5 { margin-top: 5px !important; }
.mt10 { margin-top: 8px !important; }
.mt15 { margin-top: 10px !important; }
.mt20 { margin-top: 12px !important; }
.mt25 { margin-top: 14px !important; }
.mt30 { margin-top: 16px !important; }
.mt35 { margin-top: 18px !important; }
.mt40 { margin-top: 20px !important; }
.mt50 { margin-top: 24px !important; }

.container { width: 100%; padding: 0 var(--spacing-md); margin: 0 auto; }

/* --- 汉堡菜单按钮（仅图标装饰，无交互） --- */
.mobile-menu-btn {
    display: flex;
    width: 28px;
    height: 20px;
    flex-shrink: 0;
    cursor: default;
    pointer-events: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    margin-left: var(--spacing-sm);
}
.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 1px;
    flex-shrink: 0;
}

/* --- 遮罩层 & 侧滑面板（已移除，隐藏残留元素） --- */
.mobile-nav-overlay,
.mobile-nav-menu { display: none !important; }

/* ========================================
  Header - 顶部导航
  ======================================== */

/* PC顶部信息栏隐藏 */
.top_header_bg { display: none; }

/* Logo + 频道名区域 */
.top_header_info {
    width: 100%;
    height: 56px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}
.top_header_logo {
    width: 140px;
    height: 36px;
    background: url(../image/rmzs_logo.png) no-repeat left center;
    background-size: auto 28px;
    flex-shrink: 0;
}
.top_header_logo a {
    display: block;
    height: 100%;
    text-indent: -999px;
    overflow: hidden;
}
.top_header_logo_channel { display: none; }
.top_header_right { display: none; }

/* --- 移动端Header右侧社交媒体图标 --- */
.top_header_info::after {
    content: "";
    display: none;
}
.mobile-header-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}
.mobile-header-social a {
    display: block;
    width: 28px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.mobile-header-social a.wx-icon {
    background-image: url(../image/icon-wx.jpg);
}
.mobile-header-social a.wb-icon {
    background-image: url(../image/icon-wb.jpg);
}

/* --- ercode原始元素隐藏 --- */
.ercode { display: none; }

/* 子导航 - 横向滚动 */
.top_header_subnav_bg {
    background: var(--primary);
    margin-bottom: 0;
    position: sticky;
    top: 56px;
    z-index: 99;
}
.top_header_subnav {
    width: 100%;
    font-size: 14px;
    line-height: 44px;
    height: 44px;
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0;
}
.top_header_subnav::-webkit-scrollbar { display: none; }
.top_header_subnav a {
    color: #fff;
    text-align: center;
    width: auto;
    min-width: 76px;
    flex: 1;
    padding: 0 var(--spacing-sm);
    overflow: hidden;
    white-space: nowrap;
    transition: background 0.2s;
}
.top_header_subnav a:hover,
.top_header_subnav a.current {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

/* ========================================
  面包屑
  ======================================== */
.breadcrumbs {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.8;
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--primary); }

/* ========================================
  文章详情区 - artiBox
  ======================================== */
.artiBox {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.artiBox .main,
.artiBox .sider {
    width: 100%;
    float: none;
}

/* 文章标题 */
.arti-title {
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--text-primary);
    padding: var(--spacing-sm) 0 0;
}

/* 文章信息 */
.arti-info {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: var(--spacing-sm);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs) var(--spacing-md);
    align-items: center;
    height: auto;
    position: static;
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}
.arti-info span { margin-right: 0; }
.arti-info .tool {
    position: static;
    height: auto;
    margin-left: auto;
}

/* 分享组件 */
.widget-share {
    display: flex;
    align-items: center;
    gap: 10px;
}
.widget-share strong { display: none; }
.widget-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 0;
    color: transparent;
}
.widget-share span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
}
.widget-share .shareWx {
    margin-right: 0;
    background: url(../image/icon-wx.jpg) no-repeat center center;
    background-size: contain;
    padding-left: 0;
}
.widget-share .shareWb {
    margin-right: 0;
    background: url(../image/icon-wb.jpg) no-repeat center center;
    background-size: contain;
    padding-left: 0;
}
/* 文章正文 */
.arti-detail {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-top: var(--spacing-md);
    word-break: break-word;
}
.arti-detail p { padding: 0.4em 0; }
.arti-detail p a { text-decoration: underline; color: var(--primary); }
.arti-detail p strong { font-weight: 700; }
.arti-detail p em { font-style: italic; }
.arti-detail p img { max-width: 100%; height: auto; display: block; margin: 0.5em auto; border-radius: var(--radius-sm); }

/* 图片和iframe响应式：居中、限宽、等比缩放 */
.arti-detail img {
    display: block;
    max-width: 100% !important;;
    height: auto;
    margin: 0.5em auto;
    border-radius: var(--radius-sm);
}
.arti-detail iframe {
    display: block;
    max-width: 100% !important;;
    margin: 0.5em auto;
    aspect-ratio: 16 / 9;
    width: 100%;
    border: 0;
}

/* 文章编辑声明 */
.arti-editor {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.8;
    margin: var(--spacing-lg) auto var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
}

/* ========================================
  相关阅读
  ======================================== */
.col-hd {
    height: auto;
    line-height: 1;
    border-top: none;
    border-bottom: 3px solid var(--primary);
    padding: var(--spacing-md) 0;
    box-sizing: border-box;
}
.col-hd strong {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    float: none;
    padding: 0;
    border-bottom: none;
    height: auto;
}
.col-hd span { display: none; }

.col-hd-tab strong { margin-right: 0; }

/* 相关阅读列表 */
.relaList .listItem {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}
.relaList .listItem:last-child { border-bottom: none; }
.listItem .tit {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    height: auto;
    max-height: 3em;
    margin-bottom: var(--spacing-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.listItem .tit a { color: var(--text-primary); }
.listItem .tit a:hover { color: var(--primary); }
.listItem .sum {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    height: auto;
    max-height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.listItem .item-foot { margin-top: var(--spacing-xs); }
.listItem .item-foot span { display: inline; }
.listItem .source { float: none; margin-right: 0.5em; font-size: 12px; }

/* ========================================
  侧边栏内容 (在main之后，全宽)
  ======================================== */
.sider { margin-top: var(--spacing-lg); }

.side-mod {
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--text-primary);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    background: var(--bg-page);
}

.side-hd {
    height: 48px;
    line-height: 48px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 var(--spacing-md);
    border-bottom: none;
}

/* 热门文章 */
.side-mod .imgList { margin: 0 var(--spacing-md); }
.side-mod .imgList .item {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid #f5f5f5;
    overflow: hidden;
}
.side-mod .imgList .item:last-child { border-bottom: none; }
.side-mod .imgList .item img {
    float: left;
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.side-mod .imgList .item p {
    line-height: 1.5;
    margin-left: 135px;
    height: 80px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 14px;
    color: var(--text-secondary);
    padding-top: 2px;
}
.side-mod .imgList .item a:hover p { color: var(--primary); }

/* 热点排行 */
.side-mod .rankList { margin: 0 var(--spacing-md); }
.side-mod .rankList li {
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid #f5f5f5;
    padding: var(--spacing-sm) 0;
    overflow: hidden;
}
.side-mod .rankList li:last-child { border-bottom: none; }
.side-mod .rankList li em { display: none; }
.side-mod .rankList li a {
    margin-left: 0;
    display: block;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 猜你喜欢 */
.side-mod .imgBox { margin: 0 var(--spacing-md); }
.side-mod .imgBox img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.side-mod .imgBox p {
    width: auto;
    height: auto;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
    color: var(--text-secondary);
    padding: var(--spacing-xs) 0 0;
    position: static;
    background: none;
    text-align: left;
}
.side-mod .imgBox a { color: var(--text-primary); display: block; position: relative; }
.side-mod .imgBox a:hover p { color: var(--primary); }

.side-mod .defList { margin: var(--spacing-sm) var(--spacing-md) 0; }
.side-mod .defList li {
    font-size: 14px;
    height: auto;
    line-height: 1.6;
    overflow: hidden;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px dashed #f0f0f0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.side-mod .defList li:last-child { border-bottom: none; }

/* ========================================
  底部区域 - partner
  ======================================== */
.partner {
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-xl) 0;
    background: var(--bg-card);
    margin-top: var(--spacing-xl);
}
.partner .container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}
.partner .left,
.partner .mid,
.partner .right {
    width: 100%;
    float: none;
    padding: 0;
    position: static;
}
.partner .left .con {
    line-height: 2;
    padding-right: 0;
    margin-top: var(--spacing-sm);
}
.partner .left .con a {
    margin-right: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 13px;
}
.partner .left .con a:hover { color: var(--primary); }

.partner .mid {
    padding: 0 !important;
}
.partner .mid::before,
.partner .mid::after { display: none; }
.partner .mid .con {
    margin-top: var(--spacing-sm);
    display: inline-block;
    vertical-align: top;
    margin-right: var(--spacing-lg);
}
.partner .mid .con img { width: 100px; height: 100px; border-radius: var(--radius-sm); }
.partner .mid .con a { display: block; width: 100px; font-size: 13px; text-align: center; }

.partner .right .con {
    margin-top: var(--spacing-sm);
    line-height: 2;
    font-size: 13px;
    color: var(--text-secondary);
}
.partner .right .con a { color: var(--text-secondary); }
.partner .right .con a:hover { color: var(--primary); }

/* ========================================
  页脚 - footer
  ======================================== */
.footer {
    background: var(--bg-footer);
    height: auto;
    line-height: 2;
    color: #ababab;
    padding: var(--spacing-lg) 0;
}
.footer .con { width: 100%; }
.footer .links {
    width: 100%;
    margin: 0 auto;
    text-align: left;
    padding: 0 var(--spacing-md);
    box-sizing: border-box;
}
.footer .links p {
    font-size: 13px;
    line-height: 2;
    word-break: break-all;
}
.footer .links span {
    margin-right: var(--spacing-xs);
    font-size: 13px;
}
.footer a { color: #ababab; margin-left: var(--spacing-xs); font-size: 13px; }
.footer a:hover { color: #eee; }

/* ========================================
  广告位隐藏
  ======================================== */
.hzh { display: none; }

/* ========================================
  视频插入
  ======================================== */
.insert_arti_video {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
    margin: 0.5em auto !important;
}
.insert_arti_video iframe { width: 100%; height: 100%; }

/* ========================================
  分页
  ======================================== */
#page { margin-top: var(--spacing-md); text-align: center; }
#page .pagination a { margin-right: 0 !important; }
#page ul.pagination li { display: inline; }
#page .disabled,
.pagination .active,
.pagination li a {
    color: var(--text-primary);
    float: left;
    padding: 8px 12px;
    text-decoration: none;
    transition: background-color 0.3s;
    border: 1px solid var(--border-color);
    margin: 0 2px;
    font-size: 14px;
}
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
#page .disabled { background: #f5f5f5; }
#page ul.pagination li a:hover:not(.active) { background: #f0f0f0; }

/* ========================================
  侧边栏固定定位重置（防止JS fixbox干扰）
  ======================================== */
#js-fixed-sider {
    width: 100% !important;
    position: static !important;
    top: auto !important;
}

/* ========================================
  隐藏模块（≤1200px不显示）
  ======================================== */
.col-hd-tab,
#relaListBd,
.relListBd,
.relaListBd,
.mt30.partner {
    display: none !important;
}

} /* end @media (max-width: 1200px) */


/* ============================================================
  PC端(>1200px)：隐藏移动端汉堡菜单元素
  ============================================================ */
@media (min-width: 1201px) {
    .mobile-menu-btn,
    .mobile-header-social {
        display: none !important;
    }
}


/* ============================================================
  平板断点: 768px - 1200px
  ============================================================ */
@media (min-width: 768px) and (max-width: 1200px) {
    :root {
        --spacing-md: 24px;
        --spacing-lg: 32px;
        --spacing-xl: 48px;
    }

    .container { padding: 0 var(--spacing-md); }

    /* Header */
    .top_header_info { height: 64px; padding: 0 var(--spacing-lg); }
    .top_header_logo { width: 180px; height: 42px; background-size: auto 32px; }
    .mobile-header-social a { width: 32px; height: 32px; }
    .mobile-menu-btn { width: 32px; height: 24px; }

    .top_header_subnav { height: 48px; line-height: 48px; font-size: 15px; }
    .top_header_subnav a { min-width: 90px; padding: 0 var(--spacing-md); }

    .top_header_subnav_bg { top: 64px; }

    /* 面包屑 */
    .breadcrumbs { font-size: 14px; }

    /* 文章标题 */
    .arti-title { font-size: 26px; line-height: 1.4; padding: var(--spacing-sm) 0 0; }

    /* 文章信息 */
    .arti-info { font-size: 14px; }

    /* 文章正文 */
    .arti-detail { font-size: 17px; line-height: 1.85; }

    /* 侧边栏 */
    .side-hd { font-size: 18px; height: 52px; line-height: 52px; }
    .side-mod .imgList .item img { width: 140px; height: 94px; }
    .side-mod .imgList .item p { margin-left: 158px; height: 94px; }

    /* 页脚 */
    .footer .links { text-align: center; padding: 0 var(--spacing-lg); }
    .footer .links p { font-size: 14px; }

    /* 隐藏模块 */
    .col-hd-tab,
    #relaListBd,
    .relListBd,
    .relaListBd,
    .mt30.partner { display: none !important; }
}
