/* ============================================================
   陕西中恒钛航 — 产品分类卡片样式（重写版）
   适用区域：产品分类展示卡片（.product-cen-list）
   配色体系：深空蓝 #0A2540 + 钛橙 #E67E22 + 钛银灰
   编码：UTF-8（防止注释乱码）
   风格：无边框·阴影区分·圆角卡片·悬停动效·图片缩放
   ============================================================ */

/* ---------- 容器去边框 ---------- */
.sxzh_sm {
    border: none;
}

/* ---------- 卡片网格容器（Flex布局） ---------- */
.product-cen-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 0;
    margin: 0;
}

/* ---------- 单个产品卡片（无边框，用阴影区分） ---------- */
.product-cen-list dl {
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
    border: none;
    border-radius: 12px;
    background: #ffffff;
    box-sizing: border-box;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    box-shadow: 0 2px 12px rgba(10, 37, 64, 0.06);
    position: relative;
}
.product-cen-list dl::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0A2540, #E67E22);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.product-cen-list dl:hover {
    box-shadow: 0 12px 40px rgba(10, 37, 64, 0.12);
    transform: translateY(-6px);
}
.product-cen-list dl:hover::after {
    transform: scaleX(1);
}

/* ---------- 产品图片区域 ---------- */
.product-cen-list dt {
    width: 100%;
    overflow: hidden;
    background: #F0F4F8;
    position: relative;
}
.product-cen-list dt img {
    width: 100%;
    display: block;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: saturate(0.92);
}
.product-cen-list dl:hover dt img {
    transform: scale(1.06);
    filter: saturate(1.1);
}

/* ---------- 产品信息区域 ---------- */
.product-cen-list dd {
    padding: 16px 20px 20px;
    height: auto;
}
.product-cen-list dd h4 {
    height: 32px;
    font-weight: 600;
    font-size: 16px;
    color: #0A2540;
    line-height: 32px;
    margin: 0 0 10px;
    overflow: hidden;
}
.product-cen-list dd h4 a {
    display: block;
    color: #0A2540;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}
.product-cen-list dl:hover dd h4 a {
    color: #E67E22;
}

/* ---------- 产品描述（摘要） ---------- */
.product-cen-list-desc {
    font-size: 13px;
    line-height: 1.8;
    color: #5A6472;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    min-height: 70px;
    max-height: 72px;
    text-indent: 0;
    margin: 0;
}
.product-cen-list-desc a {
    color: #E67E22;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    transition: color 0.3s ease;
}
.product-cen-list-desc a:hover {
    color: #d35400;
    text-decoration: underline;
}

/* ---------- "详情"按钮（胶囊风格） ---------- */
.product-cen-list-deta {
    display: inline-block;
    margin-top: 14px;
    padding: 7px 24px;
    border-radius: 30px;
    background: linear-gradient(135deg, #0A2540, #1a3a5c);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
}
.product-cen-list-deta a {
    color: #fff;
    text-decoration: none;
}
.product-cen-list-deta:hover {
    background: linear-gradient(135deg, #E67E22, #d35400);
    box-shadow: 0 4px 16px rgba(230, 126, 34, 0.3);
    transform: translateY(-2px);
}

/* ============================================================
   响应式适配
   ============================================================ */

/* ---------- 大屏 PC (>1400px) ---------- */
@media screen and (min-width: 1401px) {
    .product-cen-list dt img {
        height: 260px;
    }
}

/* ---------- 平板 (769px ~ 1024px)：2列 ---------- */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .product-cen-list {
        gap: 18px;
    }
    .product-cen-list dl {
        flex: 0 0 calc(50% - 9px);
        max-width: calc(50% - 9px);
    }
    .product-cen-list dt img {
        height: 220px;
    }
    .product-cen-list dd {
        padding: 14px 16px 18px;
    }
    .product-cen-list dd h4 {
        font-size: 15px;
    }
    .product-cen-list-desc {
        font-size: 12.5px;
        -webkit-line-clamp: 2;
        min-height: 46px;
        max-height: 48px;
    }
}

/* ---------- 手机 (481px ~ 768px)：2列 ---------- */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .product-cen-list {
        gap: 14px;
    }
    .product-cen-list dl {
        flex: 0 0 calc(50% - 7px);
        max-width: calc(50% - 7px);
        border-radius: 10px;
    }
    .product-cen-list dt img {
        height: 180px;
    }
    .product-cen-list dd {
        padding: 10px 12px 14px;
    }
    .product-cen-list dd h4 {
        font-size: 14px;
        height: 28px;
        line-height: 28px;
        margin-bottom: 6px;
    }
    .product-cen-list-desc {
        font-size: 11.5px;
        line-height: 1.6;
        -webkit-line-clamp: 2;
        min-height: 38px;
        max-height: 40px;
    }
    .product-cen-list-deta {
        padding: 5px 18px;
        font-size: 12px;
    }
}

/* ---------- 小屏手机 (≤480px)：1列 ---------- */
@media screen and (max-width: 480px) {
    .product-cen-list {
        gap: 14px;
    }
    .product-cen-list dl {
        flex: 0 0 100%;
        max-width: 100%;
        border-radius: 10px;
    }
    .product-cen-list dt img {
        height: auto;
        max-height: 220px;
    }
    .product-cen-list dd {
        padding: 12px 14px 16px;
    }
    .product-cen-list dd h4 {
        font-size: 15px;
        height: 30px;
        line-height: 30px;
        margin-bottom: 8px;
    }
    .product-cen-list-desc {
        font-size: 12px;
        line-height: 1.7;
        -webkit-line-clamp: 2;
        min-height: 42px;
        max-height: 44px;
    }
    .product-cen-list-deta {
        padding: 6px 20px;
        font-size: 12.5px;
    }
}

/* ---------- 超小屏 (≤375px) ---------- */
@media screen and (max-width: 375px) {
    .product-cen-list dd h4 {
        font-size: 14px;
    }
    .product-cen-list-desc {
        font-size: 11.5px;
    }
}
