/* 新闻首页移动端响应式样式 */

@media screen and (max-width: 767px) {
    .m-newslist2 .tabs-content ul {
        padding: 0 !important;
    }

    .tabs-content {
        padding-top: 0 !important;
    }

    .p-content {
        width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* 热点新闻 */
    .m-hotnews {
        width: 100% !important;
        padding: 15px;
        margin-bottom: 20px;
        box-sizing: border-box;
    }

    .m-hotnews h1 {
        font-size: 18px !important;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .m-hotnews h1 a {
        color: #2c3e50;
        font-weight: 600;
    }

    .m-hotnews p {
        font-size: 14px;
        line-height: 1.8;
        color: #666;
    }

    .m-hotnews p span {
        display: block;
        margin-bottom: 8px;
    }

    .m-hotnews p a {
        color: #4a90e2;
        font-weight: 500;
    }

    /* 主内容区 */
    .item {
        width: 100%;
        display: flex;
        flex-direction: column;
        margin-bottom: 20px;
    }

    /* ========== 焦点图轮播  ========== */
    .newsbox {
        width: 100% !important;
        height: auto !important; 
        float: none !important;
        margin-bottom: 20px;
    }

    .newfocus {
        width: 100% !important;
        height: auto !important;
        min-height: 220px !important;
        border-radius: 0 !important; /* 移除圆角，避免影响轮播 */
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
        overflow: hidden !important;
    }

    /* 关键：尽量不要强制重置宽度高度，让插件自己算，只限制图片最大宽度 */
    .newfocus img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }

    /* 标题遮罩层 */
    .newfocus .caption {
        width: 100% !important;
        padding: 10px 12px !important;
        box-sizing: border-box;
    }

    .newfocus .caption p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    /* 轮播指示器 */
    .newfocus .hd {
        bottom: 8px !important;
        left: 50% !important;
        transform: translateX(-50%);
    }

    .newfocus .hd ul {
        display: flex;
        justify-content: center;
        gap: 6px;
    }

    .newfocus .hd ul li {
        width: 6px !important;
        height: 6px !important;
        margin: 0 !important;
        background: rgba(255, 255, 255, 0.5) !important;
        border-radius: 50%;
    }

    .newfocus .hd ul li.on {
        background: #fff !important;
        width: 18px !important;
        border-radius: 3px;
    }

    /* 新闻列表 */
    .m-newslist,
    .m-newslist2 {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px;
    }

    /* Tabs 标题 */
    .tabs-title.hd {
        width: 100%;
        border-bottom: 2px solid #f0f0f0;
    }

    .tabs-title.hd ul {
        display: flex;
        gap: 0;
    }

    .tabs-title.hd ul li {
        flex: 1;
        text-align: center;
        position: relative;
    }

    .tabs-title.hd ul li a {
        display: block;
        font-size: 15px;
        color: #5a6c7d;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .tabs-title.hd ul li.on a {
        color: #fff;
        font-weight: 600;
    }

    .tabs-title.hd ul li.on::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 3px;
        background: linear-gradient(90deg, #4a90e2 0%, #357abd 100%);
        border-radius: 2px 2px 0 0;
    }

    /* 列表内容 */
    .m-liststyle ul {
        width: 100%;
    }

    .m-liststyle ul li {
        display: flex;
        align-items: center;
        border-bottom: 1px solid #f0f0f0;
        transition: background-color 0.2s ease;
    }

    .m-liststyle ul li:hover {
        background-color: #fafbfc;
    }

    .m-liststyle ul li::before {
        content: '•';
        font-size: 18px;
        color: #4a90e2;
        flex-shrink: 0;
        line-height: 1;
        font-weight: bold;
    }

    .m-liststyle ul li span {
        font-size: 12px;
        color: #95a5a6;
        flex-shrink: 0;
        white-space: nowrap;
        order: 3;
        font-weight: 500;
    }

    .m-liststyle ul li a {
        flex: 1;
        font-size: 14px;
        line-height: 1.6;
        color: #2c3e50;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
        order: 2;
        transition: color 0.2s ease;
    }

    .m-liststyle ul li:hover a {
        color: #4a90e2;
    }

    /* ========== 专题专栏轮播 - 完整修复 ========== */
    .m-nspecial {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 20px 0 !important;
        padding: 12px !important;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        box-sizing: border-box;
        overflow: hidden;
        clear: both;
    }

    .u-nspecialti {
        width: 50px !important;
        height: 70px !important;
        float: left !important;
        margin-right: 10px;
        margin-bottom: 0 !important;
        background-size: contain !important;
        background-position: center;
        background-repeat: no-repeat;
    }

    .m-nspecialbd {
        width: calc(100% - 65px) !important;
        height: 70px !important;
        float: left !important;
        margin-top: 0 !important;
        overflow: hidden !important;
        position: relative;
    }

    .m-nspecialbd .bd {
        width: 100% !important;
        height: 70px !important;
        overflow: hidden !important;
        position: relative;
    }

    /* slide.js 的 leftMarquee 效果需要的结构 */
    .m-nspecialbd .bd ul {
        height: 70px !important;
        width: 9999px !important; /* 给足够大的宽度，确保所有li都能显示 */
        position: relative;
        left: 0;
        white-space: nowrap;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .m-nspecialbd .bd ul li {
        width: 140px !important;
        height: 70px !important;
        float: left !important;
        margin-right: 10px !important;
        margin-bottom: 0 !important;
        list-style: none;
    }

    .m-nspecialbd .bd ul li a {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .m-nspecialbd .bd ul li img {
        width: 100% !important;
        height: 70px !important;
        display: block;
        object-fit: cover;
    }

    /* Row 容器 */
    .row {
        width: 100%;
        margin-bottom: 20px;
    }

    /* 隐藏不必要的元素 */
    .dzyxx_list i {
        display: none;
    }
}

/* 超小屏幕优化 */
@media screen and (max-width: 480px) {
    .p-content {
        padding: 0 10px;
    }

    .m-hotnews {
        padding: 12px;
    }

    .m-hotnews h1 {
        font-size: 16px !important;
    }

    .m-hotnews p {
        font-size: 13px;
    }

    /* 焦点图 */
    .newsbox,
    .newfocus {
        height: 180px !important;
    }

    .newfocus > div:not(.diapoappended) {
        height: 180px !important;
    }

    .newfocus > div:not(.diapoappended) img {
        height: 180px !important;
    }

    .newfocus .caption p {
        font-size: 12px !important;
    }

    .newfocus .hd ul li {
        width: 5px !important;
        height: 5px !important;
    }

    .newfocus .hd ul li.on {
        width: 15px !important;
    }

    /* Tabs */
    .tabs-title.hd ul li a {
        font-size: 14px;
    }

    /* 列表 */
    .m-liststyle ul li::before {
        font-size: 16px;
    }

    .m-liststyle ul li a {
        font-size: 13px;
    }

    .m-liststyle ul li span {
        font-size: 11px;
    }

    /* 专题专栏 */
    .u-nspecialti {
        width: 45px !important;
        height: 60px !important;
    }

    .m-nspecialbd {
        width: calc(100% - 60px) !important;
        height: 60px !important;
    }

    .m-nspecialbd .bd,
    .m-nspecialbd .bd ul {
        height: 60px !important;
    }

    .m-nspecialbd .bd ul li {
        width: 120px !important;
        height: 60px !important;
    }

    .m-nspecialbd .bd ul li img {
        height: 60px !important;
    }
}
