/* ===================================
   模板2 资讯列表页样式 - 红色主题
   =================================== */

/* 页面容器 - 增加最小高度避免内容少时太紧凑 */
.template2-news-section {
    padding: 120px 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%) !important;
    min-height: calc(100vh - 300px) !important;
}

/* 标题区域 */
.template2-news-header {
    text-align: center !important;
    margin-bottom: 80px !important;
}

.template2-news-title {
    font-size: 48px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 20px !important;
    letter-spacing: 2px !important;
}

.template2-news-title span {
    color: #e74c3c !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

.template2-news-subtitle {
    font-size: 18px !important;
    color: #666 !important;
}

/* 卡片网格 */
.template2-news-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)) !important;
    gap: 50px !important;
}

/* 卡片 */
.template2-news-card {
    background: white !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s ease !important;
    border: 1px solid #f0f0f0 !important;
}

.template2-news-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 45px rgba(231, 76, 60, 0.15) !important;
}

/* 卡片图片 */
.template2-news-card-image {
    height: 220px !important;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 80px !important;
}

/* 卡片内容 */
.template2-news-card-content {
    padding: 32px !important;
}

/* 卡片标题 */
.template2-news-card-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    line-height: 1.5 !important;
}

.template2-news-card-title a {
    color: #333 !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
}

.template2-news-card-title a:hover {
    color: #e74c3c !important;
}

/* 卡片元信息 */
.template2-news-card-meta {
    font-size: 14px !important;
    color: #999 !important;
    margin-bottom: 16px !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid #f5f5f5 !important;
    display: flex !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

/* 卡片摘要 */
.template2-news-card-excerpt {
    font-size: 15px !important;
    color: #666 !important;
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* 阅读全文按钮 */
.template2-news-card-btn {
    display: inline-block !important;
    padding: 12px 24px !important;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
    font-size: 15px !important;
}

.template2-news-card-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4) !important;
}

/* 空状态 */
.template2-news-empty {
    text-align: center !important;
    padding: 100px 20px !important;
    color: #999 !important;
    grid-column: 1 / -1 !important;
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f0f0f0 !important;
}

.template2-news-empty-icon {
    font-size: 96px !important;
    margin-bottom: 20px !important;
}

.template2-news-empty-text {
    font-size: 18px !important;
}

/* 分页 */
.template2-news-pagination {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-top: 60px !important;
}

.template2-news-pagination-link,
.template2-news-pagination-current {
    padding: 12px 20px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    color: #555 !important;
    text-decoration: none !important;
    transition: all 0.3s !important;
    background: white !important;
    font-weight: 500 !important;
    display: inline-block !important;
}

.template2-news-pagination-link:hover {
    border-color: #e74c3c !important;
    color: white !important;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    transform: translateY(-2px) !important;
}

.template2-news-pagination-current {
    border-color: #e74c3c !important;
    color: white !important;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    font-weight: 600 !important;
}

/* ===================================
   资讯详情页样式（红色主题）
   =================================== */

/* 详情页面容器 */
.zlfj-news-detail-section {
    padding: 120px 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%) !important;
    min-height: calc(100vh - 300px) !important;
}

/* 返回按钮 */
.zlfj-news-detail-back {
    margin-bottom: 30px !important;
}

.zlfj-news-detail-back a {
    color: #e74c3c !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: all 0.3s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 20px !important;
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #f0f0f0 !important;
}

.zlfj-news-detail-back a:hover {
    color: #c0392b !important;
    transform: translateX(-5px) !important;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2) !important;
    border-color: #e74c3c !important;
}

/* 资讯文章容器 */
.zlfj-news-detail-article {
    background: white !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f0f0f0 !important;
}

/* 资讯详情头部 */
.zlfj-news-detail-header {
    padding: 50px !important;
    border-bottom: 2px solid #f5f5f5 !important;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%) !important;
}

.zlfj-news-detail-title {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 25px !important;
    line-height: 1.5 !important;
    letter-spacing: 1px !important;
}

.zlfj-news-detail-meta {
    display: flex !important;
    gap: 25px !important;
    flex-wrap: wrap !important;
    font-size: 14px !important;
    color: #999 !important;
}

.zlfj-news-detail-meta span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 5px 12px !important;
    background: white !important;
    border-radius: 20px !important;
    border: 1px solid #f0f0f0 !important;
}

/* 资讯详情内容 */
.zlfj-news-detail-content {
    padding: 50px !important;
    font-size: 16px !important;
    line-height: 2 !important;
    color: #333 !important;
    background: white !important;
}

.zlfj-news-detail-content p {
    margin-bottom: 20px !important;
    text-align: justify !important;
}

.zlfj-news-detail-content h1,
.zlfj-news-detail-content h2,
.zlfj-news-detail-content h3,
.zlfj-news-detail-content h4 {
    margin-top: 35px !important;
    margin-bottom: 20px !important;
    font-weight: 600 !important;
    color: #222 !important;
    line-height: 1.5 !important;
}

.zlfj-news-detail-content h2 {
    font-size: 28px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #f0f0f0 !important;
    color: #e74c3c !important;
}

.zlfj-news-detail-content h3 {
    font-size: 22px !important;
}

.zlfj-news-detail-content h4 {
    font-size: 18px !important;
}

.zlfj-news-detail-content ul,
.zlfj-news-detail-content ol {
    margin: 20px 0 !important;
    padding-left: 30px !important;
}

.zlfj-news-detail-content li {
    margin-bottom: 12px !important;
    line-height: 1.8 !important;
}

.zlfj-news-detail-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    margin: 25px 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.zlfj-news-detail-content blockquote {
    border-left: 4px solid #e74c3c !important;
    padding: 20px 25px !important;
    margin: 25px 0 !important;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%) !important;
    border-radius: 0 8px 8px 0 !important;
    font-style: italic !important;
    color: #666 !important;
    line-height: 1.8 !important;
}

.zlfj-news-detail-content code {
    background: #f5f5f5 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-family: 'Courier New', monospace !important;
    font-size: 14px !important;
    color: #e74c3c !important;
}

.zlfj-news-detail-content pre {
    background: #2d2d2d !important;
    color: #f8f8f2 !important;
    padding: 20px !important;
    border-radius: 8px !important;
    overflow-x: auto !important;
    margin: 25px 0 !important;
    line-height: 1.6 !important;
}

.zlfj-news-detail-content pre code {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
}

.zlfj-news-detail-content a {
    color: #e74c3c !important;
    text-decoration: none !important;
    transition: all 0.3s !important;
    border-bottom: 1px solid transparent !important;
}

.zlfj-news-detail-content a:hover {
    color: #c0392b !important;
    border-bottom-color: #e74c3c !important;
}

.zlfj-news-detail-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 25px 0 !important;
    background: white !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #f0f0f0 !important;
}

.zlfj-news-detail-content th,
.zlfj-news-detail-content td {
    padding: 12px 15px !important;
    text-align: left !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.zlfj-news-detail-content th {
    background: #f8f9fa !important;
    font-weight: 600 !important;
    color: #333 !important;
}

/* 加载状态 */
.zlfj-news-detail-loading {
    text-align: center !important;
    padding: 100px 20px !important;
    color: #999 !important;
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f0f0f0 !important;
}

.zlfj-news-detail-loading .zlfj-news-empty-icon {
    font-size: 96px !important;
    margin-bottom: 20px !important;
}

.zlfj-news-detail-loading p {
    font-size: 18px !important;
    margin: 0 !important;
    color: #999 !important;
}

/* 错误状态 */
.zlfj-news-detail-error {
    text-align: center !important;
    padding: 100px 20px !important;
    color: #999 !important;
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f0f0f0 !important;
}

.zlfj-news-detail-error .zlfj-news-empty-icon {
    font-size: 96px !important;
    margin-bottom: 20px !important;
}

.zlfj-news-detail-error p {
    font-size: 18px !important;
    margin: 0 !important;
    color: #999 !important;
}

/* 响应式 */
@media (max-width: 768px) {
    .template2-news-section,
    .zlfj-news-detail-section {
        padding: 80px 0 !important;
        min-height: calc(100vh - 250px) !important;
    }

    .template2-news-title {
        font-size: 32px !important;
    }

    .template2-news-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .template2-news-card-content {
        padding: 24px !important;
    }

    /* 详情页响应式 */
    .zlfj-news-detail-header,
    .zlfj-news-detail-content {
        padding: 30px 20px !important;
    }

    .zlfj-news-detail-title {
        font-size: 26px !important;
    }

    .zlfj-news-detail-meta {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .zlfj-news-detail-content {
        font-size: 15px !important;
        line-height: 1.8 !important;
    }

    .zlfj-news-detail-content h2 {
        font-size: 22px !important;
    }

    .zlfj-news-detail-content h3 {
        font-size: 19px !important;
    }

    .zlfj-news-detail-back {
        margin-bottom: 20px !important;
    }

    .zlfj-news-detail-back a {
        font-size: 14px !important;
        padding: 8px 15px !important;
    }
}

/* 中等屏幕适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .template2-news-section,
    .zlfj-news-detail-section {
        min-height: calc(100vh - 280px) !important;
    }
}
