/* 新闻Banner样式 */
.news-banner {
    position: relative;
    color: #fff;
    height: 220px;
    display: flex;
    align-items: center;
    background-color: #222;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3);
    z-index: 1;
}

.news-banner .container {
    position: relative;
    z-index: 2;
}

.news-banner .breadcrumb {
    font-size: 14px;
    margin-bottom: 15px;
    color: #ccc;
}

.news-banner .breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.news-banner .breadcrumb span {
    color: #4CAF50;
}

.news-banner h1 {
    font-size: 32px;
    text-transform: capitalize;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #ddd;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-meta i {
    color: #4CAF50;
}

/* 新闻内容区域 */
.news-content-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.row {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 40px;
}

/* 新闻主体 */
.news-main {
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.news-featured-img {
    margin-bottom: 30px;
}

.news-featured-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.news-body p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.news-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: #222;
    position: relative;
    padding-left: 10px;
    border-left: 3px solid #4CAF50;
}

/* 优势网格 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0 30px;
    text-align: center;
}

.advantage-item {
    padding: 20px 15px;
}

.advantage-icon {
    font-size: 32px;
    color: #4CAF50;
    margin-bottom: 15px;
}

.advantage-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.advantage-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

/* 应用场景 */
.applications-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 15px 0 25px;
}

.applications-list ul {
    list-style: none;
}

.applications-list li {
    margin-bottom: 10px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.applications-list i {
    color: #4CAF50;
    font-size: 12px;
}

.applications-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 选择围栏列表 */
.choose-fence-list {
    list-style: none;
    margin: 15px 0 25px;
}

.choose-fence-list li {
    margin-bottom: 10px;
    color: #666;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}

.choose-fence-list i {
    color: #4CAF50;
    font-size: 12px;
    margin-top: 5px;
}

.choose-fence-list strong {
    color: #333;
}

/* 分享按钮 */
.news-share {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-share span {
    color: #333;
    font-weight: 500;
}

.news-share a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
}

.news-share a:hover {
    background-color: #4CAF50;
    color: #fff;
}

/* 侧边栏 */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: #fff;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
}

/* 搜索组件 */
.search-widget {
    position: relative;
}

.search-widget input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
}

.search-widget button {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 45px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-widget button:hover {
    background-color: #3d8b40;
}

/* 分类组件 */
.categories-widget ul {
    list-style: none;
}

.categories-widget li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.categories-widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.categories-widget a {
    color: #666;
    display: flex;
    justify-content: space-between;
    transition: color 0.3s ease;
}

.categories-widget a:hover {
    color: #4CAF50;
}

.categories-widget span {
    color: #999;
    font-size: 13px;
}

/* 最新文章组件 */
.recent-posts-widget ul {
    list-style: none;
}

.recent-posts-widget li {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-posts-widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-posts-widget img {
    width: 100%;
    height: 60px;
    object-fit: cover;
}

.post-info a {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
    transition: color 0.3s ease;
}

.post-info a:hover {
    color: #4CAF50;
}

.post-info span {
    font-size: 12px;
    color: #999;
}

/* 标签组件 */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-list a {
    padding: 6px 12px;
    background-color: #eee;
    color: #666;
    font-size: 13px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.tags-list a:hover {
    background-color: #4CAF50;
    color: #fff;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .row {
        grid-template-columns: 6fr 4fr;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .applications-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .row {
        grid-template-columns: 1fr;
    }
    
    .news-banner {
        height: 180px;
        padding: 0 15px;
    }
    
    .news-banner h1 {
        font-size: 24px;
    }
    
    .news-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .news-main {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .news-banner {
        height: 150px;
    }
    
    .news-banner h1 {
        font-size: 20px;
    }
    
    .news-meta {
        font-size: 12px;
    }
    
    .sidebar-widget {
        padding: 20px 15px;
    }
    
    .recent-posts-widget li {
        grid-template-columns: 60px 1fr;
        gap: 10px;
    }
    
    .recent-posts-widget img {
        height: 50px;
    }
}