/* ============================================================
   list-common.css - 列表页公共样式
   合并自: productlist, productlist-zilei, directivelist,
          industryl, newslist, search
   ============================================================ */

/* 主体内容宽度统一为1400px */
.w1600 {
    max-width: 1400px !important;
    width: 100% !important;
}

/* ========== 列表容器 ========== */
.product-list-container,
.directive-list-container,
.industry-list-container,
.news-list-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px;
    background-color: #FFFFFF;
}

/* ========== 列表页头部 ========== */
.product-list-header,
.directive-list-header,
.industry-list-header {
    margin-bottom: 40px;
}

.product-list-header h1,
.directive-list-header h1,
.industry-list-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

/* 头部简介+缩略图布局 */
.list-header-body {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.list-header-body .product-list-intro,
.list-header-body .industry-list-intro,
.list-header-body .directive-list-intro {
    flex: 1;
    min-width: 0;
}

.list-header-thumb {
    flex-shrink: 0;
    width: 300px;
    height: 225px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e4e8;
}

.list-header-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .list-header-body {
        flex-direction: column;
    }
    .list-header-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }
}

/* ========== 网格布局 ========== */
.product-grid,
.directive-grid,
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 16px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

/* ========== 卡片基础样式 ========== */
.product-card,
.directive-card,
.industry-card,
.news-card {
    background: #FAFAFA;
    border: 1px solid #e2e4e8;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

/* 卡片hover - 橙色主题（产品/指令/资讯） */
.product-card:hover,
.directive-card:hover,
.news-card:hover {
    border-color: #f97316;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 卡片hover - 蓝色主题（行业） */
.industry-card:hover {
    border-color: #0070f3;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ========== 卡片标题 ========== */
.product-card-title,
.directive-card-title,
.industry-card-title,
.news-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

/* 资讯标题 - 多行截断 */
.news-card-title {
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* hover标题变色 - 橙色 */
.product-card:hover .product-card-title,
.directive-card:hover .directive-card-title,
.news-card:hover .news-card-title {
    color: #f97316;
}

/* hover标题变色 - 蓝色 */
.industry-card:hover .industry-card-title {
    color: #0070f3;
}

/* ========== 卡片描述 ========== */
.product-card-desc,
.industry-card-desc,
.news-card-desc {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* 描述多行截断（产品/资讯） */
.product-card-desc,
.news-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-desc {
    line-height: 1.7;
    margin-bottom: 16px;
}

/* ========== 卡片详情链接 ========== */
.product-card-link,
.directive-card-link,
.industry-card-link,
.news-card-link {
    margin-top: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

/* 行业链接使用蓝色 */
.industry-card-link {
    color: #0070f3;
    font-size: 0.8rem;
}

/* hover链接间距扩大 */
.product-card:hover .product-card-link,
.directive-card:hover .directive-card-link,
.industry-card:hover .industry-card-link,
.news-card:hover .news-card-link {
    gap: 8px;
}

/* ========== 查看全部链接 ========== */
.view-all-link {
    text-align: right;
    margin-top: 8px;
}

.view-all-link a {
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

/* ========== 列表页导语 ========== */
.product-list-intro,
.industry-list-intro,
.directive-list-intro {
    color: #374151;
    font-size: 0.9375rem;
    line-height: 1.85;
}

.product-list-intro p,
.industry-list-intro p,
.directive-list-intro p {
    margin: 0 0 1em 0;
}

.product-list-intro p:last-child,
.industry-list-intro p:last-child,
.directive-list-intro p:last-child {
    margin-bottom: 0;
}

/* ========== 列表页底部 CTA ========== */
.list-cta-box {
    margin-top: 56px;
    padding: 32px 28px;
    background: linear-gradient(135deg, #fff7ed 0%, #f8fafc 100%);
    border: 1px solid #fed7aa;
    border-radius: 16px;
}

.list-cta-title {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
}

.list-cta-text {
    margin: 0 0 20px 0;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #4b5563;
}

.list-cta-text a {
    color: #ea580c;
    font-weight: 600;
    text-decoration: none;
}

.list-cta-text a:hover {
    text-decoration: underline;
}

.list-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.list-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.list-cta-btn-primary {
    background: #ea580c;
    color: #fff;
}

.list-cta-btn-primary:hover {
    background: #c2410c;
    color: #fff;
}

.list-cta-btn-secondary {
    background: #fff;
    color: #9a3412;
    border: 1px solid #fdba74;
}

.list-cta-btn-secondary:hover {
    border-color: #ea580c;
    color: #ea580c;
}

/* ========== 分页 ========== */
.pagebar {
    margin-top: 48px;
    padding: 20px 0;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    background: #FAFAFA;
    border: 1px solid #e2e4e8;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: #f97316;
    color: #f97316;
}

.pagination .active {
    background: #1e4a76;
    border-color: #1e4a76;
    color: #fff;
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .product-list-container,
    .directive-list-container,
    .industry-list-container,
    .news-list-container {
        padding: 40px 16px;
    }

    .product-grid,
    .directive-grid,
    .industry-grid {
        gap: 16px;
    }

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

    .product-card,
    .directive-card,
    .industry-card,
    .news-card {
        padding: 20px;
    }

    .product-list-header h1,
    .directive-list-header h1,
    .industry-list-header h1 {
        font-size: 28px;
    }

    .list-cta-box {
        margin-top: 40px;
        padding: 24px 18px;
    }

    .list-cta-btn {
        width: 100%;
    }
}