/*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; /* 新增：背景图自适应缩放 */
}

.container {
            max-width: 1240px;
            margin: 0 auto;
            padding: 0 1rem 2.5rem;
        }

        /* ===== 学堂头部 Hero ===== */
        .hero {
            background: linear-gradient(145deg, #0b2a44 0%, #1b4b6e 100%);
            padding: 3rem 2.5rem;
            margin: 0 auto;
            color: #ffffff;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 1.5rem;
            box-shadow: 0 12px 30px rgba(11, 42, 68, 0.25);
            position: relative;
            overflow: hidden;
            min-height: 300px;
        }
        .hero::after {
            content: '';
            position: absolute;
            right: -60px;
            top: -60px;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }

        /* ----- 左侧：Logo + 标题 ----- */
        .hero-left {
            flex: 1 1 320px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 1;
        }
        .hero-left h1 {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            font-size: 2.6rem;
            font-weight: 700;
            letter-spacing: 0.05em;
            line-height: 1.3;
            margin-bottom: 0.5rem;
            color: #ffffff;
            width: 100%;
        }
        .hero-left h1 img {
            width: 36px;
            height: 36px;
            object-fit: contain;
            display: block;
            flex-shrink: 0;
            border-radius: 8px;
            filter: drop-shadow(0 2px 6px rgba(126, 200, 227, 0.4));
        }
        .hero-left h1 span {
            color: #9ad0e8;
        }
        .hero-left .sub {
            font-size: 1.05rem;
            opacity: 0.85;
            font-weight: 300;
            border-left: 3px solid #6ab0d6;
            padding-left: 1rem;
            margin: 0;
            text-align: left;
            width: 100%;
            max-width: 420px;
        }

        /* ----- 右侧：数据标签 ----- */
        .hero-right {
            flex: 0 0 auto;
            background: rgba(255,255,255,0.08);
            backdrop-filter: blur(8px);
            padding: 0.8rem 1.6rem;
            border-radius: 60px;
            border: 1px solid rgba(255,255,255,0.15);
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 0.8rem;
            z-index: 1;
            flex-wrap: wrap;
        }
        .hero-right i {
            font-size: 1.2rem;
            color: #7ec8e3;
        }
        .hero-right .badge-count {
            background: #facc15;
            color: #0b2a44;
            font-weight: 700;
            padding: 0.1rem 0.7rem;
            border-radius: 40px;
            font-size: 0.8rem;
        }

        /* ===== 头部（页面标题） ===== */
        header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
}

/* ✅ h1 设为 flex 容器，让图片与文字同行居中对齐 */
header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
    display: flex;                /* ✅ 关键：启用 flex 布局 */
    align-items: center;          /* ✅ 垂直居中对齐 */
    justify-content: center;      /* ✅ 水平居中（整行） */
    gap: 0.5rem;                  /* ✅ 图片与文字间距 */
}

/* ✅ 图片正常显示为块级，去除多余属性 */
header h1 img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;              /* ✅ 修正为 block */
    flex-shrink: 0;              /* ✅ 防止被压缩 */
    border-radius: 8px;
    filter: drop-shadow(0 2px 6px rgba(126, 200, 227, 0.4));
}
        .subtitle {
            color: #4b5563;
            font-size: 1rem;
        }

        /* ===== 新闻网格 ===== */
        .news-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
            max-width: 80rem;
            margin: 0 auto;
        }

        /* ===== 卡片 ===== */
        .news-card {
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 0.75rem;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            box-shadow: 0 1px 5px rgba(0,0,0,0.06);
            transition: all 0.25s ease;
            cursor: pointer;
        }
        .news-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 20px -8px rgba(0,0,0,0.12);
            border-color: #bfdbfe;
        }
        .card-image-wrapper {
            position: relative;
            height: 200px;
            overflow: hidden;
            background: #e5e7eb;
        }
        .card-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }
        .news-card:hover .card-image {
            transform: scale(1.04);
        }
        .badge {
            position: absolute;
            top: 0.75rem;
            right: 0.75rem;
            background: #2563eb;
            color: #fff;
            font-size: 0.7rem;
            font-weight: 600;
            padding: 0.2rem 0.7rem;
            border-radius: 999px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        }
        .card-content {
            padding: 1rem 1rem 0.8rem;
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        /* ===== 元信息区域 ===== */
        .news-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            font-size: 0.75rem;
            color: #6b7280;
            margin-bottom: 0.4rem;
            line-height: 1;
        }
        .news-meta span {
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .news-meta img {
            width: 16px;
            height: 16px;
            object-fit: contain;
            flex-shrink: 0;
            border-radius: 3px;
            filter: drop-shadow(0 1px 2px rgba(126, 200, 227, 0.3));
        }

        /* ===== 卡片文字 ===== */
        .card-title {
            font-size: 1.15rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            line-height: 1.3;
            color: #111827;
        }
        .card-desc {
            color: #4b5563;
            font-size: 0.85rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex: 1;
            margin-bottom: 0.8rem;
        }
        .card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid #f3f4f6;
            padding-top: 0.6rem;
            margin-top: auto;
        }
        .category-tag {
            background: #eff6ff;
            color: #1d4ed8;
            font-size: 0.7rem;
            font-weight: 500;
            padding: 0.2rem 0.7rem;
            border-radius: 0.375rem;
        }
        .read-more {
            font-size: 0.8rem;
            font-weight: 500;
            color: #2563eb;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.2rem;
        }
        .read-more:hover {
            color: #1e40af;
        }

        /* ===== 热门专题推荐 ===== */
        .section-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin: 2.8rem 0 1.2rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: #0b2a44;
        }
        .section-title .line {
            flex: 1;
            height: 2px;
            background: linear-gradient(90deg, #cbddee, transparent);
            margin-left: 0.5rem;
        }
        .featured-wrap {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
        .featured-card {
            background: white;
            border-radius: 20px;
            padding: 1.4rem 1.2rem;
            border: 1px solid #e5edf5;
            transition: all 0.2s;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }
        .featured-card:hover {
            border-color: #b8d0e5;
            box-shadow: 0 8px 20px rgba(0,0,0,0.04);
        }
        .featured-card .f-icon {
            font-size: 2rem;
            color: #2563eb;
            margin-bottom: 0.3rem;
        }
        .featured-card h4 {
            font-size: 1rem;
            font-weight: 700;
            color: #0b2a44;
        }
        .featured-card p {
            font-size: 0.82rem;
            color: #64748b;
            margin: 0.2rem 0 0.5rem;
        }
        .featured-card .f-link {
            color: #2563eb;
            font-weight: 500;
            font-size: 0.8rem;
            text-decoration: none;
            margin-top: auto;
        }

        /* ===== 响应式：平板 ===== */
        @media (min-width: 768px) {
            .news-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .featured-wrap {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* ===== 响应式：电脑 ===== */
        @media (min-width: 1024px) {
            .news-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            .featured-wrap {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        /* ===== 响应式：平板竖屏 / 大手机 ===== */
        @media (max-width: 900px) {
            .hero {
                min-height: auto;
                padding: 2rem 1.5rem;
                flex-direction: column;
                align-items: center;
                text-align: center;
            }
            .hero-left .sub {
                text-align: center;
                border-left: none;
                border-top: 2px solid #6ab0d6;
                padding-left: 0;
                padding-top: 0.6rem;
                max-width: 100%;
            }
            .hero-right {
                justify-content: center;
            }
        }

        /* ===== 响应式：手机 ===== */
        @media (max-width: 480px) {
            .container {
                padding: 0 0.75rem 1.5rem;
            }
            .hero {
                padding: 1.5rem 1rem;
            }
            .hero-left h1 {
                font-size: 1.8rem;
                gap: 8px;
            }
            .hero-left h1 img {
                width: 30px;
                height: 30px;
            }
            .hero-left .sub {
                font-size: 0.9rem;
            }
            .hero-right {
                font-size: 0.8rem;
                padding: 0.5rem 1rem;
                gap: 0.5rem;
            }
            .hero-right i {
                font-size: 1rem;
            }
            .hero-right .badge-count {
                font-size: 0.7rem;
            }
            header {
                margin-bottom: 1.2rem;
                padding-top: 1rem;
            }
            header h1 {
                font-size: 1.5rem;
            }
            .subtitle {
                font-size: 0.85rem;
            }
            .news-grid {
                gap: 1.2rem;
            }
            .card-image-wrapper {
                height: 170px;
            }
            .card-title {
                font-size: 1rem;
            }
            .card-desc {
                font-size: 0.8rem;
            }
            .news-meta {
                font-size: 0.7rem;
                gap: 6px;
            }
            .news-meta img {
                width: 14px;
                height: 14px;
            }
            .category-tag {
                font-size: 0.6rem;
                padding: 0.1rem 0.6rem;
            }
            .read-more {
                font-size: 0.7rem;
            }
            .badge {
                font-size: 0.6rem;
                padding: 0.1rem 0.5rem;
                top: 0.5rem;
                right: 0.5rem;
            }
            .section-title {
                font-size: 1.2rem;
                margin-top: 2rem;
            }
        }

        /* ===== 弹窗动画（保留） ===== */
        @keyframes modalIn {
            from { opacity: 0; transform: scale(0.96) translateY(12px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
   