
/* 面包屑导航样式由 common.css 中 nav.breadcrumb 统一管理，本文件不再重复定义 */
/* 基础重置 (*, body, .container) 已收敛到 common.css，此处不再重复，避免覆盖统一字体栈 */
/* 复用产品页样式，增加新闻卡片 */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; padding: 40px 0; }
.news-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.news-img { height: 200px; background-size: cover; background-position: center; }
.news-content { padding: 24px; }
.news-date { color: var(--silver-blue); font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.news-title { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.news-summary { color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.news-link { margin-top: 16px; display: inline-block; color: var(--silver-blue); text-decoration: none; font-weight: 500; }
/* 筛选栏样式 */
.filter-bar { padding: 20px 0; display: flex; gap: 12px; flex-wrap: wrap; }
.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--silver-blue);
    background: transparent;
    border-radius: 20px;
    color: var(--silver-blue);
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn.active {
    background: var(--silver-blue);
    color: white;
}
/* 分页样式 */
.pagination {
    padding: 20px 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.page-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
}
.page-btn:hover:not(:disabled) {
    border-color: var(--silver-blue);
    color: var(--silver-blue);
}
.page-btn.active {
    background: var(--silver-blue);
    color: white;
    border-color: var(--silver-blue);
}
.page-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}
/* 响应式 */
@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
}

/* 基础重置 (*, body) 已收敛到 common.css，此处不再重复 */

.bg-light {
    background: #f8f9fa;
    padding: 3rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 选项卡过滤栏 */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.75rem;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.filter-btn:hover {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.08);
}

.filter-btn.active {
    background: #0d6efd;
    color: white;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.25);
}

/* 分类面板 */
.category-panel {
    display: block;
}

.category-panel.hide-panel {
    display: none;
}

/* 每个分类内的新闻网格 */
.category-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ====== #category-all：一行显示一个新闻卡片（横向布局），标题和描述不截断 ====== */
#category-all .category-news-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

#category-all .news-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

#category-all .news-card > a {
    display: block;
    flex-shrink: 0;
}

#category-all .news-img {
    width: 300px;
    height: 100%;
    min-height: 180px;
}

#category-all .news-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#category-all .news-title {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: block;
}

#category-all .news-title a {
    display: inline;
}

#category-all .news-summary {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    max-height: none;
    overflow: visible;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #dee2e6;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.news-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s;
}

.news-title a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.news-summary {
    color: #495057;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.news-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s;
}

.news-link:hover {
    gap: 0.5rem;
    text-decoration: underline;
}

/* 分页样式 */
.category-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.page-btn:hover:not(.disabled) {
    background: #e9ecef;
    border-color: #adb5bd;
}

.page-btn.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
    cursor: default;
    pointer-events: none;
}

.page-btn.disabled {
    color: #adb5bd;
    cursor: not-allowed;
    background: #f1f3f5;
    border-color: #dee2e6;
    pointer-events: none;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .category-news-grid {
        grid-template-columns: 1fr;
    }
    .filter-btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ====== Solutions 列表页移动端响应式补充 ====== */
@media (max-width: 992px) {
    /* 面包屑导航：由 common.css 统一适配，无需重复 */
    /* 头部 banner 标题 */
    .bg-dark .section-header { padding: 24px 0; }
    .bg-dark .section-title { font-size: 28px; }
    .bg-dark .section-desc { font-size: 14px; }
    /* 网格从 3 列降为 2 列 */
    .category-news-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    /* 筛选栏横向滚动，避免换行挤占空间 */
    .filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
        margin-bottom: 1.5rem;
        gap: 0.5rem;
    }
    .filter-bar::-webkit-scrollbar { height: 4px; }
    .filter-bar::-webkit-scrollbar-thumb { background: #cfd8e0; border-radius: 4px; }
    .filter-btn { white-space: nowrap; flex-shrink: 0; }
    /* 分页按钮缩小 */
    .page-btn { padding: 6px 12px; font-size: 0.85rem; min-width: 36px; }
}

@media (max-width: 768px) {
    section { padding: 40px 0; }
    .container { padding: 0 16px; }
    /* banner 标题缩小 */
    .bg-dark .section-title { font-size: 24px; }
    .bg-dark .section-desc { font-size: 13px; }
    /* 卡片内容紧凑化 */
    .news-card { border-radius: 12px; }
    .news-content { padding: 1rem; }
    .news-title { font-size: 1.05rem; margin-bottom: 0.5rem; }
    .news-summary { font-size: 0.85rem; line-height: 1.5; margin-bottom: 0.8rem; }
    .news-link { font-size: 0.82rem; }
    .news-img { height: 160px; }
    /* #category-all：移动端卡片改为上下结构（图片在上，内容在下） */
    #category-all .news-card {
        flex-direction: column;
    }
    #category-all .news-img {
        width: 100%;
        min-height: 0;
        height: 170px;
    }
    #category-all .news-content {
        padding: 1rem;
    }
    /* 分页按钮进一步缩小 */
    .page-btn { padding: 5px 10px; font-size: 0.8rem; min-width: 32px; }
    .pagination { gap: 4px; padding: 12px 0 24px; }
    /* EyouCMS 原生分页 li 缩小 */
    .pagination li { margin: 0 3px; font-size: 13px; }
    .pagination li a { padding: 8px 12px; font-size: 13px; }
}

@media (max-width: 480px) {
    /* 单列显示 */
    .category-news-grid { grid-template-columns: 1fr; gap: 1rem; }
    /* banner 标题进一步缩小 */
    .bg-dark .section-title { font-size: 20px; line-height: 1.3; }
    .bg-dark .section-desc { font-size: 12px; }
    .bg-dark .section-header { padding: 20px 0; }
    /* 卡片内容进一步紧凑 */
    .news-content { padding: 0.85rem; }
    .news-title { font-size: 1rem; }
    .news-summary { font-size: 0.8rem; -webkit-line-clamp: unset; }
    .news-img { height: 140px; }
    #category-all .news-img { height: 150px; }
    /* 筛选按钮更小 */
    .filter-btn { padding: 0.35rem 0.9rem; font-size: 0.8rem; }
    /* 分页最小化 */
    .page-btn { padding: 4px 8px; font-size: 0.75rem; min-width: 28px; }
    .pagination li { margin: 0 2px; }
    .pagination li a { padding: 6px 10px; font-size: 12px; }
}

.pagination li a:hover {
    background: #5CABE9;
    color: #fff;
    border: 1px solid #5CABE9;
}

.pagination li a {
    border-radius: 4px;
    color: #6e6e6e;
    background: #fff;
    padding: 12px 16px;
    border: 1px solid #DCDCDC;
    display: block;
    text-decoration: none;
}


.pagination li {
    margin: 0 5px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    list-style: none;
}

section { padding: 70px 0; }