@charset "utf-8";
/* ==========================================================================
   Common Utilities (公共辅助类)
   ========================================================================== */
.color-blue { color: var(--theme-color); }
.color-orange { color: var(--sec-theme-color); }
.bg-blue { background-color: var(--theme-color); }
.bg-orange { background-color: var(--sec-theme-color); }

.border-top-blue { border-top: 4px solid var(--theme-color); }
.border-left-blue { border-left: 4px solid var(--theme-color); }
.border { border: 1px solid #eee; }

.hover-color:hover { color: var(--theme-color); }
.hover-orange:hover { color: var(--sec-theme-color); }
.hover-white:hover { color: #fff; }
.hover-up:hover { transform: translateY(-10px); }

.shadow-sm { box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.shadow-lg { box-shadow: 0 15px 40px rgba(30,80,299,0.05); }

.block{display: block;}
.gap-15 { gap: 0.15rem; }
.gap-20 { gap: 0.2rem; }
.gap-30 { gap: 0.3rem; }
.p5-10 { padding: 0.05rem 0.1rem; }
.opacity-5 { opacity: 0.05; }
.z2 { z-index: 2; }
.cursor-pointer { cursor: pointer; }

/* SVG Icons */
.xh-icon {
    display: inline-block;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Buttons (按钮样式)
   ========================================================================== */
.xh-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.4rem;
    background-color: var(--sec-theme-color);
    color: #fff;
    border-radius: 30px; /* 偏工业风的微圆角 */
    font-size: var(--f16);
    transition: all 0.3s ease;
    border: 2px solid var(--sec-theme-color);
    font-weight: 500;
}
.xh-home-btn:hover {
    background-color: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
}

.xh-home-btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.4rem;
    background-color: transparent;
    color: var(--theme-color);
    border-radius: 30px;
    font-size: var(--f16);
    transition: all 0.3s ease;
    border: 2px solid var(--theme-color);
    font-weight: 500;
}
.xh-home-btn-outline-dark:hover {
    background-color: var(--theme-color);
    color: #fff;
}

.xh-home-btn-orange {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.5rem;
    background-color: var(--sec-theme-color);
    color: #fff;
    border-radius: 30px;
    font-size: var(--f18);
    transition: all 0.3s ease;
    border: 2px solid var(--sec-theme-color);
}
.xh-home-btn-orange:hover {
    background-color: #fff;
    color: var(--sec-theme-color);
}

/* ==========================================================================
   Swiper Pagination Customization (轮播图分页定制)
   ========================================================================== */
.swiper-pagination-bullet {
    width: 12px;
    height: 6px;
    background-color: #ccc;
    opacity: 0.6;
    border-radius: 3px;
    transition: all 0.3s ease;
}
.swiper-pagination-bullet-active {
    background-color: var(--theme-color);
    width: 30px;
    opacity: 1;
}

/* ==========================================================================
   Sections Specific Styles (各板块具体样式)
   ========================================================================== */

/* Header */
.xh-home-header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
.xh-home-header .c-nav > li .c-title-box {
    font-family: var(--font-poppins);
    font-weight: 500;
}

/* Hero Section */
.xh-home-hero .trust-bar {
    border-top-color: #e0e0e0;
}

/* Products */
.xh-home-products .item {
    border-color: #f0f0f0;
}
.xh-home-products .item:hover {
    border-color: var(--theme-color);
}

/* Applications */
.xh-home-apps .app-item {
    border-color: transparent;
}
.xh-home-apps .app-item.active {
    border-color: var(--theme-color);
}

/* About / Strength */
.xh-home-about .border-left-blue {
    transition: all 0.3s ease;
}
.xh-home-about .border-left-blue:hover {
    background-color: var(--theme-color);
}
.xh-home-about .border-left-blue:hover .f30,
.xh-home-about .border-left-blue:hover .f16 {
    color: #fff;
}

/* Service & Support */
.xh-home-support .icon-box {
    transition: all 0.3s ease;
}
.xh-home-support .w25:hover .icon-box {
    background-color: var(--theme-color);
    transform: scale(1.1);
}
.xh-home-support .w25:hover .icon-box svg {
    color: #fff;
}

/* News */
.xh-home-news .item {
    border-color: #f0f0f0;
}
.xh-home-news .item:hover {
    border-color: var(--theme-color);
}

/* Footer */
.xh-home-footer .social-icon {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 4px;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}
.xh-home-footer .social-icon:hover {
    background-color: var(--sec-theme-color);
    transform: translateY(-3px);
}

/* ==========================================================================
   Application Solutions V2 (行业应用 V2)
   ========================================================================== */
.letter-spacing-1 { letter-spacing: 1px; }
.opacity-8 { opacity: 0.8; }
.w80 { width: 80%; }

.xh-app-v2 .app-item {
    position: relative;
    border: 1px solid transparent;
    background-color: transparent;
}

/* 左侧橙色指示条 */
.xh-app-v2 .app-item::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background-color: var(--sec-theme-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 4px 4px 0;
    opacity: 0;
}

/* 图标容器基础样式 (未激活) */
.xh-app-v2 .icon-wrap {
    width: 0.5rem;
    height: 0.5rem;
    min-width: 0.5rem;
    background-color: transparent;
    color: #999;
}

/* 激活或悬停状态 */
.xh-app-v2 .app-item:hover,
.xh-app-v2 .app-item.active {
    background-color: #fff;
    border-color: #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.xh-app-v2 .app-item.active::before {
    height: 60%;
    opacity: 1;
}

/* 激活状态的文字颜色 */
.xh-app-v2 .app-item.active h4 {
    color: var(--theme-color);
}

/* 激活状态的图标毛玻璃效果 */
.xh-app-v2 .app-item.active .icon-wrap {
    background: rgba(227, 106, 5, 0.12); /* 橙色透明底 */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--sec-theme-color);
    box-shadow: 0 4px 15px rgba(227, 106, 5, 0.15);
}

/* 右侧图片遮罩渐变 (深蓝到透明) */
.xh-app-v2 .img-overlay {
    background: linear-gradient(to top, rgba(0, 48, 124, 0.95) 0%, rgba(0, 48, 124, 0.6) 50%, rgba(0, 48, 124, 0) 100%);
    height: 60%; /* 遮罩占图片高度的比例 */
}

/* 响应式调整 */
@media screen and (max-width: 1000px) {
    .xh-app-v2 .flex.f-jsb.f-as { flex-direction: column-reverse; gap: 0.4rem; }
    .xh-app-v2 .w35, .xh-app-v2 .w60 { width: 100%; }
    .xh-app-v2 .img-overlay { padding: 0.3rem; height: auto; min-height: 50%; }
    .xh-app-v2 .img-overlay .w80 { width: 100%; }
}

/* ==========================================================================
   Application Solutions V4 (图片底+居下+悬停上移展开 - 修复定位版)
   ========================================================================== */
.opacity-8 { opacity: 0.8; }
.trs4 { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

/* --- 核心定位修复区 开始 --- */
/* 背景图绝对定位在最底层 */
.xh-app-v4-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* 全局黑色渐变遮罩，确保白色文字可见 */
.xh-app-v4-global-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
    pointer-events: none;
    z-index: 1;
}

/* 内容主容器层级提升 */
.xh-app-v4-inner {
    z-index: 2;
}

/* 悬停时的深蓝色遮罩 (NENA 品牌蓝) */
.xh-app-v4-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	background: rgb(var(--theme-color-rgb), 0.75);
	/* background-color: rgba(0, 0, 0, 0.75); */
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* 每一列的文字内容区绝对定位在底部 */
.xh-app-v4-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}
.xh-app-v4-content .xh-icon{
	width: auto;
	height: auto;
}
.xh-app-v4-content .xh-icon img{
	width: 0.64rem;
}
/* --- 核心定位修复区 结束 --- */


/* 列分割线 */
.xh-app-v4-item {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.xh-app-v4-item:last-child {
    border-right: none;
}

/* 悬停时遮罩显示 */
.xh-app-v4-item:hover .xh-app-v4-overlay,
.xh-app-v4-item.active .xh-app-v4-overlay {
    opacity: 1;
}

.xh-app-v4-box{
	height: 8rem;
}

/* 隐藏的描述区 (核心动画逻辑)
   默认 max-height 为 0，当悬停时 max-height 变大。
   因为父级 .xh-app-v4-content 是 bottom: 0，
   所以展开时会自动把上面的标题和图标向上推！ */
.xh-app-v4-desc-box {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}
.xh-app-v4-item:hover .xh-app-v4-desc-box,
.xh-app-v4-item.active .xh-app-v4-desc-box {
    max-height: 200px; /* 足够容纳文字和按钮的高度 */
    opacity: 1;
    margin-top: 10px;
}

/* 底部箭头按钮 */
.xh-app-v4-arrow {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
}
.xh-app-v4-item:hover .xh-app-v4-arrow,
.xh-app-v4-item.active .xh-app-v4-arrow {
    background-color: var(--sec-theme-color); /* 悬停变橙色 */
    border-color: var(--sec-theme-color);
}

/* 响应式适配 */
@media screen and (max-width: 1000px) {
    .xh-app-v4-box {
        height: auto !important;
    }
    .xh-app-v4-box .flex.f-jsb.hmax {
        flex-direction: column;
    }
    .xh-app-v4-item {
        width: 100%;
        height: 250px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    .xh-app-v4-item:last-child {
        border-bottom: none;
    }
    .xh-app-v4-content {
        padding: 0.3rem;
    }
    /* 移动端默认展开描述 */
    .xh-app-v4-desc-box {
        max-height: 200px;
        opacity: 1;
        margin-top: 10px;
    }
    .xh-app-v4-overlay {
        opacity: 0.6; /* 移动端默认给一点遮罩保证文字可读 */
    }
}

/* ==========================================================================
   Service & Support V2 (极简左对齐卡片版)
   ========================================================================== */

/* 标题左侧的蓝色粗线条 */
.xh-support-v2-line {
    width: 6px;
    height: 36px;
}

/* 卡片基础样式 */
.xh-support-v2-card {
    border-color: #eaeaea;
}

/* 悬停效果 */
.xh-support-v2-card:hover {
    border-color: var(--theme-color);
    box-shadow: 0 15px 40px rgba(0, 48, 124, 0.08); /* 偏蓝色的柔和阴影 */
}

/* 悬停时标题变色 */
.xh-support-v2-card:hover h3 {
    color: var(--theme-color);
}

/* 悬停时链接变橙色并带下划线效果 */
.xh-support-v2-card:hover .xh-support-v2-link {
    color: var(--sec-theme-color);
}
.xh-support-v2-card:hover .xh-support-v2-link svg {
    transform: translateX(5px); /* 箭头向右微动 */
}

/* 图标容器大小 */
.xh-support-v2-card .icon-wrap {
    width: 60px;
    height: 60px;
}

/* ==========================================================================
   Service & Support V2 (极简左对齐卡片版 - 4列)
   ========================================================================== */

/* 标题左侧的蓝色粗线条 */
.xh-support-v2-line {
    width: 6px;
    height: 36px;
}

/* 确保 flex-1 在 gap 存在时均分宽度 */
.xh-support-v2 .flex-1 {
    flex: 1;
    min-width: 0; /* 防止内容撑破 flex 容器 */
}

/* 卡片基础样式 */
.xh-support-v2-card {
	-webkit-box-shadow: 0 0 .12rem 0 rgba(30, 80, 229, .1);
	box-shadow: 0 0 .12rem 0 rgba(30, 80, 229, .1);
    /* border-color: #eaeaea; */
}

/* 悬停效果 */
.xh-support-v2-card:hover {
    /* border-color: var(--theme-color); */
    /* box-shadow: 0 15px 40px rgba(0, 48, 124, 0.08); /* 偏蓝色的柔和阴影 */ */

}

/* 悬停时标题变色 */
.xh-support-v2-card:hover h3 {
    color: var(--theme-color);
}

/* 悬停时链接变橙色并带下划线效果 */
.xh-support-v2-card:hover .xh-support-v2-link {
    color: var(--sec-theme-color);
}
.xh-support-v2-card:hover .xh-support-v2-link svg {
    transform: translateX(5px); /* 箭头向右微动 */
}

/* 图标容器大小 (稍微缩小一点以适应4列排版) */
.xh-support-v2-card .icon-wrap {
    width: 70px;
    height: 70px;
}
.xh-support-v2-card .icon-wrap img{
	mix-blend-mode: multiply;
}
/* 响应式适配 */
@media screen and (max-width: 1200px) {
	.xh-support-v2 .flex.f-jsb.f-ast {
	    flex-direction: column;
	}
	.xh-support-v2-card {
	    width: 100%;
	    margin-bottom: 0.3rem;
	}
    .xh-support-v2 .flex.f-jsb.f-ast {
        flex-wrap: wrap;
    }
    .xh-support-v2-card {
        flex: 0 0 calc(50% - 10px); /* 平板端一行 2 个 */
        margin-bottom: 0.2rem;
    }
}

@media screen and (max-width: 768px) {
    .xh-support-v2-card {
        flex: 0 0 100%; /* 手机端一行 1 个 */
        margin-bottom: 0.3rem;
    }
    .xh-support-v2 .w60 {
        width: 100%;
    }
}


/* ==========================================================================
   Latest Blog V2 (悬浮叠层轮播版)
   ========================================================================== */

/* 导航按钮样式 */
.xh-news-prev, .xh-news-next,
.xh-products-prev, .xh-products-next{
    width: 45px;
    height: 45px;
    border-color: #ddd;
    background-color: #fff;
}
.xh-news-prev:hover, .xh-news-next:hover,
.xh-products-prev:hover, .xh-products-next:hover{
    background-color: var(--theme-color);
    border-color: var(--theme-color);
}
.xh-news-prev:hover svg, .xh-news-next:hover svg,
.xh-products-prev:hover svg, .xh-products-next:hover svg{
    color: #fff;
}

/* 卡片整体留出底部空间给悬浮动画 */
.xh-news-card {
    padding-bottom: 0.4rem;
}

/* 图片容器固定高度 */
.xh-news-img-wrap {
}

/* 核心：白色内容框悬浮叠层设计 */
.xh-news-content {
    position: relative;
    z-index: 2;
    margin: -50px 20px 0; /* 向上偏移50px覆盖图片，左右留出20px间距 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* 悬浮日期标签 */
.xh-news-date {
    position: absolute;
    top: -20px;
    left: 30px;
    padding: 12px 15px;
    /* box-shadow: 0 4px 10px rgba(0, 48, 124, 0.2); */
}

/* 鼠标悬停交互动画 */
.xh-news-card:hover .xh-news-img-wrap img {
    transform: scale(1.05); /* 图片微放大 */
}
.xh-news-card:hover .xh-news-content {
    transform: translateY(-8px); /* 内容框整体上浮 */
    box-shadow: 0 15px 40px rgba(0, 48, 124, 0.12); /* 阴影加深并带品牌蓝色调 */
}
.xh-news-card:hover h3 {
    color: var(--theme-color); /* 标题变色 */
}

/* 多行文本截断工具类 (如果您的基础库没有，请务必加上) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 响应式适配 */
@media screen and (max-width: 1000px) {
    .xh-news-v2 .flex.f-jsb.f-ae {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .xh-news-content {
        margin: -30px 10px 0; /* 移动端减小偏移和间距 */
        padding: 20px;
    }
    .xh-news-date {
        left: 20px;
    }
}

.xh-home-cta{
	background: linear-gradient(rgba(0, 45, 110, 0.66), rgba(0, 45, 110, 0.8)), url('../images/cta-bg.jpg') no-repeat center/cover;
}



/* ==========================================================================
   Responsive (响应式适配)
   ========================================================================== */
@media screen and (max-width: 1440px) {
    .xh-home-hero .f54 { font-size: 0.48rem; }
}

@media screen and (max-width: 1000px) {
    /* Layout Resets for Tablet/Mobile */
    /* Hero */
    .xh-home-hero .flex.f-jsb { flex-direction: column-reverse; }
    .xh-home-hero .w50 { width:100%; padding-right: 0; margin-top: 0.4rem; text-align: center; }
    .xh-home-hero .trust-bar { justify-content: center; flex-wrap: wrap; }
    .xh-home-hero .flex.f-js { justify-content: center; }
    
    /* Applications */
    .xh-home-apps .flex.f-jsb { flex-direction: column; }
    .xh-home-apps .w50 { width:100%; margin-bottom: 0.3rem; }
    
    /* About */
    .xh-home-about .flex.f-jsb { flex-direction: column; }
    .xh-home-about .w48 { width:100%; margin-bottom: 0.4rem; }
    
    /* Support */
    .xh-home-support .flex.f-jsb { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
    .xh-home-support .w25 { width: 48%; margin-bottom: 0.2rem; }
    
    /* Footer */
    .xh-home-footer .flex.f-jsb { flex-direction: column; }
    .xh-home-footer .w50.flex.f-jsb { flex-direction: row; flex-wrap: wrap; }
    .xh-home-footer .w30 { width: 48%; margin-bottom: 0.3rem; }
    .xh-home-footer .w25 { padding-right: 0; margin-bottom: 0.4rem; }
}

@media screen and (max-width: 768px) {
    .xh-home-hero .f54 { font-size: 0.38rem; }
    
    .xh-home-about .w48.p20 { width: 100%; margin-bottom: 0.15rem; }
    .xh-home-support .w25 { width: 100%; }
    .xh-home-footer .w30 { width: 100%; }
    
}
