@charset "UTF-8";
/*
Theme Name: flatsome Child
Description: This is a child theme for flatsome Theme
Author: dak
Template: flatsome
Version: 1.0.1
*/

/**
 * ==================== 性能优化说明 ====================
 * 所有CSS文件已通过 functions/script-style.php 使用 wp_enqueue_style 并行加载
 * 原18个 @import 串行加载已优化为并行加载，性能提升5-10倍
 *
 * 加载的CSS文件列表：
 * - diy.css (基础样式)
 * - css/product.css (产品单页)
 * - css/page.css (单页面)
 * - css/single-archive.css (文章存档)
 * - css/single.css (文章单页)
 * - css/block-faq-list.css (折叠卡)
 * - css/plugin.css (插件)
 * - css/font-type.css (字体)
 * - css/header.css (头部)
 * - css/footer.css (底部)
 * - css/block-btn.css (按钮)
 * - css/clean-layout.css (布局/间距/填充/阴影)
 * - css/icon.css (图标)
 * - css/block-breadcrumb.css (面包屑)
 * - css/block-slider.css (轮播)
 * - css/block-lightbox.css (弹窗)
 * - css/block-tabs.css (切换卡)
 * - css/block-UX.css (UX编辑器，条件加载)
 * ===================================================
 */
 
 .certificates-list .swiper-slide{
    width: 80px !important;
 }
 
 /*pc 隐藏多余分类页间距*/
 
 @media (min-width: 851px) {
 .page-title-inner {
     display: none;
 }
}

 /* ==========================================================================
WooCommerce Product Categories Sidebar - Clean B2B Style
不改 HTML，只优化 Flatsome 产品分类侧边栏
========================================================================== */

/* 整个产品分类 widget：去掉多余卡片感 */
aside.widget_product_categories {
  margin: 0 0 28px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* 标题 */
aside.widget_product_categories .widget-title.shop-sidebar {
  display: block;
  margin: 0 0 18px;
  color: #07142f;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* 标题下面的小线 */
aside.widget_product_categories .is-divider {
  width: 42px;
  height: 3px;
  margin: -8px 0 18px;
  background: #cea04c;
  border-radius: 99px;
}

/* 一级分类容器 */
aside.widget_product_categories ul.product-categories {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* 一级分类项 */
aside.widget_product_categories ul.product-categories > li {
  position: relative;
  margin: 0;
  padding: 0;

}

/* 一级分类链接 */
aside.widget_product_categories ul.product-categories > li > a {
  display: block;
  padding: 15px 42px 15px 0;
  color: #07142f;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  transition: color .18s ease, padding-left .18s ease;
}

aside.widget_product_categories ul.product-categories > li > a:hover {
  color: #b9872f;
  padding-left: 4px;
}

/* 当前一级分类 */
aside.widget_product_categories ul.product-categories > li.current-cat > a,
aside.widget_product_categories ul.product-categories > li.current-cat-parent > a,
aside.widget_product_categories ul.product-categories > li.active > a {
  color: #b9872f;
}

/* 展开按钮：去掉大圆球，改成轻量按钮 */
aside.widget_product_categories ul.product-categories > li.cat-parent > button.toggle {
  position: absolute;
  top: 9px;
  right: 0;
  width: 30px;
  height: 30px;
  min-height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8b93a3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}

aside.widget_product_categories ul.product-categories > li.cat-parent > button.toggle:hover {
  background: #f7f4ee;
  color: #b9872f;
}

aside.widget_product_categories ul.product-categories > li.cat-parent > button.toggle i {
  font-size: 15px;
  line-height: 1;
}

/* 当前展开按钮 */
aside.widget_product_categories ul.product-categories > li.active > button.toggle,
aside.widget_product_categories ul.product-categories > li.current-cat > button.toggle,
aside.widget_product_categories ul.product-categories > li.current-cat-parent > button.toggle {
  color: #b9872f;
}

/* 子分类列表：清爽缩进，不做大色块 */
aside.widget_product_categories ul.product-categories > li > ul.children {
  margin: -3px 0 14px;
  padding: 0 0 0 14px;
  list-style: none;
  border-left: 1px solid rgba(206, 160, 76, 0.45);
}

/* 子分类项 */
aside.widget_product_categories ul.product-categories > li > ul.children > li {
  position: relative;
  margin: 0;
  padding: 0;
}

/* 子分类前面的短线 */
aside.widget_product_categories ul.product-categories > li > ul.children > li::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 17px;
  width: 8px;
  height: 1px;
  background: rgba(206, 160, 76, 0.75);
}

/* 子分类链接 */
aside.widget_product_categories ul.product-categories > li > ul.children > li > a {
  display: block;
  padding: 8px 0 8px 12px;
  color: #30394b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  border-radius: 6px;
  transition: color .18s ease, background .18s ease, padding-left .18s ease;
}

aside.widget_product_categories ul.product-categories > li > ul.children > li > a:hover {
  color: #b9872f;
  background: rgba(206, 160, 76, 0.07);
  padding-left: 16px;
}

/* 当前子分类 */
aside.widget_product_categories ul.product-categories > li > ul.children > li.current-cat > a,
aside.widget_product_categories ul.product-categories > li > ul.children > li.active > a {
  color: #b9872f;
  background: rgba(206, 160, 76, 0.08);
  font-weight: 650;
}

/* 如果开启数量 */
aside.widget_product_categories .count {
  margin-left: 5px;
  color: #9aa1ad;
  font-size: 12px;
  font-weight: 500;
}

/* 搜索框顺带统一一下，不改变结构 */
.shop-sidebar .widget_search,
.widget_product_search {
  margin-bottom: 24px;
}

.widget_product_search form,
.widget_search form {
  display: flex;
  align-items: stretch;
}

.widget_product_search input[type="search"],
.widget_search input[type="search"] {
  height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-right: 0;
  box-shadow: none;
  font-size: 15px;
}

.widget_product_search button,
.widget_search button {
  height: 44px;
  min-height: 44px;
  background: #07142f;
  color: #fff;
  border: 0;
}

/* 移动端 / 窄侧栏 */
@media (max-width: 849px) {
  aside.widget_product_categories .widget-title.shop-sidebar {
    font-size: 18px;
  }

  aside.widget_product_categories ul.product-categories > li > a {
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 15px;
  }

  aside.widget_product_categories ul.product-categories > li > ul.children > li > a {
    font-size: 13.5px;
  }
}

/* ==========================================================================
WooCommerce Product Search Widget
高级圆角风格，仅优化产品搜索框
========================================================================== */

aside.widget_product_search {
  margin: 0 0 24px;
}

aside.widget_product_search form.searchform {
  margin: 0;
}

aside.widget_product_search .flex-row.relative {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

aside.widget_product_search .flex-row.relative:focus-within {
  border-color: rgba(185, 135, 47, 0.45);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

/* 输入框区域 */
aside.widget_product_search .flex-col.flex-grow {
  flex: 1 1 auto;
  min-width: 0;
}

aside.widget_product_search input.search-field {
  height: 42px;
  margin: 0 !important;
  padding: 0 18px;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
  color: #07142f;
  font-size: 15px;
  line-height: 42px;
}

aside.widget_product_search input.search-field::placeholder {
  color: #8b93a3;
  opacity: 1;
}

aside.widget_product_search input.search-field:focus {
  background: transparent;
}

/* 按钮区域 */
aside.widget_product_search .flex-col:last-child {
  flex: 0 0 auto;
}

aside.widget_product_search .submit-button {
  width: 56px;
  height: 42px;
  min-height: 42px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 0 !important;
  background: var(--fs-color-secondary) !important;
  color: #fff !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}

aside.widget_product_search .submit-button:hover {
  background: var(--fs-color-secondary) !important;
  color: #fff !important;
}

aside.widget_product_search .submit-button:active {
  transform: scale(0.98);
}

aside.widget_product_search .submit-button i {
  font-size: 20px;
  line-height: 1;
  color: #fff !important;
}

/* 下拉实时搜索结果，如果启用 */
aside.widget_product_search .live-search-results {
  margin-top: 8px;
}

aside.widget_product_search .autocomplete-suggestions {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

/* 手机端 */
@media (max-width: 849px) {
  aside.widget_product_search .flex-row.relative {
    border-radius: 12px;
  }

  aside.widget_product_search input.search-field {
    height: 48px;
    padding: 0 16px;
    font-size: 14px;
    line-height: 48px;
  }

  aside.widget_product_search .submit-button {
    width: 52px;
    height: 48px;
    min-height: 48px;
  }

  aside.widget_product_search .submit-button i {
    font-size: 18px;
  }
}


/* ==========================================================================
Mobile Product Card Title - Max 2 Lines
手机端产品卡片标题最多显示 2 行
========================================================================== */

@media (max-width: 549px) {
  body.woocommerce .products .product-small .box-text-products {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 10px;
    padding-bottom: 8px;
  }

  body.woocommerce .products .product-small .title-wrapper {
    height: auto !important;
    min-height: 0 !important;
  }

  body.woocommerce .products .product-small .product-title,
  body.woocommerce .products .product-small .woocommerce-loop-product__title {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    line-height: 1.35;
  }

  body.woocommerce .products .product-small .product-title a,
  body.woocommerce .products .product-small .woocommerce-loop-product__title a {
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
    text-overflow: ellipsis;
    max-height: 3.7em;
    color: inherit;
    line-height: 1.35;
  }

  body.woocommerce .products .product-small .price-wrapper {
    height: auto !important;
    min-height: 0 !important;
  }
}

/*常见帮助字体优化*/
.faq-list-3 .is-large {
    font-size: 1em;
}
/* ==================== Big Title 辅助色：宽度优化版 ==================== */

.big-title h1,
.big-title h2,
.big-title h3 {
    position: relative;
    display: inline-block;
    z-index: 1;
    isolation: isolate;
}

/* 默认：左对齐标题，左侧色块 */
.big-title h1::before,
.big-title h2::before,
.big-title h3::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 52%;
    width: 13px;
    height: 64%;
    background: #cea04c42;
    transform: translateY(-50%) skewX(-8deg);
    z-index: -1;
}

/* 居中标题：改成底部色条，避免标题视觉跑偏 */
.text-center .big-title h1::before,
.text-center .big-title h2::before,
.text-center .big-title h3::before,
.big-title.text-center h1::before,
.big-title.text-center h2::before,
.big-title.text-center h3::before {
    left: 50%;
    top: auto;
    bottom: 2px;
    width: 86px;
    height: 9px;
    transform: translateX(-50%) skewX(-10deg);
    opacity: 0.9;
}

/* 手机端 */
@media (max-width: 549px) {
    .big-title h1::before,
    .big-title h2::before,
    .big-title h3::before {
        left: -7px;
        width: 10px;
        height: 58%;
    }

    .text-center .big-title h1::before,
    .text-center .big-title h2::before,
    .text-center .big-title h3::before,
    .big-title.text-center h1::before,
    .big-title.text-center h2::before,
    .big-title.text-center h3::before {
        width: 64px;
        height: 7px;
        bottom: 1px;
    }
}



/*关注*/
/* 只改 Flatsome 社交图标背景色，不改布局 */
.follow-icons.social-icons a.icon.button.circle.facebook {
  background: #1877f2 !important;
  color: #fff !important;
}

.follow-icons.social-icons a.icon.button.circle.instagram {
  background: linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%) !important;
  color: #fff !important;
}

.follow-icons.social-icons a.icon.button.circle.tiktok{
    background-color: #000 !important;
}

.follow-icons.social-icons a.icon.button.circle.whatsapp {
  background: #25d366 !important;
  color: #fff !important;
}

.follow-icons.social-icons a.icon.button.circle i {
  color: #fff !important;
}