/*2025新闻中心-样式*/
.news {
    width: 100%;
    height: 300px;
    background-color: #204e8c;
    margin: 0;
    border: 0 solid #fff000;
    text-align: center;
}

.news_img {
    width: 100%;
    height: 300px;
    background: url(../images/zl_head_03.jpg) no-repeat center 0;
    background-size: cover; /* 新增：背景图自适应缩放 */
}

  
        /* ===== 漏电知识内容CSS主布局：左（排行）+ 右（内容） ===== */

     .containerR {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 0.5rem;
        }

        /* ===== 主布局 (flex 左右) ===== */
        .layout-main {
            display: flex;
            gap: 2rem;
            align-items: flex-start;
            background: transparent;
        }

        /* ===== 左侧：热点新闻 ===== */
        .sidebar-hot {
            flex: 0 0 300px;
            background: #ffffff;
            border-radius: 0.75rem;
            padding: 1.2rem 1rem 1.5rem;
            box-shadow: 0 1px 6px rgba(0,0,0,0.06);
            border: 1px solid #e5e7eb;
        }
        .hot-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: #0f172a;
            margin-bottom: 1rem;
            border-bottom: 2px solid #2563eb;
            padding-bottom: 0.4rem;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        .hot-title i {
            color: #dc2626;
        }
        .news_list ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        .news_list ul li {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            padding: 0.4rem 0.3rem;
            border-bottom: 1px dashed #e5e7eb;
            border-radius: 0.3rem;
            transition: background 0.15s;
        }
        .news_list ul li:hover {
            background: #f1f5f9;
        }
        .news_list ul li:last-child {
            border-bottom: none;
        }
        /* 序号徽标 */
        .hot-rank {
            flex-shrink: 0;
            width: 24px;
            height: 24px;
            background: #eff6ff;
            color: #2563eb;
            font-weight: 700;
            font-size: 0.7rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
        }
        /* 标题链接 */
        .news_list ul li a {
            color: #1e293b;
            text-decoration: none;
            font-size: 0.9rem;
            flex: 1;
            transition: color 0.15s;
            min-width: 0;
            word-break: break-word;
        }
        .news_list ul li a:hover {
            color: #2563eb;
        }
        /* 阅读人次 */
        .hot-views {
            flex-shrink: 0;
            font-size: 0.7rem;
            color: #94a3b8;
            background: #f8fafc;
            padding: 0.1rem 0.5rem;
            border-radius: 1rem;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            gap: 0.2rem;
        }
        .hot-views i {
            font-size: 0.6rem;
            color: #94a3b8;
        }

        /* ===== 右侧：内容主体 ===== */
        .content-main {
            flex: 1;
            background: #ffffff;
            border-radius: 0.75rem;
            padding: 1.5rem 1.8rem 1.8rem;
            box-shadow: 0 1px 6px rgba(0,0,0,0.06);
            border: 1px solid #e5e7eb;
            min-width: 0;
        }

        .news_conter h1 {
            font-size: 1.8rem;
            font-weight: 700;
            color: #0f172a;
            margin-bottom: 0.3rem;
            line-height: 1.3;
        }
        .news_conter h2 {
            font-size: 0.85rem;
            font-weight: 400;
            color: #64748b;
            margin-bottom: 0.8rem;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.4rem 0.8rem;
            border-bottom: 1px solid #f1f5f9;
            padding-bottom: 0.5rem;
        }
        .news_conter h2 .sep {
            color: #cbd5e1;
        }
        .news_conter h3 {
            font-size: 1rem;
            font-weight: 500;
            color: #334155;
            background: #f8fafc;
            padding: 0.6rem 1rem;
            border-radius: 0.5rem;
            border-left: 4px solid #2563eb;
            margin-bottom: 1.2rem;
            line-height: 1.6;
        }
        .news_conter .article-body {
            text-align: justify;
            text-indent: 2em;
            font-size: 0.95rem;
            line-height: 1.8;
            color: #1e293b;
        }
        .news_conter .article-body p {
            margin-bottom: 0.8rem;
        }
        .news_conter .article-body strong {
            color: #0f172a;
        }

        /* ===== 底部：上一篇/下一篇 + 返回 ===== */
        .listnews {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            margin-top: 2rem;
            padding-top: 1rem;
            border-top: 1px solid #e5e7eb;
            gap: 0.8rem 1.5rem;
        }
        .listnews_prev {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem 2rem;
        }
        .nav-item {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            font-size: 0.9rem;
            color: #475569;
        }
        .nav-item .label {
            color: #64748b;
            font-weight: 500;
        }
        .nav-item a {
            color: #2563eb;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.15s;
        }
        .nav-item a:hover {
            color: #1e40af;
            text-decoration: underline;
        }
        .listnews_fh a {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            background: #f1f5f9;
            color: #1e293b;
            padding: 0.3rem 1rem;
            border-radius: 2rem;
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 500;
            transition: background 0.2s, color 0.2s;
            border: 1px solid #e5e7eb;
        }
        .listnews_fh a:hover {
            background: #e2e8f0;
            color: #0f172a;
        }

        /* ======================================== */
        /* ===== 响应式 ===== */
        @media screen and (max-width: 900px) {
            .layout-main {
                flex-direction: column;
                gap: 1.5rem;
            }
            .sidebar-hot {
                flex: 0 0 auto;
                width: 100%;
                padding: 1rem 1.2rem;
            }
            .sidebar-hot .news_list ul {
                flex-direction: row;
                flex-wrap: wrap;
                gap: 0.3rem 0.8rem;
            }
            .sidebar-hot .news_list ul li {
                border-bottom: none;
                padding: 0.2rem 0.6rem;
                background: #f8fafc;
                border-radius: 1.5rem;
                flex: 0 0 auto;
                gap: 0.3rem;
            }
            .sidebar-hot .news_list ul li a {
                font-size: 0.85rem;
                white-space: nowrap;
            }
            .hot-rank {
                width: 20px;
                height: 20px;
                font-size: 0.6rem;
            }
            .hot-views {
                font-size: 0.65rem;
                padding: 0 0.4rem;
            }
            .content-main {
                padding: 1.2rem 1.2rem 1.5rem;
            }
            .news_conter h1 {
                font-size: 1.5rem;
            }
        }

        @media screen and (max-width: 640px) {
            body { padding: 0.8rem 0.5rem; }
            .content-main { padding: 1rem; }
            .news_conter h1 { font-size: 1.25rem; }
            .news_conter h3 { font-size: 0.9rem; padding: 0.5rem 0.8rem; }
            .news_conter .article-body { font-size: 0.88rem; }

            .listnews {
                flex-direction: column;
                align-items: stretch;
                gap: 0.6rem;
            }
            .listnews_prev {
                flex-direction: column;
                gap: 0.3rem;
            }
            .nav-item {
                font-size: 0.85rem;
            }
            .listnews_fh {
                text-align: right;
            }
            .listnews_fh a {
                padding: 0.2rem 0.8rem;
                font-size: 0.8rem;
            }

            /* 左侧热点在手机上变成横向滚动 */
            .sidebar-hot {
                padding: 0.8rem 0.8rem;
            }
            .sidebar-hot .news_list ul {
                flex-wrap: nowrap;
                overflow-x: auto;
                gap: 0.4rem;
                padding-bottom: 0.3rem;
                -webkit-overflow-scrolling: touch;
            }
            .sidebar-hot .news_list ul li {
                flex: 0 0 auto;
                background: #f1f5f9;
                border-radius: 1.5rem;
                padding: 0.15rem 0.6rem;
                white-space: nowrap;
                gap: 0.2rem;
            }
            .sidebar-hot .news_list ul li a {
                font-size: 0.78rem;
            }
            .hot-rank {
                width: 18px;
                height: 18px;
                font-size: 0.55rem;
            }
            .hot-views {
                font-size: 0.6rem;
                padding: 0 0.3rem;
            }
            .sidebar-hot .news_list ul::-webkit-scrollbar {
                height: 3px;
            }
            .sidebar-hot .news_list ul::-webkit-scrollbar-thumb {
                background: #cbd5e1;
                border-radius: 10px;
            }
        }

        @media screen and (max-width: 400px) {
            .news_conter h1 { font-size: 1.1rem; }
            .news_conter h2 { font-size: 0.75rem; }
            .news_conter .article-body { font-size: 0.82rem; }
        }
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
        