/**
 * Block News Styles
 * 新闻区块样式文件
 * 
 * @package Nenghui Energy Theme
 * @since 1.0.0
 */

.news-debug {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 14px;
}

.news-debug h4 {
    margin-top: 0;
    color: #856404;
    font-size: 16px;
}

.news-debug pre {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 10px;
    border-radius: 3px;
    font-size: 12px;
    overflow-x: auto;
}

.no-posts-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* 无图片占位符样式 */
.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: #999;
    height: 200px;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.news-card .no-image-placeholder {
    height: 150px;
}

.no-image-placeholder i {
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.6;
}

.no-image-placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.news-header {
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.news-header p {
    color: #888888;
    font-size: 14px;
    margin: 0;
}

.news-header h1 {
    font-size: 32px;
    margin: 8px 0 0 0;
    font-weight: bold;
    color: #000000;
}

.main-news {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.main-news-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}



.main-news-right {
    flex: 1;
}

.main-news h2 {
    font-size: 18px;
    color: #0066cc;
    margin-bottom: 10px;
}

.main-news-left h2 {
    font-size: 30px;
}

.main-news h2 a {
    color: #333;
    text-decoration: none;
}

.main-news h2 a:hover {
    color: #10b981;
  
}

.main-news p {
    color: #666666;
    margin: 0 0 15px 0;
}

.main-news-info {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #999999;
}

.main-news-info span {
    margin-right: 20px;
}

.main-news img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    border: 1px solid #eeeeee;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.news-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-card-content {
    padding: 15px;
}

.news-card h3 {
    font-size: 16px;
    margin: 0 0 10px 0;
    color: #333333;
}

.news-card h3 a {
    color: #333333;
    text-decoration: none;
}

.news-card h3 a:hover {
    color: #10b981;
}

.news-card-info {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #999999;
}

.news-card-info span {
    margin-right: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-news {
        flex-direction: column;
        gap: 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .news-container {
        padding: 20px 15px;
    }

    .news-header h1 {
        font-size: 24px;
    }

    .main-news-left h2 {
        font-size: 20px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}