/* ============================================================
   陕西中恒钛航 — 产品分类Tab（浅色背景跟随版）
   调整要点：
     1. 去掉左侧钛橙方块（过于繁琐）
     2. Tab默认浅色背景（#F8FAFC），不再透明
     3. 选中Tab背景变钛橙极浅色（#FFF5EB），文字钛橙
     4. 下方内容区背景与Tab栏同步（整体容器浅色），视觉跟随
     5. 切换时背景0.3s平滑过渡，不跳变
   配色：深空蓝 #0A2540 + 钛橙 #E67E22 + 钛银灰 #8B9DC3
   编码：UTF-8（防止注释乱码）
   ============================================================ */

/* ============================================================
   一、整体容器（浅色背景，Tab+内容区视觉统一）
   ============================================================ */
.product {
    width: 100%;
    margin: 0 auto;
    position: relative;
    background: #F8FAFC;           /* 默认浅色背景 */
    border-radius: 8px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

/* ============================================================
   二、顶部Tab分类栏（透明，继承容器浅色）
   ============================================================ */
.product > .hd {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #E6E9EE !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    line-height: normal !important;
    box-sizing: border-box !important;
    position: relative !important;
}
.product > .hd::before { display: none !important; }

/* ---------- Tab列表：Grid自动等分 ---------- */
.product > .hd ul {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    box-sizing: border-box !important;
}
@supports not (display: grid) {
    .product > .hd ul { display: table !important; table-layout: fixed !important; }
    .product > .hd ul li { display: table-cell !important; width: auto !important; vertical-align: middle !important; }
}

/* ---------- 单个Tab项：默认浅色，hover/选中背景变化 ---------- */
.product > .hd ul li {
    display: block !important;
    position: relative !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;       /* 默认透明，继承容器浅色 */
    text-align: center !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: background-color 0.3s ease !important;   /* 背景跟随过渡 */
}
.product > .hd ul li:last-child { border-right: none !important; }

/* 【去掉】左侧钛橙方块 — 过于繁琐 */
.product > .hd ul li.on::before { display: none !important; }

/* hover：背景稍深，文字深空蓝 */
@media (hover: hover) and (pointer: fine) {
    .product > .hd ul li:hover {
        background: #F0F4F8 !important;       /* hover浅色 */
    }
    .product > .hd ul li:hover a {
        color: #0A2540 !important;
    }
}

/* 选中：背景变钛橙极浅色，文字钛橙 — 视觉跟随 */
.product > .hd ul li.on {
    background: #FFF5EB !important;           /* 钛橙极浅色，与内容区呼应 */
}

/* 底部钛橙指示线 — 选中全宽 */
.product > .hd ul li::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    bottom: -1px !important;
    width: 0 !important;
    height: 2px !important;
    background: #E67E22 !important;
    transition: width 0.25s ease !important;
    z-index: 2 !important;
}
@media (hover: hover) and (pointer: fine) {
    .product > .hd ul li:hover::after { width: 60% !important; }
}
.product > .hd ul li.on::after { width: 100% !important; }

/* ---------- Tab链接 ---------- */
.product > .hd ul li a {
    display: block !important;
    width: 100% !important;
    padding: 14px 8px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: 1.5px !important;
    color: #8B9DC3 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-sizing: border-box !important;
    transition: color 0.25s ease !important;
    -webkit-tap-highlight-color: transparent !important;
}
.product > .hd ul li.on a {
    color: #E67E22 !important;
    font-weight: 500 !important;
}
.product > .hd ul li.on a:hover { color: #d35400 !important; }

/* ============================================================
   三、下方内容区（透明，继承容器浅色，与Tab视觉跟随）
   ============================================================ */
.product > .bd {
    width: 100% !important;
    background: transparent !important;       /* 继承容器浅色背景 */
    border: none !important;
    border-radius: 0 !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    position: relative !important;
    animation: productFadeIn 0.3s ease !important;
}
.product > .bd::before { display: none !important; }

/* 内容从下往上淡入 */
@keyframes productFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   四、产品列表网格（白色卡片，在浅色背景上突出）
   ============================================================ */
.product > .bd .product_center_list,
.product > .bd .product-cen-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 单个产品卡片：白色，1px边框 */
.product > .bd .product_center_list dl,
.product > .bd .product-cen-list dl {
    flex: 0 0 calc(33.333% - 14px) !important;
    max-width: calc(33.333% - 14px) !important;
    border: 1px solid #E6E9EE !important;
    border-radius: 6px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    margin: 0 !important;
    position: relative !important;
}
.product > .bd .product_center_list dl::before,
.product > .bd .product-cen-list dl::before { display: none !important; }

/* 卡片hover：钛橙边框 + 轻微上浮 */
.product > .bd .product_center_list dl:hover,
.product > .bd .product-cen-list dl:hover {
    border-color: #E67E22 !important;
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.12) !important;
    transform: translateY(-3px) !important;
}

/* 产品图片区 */
.product > .bd .product_center_list dt,
.product > .bd .product-cen-list dt {
    width: 100% !important;
    overflow: hidden !important;
    background: #F8FAFC !important;
    position: relative !important;
}
.product > .bd .product_center_list dt img,
.product > .bd .product-cen-list dt img {
    width: 100% !important;
    display: block !important;
    height: 200px !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}
.product > .bd .product_center_list dl:hover dt img,
.product > .bd .product-cen-list dl:hover dt img {
    transform: scale(1.05) !important;
}

/* 产品信息区 */
.product > .bd .product_center_list dd,
.product > .bd .product-cen-list dd {
    padding: 14px 16px 16px !important;
    background: #fff !important;
    border-top: 1px solid #F0F4F8 !important;
}
.product > .bd .product_center_list dd h4,
.product > .bd .product-cen-list dd h4 {
    font-weight: 600 !important;
    font-size: 15px !important;
    color: #0A2540 !important;
    line-height: 1.5 !important;
    margin: 0 0 8px !important;
    text-align: center !important;
    height: auto !important;
    overflow: hidden !important;
}
.product > .bd .product_center_list dd h4 a,
.product > .bd .product-cen-list dd h4 a {
    color: #0A2540 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}
.product > .bd .product_center_list dl:hover dd h4 a,
.product > .bd .product-cen-list dl:hover dd h4 a {
    color: #E67E22 !important;
}
.product > .bd .product_center_list dd p,
.product > .bd .product-cen-list dd p {
    font-size: 13px !important;
    color: #5A6472 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    text-align: center !important;
}
.product > .bd .product_center_list dd .xq,
.product > .bd .product-cen-list dd .xq {
    display: inline-block !important;
    margin-top: 10px !important;
    font-size: 13px !important;
    color: #E67E22 !important;
    text-decoration: none !important;
    transition: color 0.25s ease !important;
}
.product > .bd .product_center_list dd .xq:hover,
.product > .bd .product-cen-list dd .xq:hover {
    color: #d35400 !important;
}

.product > .bd .clear {
    clear: both !important;
    display: none !important;
}

/* ============================================================
   五、响应式适配
   ============================================================ */
/* ---------- 大屏 PC (>1400px) ---------- */
@media screen and (min-width: 1401px) {
    .product > .hd ul li a { padding: 16px 10px !important; font-size: 16px !important; letter-spacing: 2px !important; }
    .product > .bd { padding: 28px !important; }
    .product > .bd .product_center_list dt img,
    .product > .bd .product-cen-list dt img { height: 220px !important; }
}

/* ---------- 平板横屏 (1025px ~ 1400px) ---------- */
@media screen and (min-width: 1025px) and (max-width: 1400px) {
    .product > .hd ul li a { padding: 14px 8px !important; font-size: 15px !important; }
}

/* ---------- 平板 (769px ~ 1024px)：产品2列 ---------- */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .product > .hd ul li a { padding: 12px 6px !important; font-size: 14px !important; letter-spacing: 1px !important; }
    .product > .bd { padding: 20px !important; }
    .product > .bd .product_center_list,
    .product > .bd .product-cen-list { gap: 16px !important; }
    .product > .bd .product_center_list dl,
    .product > .bd .product-cen-list dl {
        flex: 0 0 calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
    }
    .product > .bd .product_center_list dt img,
    .product > .bd .product-cen-list dt img { height: 180px !important; }
}

/* ---------- 手机 (≤768px)：Tab换行2列，产品2列 ---------- */
@media screen and (max-width: 768px) {
    .product { border-radius: 6px !important; }
    .product > .hd ul {
        display: flex !important;
        flex-wrap: wrap !important;
        grid-auto-flow: initial !important;
        grid-auto-columns: initial !important;
    }
    .product > .hd ul li {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        border-bottom: 1px solid #E6E9EE !important;
    }
    .product > .hd ul li:last-child:nth-child(odd) {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .product > .hd ul li a {
        padding: 12px 8px !important;
        font-size: 13px !important;
        letter-spacing: 1px !important;
    }
    .product > .bd { padding: 16px !important; }
    .product > .bd .product_center_list,
    .product > .bd .product-cen-list { gap: 12px !important; }
    .product > .bd .product_center_list dl,
    .product > .bd .product-cen-list dl {
        flex: 0 0 calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important;
    }
    .product > .bd .product_center_list dt img,
    .product > .bd .product-cen-list dt img { height: 160px !important; }
    .product > .bd .product_center_list dd,
    .product > .bd .product-cen-list dd { padding: 10px 12px 12px !important; }
    .product > .bd .product_center_list dd h4,
    .product > .bd .product-cen-list dd h4 { font-size: 13.5px !important; }
}

/* ---------- 小屏手机 (≤480px)：产品1列 ---------- */
@media screen and (max-width: 480px) {
    .product > .hd ul li a {
        padding: 11px 6px !important;
        font-size: 12px !important;
        letter-spacing: 0.5px !important;
    }
    .product > .bd .product_center_list dl,
    .product > .bd .product-cen-list dl {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .product > .bd .product_center_list dt img,
    .product > .bd .product-cen-list dt img { height: auto !important; max-height: 200px !important; }
    .product > .bd .product_center_list dd,
    .product > .bd .product-cen-list dd { padding: 12px 14px 14px !important; }
    .product > .bd .product_center_list dd h4,
    .product > .bd .product-cen-list dd h4 { font-size: 14px !important; }
}

/* ---------- 超小屏 (≤375px) ---------- */
@media screen and (max-width: 375px) {
    .product > .hd ul li a {
        padding: 10px 4px !important;
        font-size: 11.5px !important;
    }
}

/* ============================================================
   产品分类Tab（浅色背景跟随版）— 结束
   ============================================================ */
