/* ================================================
   新闻列表页样式（newslist.css）
   与 article.css 完全独立
   ================================================ */

/* 页面标题栏 */
.page-title-bar {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    padding: 40px 0;
    text-align: center;
}
.page-title-bar h1 {
    color: #fff;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 8px;
}
.page-title-bar p {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}

/* 面包屑导航 */
.breadcrumb-nav {
    padding: 10px 20px;
    font-size: 13px;
    color: #999;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.breadcrumb-nav a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-nav a:hover {
    color: #e74c3c;
}

/* 整体布局：主内容区 + 侧边栏 */
.content-with-sidebar .container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.content-area {
    flex: 1;
    min-width: 0;
}
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 侧边栏通用卡片 */
.sidebar-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}
.sidebar-title {
    background: #e74c3c;
    color: #fff;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: bold;
}

/* 分类导航 */
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-nav li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    border-left: 3px solid transparent;
    text-decoration: none;
    transition: all 0.2s;
}
.sidebar-nav li a:hover {
    background: #fdf2f2;
    border-left-color: #e74c3c;
    color: #e74c3c;
}

/* 热门文章 */
.sidebar-hot {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-hot li a {
    display: block;
    padding: 10px 20px;
    color: #666;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    transition: color 0.2s;
}
.sidebar-hot li a:hover {
    color: #e74c3c;
}

/* 侧边栏联系我们 */
.sidebar-contact .contact-info {
    padding: 15px 20px;
}
.sidebar-contact .contact-info p {
    margin: 6px 0;
    font-size: 13px;
    color: #666;
}
.sidebar-btn {
    display: block;
    margin: 0 20px 15px;
    padding: 10px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
}
.sidebar-btn:hover {
    opacity: 0.9;
}

/* ================================================
   新闻列表 - 行业动态/政策法规双栏
   ================================================ */

.news-tabs {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 每个分类区块 */
.news-tab-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

/* 分类标题栏 */
.news-tab-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 2px solid #eee;
}
.news-tab-title h2 {
    font-size: 18px;
    color: #333;
    margin: 0;
    font-weight: bold;
}
.news-tab-title .more {
    font-size: 13px;
    color: #999;
    text-decoration: none;
}
.news-tab-title .more:hover {
    color: #667eea;
}

/* 新闻列表 */
.news-list {
    padding: 10px 0;
}

/* 每条新闻 */
.news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    transition: background 0.2s;
}
.news-item:hover {
    background: #f9f9f9;
}

/* 左侧色条 */
.cat-bar {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    flex-shrink: 0;
}
.cat-bar.red  { background: #e74c3c; }
.cat-bar.blue { background: #667eea; }

/* 内容区域 */
.item-content {
    flex: 1;
    min-width: 0;
}
.item-top {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 5px;
}
.date {
    font-size: 12px;
    color: #999;
}
.cat-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    color: #fff;
}
.cat-tag.red  { background: #e74c3c; }
.cat-tag.blue { background: #667eea; }
.title {
    display: block;
    font-size: 15px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}
.title:hover {
    color: #667eea;
}

/* ================================================
   响应式
   ================================================ */

/* 案例网格 */
.case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}
.case-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #eee;
}
.case-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}
.case-img-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
}
.case-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.case-card:hover .case-img-wrap img {
    transform: scale(1.05);
}
.case-info {
    padding: 12px;
}
.case-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.case-date {
    font-size: 12px;
    color: #999;
}

@media (max-width: 1024px) {
    .case-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
@media (max-width: 480px) {
    .case-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .content-with-sidebar .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .news-tabs {
        flex-direction: column;
        gap: 0;
    }
    .news-list-wrap {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .news-list-wrap .news-tab-item {
        border-bottom: 1px solid #eee;
        min-width: unset;
    }
    .news-tab-title {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .news-tab-title .more {
        font-size: 12px;
    }
    .news-item {
        flex-wrap: wrap;
        padding: 10px 16px;
        gap: 8px;
    }
    .news-thumb {
        width: 80px;
        height: 60px;
        flex-shrink: 0;
    }
    .news-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 4px;
    }
    .item-content {
        flex: 1;
    }
    .cat-bar {
        display: none;
    }
    /* newslist.html 列表页专用 */
    .content-area .news-tab-item {
        border: 1px solid #eee;
        border-radius: 12px;
        margin: 0 0 16px;
        overflow: hidden;
    }
    .content-area .news-list {
        padding: 0;
        display: flex;
        flex-direction: column;
    }
    .content-area .news-item {
        border-bottom: 1px solid #f0f0f0;
        background: #fff;
    }
    .content-area .news-item:last-child {
        border-bottom: none;
    }
    /* 内容区防止溢出 */
    .article-main,
    .content-area,
    .news-tab-item,
    .news-list {
        overflow: hidden;
        max-width: 100%;
    }
    .content-with-sidebar .container {
        overflow: hidden;
    }
}

/* 分页样式 */
.page-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 30px 0;
    flex-wrap: wrap;
}
.page-bar a,
.page-bar span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}
.page-bar a:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}
.page-bar .active {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}
/* 列表页分页（红色主题） */
.news-pagination { text-align: center; margin: 30px 0; }
.news-pagination a, .news-pagination span {
    display: inline-block; padding: 6px 14px; margin: 0 3px;
    border: 1px solid #ddd; border-radius: 3px; color: #333;
    text-decoration: none; font-size: 14px; background: #fff;
}
.news-pagination a:hover { background: #c00; color: #fff; border-color: #c00; }
.news-pagination .current, .news-pagination span.current { background: #c00; color: #fff; border-color: #c00; }
.news-pagination .disabled { color: #999; pointer-events: none; border-color: #eee; background: #fafafa; }

/* FAQ */
.faq-section { background: #fff; padding: 60px 0; }
.faq-list { max-width: 1200px; margin: 0 auto; columns: 4 260px; column-gap: 18px; }
.faq-item { break-inside: avoid; margin-bottom: 12px; border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.faq-question { padding: 16px 14px; cursor: pointer; display: flex; align-items: flex-start; font-size: 14px; color: #333; background: #fff; transition: background 0.2s; }
.faq-question:hover { background: #fafafa; }
.faq-icon { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #c23531; color: #c23531; display: flex; align-items: center; justify-content: center; margin-right: 10px; font-size: 14px; font-weight: bold; flex-shrink: 0; transition: all 0.3s; margin-top: 2px; }
.faq-item.active .faq-icon { background: #c23531; color: #fff; transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.active .faq-answer { max-height: 400px; }
.faq-answer-inner { padding: 14px 14px 18px 14px; color: #666; line-height: 1.8; font-size: 13px; background: #fafafa; border-left: 3px solid #c23531; }
.faq-answer-inner p { margin: 0; }
.faq-more { text-align: center; margin-top: 28px; }
.btn-outline { display: inline-block; padding: 10px 28px; border: 1px solid #c23531; color: #c23531; border-radius: 25px; text-decoration: none; font-size: 14px; transition: all 0.3s; }
.btn-outline:hover { background: #c23531; color: #fff; }
