/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
html {
    /* 基础方案：1920 屏幕下 1rem = 16px */
    font-size: calc(100vw / 120); 
  }

  
  /* 针对笔记本或小屏（如 1440, 1366） */
  @media screen and (max-width: 1600px) {
    html {
      /* 这里的 13.33px 是按比例缩小的结果 (1600/120) */
      font-size: calc(100vw / 120); 
    }
  }
  
  /* 手机端：clamp 避免窄屏根字号过小；可按观感调 min / max / 除数 */
  @media screen and (max-width: 767px) {
    html {
      /* 除数 25：约 375 宽时 1rem≈15px；上限 15px；下限 11px 防过小机型 */
      font-size: clamp(11px, calc(100vw / 25), 15px);
    }
    main{overflow-x: hidden;}
  }
.cx-product-carousel .swiper-slide:hover .elementor-heading-title{
    color: #fff;
}
.cx-product-carousel .swiper-slide:hover img{
    opacity: 0;
}
.cx-about-num{
    font-weight: 800;
    background: var(--111, linear-gradient(180deg, #0269DA 27.02%, #000 100%));
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.cx-spec table{
    border: none;
    margin-bottom: 0;
}
.cx-spec table tbody>tr:nth-child(odd), .cx-spec table tbody>tr:nth-child(odd)>td, .cx-spec table tbody>tr:nth-child(odd)>th{
    border-top: 1px solid #D9E8FF;
    background: #F4F7FD;
}
.cx-spec table tbody>tr:nth-child(even)>td, .cx-spec table tbody>tr:nth-child(even)>th{
    background: #fff;
}
.cx-spec table tbody>tr td{
    border:none;
    color: #666;
    line-height: 2;
    font-size: 1.25rem;
    width: auto!important;
    display: inline-block;
}
.cx-spec table tbody>tr td:first-child{
    color: #000;
    padding-left: 2rem;
}
@media screen and (max-width: 767px) {
    .cx-spec table tbody>tr td{
        font-size: 1rem;
    }
}
/* FAQ 列表（全部展开，仅标题+副标题） */
.cx-faq-list {
    background: #fff;
    width: 100%;
}
.cx-faq-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}
.cx-faq-item:last-child {
    border-bottom: none;
}
.cx-faq-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.cx-faq-subtitle {
    color: #666;
    padding-left: 1.5rem;
    line-height: 1.6;
}
.cx-faq-label {
    color: #0269DA;
    font-weight: 600;
    margin-right: 0.25em;
}

/* 产品资料下载列表（产品详情页小部件） */
.cx-product-downloads {
    list-style: disc;
    padding-left: 1.25em;
    margin: 0 0 1em;
}
.cx-product-downloads--empty {
    color: #666;
    font-size: 0.95em;
    margin: 0;
}
.cx-product-download-item {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 0.5em;
}
.cx-product-download-item:last-child {
    margin-bottom: 0;
}
.cx-product-downloads .cx-download-link {
    text-decoration: underline;
    flex: 1;
}
.cx-product-downloads .cx-download-link:hover {
    text-decoration: underline;
}
.cx-product-downloads .cx-download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    font-size: 1em;
    font-weight: 600;
    line-height: 1;
    flex-shrink: 0;
    color: #0269DA;
    background-color: #E6F0FC;
    box-shadow: 0 0 0 1px rgba(2, 105, 218, 0.06);
}

/* 产品相册轮播（主图 + 缩略图 + 左右箭头） */
.cx-product-gallery-carousel {
    width: 100%;
}
.cx-product-gallery-carousel.cx-gallery-empty {
    color: #666;
    padding: 1rem 0;
    font-size: 0.95em;
}
.cx-gallery-main-wrap {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    width: 100%;
}
.cx-gallery-main-wrap img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}
.cx-gallery-thumbs-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.cx-gallery-prev,
.cx-gallery-next {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: #0269DA;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, border-color 0.2s;
}
button.cx-gallery-prev:hover,
button.cx-gallery-next:hover {
    color: #1e3a5f;
    border: none;
    background: none;
}
.cx-gallery-thumbs-inner {
    flex: 1;
    min-width: 0;
    width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 0;
    -webkit-overflow-scrolling: touch;
    --thumb-count: 4;
    --thumb-gap: 8px;
}
.cx-gallery-thumbs-inner::-webkit-scrollbar {
    height: 6px;
}
.cx-gallery-thumbs-inner::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
button.cx-gallery-thumb {
    flex: 0 0 calc((100% - (var(--thumb-count) - 1) * var(--thumb-gap)) / var(--thumb-count));
    width: calc((100% - (var(--thumb-count) - 1) * var(--thumb-gap)) / var(--thumb-count));
    min-width: 0;
    aspect-ratio: 1;
    padding: 12px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    display: block;
    transition: box-shadow 0.2s;
}
button.cx-gallery-thumb:hover,button.cx-gallery-thumb:focus,button.cx-gallery-thumb:active {
    border: 2px solid #0269DA;
    background: #fff;
}
.cx-gallery-thumb.is-active {
    border: 2px solid #0269DA;
}
.cx-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 产品分类 - 顶部 Banner（100% 宽，高度自适应） */
.cx-product-category-banner {
	width: 100%;
	line-height: 0;
}
.cx-product-category-banner img {
	width: 100%;
	height: auto;
	display: block;
	vertical-align: top;
}
.cx-product-category-main {
	width: 100%;
	margin: 0;
	padding: 40px 0;
}
.cx-product-category-inner {
	width: 84%;
	margin: 0 auto;
}

/* 覆盖主题对 .site-main 的 1140px 限宽：产品/案例/新闻归档与分类全宽 */
body.tax-product_category .site-main,
body.post-type-archive-products .site-main,
body.tax-case_category .site-main,
body.category .site-main {
	max-width: none;
	width: 100%;
	padding: 0;
}

/* 产品分类菜单（短代码 [product_category_menu]） */
.cx-term-menu {
	width: 100%;
	margin: 1rem 0 0;
}
.cx-term-menu-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.cx-term-menu-item a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1rem;
	border-radius: 999px;
	border: 1px solid #d9e8ff;
	background: #fff;
	color: #1a1a1a;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.cx-term-menu-item a:hover {
	border-color: #0269DA;
	color: #0269DA;
	box-shadow: 0 6px 18px rgba(2, 105, 218, 0.12);
	transform: translateY(-1px);
}
.cx-term-menu-item.is-active a {
	border-color: #0269DA;
	background: #0269DA;
	color: #fff;
	box-shadow: 0 8px 24px rgba(2, 105, 218, 0.18);
}
.cx-term-menu-item.is-active a:hover {
	color: #fff;
}

/* 图标搜索弹窗（Elementor 小部件：图标搜索弹窗） */
.cx-icon-search__btn{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:40px;
	height:40px;
	border:none;
	background:transparent;
	color:inherit;
	padding:0;
	cursor:pointer;
    line-height: 1;
	border-radius:999px;
	transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.cx-icon-search__btn svg{
    width: 1.4rem;
    height: 1.4rem;
}
.cx-icon-search__btn:hover{
	background: rgba(2,105,218,.10);
	color:#0269DA;
	box-shadow: 0 6px 18px rgba(2,105,218,.10);
}
.cx-icon-search__modal{
	position:fixed;
	inset:0;
	z-index:9999;
	display:none;
}
.cx-icon-search__modal.is-open{display:block;}
.cx-icon-search__backdrop{
	position:absolute;
	inset:0;
	background:rgba(0,0,0,.55);
}
.cx-icon-search__panel{
	position:relative;
	max-width:720px;
	margin:10vh auto 0;
	background:#fff;
	border-radius:16px;
	padding:22px 22px 18px;
	box-shadow: 0 24px 80px rgba(0,0,0,.25);
}
.cx-icon-search__close{
	position:absolute;
	top:10px;
	right:12px;
	width:36px;
	height:36px;
	border:none;
	background:transparent;
	font-size:26px;
	line-height:1;
	cursor:pointer;
	color:#333;
	border-radius:10px;
}
.cx-icon-search__close:hover{background:#f2f4f7;}
.cx-icon-search__label{
	display:block;
	font-weight:700;
	margin:0 0 10px;
	color:#1a1a1a;
}
.cx-icon-search__row{
	display:flex;
	gap:10px;
}
.cx-icon-search__input{
	flex:1;
	min-width:0;
	height:46px;
	padding:0 14px;
	border-radius:12px;
	border:1px solid #d9e8ff;
	outline:none;
}
.cx-icon-search__input:focus{
	border-color:#0269DA;
	box-shadow: 0 0 0 3px rgba(2,105,218,.14);
}
.cx-icon-search__submit{
	height:46px;
	padding:0 16px;
	border-radius:12px;
	border:1px solid #0269DA;
	background:#0269DA;
	color:#fff;
	font-weight:700;
	cursor:pointer;
	white-space:nowrap;
}
.cx-icon-search__submit:hover{filter:brightness(.95);}
html.cx-modal-open{overflow:hidden;}
.cx-product-category-header {
    margin-bottom: 1.5em;
}

/* 产品分类列表 - 卡片样式，PC 一行 4 个 */
.cx-product-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 1024px) {
    .cx-product-category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 600px) {
    .cx-product-category-grid {
        grid-template-columns: 1fr;
    }
}
.cx-product-card {
    margin: 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.cx-product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}
.cx-product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.cx-product-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f4f7fd;
}
.cx-product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.cx-product-card:hover .cx-product-card-image img {
    transform: scale(1.05);
}
.cx-product-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}
.cx-product-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
}
.cx-product-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    transition: color 0.2s;
}
.cx-product-card-link:hover .cx-product-card-title {
    color: #0269DA;
}
.cx-product-card-more {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0269DA;
    transition: transform 0.2s;
}
.cx-product-card-link:hover .cx-product-card-more {
    transform: translateX(4px);
}

/* ========== 通用：大气风格容器与 Hero ========== */
.cx-container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.cx-page-hero {
    padding: 4rem 0 3rem;
    text-align: center;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid #eee;
}
.cx-page-hero-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}
.cx-page-hero-desc {
    margin: 0;
    font-size: 1.05rem;
    color: #666;
}
.cx-archive-content {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}
.cx-no-posts {
    text-align: center;
    color: #666;
    padding: 3rem 0;
}

/* ========== 文章列表 - 卡片网格 ========== */
.cx-post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 768px) {
    .cx-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .cx-post-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem 1.75rem;
    }
}
.cx-post-card {
    margin: 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.cx-post-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}
.cx-post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.cx-post-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f4f8;
}
.cx-post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.cx-post-card:hover .cx-post-card-image img {
    transform: scale(1.05);
}
.cx-post-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}
.cx-post-card-body {
    padding: 1.5rem 1.5rem 1.75rem;
}
.cx-post-card-date {
    display: block;
    font-size: 0.85rem;
    color: #0269DA;
    margin-bottom: 0.5rem;
}
.cx-post-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    transition: color 0.2s;
}
.cx-post-card-link:hover .cx-post-card-title {
    color: #0269DA;
}
.cx-post-card-excerpt {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.55;
}
.cx-post-card-more {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0269DA;
    transition: transform 0.2s;
}
.cx-post-card-link:hover .cx-post-card-more {
    transform: translateX(4px);
}

/* ========== 文章详情 / 案例详情 ========== */
.cx-single-post .cx-article-header,
.cx-single-case .cx-article-header {
    padding: 3rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.cx-article-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}
.cx-article-meta {
    font-size: 0.95rem;
    color: #666;
}
.cx-meta-sep {
    margin: 0 0.35em;
}
.cx-article-meta a {
    color: #0269DA;
    text-decoration: none;
}
.cx-article-meta a:hover {
    text-decoration: underline;
}
.cx-article-featured {
    width: 100%;
    margin: 0 0 2rem;
    line-height: 0;
    background: #f5f5f5;
}
.cx-article-featured img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}
.cx-article-body {
    padding-top: 0;
    padding-bottom: 3rem;
}
.cx-article-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #333;
}
.cx-article-content p {
    margin: 0 0 1.25em;
}
.cx-article-content h2 {
    margin: 2em 0 0.75em;
    font-size: 1.35rem;
    font-weight: 600;
    color: #1a1a1a;
}
.cx-article-content h3 {
    margin: 1.5em 0 0.5em;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a1a;
}
.cx-article-content ul,
.cx-article-content ol {
    margin: 0 0 1.25em;
    padding-left: 1.5em;
}
.cx-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.cx-article-content .page-links {
    margin-top: 2rem;
    font-size: 0.95rem;
}

/* ========== 案例列表 - 卡片网格（PC 一行 4 个） ========== */
.cx-case-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 600px) {
    .cx-case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .cx-case-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem 1.5rem;
    }
}
.cx-case-card {
    margin: 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.cx-case-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}
.cx-case-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.cx-case-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f4f8;
}
.cx-case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.cx-case-card:hover .cx-case-card-image img {
    transform: scale(1.05);
}
.cx-case-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}
.cx-case-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
}
.cx-case-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    transition: color 0.2s;
}
.cx-case-card-link:hover .cx-case-card-title {
    color: #0269DA;
}
.cx-case-card-excerpt {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}
.cx-case-card-more {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0269DA;
    transition: transform 0.2s;
}
.cx-case-card-link:hover .cx-case-card-more {
    transform: translateX(4px);
}

/* 归档分页统一样式 */
.cx-blog-archive .nav-links,
.cx-cases-archive .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}
.cx-blog-archive .page-numbers,
.cx-cases-archive .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    font-size: 0.95rem;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cx-blog-archive .page-numbers:hover,
.cx-cases-archive .page-numbers:hover,
.cx-blog-archive .page-numbers.current,
.cx-cases-archive .page-numbers.current {
    border-color: #0269DA;
    color: #0269DA;
}
.cx-blog-archive .page-numbers.current,
.cx-cases-archive .page-numbers.current {
    background: #f0f7ff;
}

.cx-footer {
    background: linear-gradient(
        180deg, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.9) 50%,
        #FFFFFF 100%
    ), 
    url(images/footer-bg.jpg) no-repeat center / cover;
}
.cx-contact-form{
    background: url(images/contact-bg.png) no-repeat;
    background-position: right bottom;
    background-size: 20rem;
}
.elementor-field-textual.elementor-size-lg{
    min-height: 2rem;
    padding: .8rem 1rem;
}
.cx-brand-promises .elementor-image-box-img img,.cx-tuwen .elementor-image-box-img img{
    width: 100%;
}
.cx-header-nav .elementor-image-box-img{
    overflow: hidden;
    display: flex;
    justify-content: center;
}
.cx-gallery .gallery-item img{
    width: 100%;
}
@media (max-width: 479px) {
    .elementor-image-gallery .gallery.gallery-columns-2 .gallery-item{
        max-width: 50%;
    }
}