/*
Theme Name: Twenty Twenty-Four Child
Theme URI: https://hifinefilter.com/
Template: twentytwentyfour
Author: Your Name
Author URI: https://hifinefilter.com/
Description: Child theme for Twenty Twenty-Four, custom WooCommerce B2B site
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfour-child
*/


/*header*/
.custom-b2b-header *,
.search-modal-wrapper *,
.mobile-drawer-wrapper *,
.mobile-bottom-nav * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.custom-b2b-header {
    position: fixed ; 
    top: 0 ;        
    left: 0;
    width: 100%;
    z-index: 99999; 
    background-color: #ffffff;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    height: 90px;
    padding: 0 40px;
}

.header-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-width: 120px;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    max-height: 46px;
    width: auto;
    transition: filter 0.3s ease;
}

.header-center {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-item {
    height: 90px;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-link {
    text-decoration: none;
    font-size: 15.5px;
    font-weight: 500;
    color: #111111;
    white-space: nowrap;
    cursor: default;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-item:first-child .nav-link,
.nav-item:nth-last-child(2) .nav-link {
    cursor: pointer;
}

.nav-link[href="#"] {
    cursor: default;
}

.nav-link[href="#"]:hover {
    color: inherit;
}

.sales-btn {
    background-color: #7cbd43;
    color: #fff;
    padding: 9px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.sales-btn:hover {
    background-color: #68a83a;
    color: #fff;
}

.custom-b2b-header:hover {
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #eaeaea;
}

.custom-b2b-header:hover .site-logo img {
    filter: invert(1);
}

.custom-b2b-header:hover .nav-link {
    color: #001529;
}

.custom-b2b-header:hover .nav-link:hover {
    color: #7cbd43;
    border-bottom-color: #7cbd43;
}

.custom-b2b-header:hover .icon-btn {
    color: #001529;
}

.custom-b2b-header:hover .icon-btn:hover {
    color: #7cbd43;
}

.custom-b2b-header:hover .sales-btn {
    background-color: #7cbd43;
    color: #fff;
}

.custom-b2b-header:hover .user-dropdown-trigger {
    color: #001529;
}

.custom-b2b-header.sticky {
    background-color: #f9f9f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #eaeaea;
}

.custom-b2b-header.sticky .site-logo img {
    filter: invert(1);
}

.custom-b2b-header.sticky .nav-link {
    color: #001529;
}

.custom-b2b-header.sticky .nav-link:hover {
    color: #7cbd43;
    border-bottom-color: #7cbd43;
}

.custom-b2b-header.sticky .icon-btn {
    color: #001529;
}

.custom-b2b-header.sticky .icon-btn:hover {
    color: #7cbd43;
}

.custom-b2b-header.sticky .sales-btn {
    background-color: #7cbd43;
    color: #fff;
}

.custom-b2b-header.sticky .user-dropdown-trigger {
    color: #001529;
}

.action-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #001529;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    padding: 0;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-icon {
    display: block;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    pointer-events: none;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    flex-shrink: 0;
}

.icon-user {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.icon-search {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

.icon-menu {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E");
}

.icon-close {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

.icon-arrow-down {
    width: 14px;
    height: 14px;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    transition: transform 0.3s ease;
}

.icon-chevron-down {
    width: 12px;
    height: 12px;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    flex-shrink: 0;
}

.user-dropdown {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #001529;
    padding: 0;
    font-size: 13px;
    white-space: nowrap;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 9999;
    border: 1px solid #eef2f5;
}

.user-dropdown:hover .user-dropdown-menu,
.user-dropdown-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #001529;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: #f4f5f7;
    color: #7cbd43;
}

.dropdown-divider {
    height: 1px;
    background: #eaeaea;
    margin: 6px 0;
}

.mega-menu-dropdown {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background: #f8f9fa;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    display: flex;
    cursor: default;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 9998;
}

.nav-item.has-mega-menu:hover .mega-menu-dropdown {
    opacity: 1;
    visibility: visible;
}

.mega-inner {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 0;
}

.mega-sidebar {
    flex: 0 0 280px;
    width: 280px;
    padding: 32px 0;
    border-right: 1px solid #e0e0e0;
    background: #fff;
}

.mega-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px 12px 20px;
    font-size: 14px;
    color: #2c3e50;
    cursor: pointer;
    font-weight: 500;
    margin: 0;
    transition: all 0.15s;
    border-left: 3px solid transparent;
    background: transparent;
    line-height: 1.4;
}

.mega-tab::after {
    content: '→';
    font-size: 14px;
    color: #bbb;
    transition: all 0.15s;
    flex-shrink: 0;
    margin-left: 8px;
}

.mega-tab:hover,
.mega-tab.active {
    background: #f0f4f8;
    color: #7cbd43;
    border-left-color: #7cbd43;
}

.mega-tab:hover::after,
.mega-tab.active::after {
    color: #7cbd43;
    transform: translateX(3px);
}

.mega-content {
    flex: 1;
    padding: 32px 40px;
    min-width: 0;
    background: #fff;
}

.mega-grid-wrapper {
    display: none;
}

.mega-grid-wrapper.active {
    display: block;
    animation: megaFadeIn 0.25s ease;
}

@keyframes megaFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mega-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #001529;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 999px;
    margin-bottom: 24px;
    transition: background 0.2s;
    white-space: nowrap;
}

.mega-cat-btn:hover {
    background: #002a4a;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.mega-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 16px 16px;
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.mega-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    border-color: #d0d0d0;
    transform: translateY(-2px);
}

.mega-card img {
    width: 100%;
    height: 70px;
    object-fit: contain;
    margin-bottom: 14px;
    display: block;
}

.mega-card h3 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: #1a2a3a;
    line-height: 1.4;
    flex: 1;
}

.view-link {
    font-size: 13px;
    color: #7cbd43;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    transition: gap 0.15s;
}

.mega-card:hover .view-link {
    gap: 7px;
}

.view-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.mega-card-placeholder {
    background: #fafbfc;
    border: 1px dashed #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.placeholder-text {
    color: #999;
    font-size: 13px;
    text-align: center;
}

.nav-item.has-mega-menu {
    position: relative;
}

.nav-item.has-mega-menu .mega-menu-dropdown.multi-col-dropdown {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 720px;
    max-width: 960px;
    background: #fff;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border: 1px solid #eef2f5;
    overflow: hidden;
}

.multi-col-dropdown {
    display: flex;
    gap: 48px;
    padding: 36px 48px;
    white-space: normal;
}

.menu-col {
    flex: 1;
}

.menu-col h4 {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaeaea;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-col ul li {
    margin-bottom: 10px;
}

.menu-col ul li a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    display: block;
    padding: 4px 0;
}

.menu-col ul li a:hover {
    color: #7cbd43;
}

.promo-col {
    flex: 1.2;
    border-radius: 16px;
    padding: 24px;
    margin: -12px 0;
}

.promo-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    border: none;
}

.promo-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    /*border-radius: 12px;*/
    margin-bottom: 20px;
}

.promo-text {
    padding: 0;
}

.promo-text strong {
    display: block;
    font-size: 18px;
    color: #001529;
    margin-bottom: 10px;
    font-weight: 600;
}

.promo-text p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.search-modal-wrapper {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-modal-wrapper.is-open {
    opacity: 1;
    visibility: visible;
}

.search-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 21, 41, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.search-modal-top-panel {
    position: relative;
    z-index: 2;
    background: #fff;
    width: 100%;
    padding: 60px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal-wrapper.is-open .search-modal-top-panel {
    transform: translateY(0);
}

.search-panel-inner {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.search-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.search-header-row h2 {
    font-size: 38px;
    font-weight: 700;
    color: #001529;
    margin: 0;
    letter-spacing: -0.5px;
}

.search-close-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: color 0.2s, transform 0.2s;
}

.search-close-btn svg {
    width: 32px;
    height: 32px;
}

.search-close-btn:hover {
    color: #001529;
    transform: rotate(90deg);
}

.search-tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 24px;
    border-bottom: 1px solid #eaeaea;
}

.search-tab {
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    padding: 0 0 12px 0;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.search-tab:hover {
    color: #7cbd43;
}

.search-tab.active {
    color: #7cbd43;
    font-weight: 600;
}

.search-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #7cbd43;
}

.search-input-row {
    display: flex;
    gap: 16px;
}

.search-input-new {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    color: #001529;
    background: #fff;
    transition: border-color 0.2s;
}

.search-input-new::placeholder {
    color: #999;
}

.search-input-new:focus {
    border-color: #7cbd43;
}

.btn-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #7cbd43;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0 36px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    line-height: 0.45;
}

.btn-search-submit:hover {
    background-color: #68a83a;
}

.search-btn-icon {
    width: 18px;
    height: 18px;
    transform: translateY(1px);
}

@media (max-width: 768px) {
    .search-modal-top-panel {
        padding: 30px 20px;
    }
    .search-header-row h2 {
        font-size: 28px;
    }
    .search-tabs {
        gap: 20px;
    }
    .search-input-row {
        flex-direction: column;
        gap: 12px;
    }
    .btn-search-submit {
        padding: 16px;
    }
}

.mobile-menu-trigger {
    display: none;
}

@media (max-width: 1150px) {
    .header-container {
        padding: 0 20px;
    }
    .header-center {
        display: none;
    }
    .header-right .sales-btn,
    .header-right .user-dropdown {
        display: none;
    }
    .mobile-menu-trigger {
        display: flex;
    }
    .action-icons {
        gap: 16px;
    }
}

.mobile-drawer-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    z-index: 99999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-drawer-wrapper.is-open {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #eaeaea;
    flex-shrink: 0;
    min-height: 64px;
}

.mobile-drawer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.mobile-drawer-logo img {
    max-height: 36px;
    width: auto;
    filter: invert(1);
}

.mobile-drawer-header .icon-btn {
    color: #001529;
}

.mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 24px 100px;
}

.mobile-accordion {
    list-style: none;
    margin: 0;
    padding: 0;
}

.accordion-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.accordion-header-solo {
    padding: 4px 0;
}

.accordion-main-link {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 18px 0;
    font-size: 17px;
    font-weight: 600;
    color: #001529;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
    background: none;
    border: none;
}

.accordion-main-link:hover {
    color: #7cbd43;
}

.accordion-label {
    cursor: default;
}

.accordion-label:hover {
    color: #001529;
}

.accordion-trigger {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 4px;
    color: #001529;
    background: none;
    border: none;
    cursor: pointer;
    border-left: none;
}

.accordion-item.is-active .accordion-trigger .icon-arrow-down {
    transform: rotate(180deg);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding-left: 12px;
}

.accordion-item.is-active .accordion-panel {
    max-height: 900px;
}

.accordion-panel a {
    display: block;
    padding: 13px 0;
    color: #444;
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid #f7f7f7;
    transition: color 0.15s;
}

.accordion-panel a:hover {
    color: #7cbd43;
}

.mobile-cta {
    margin-top: 30px;
    text-align: center;
}

.mobile-cta .sales-btn {
    background: #001529;
    color: #fff;
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 14px;
}

.mobile-user-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.mobile-user-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: #001529;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.mobile-user-link:hover {
    color: #7cbd43;
}


body.has-b2b-header {
    padding-top: 0;
}

body.has-b2b-header.admin-bar {
    padding-top: 32px;
}

body.has-b2b-header .custom-b2b-header {
    top: 0;
}

body.admin-bar .custom-b2b-header {
    top: 32px;
}

body.admin-bar .mega-menu-dropdown {
    top: 122px;
}

body.admin-bar .nav-item.has-mega-menu .mega-menu-dropdown.multi-col-dropdown {
    top: 90px;
}

@media (max-width: 1150px) {
    body.has-b2b-header {
        padding-top: 90px;
    }

    body.has-b2b-header.admin-bar {
        padding-top: 122px;
    }
}

@media (max-width: 782px) {
    body.has-b2b-header.admin-bar {
        padding-top: 78px;
    }

    body.admin-bar .custom-b2b-header {
        top: 46px;
    }

    body.admin-bar .mega-menu-dropdown {
        top: 136px;
    }
}

.custom-b2b-header .nav-list > li:nth-child(3) .mega-menu-dropdown {
    display: flex;
    min-width: 680px;
    max-width: 800px;
    padding: 20px 0 20px 0;
    background: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border: 1px solid #eef2f5;
}

.custom-b2b-header .nav-list > li:nth-child(3) .menu-col:first-child {
    flex: 0 0 200px;
    padding: 0 16px;
}

.custom-b2b-header .nav-list > li:nth-child(3) .menu-col:first-child ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-b2b-header .nav-list > li:nth-child(3) .menu-col:first-child ul li {
    margin: 0;
}

.custom-b2b-header .nav-list > li:nth-child(3) .menu-col:first-child ul li a {
    display: block;
    padding: 10px 16px;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s;
}

.custom-b2b-header .nav-list > li:nth-child(3) .menu-col:first-child ul li a:hover {
    background: #f5f7f9;
    color: #7cbd43;
    text-decoration: none;
}

.custom-b2b-header .nav-list > li:nth-child(3) .menu-col:last-child {
    flex: 1;
    padding: 0 24px 0 16px;
    border-left: 1px solid #eaeaea;
}

.custom-b2b-header .nav-list > li:nth-child(3) .founder-simple {
    display: flex;
    gap: 16px;
}

.custom-b2b-header .nav-list > li:nth-child(3) .founder-avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.custom-b2b-header .nav-list > li:nth-child(3) .founder-content {
    flex: 1;
}

.custom-b2b-header .nav-list > li:nth-child(3) .founder-name {
    font-size: 16px;
    color: #001529;
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.custom-b2b-header .nav-list > li:nth-child(3) .founder-bio {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.custom-b2b-header .nav-list > li:nth-child(3) .founder-bio:last-child {
    margin-bottom: 0;
}

.custom-b2b-header .nav-list > li:nth-child(3) .mega-menu-dropdown a {
    text-decoration: none;
}
/*header*/

/*yoast faq*/
.schema-faq {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.schema-faq-section {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 24px;
    margin-bottom: 20px;
    padding: 24px 32px;
    transition: all 0.25s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.schema-faq-section:hover {
    border-color: #cbd5e1;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.schema-faq-question {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    line-height: 1.4;
}

.schema-faq-question::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    background-color: #3b82f6;
    border-radius: 50%;
}

.schema-faq-answer {
    color: #334155;
    line-height: 1.65;
    font-size: 16px;
    margin: 0;
    padding-left: 28px;
}

.schema-faq-answer p {
    margin: 0 0 12px;
}
.schema-faq-answer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .schema-faq {
        margin: 30px auto;
    }
    .schema-faq-section {
        padding: 18px 22px;
    }
    .schema-faq-question {
        font-size: 17px;
        padding-left: 22px;
    }
    .schema-faq-question::before {
        top: 7px;
        width: 8px;
        height: 8px;
    }
    .schema-faq-answer {
        font-size: 14px;
        padding-left: 22px;
    }
}
/*/yoast faq*/


/*Hifine Inquiry Form*/

.hifine-inquiry-wrap {
    width: 100%;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    position: sticky;
    top: 24px;
    z-index: 99;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.hifine-inquiry-wrap::-webkit-scrollbar { width: 4px; }
.hifine-inquiry-wrap::-webkit-scrollbar-track { background: transparent; }
.hifine-inquiry-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* --- Typography --- */
.hifine-inquiry-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #0f172a;
}

.hf-notice {
    font-size: 0.85rem;
    color: #475569;
    margin: 0 0 20px;
    padding: 10px 14px;
    background: #f0f9ff;
    border-left: 3px solid #0284c7;
    border-radius: 0 4px 4px 0;
    line-height: 1.5;
}
.hf-notice a { color: #0284c7; font-weight: 600; text-decoration: none; }
.hf-notice a:hover { color: #0369a1; text-decoration: underline; }

/* --- Form Fields --- */
.hifine-inquiry-form .hf-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.hifine-inquiry-form label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.hifine-inquiry-form .hf-req { color: #ef4444; margin-left: 2px; }

.hifine-inquiry-form input[type="text"],
.hifine-inquiry-form input[type="email"],
.hifine-inquiry-form input[type="number"],
.hifine-inquiry-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.hifine-inquiry-form input[readonly] {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

.hifine-inquiry-form input:focus:not([readonly]),
.hifine-inquiry-form textarea:focus {
    outline: none;
    border-color: #0284c7;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.hifine-inquiry-form input.hf-error,
.hifine-inquiry-form textarea.hf-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.hifine-inquiry-form textarea { resize: vertical; min-height: 80px; }

/* --- Packaging Trigger --- */
.hf-pkg-trigger-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s;
    cursor: pointer;
}
.hf-pkg-trigger-wrap:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.hf-pkg-summary {
    font-size: 0.9rem;
    color: #475569;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hf-pkg-select-btn {
    padding: 4px 12px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 10px;
}
.hf-pkg-trigger-wrap:hover .hf-pkg-select-btn {
    background: #e2e8f0;
    border-color: #94a3b8;
}

/* --- Submit Button --- */
.hf-submit-wrap { margin-top: 8px; }
.hf-submit-btn {
    width: 100%;
    padding: 14px;
    background: #0284c7;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none !important;
}
.hf-submit-btn:hover:not(:disabled) { background: #0369a1; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(2,132,199,0.3); }
.hf-submit-btn:active:not(:disabled) { transform: translateY(0); box-shadow: none; }
.hf-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.hf-submit-btn:focus { outline: none !important; box-shadow: none !important; }

.hf-form-msg { margin-top: 14px; padding: 12px; border-radius: 6px; font-size: 0.85rem; font-weight: 500; text-align: center; }
.hf-form-msg.hf-msg-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.hf-form-msg.hf-msg-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* --- Modal Overlay --- */
.hf-pkg-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.5); z-index: 9998; }
.hf-pkg-overlay.open { display: block; animation: fadeIn 0.3s ease; }

/* --- Side Panel --- */
.hf-pkg-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    max-width: 96vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.2,0.8,0.2,1);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
.hf-pkg-panel.open { transform: translateX(0); }

.hf-pkg-panel-close {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px;
    background: #f1f5f9; border: none; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer; color: #64748b;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    outline: none !important;
}
.hf-pkg-panel-close:hover { background: #e2e8f0; color: #0284c7; }
.hf-pkg-panel-close:focus { outline: none !important; box-shadow: none !important; }

.hf-pkg-panel-title { font-size: 1.1rem; font-weight: 700; padding: 24px 24px 0; margin: 0 0 12px; color: #0f172a; }
.hf-pkg-panel-label { padding: 0 24px 12px; font-size: 0.8rem; font-weight: 600; color: #64748b; text-transform: uppercase; margin: 0; border-bottom: 1px solid #f1f5f9; }

.hf-pkg-list {
    padding: 0 24px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

.hf-pkg-row {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 8px;
}

.hf-pkg-name-row {
    width: 100%;
}

.hf-pkg-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e293b;
}

.hf-pkg-qty-control {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    border: none;
    background: transparent;
    gap: 4px;
    outline: none !important;
}

.hf-pkg-qty-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    outline: none !important;
    font-size: 1.1rem;
    cursor: pointer;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hf-pkg-qty-btn:hover {
    color: #0284c7;
}
.hf-pkg-qty-btn:focus { outline: none !important; box-shadow: none !important; }

.hf-pkg-qty-input {
    width: 40px;
    height: 32px;
    border: none;
    background: transparent;
    outline: none !important;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a;
    -moz-appearance: textfield;
}

.hf-pkg-qty-input::-webkit-outer-spin-button,
.hf-pkg-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.hf-pkg-qty-input:focus { outline: none !important; box-shadow: none !important; }

*:focus {
    outline: none !important;
    box-shadow: none !important;
}

.hf-pkg-shipping { margin: 16px 24px; padding: 12px 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 0.85rem; color: #64748b; }
.hf-pkg-shipping strong { color: #0f172a; display: block; margin-bottom: 4px; }
.hf-pkg-shipping p { margin: 0; line-height: 1.4; }

.hf-pkg-footer { padding: 16px 24px 24px; border-top: 1px solid #f1f5f9; background: #fff; }
.hf-pkg-confirm-btn {
    width: 100%; padding: 14px;
    background: #0284c7; color: #fff;
    border: none; border-radius: 6px;
    font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: background 0.2s;
    outline: none !important;
}
.hf-pkg-confirm-btn:hover { background: #0369a1; }
.hf-pkg-confirm-btn:focus { outline: none !important; box-shadow: none !important; }

/* --- Responsive --- */
@media (min-width: 1024px) {
    .hifine-inquiry-form .hf-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}
@media (max-width: 1023px) {
    .hifine-inquiry-wrap {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    .hf-pkg-panel {
        width: 100vw !important;
        max-width: 100vw !important;
    }
}
@media (max-width: 768px) {
    .hifine-inquiry-wrap {
        padding: 20px 16px;
        border: none;
        box-shadow: none;
        border-top: 1px solid #e2e8f0;
        border-radius: 0;
    }
    .hf-pkg-panel { width: 100vw !important; }
    .hifine-inquiry-form .hf-row { flex-direction: column; gap: 0; }
    body {
        overflow-x: hidden !important;
    }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/*Hifine Inquiry Form*/

/*产品图片*/
.custom-product-gallery {
  max-width: 100%;
  margin: 0 auto;
}

/* 主图最大高度限制 */
.custom-product-gallery img {
  max-height: 460px;
  width: auto;
  object-fit: contain;
}

/* 缩略图排版 */
.custom-product-gallery .flex-control-thumbs {
  display: flex;
  gap: 6px;
  padding-top: 10px;
  overflow-x: auto;
}

.custom-product-gallery .flex-control-thumbs li {
  width: 70px;
  height: 70px;
}

.custom-product-gallery .flex-control-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
@media (max-width: 1024px) {
  .custom-product-gallery img {
    max-height: 380px;
  }
}

@media (max-width: 768px) {
  .custom-product-gallery img {
    max-height: 320px;
  }
  .custom-product-gallery .flex-control-thumbs li {
    width: 60px;
    height: 60px;
  }
}
 /*产品图片*/

/*scroll-top-btn*/
.scroll-top-btn {
    position: fixed;
    bottom: 125px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn svg {
    width: 24px;
    height: 24px;
    fill: #000000;
}
/*scroll-top-btn*/

/*certificates-section + The Development of Hifine*/

.certificates-section {
  margin: 40px 0;
  padding: 0 20px;
}
.certificates-section .section-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0066cc;
  position: relative;
}
.verified-badge::after {
  content: "✓";
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
}
.cert-item {
  display: inline-block;
  padding: 24px 28px;
  /*background: #f8f8f8;*/
  /*border: 1px solid #f0f0f0;*/
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
  max-width: 600px;
  z-index: 10;
  position: relative;
}
.cert-item:hover {
  background: #f0f0f0;
  border-color: #e8e8e8;
}
.cert-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cert-name {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  text-decoration: underline;
}
.cert-status {
  font-size: 18px;
  color: #666;
  line-height: 1.2;
  text-decoration: underline;
}

.cert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cert-modal.active {
  opacity: 1;
  visibility: visible;
}
.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 12px;
  width: 92%;
  max-width: 1000px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
  z-index: 10;
}
.modal-close:hover {
  color: #1a1a1a;
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e5e5;
}
.modal-header h2 {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0066cc;
  position: relative;
}
.modal-badge::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}
.modal-info {
  color: #666;
  font-size: 16px;
  margin-left: 4px;
  cursor: pointer;
}
.modal-body {
  display: flex;
  height: calc(90vh - 80px);
  max-height: 750px;
}
.cert-preview {
  flex: 1;
  position: relative;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: auto;
}
.cert-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  z-index: 5;
}
.preview-nav:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.prev-btn {
  left: 20px;
}
.next-btn {
  right: 20px;
}
.cert-details {
  flex: 0 0 360px;
  padding: 28px 24px;
  overflow-y: auto;
  border-left: 1px solid #e5e5e5;
}
.detail-item {
  display: none;
}
.detail-item.active {
  display: block;
}
.detail-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 24px;
  padding: 8px 14px;
  background: #f5f5f5;
  border-radius: 20px;
  display: inline-block;
}
.detail-row {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.detail-label {
  flex: 0 0 180px;
  font-size: 15px;
  color: #666;
  font-weight: 500;
  line-height: 1.4;
}
.detail-value {
  flex: 1;
  font-size: 15px;
  color: #1a1a1a;
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .modal-body {
    flex-direction: column;
    height: auto;
    max-height: 90vh;
  }
  .cert-preview {
    min-height: 40vh;
    max-height: 50vh;
    border-bottom: 1px solid #e5e5e5;
  }
  .cert-details {
    flex: 1;
    border-left: none;
    border-top: 1px solid #e5e5e5;
    max-height: 40vh;
    overflow-y: auto;
    padding: 20px;
  }
  .detail-title {
    font-size: 16px;
    margin-bottom: 16px;
  }
  .detail-row {
    padding: 10px 0;
  }
  .detail-label {
    flex: 0 0 140px;
    font-size: 14px;
  }
  .detail-value {
    font-size: 14px;
  }
  .preview-nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .modal-header h2 {
    font-size: 20px;
  }
  .cert-name {
    font-size: 22px;
  }
  .cert-status {
    font-size: 16px;
  }
}

.supplier-card {
  background: #f0f7ff;
  border-radius: 16px;
  padding: 24px;
  margin: 40px 0;
}
.supplier-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}
.supplier-logo img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}
.supplier-info {
  flex: 1;
}
.supplier-name {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0 0 6px 0;
  text-decoration: underline;
  display: inline-block;
}
.supplier-type {
  font-size: 15px;
  color: #555;
  margin: 0 0 6px 0;
}
.supplier-location {
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.location-icon {
  width: 16px;
  height: 16px;
  fill: #666;
  flex-shrink: 0;
}
.company-overview {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.company-overview .section-title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
  margin-bottom: 24px;
}
.overview-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.item-label {
  font-size: 15px;
  color: #666;
}
.item-value {
  font-size: 26px;
  font-weight: 700;
  color: #111;
}
.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.view-more {
  font-size: 15px;
  color: #0066cc;
  text-decoration: underline;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.service-list li {
  font-size: 15px;
  color: #222;
  position: relative;
  padding-left: 14px;
}
.service-list li:before {
  content: "•";
  position: absolute;
  left: 0;
}
.supplier-actions {
  display: flex;
  gap: 12px;
}
.btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.btn-primary {
  background: #e15c00;
  color: #fff;
}
.btn-secondary {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}

@media (max-width: 768px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .service-list {
    grid-template-columns: 1fr 1fr;
  }
  .supplier-actions {
    flex-direction: column;
  }
}
/*certificates-section + The Development of Hifine*/

/*产品详情评价*/
.hifine-reviews-section {
    width: 100%;
    background-color: #f8f9fa;
    padding: 60px 20px;
    box-sizing: border-box;
}
.reviews-title {
    text-align: center;
    color: #0056b3;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 40px;
    margin-top: 0;
}
.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.review-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}
.review-card:hover {
    transform: translateY(-5px);
}
.review-card .stars {
    color: #f39c12;
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}
.review-card .review-content {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    font-size: 15px;
    margin: 0 0 20px 0;
    flex-grow: 1;
}
.review-card .user-info {
    font-size: 13px;
    color: #888;
}
.reviews-footer-text {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-top: 40px;
}
.btn-container {
    text-align: center;
    margin-top: 30px;
}
.btn-show-all {
    padding: 10px 30px;
    background: transparent;
    border: 1px solid #0056b3;
    color: #0056b3;
    font-size: 14px;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
}
.btn-show-all:hover {
    background: #0056b3;
    color: #fff;
}
.hf-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}
.hf-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}
.hf-close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.hf-close:hover {
    color: #000;
}
.review-card-full {
    padding: 10px 0;
    color: #444;
    line-height: 1.5;
}
.review-card-full small {
    color: #888;
}
@media (max-width: 768px) {
    .reviews-container {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
}
/*产品详情评价*/

/*banner*/
.hifine-hero-a {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: #f4f7f6;
    overflow: hidden; 
    padding: 60px 5%;
   
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.hero-bg-img {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    object-fit: cover; 
    object-position: right center; 
    z-index: 1;
    opacity: 0.8; 
}

.hero-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2; 
    padding-left: 5%;
}

.hero-content-a {
    max-width: 550px;
}

.hero-content-a h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: #1a1a1a; line-height: 1.1; margin-bottom: 20px; }
.hero-content-a p { font-size: 1.1rem; color: #4a5568; margin-bottom: 30px; line-height: 1.5; }

.hero-btn-final {
    background: #7cbd43;
    color: white;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-btn-final:hover {
    background: #6aa838; 
    transform: translateY(-3px); 
    box-shadow: 0 8px 15px rgba(124, 189, 67, 0.3); 
}

@media (max-width: 768px) {
    .hifine-hero-a { text-align: center; justify-content: center; }
    .hero-content-wrapper { padding-left: 0; }
    .hero-bg-img { display: none; }
}
/*banner*/

/*正文内容按钮*/
.content-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 24px 6px 6px;
  background: #ffffff;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
  transition: box-shadow 0.2s;
  width: fit-content;
}

.content-cta-button:hover {
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.content-cta-button__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #5ab741;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.content-cta-button:hover .content-cta-button__icon {
  background: #1a2b3c;
}

.content-cta-button:active .content-cta-button__icon {
  background: #0f1e2e;
}

.content-cta-button__text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a2b3c;
}
/*正文内容按钮*/


/*blog list*/
.hifine-blog-list {
    /*background: #f3f4f6;*/
    border-radius: 16px;
    padding: 24px;
}
.hifine-blog-list li {
    padding: 16px 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    margin: 0;
}
.hifine-blog-list li:first-child {
    padding-top: 0;
}
.hifine-blog-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.hifine-blog-list .wp-block-latest-posts__post-title {
    text-decoration: none;
    color: #1a2b3c;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}
.hifine-blog-list .wp-block-latest-posts__post-title:hover {
    color: #5ab741;
    text-decoration: none;
}
.hf-news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hf-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hf-read-more svg {
    width: 16px;
    height: 16px;
}
.hf-views-count {
    font-size: 12px;
    color: #aaa;
}
/*blog list*/

/*hifine sticky column blog product */
.hifine-sticky-column-blog-product {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}
/*hifine sticky column blog product */

/*hifine post navigation*/
.hifine-post-navigation .wp-block-post-navigation-link {
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s;
}

.hifine-post-navigation .wp-block-post-navigation-link:hover {
    background: #f3f4f6;
    border-color: #1a2b3c;
}

.hifine-post-navigation .wp-block-post-navigation-link a {
    text-decoration: none;
    color: #1a2b3c;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.hifine-post-navigation .wp-block-post-navigation-link a:hover {
    text-decoration: none;
    color: #1a2b3c;
}
/*空页隐藏*/
.hifine-post-navigation .wp-block-post-navigation-link:empty {
    display: none;
}
/*hifine post navigation*/

/* blog New Arrival CTA */
.hifine-new-arrival {
    background: #f8f8f6;
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid #e4e4e0;
}

.hifine-new-arrival__badge {
    display: inline-block;
    background: #1a2b3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.hifine-new-arrival__title {
    font-size: 18px;
    font-weight: 700;
    color: #1a2b3c;
    margin: 0 0 8px;
    line-height: 1.3;
}

.hifine-new-arrival__desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px;
}

.hifine-new-arrival__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #5ab741;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.04em;
}

.hifine-new-arrival__btn:hover {
    background: #4a9e34;
}

/* Modal */
.hifine-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.hifine-modal-box {
    background: #fff;
    border-radius: 16px;
    max-width: 680px;
    width: 92%;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
}

.hifine-modal-close {
    position: sticky;
    top: 12px;
    float: right;
    margin: 12px 12px 0 0;
    background: #1a2b3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.hifine-modal-img {
    width: 100%;
    display: block;
    border-radius: 16px 16px 0 0;
}

.hifine-modal-footer {
    padding: 24px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.hifine-modal-footer__desc {
    margin: 0 0 16px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.hifine-modal-footer__btn {
    display: inline-block;
    background: #1a2b3c;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 8px;
    letter-spacing: 0.04em;
    transition: background 0.2s;
}

.hifine-modal-footer__btn:hover {
    background: #0f1e2e;
    color: #fff;
    text-decoration: none;
}
/* blog New Arrival CTA */

/* homepage-main-text-card-content-buttons*/
.homepage-main-text-card-content-buttons .wp-block-button__link {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.homepage-main-text-card-content-buttons .wp-block-button__link:hover {
    transform: translateY(-4px) !important; 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important; 
}
 /*homepage-main-text-card-content-buttons*/
 
/*hifine-blog-card*/
.hf-blog-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 48px;
    padding: 32px 28px 36px;
    box-sizing: border-box;
    background: #f2f2f2;
    border-radius: 16px;
}
 
/* ── 头部 ── */
.hf-blog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
 
.hf-blog-heading {
    font-size: 24px;
    font-weight: 800;
    color: #0f1923;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1;
}
 
/* 分割线 */
.hf-blog-rule {
    border: none;
    border-top: 1px solid #ddd;
    margin: 0 0 28px 0;
}
 
/* View All 按钮 */
.hf-blog-viewall {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 22px;
    border: 1.5px solid #0f1923;
    border-radius: 100px;
    color: #0f1923;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background 0.22s ease, color 0.22s ease;
    white-space: nowrap;
}
.hf-blog-viewall:hover {
    background: #0f1923;
    color: #fff;
}
 
/* ── 3 列网格 ── */
.hf-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}
 
/* ── 卡片：透明无边框 ── */
.hf-blog-card {
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}
 
.hf-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.hf-card-link:focus-visible {
    outline: 2px solid #0f1923;
    outline-offset: 4px;
    border-radius: 10px;
}
 
/* ── 图片：圆角，无徽章 ── */
.hf-card-img {
    width: 100%;
    aspect-ratio: 16 / 11;
    border-radius: 10px;
    overflow: hidden;
    background: #e0e0e0;
    flex-shrink: 0;
    margin-bottom: 16px;
}
.hf-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.42s ease;
}
.hf-blog-card:hover .hf-card-img img {
    transform: scale(1.04);
}
.hf-img-placeholder {
    width: 100%;
    height: 100%;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.1em;
}
 
/* ── 文字区 ── */
.hf-card-body {
    display: flex;
    flex-direction: column;
}
 
/* 日期：全大写灰色小字 */
.hf-card-date {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #999;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
 
/* 标题：红色左竖线 */
.hf-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f1923;
    line-height: 1.38;
    margin: 0 0 12px 0;
    padding: 2px 0 2px 12px;
    border-left: 3px solid #cc0000;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.hf-blog-card:hover .hf-card-title {
    color: #cc0000;
}
 
/* Read Now ↗ */
.hf-card-read {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13.5px;
    font-weight: 600;
    color: #0f1923;
    line-height: 65px;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    transition: gap 0.2s ease, color 0.2s ease;
}
.hf-blog-card:hover .hf-card-read {
    gap: 6px;
    color: #cc0000;
}
 
/* ── 无文章提示 ── */
.hf-no-posts {
    text-align: center;
    padding: 32px;
    color: #aaa;
    font-size: 14px;
}
 
/* ── 响应式 ── */
@media (max-width: 900px) {
    .hf-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 560px) {
    .hf-blog-wrap {
        padding: 24px 18px 28px;
        border-radius: 12px;
    }
    .hf-blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hf-blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .hf-card-title { font-size: 16px; }
}
/*hifine-blog-card*/
  
 
 
/* Blog Homepage */
.hf-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    max-height: 46px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.hf-category-filter.is-open {
    max-height: 400px;
}

/* 分类按钮 */
.hf-cat-btn {
    white-space: nowrap;
    padding: 8px 20px;
    border-radius: 50px;
    background-color: #f4f6f8;
    color: #444;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}
.hf-cat-btn:hover {
    background-color: #e0e5eb;
    color: #001A35;
}
.hf-cat-btn.active {
    background-color: #001A35;
    color: #ffffff;
    border-color: #001A35;
    box-shadow: 0 4px 10px rgba(0, 26, 53, 0.15);
}

/* 展开/收起按钮 */
.hf-cat-toggle {
    display: none; 
    align-items: center;
    gap: 6px;
    margin-bottom: 40px;
    padding: 8px 20px;
    border-radius: 50px;
    background-color: #f4f6f8;
    color: #444;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    user-select: none;
    width: fit-content;
}
.hf-cat-toggle:hover {
    background-color: #e0e5eb;
    color: #001A35;
}
.hf-cat-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.hf-cat-toggle.is-open svg {
    transform: rotate(180deg);
}

.hf-blog-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

/* 卡片 */
.hf-news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.hf-news-card:hover {
    box-shadow: 0 8px 24px rgba(0, 26, 53, 0.10);
    transform: translateY(-4px);
}
.hf-news-card > a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 图片区域 */
.hf-news-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e9ecef;
}
.hf-news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.hf-news-card:hover .hf-news-img-wrap img {
    transform: scale(1.04);
}

/* 分类标签 */
.hf-news-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #001A35;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
}

/* 文字内容 */
.hf-news-content {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hf-news-date {
    font-size: 12px;
    color: #888;
    font-weight: 600;
}
.hf-news-title {
    font-size: 15px;
    font-weight: 700;
    color: #001A35;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hf-news-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #001A35;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.hf-news-footer svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* 翻页器 */
.hf-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 60px;
}
.hf-pagination a.page-numbers,
.hf-pagination span.page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 6px;
    background-color: #fff;
    color: #444;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}
.hf-pagination a.page-numbers:hover {
    background-color: #f4f6f8;
    border-color: #ccc;
    color: #001A35;
}
.hf-pagination span.current {
    background-color: #001A35;
    color: #ffffff;
    border-color: #001A35;
}
.hf-pagination .next,
.hf-pagination .prev {
    padding: 0 16px;
}

/* 响应式 */
@media (max-width: 768px) {
    .hf-blog-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .hf-blog-page-grid {
        grid-template-columns: 1fr;
    }
}
 /* Blog Homepage */
 
 /*home application*/
 .hifine-applications-section {
  max-width: 1280px; 
  margin: 80px auto;
  padding: 0 20px;
}

.apps-header {
  text-align: center;
  margin-bottom: 50px;
}
.apps-title {
  font-size: 36px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 16px;
  line-height: 1.2;
}
.apps-desc {
  font-size: 16px;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px; 
}

.app-card {
  position: relative;
  height: 460px;
  border-radius: 12px; 
  overflow: hidden;
  cursor: pointer;
  background-color: #000;
}

.app-card-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.app-card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
  z-index: 2;
  transition: background 0.4s ease;
  pointer-events: none;
}

.app-card-content {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 3;
}

.app-card h3 {
  color: #ffffff;
  font-size: 22px; 
  font-weight: 600;
  margin: 0;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.app-card-hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.app-card-hidden p {
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.5;
  margin: 12px 0 16px 0;
}

.app-link {
  color: #60a5fa;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.app-link .arrow {
  margin-left: 6px;
  transition: transform 0.2s ease;
}

.app-card:hover .app-card-img { transform: scale(1.08); }
.app-card:hover .app-card-overlay { background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%); }
.app-card:hover h3 { transform: translateY(0); }
.app-card:hover .app-card-hidden {
  opacity: 1;
  max-height: 180px;
  margin-top: 10px;
}
.app-link:hover .arrow { transform: translateX(4px); }

.apps-footer {
  text-align: center;
  margin-top: 50px;
}

.btn-view-all-apps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 600;
  color: #111111;
  background-color: transparent;
  border: 1.5px solid #111111;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-view-all-apps:hover {
  background-color: #111111;
  color: #ffffff;
  transform: translateY(-2px); 
  box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}

.btn-view-all-apps:active {
  transform: translateY(0) scale(0.98);
}

@media (max-width: 1024px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
  .app-card {
    height: 380px;
  }
  .app-card h3 {
    transform: translateY(0);
  }
  .app-card-hidden {
    opacity: 1;
    max-height: 150px;
  }
}
 /*home application*/
 
 /* 
   HIFINE SPATIAL SHOWCASE */
.hifine-spatial-section {
    position: relative;
    width: 100%;
    min-height: 600px; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fdfdfd 0%, #f0f2f5 100%);
    overflow: hidden; 
    padding: 80px 20px;
    box-sizing: border-box;
}

.hifine-spatial-bgtext {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(80px, 15vw, 250px); 
    font-weight: 900;
    color: #000;
    opacity: 0.03; 
    white-space: nowrap;
    z-index: 1;
    pointer-events: none; 
    letter-spacing: -2px;
}

.hifine-spatial-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
    width: 100%;
    max-width: 1200px;
}

.hifine-spatial-item {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.hifine-spatial-featured {
    transform: scale(1.1);
}

.hifine-spatial-img-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.hifine-spatial-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.hifine-spatial-info {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.hifine-spatial-category {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    display: block;
    margin-bottom: 8px;
}

.hifine-spatial-title {
    font-size: 22px;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.hifine-spatial-link {
    font-size: 14px;
    color: #d1121c; 
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.hifine-spatial-link:hover {
    border-color: #d1121c;
}


.hifine-spatial-item:hover .hifine-spatial-img {
    transform: scale(1.1) translateY(-10px);
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.25));
}
.hifine-spatial-item:hover .hifine-spatial-info {
    opacity: 1;
    transform: translateY(0);
}

.hifine-spatial-container:hover .hifine-spatial-item:not(:hover) {
    opacity: 0.5;
    filter: blur(2px);
    transform: scale(0.95);
}

@keyframes hifineFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hifine-float-1 { animation: hifineFloat 6s ease-in-out infinite; }
.hifine-float-2 { animation: hifineFloat 5s ease-in-out infinite 1s; }
.hifine-float-3 { animation: hifineFloat 7s ease-in-out infinite 2s; }

@media (max-width: 768px) {
    .hifine-spatial-container {
        flex-direction: column;
        gap: 60px;
    }
    .hifine-spatial-info {
        opacity: 1; 
        transform: translateY(0);
    }
    .hifine-spatial-featured {
        transform: scale(1);
    }
    .hifine-spatial-container:hover .hifine-spatial-item:not(:hover) {
        opacity: 1; 
        filter: none;
        transform: none;
    }
}
/* 
   HIFINE SPATIAL SHOWCASE */


/* ── HIFINE Post Hero */
.hifine-post-hero.wp-block-group {
  background: #ffffff !important;
  border-radius: 16px !important;
  border-top: 3px solid #0e5fa8 !important;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 6px 16px rgba(0, 0, 0, 0.08),
    0 24px 52px rgba(0, 0, 0, 0.07) !important;
  position: relative;
  overflow: hidden;
}

.hifine-post-hero.wp-block-group::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 90px;
  background: linear-gradient(
    180deg,
    rgba(14, 95, 168, 0.05) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hifine-post-hero.wp-block-group > * {
  position: relative;
  z-index: 1;
}

.hifine-post-hero .wp-block-breadcrumbs,
.hifine-post-hero nav.breadcrumb {
  font-size: 12px;
  color: #999;
}

.hifine-post-hero h1.wp-block-post-title,
.hifine-post-hero .entry-title {
  color: #0d1b2e;
  letter-spacing: -0.3px;
  line-height: 1.28;
}

.hifine-post-hero .wp-block-post-terms a,
.hifine-post-hero .entry-categories a {
  display: inline-block;
  background: #e8f2fc;
  color: #0e5fa8;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-decoration: none;
}

.hifine-post-hero .wp-block-post-excerpt__excerpt,
.hifine-post-hero .entry-excerpt {
  border-left: 2px solid #0e5fa8;
  padding-left: 14px;
  color: #4a5568;
  line-height: 1.75;
  margin: 0;
}

.hifine-post-hero .wp-block-post-featured-image img,
.hifine-post-hero figure.wp-post-image img {
  /*border-radius: 12px !important;*/
  box-shadow:
    0 4px 16px rgba(14, 95, 168, 0.12),
    0 1px 4px rgba(0, 0, 0, 0.06);
}

.hifine-post-hero .wp-block-post-featured-image {
  position: relative;
}
.hifine-post-hero .wp-block-post-featured-image::after {
  content: '';
  position: absolute;
  inset: 10px -8px -8px 8px;
  background: rgba(14, 95, 168, 0.07);
  /*border-radius: 14px;*/
  z-index: 0;
  pointer-events: none;
}
.hifine-post-hero .wp-block-post-featured-image img {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .hifine-post-hero.wp-block-group {
    border-radius: 10px !important;
  }
  .hifine-post-hero .wp-block-post-featured-image::after {
    display: none;
  }
}
/* ── HIFINE Post Hero */


/*
  独立语言切换器
    */
.hifine-lang-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #c54709;
    padding: 6px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.hifine-lang-btn:hover {
    color: #77b82a;
}

.hifine-lang-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hifine-lang-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.hifine-lang-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.hifine-lang-dialog {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 700px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    padding: 30px 40px;
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.hifine-lang-modal.is-open .hifine-lang-dialog {
    transform: translateY(0) scale(1);
}

.hifine-lang-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    flex-shrink: 0;
}

.hifine-lang-dialog-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #001529;
}

.hifine-lang-close-btn {
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.hifine-lang-close-btn:hover {
    color: #ff4d4f;
}

.hifine-lang-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    padding-right: 5px;
}

.hifine-lang-grid > *:not(a) {
    display: none !important;
}

.hifine-lang-grid::-webkit-scrollbar {
    width: 6px;
}

.hifine-lang-grid::-webkit-scrollbar-track {
    background: transparent;
}

.hifine-lang-grid::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 10px;
}

.hifine-lang-item {
    width: calc(33.333% - 10px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    min-height: 56px;
    padding: 10px 20px;
    text-align: center;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hifine-lang-item.is-active {
    background-color: #333333;
    color: #ffffff;
    pointer-events: none;
}

.hifine-lang-item:not(.is-active) {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
}

.hifine-lang-item:not(.is-active):hover {
    background-color: #ffffff;
    border-color: #77b82a;
    box-shadow: 0 4px 12px rgba(119, 184, 42, 0.15);
    color: #77b82a;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hifine-lang-dialog {
        padding: 20px;
        max-height: 90vh;
    }
    .hifine-lang-item {
        width: 100%;
        min-height: 50px;
        font-size: 15px;
    }
}
/*
  独立语言切换器
    */
    
/* 
hifine-cards-section
*/
.hifine-cards-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

.hifine-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.hifine-card {
  display: flex;
  flex-direction: column;
  background: #f0f0f0;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease;
}

.hifine-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13);
}

.hifine-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
}

.hifine-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.hifine-card:hover .hifine-card__img img {
  transform: scale(1.04);
}

.hifine-card__body {
  padding: 28px 28px 24px;
  background: #f0f0f0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 160px;
}

.hifine-card__title {
  font-size: 22px;
  font-weight: 700;
  color: #111111;
  line-height: 1.25;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.hifine-card__desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.65;
  flex: 1;
}

.hifine-card__footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 20px;
}

.hifine-card__arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c0392b;
  font-size: 22px;
  transition: transform 0.2s ease;
  line-height: 1;
}

.hifine-card:hover .hifine-card__arrow {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .hifine-cards-grid {
    grid-template-columns: 1fr;
  }
}
/* 
   hifine-cards-section
   */
   
   
   
/*HIFINE Advantages*/
.hifine-adv-headline {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    color: #111;
    margin-bottom: 30px;
    text-align: left;
}

.hifine-adv-body {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 800px;
}

.hifine-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    margin-top: 40px;
}

.stat-item {
    padding-left: 20px;
    border-left: 2px solid #7cbd43;
}

.stat-num {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 900;
    color: #7cbd43;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

@media (max-width: 992px) {
    .hifine-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}
/*HIFINE Advantages*/

/*产品分类页特色图*/
.woocommerce-product-category-image img,
.wp-block-post-featured-image img {
    height: 400px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
/*产品分类页特色图*/

/*Product Category Page CTA*/
.hf-trust-strip {
    text-align: center;
    padding: 48px 24px;
    /*background: #f8f9fa;*/
    margin-top: 40px;
}
.hf-trust-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.hf-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 32px;
}
.hf-trust-item-number {
    font-size: 22px;
    font-weight: 700;
    color: #1a2b3c;
    line-height: 1.2;
}
.hf-trust-item-label {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}
.hf-trust-sep {
    width: 1px;
    height: 40px;
    background: #ddd;
}
.hf-trust-brand-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 28px;
}
.hf-trust-cta-text {
    font-size: 16px;
    font-weight: 600;
    color: #1a2b3c;
    margin-bottom: 12px;
}
.hf-trust-cta-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #1a2b3c;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s ease;
}
.hf-trust-cta-btn:hover {
    background: #2d4a6b;
    color: #fff;
}
@media (max-width: 768px) {
    .hf-trust-stats {
        gap: 20px;
    }
    .hf-trust-sep {
        display: none;
    }
    .hf-trust-item {
        padding: 0 16px;
    }
}
/*Product Category Page CTA*/

/*yoast Breadcrumbs*/
.wc-block-breadcrumbs .woocommerce-breadcrumb a {
    color: #9A9A98 !important;
    text-decoration: none !important;
}
/*yoast Breadcrumbs*/


/*Product Details Page Authoritative Module*/
.hifine-lab-quote-section {
    background-color: #0c3866;
    padding: 60px 20px;
    margin: 50px 0;
    width: 100%;
    box-sizing: border-box;
}

.hifine-lab-quote-container {
    max-width: 960px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 40px 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    gap: 50px;
    position: relative;
    box-sizing: border-box;
}

.hifine-lab-image-wrapper {
    flex-shrink: 0;
}

.hifine-lab-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #eef4fa;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.hifine-lab-content {
    position: relative;
    display: flex;
    flex-direction: column;
}

.hifine-quote-icon svg {
    width: 60px;
    height: 60px;
    fill: #00A3E0;
    opacity: 0.15;
    position: absolute;
    top: -20px;
    left: -25px;
    z-index: 0;
}

.hifine-quote-text {
    font-size: 17px;
    line-height: 1.65;
    color: #2c3e50;
    font-weight: 500;
    font-style: italic;
    margin: 0 0 25px 0;
    position: relative;
    z-index: 1;
}

.hifine-quote-author {
    display: flex;
    flex-direction: column;
    border-left: 3px solid #00A3E0;
    padding-left: 15px;
}

.hifine-author-name {
    font-weight: 700;
    font-size: 16px;
    color: #0c3866;
    margin-bottom: 4px;
}

.hifine-author-title {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 400;
}

@media (max-width: 768px) {
    .hifine-lab-quote-section {
        padding: 40px 15px;
    }

    .hifine-lab-quote-container {
        flex-direction: column;
        text-align: center;
        padding: 35px 25px;
        gap: 25px;
    }

    .hifine-lab-image {
        width: 140px;
        height: 140px;
    }

    .hifine-quote-icon svg {
        left: 50%;
        transform: translateX(-50%);
        top: -15px;
    }

    .hifine-quote-author {
        border-left: none;
        padding-left: 0;
        align-items: center;
    }
}
/*Product Details Page Authoritative Module*/


/*woocommerce-additional-information*/
.woocommerce div.product .woocommerce-tabs table.shop_attributes {
    border: none;
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 30px;
    background-color: transparent;
}

.woocommerce div.product .woocommerce-tabs table.shop_attributes tr {
    border-bottom: 1px solid #eeeeee;
    background: transparent;
}

.woocommerce div.product .woocommerce-tabs table.shop_attributes th {
    background-color: #fcfcfc;
    color: #222222;
    font-weight: 700;
    width: 35%;
    padding: 15px 20px;
    text-align: left;
    border: none;
    font-size: 14px;
}

.woocommerce div.product .woocommerce-tabs table.shop_attributes td {
    padding: 15px 20px;
    font-style: normal;
    color: #555555;
    border: none;
    font-size: 14px;
}

.woocommerce div.product .woocommerce-tabs table.shop_attributes td p {
    margin: 0;
    padding: 0;
    font-style: normal;
}
/*woocommerce-additional-information*/

/*hifine-gallery-section*/
.hifine-gallery-section {
    padding: 80px 5%;
    background-color: #ffffff;
    max-width: 1400px;
    margin: 0 auto;
}
.hifine-gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.hifine-gallery-section .hifine-gallery-left {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hifine-gallery-section .hifine-gallery-title {
    color: #004a99;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hifine-gallery-section .hifine-gallery-desc {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}
.hifine-gallery-section .hifine-gallery-grid {
    flex: 2.5 1 700px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.hifine-gallery-section .hifine-gallery-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hifine-gallery-section .hifine-gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 4a, 153, 0.15);
}
.hifine-gallery-section .hifine-gallery-imgbox {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.hifine-gallery-section .hifine-gallery-imgbox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hifine-gallery-section .hifine-gallery-card:hover .hifine-gallery-imgbox img {
    transform: scale(1.08);
}
.hifine-gallery-section .hifine-gallery-footer {
    background: #004a99;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hifine-gallery-section .hifine-gallery-info {
    display: flex;
    flex-direction: column;
    z-index: 2;
}
.hifine-gallery-section .hifine-gallery-num {
    color: #008bb5;
    font-size: 14px;
    font-weight: 700;
}
.hifine-gallery-section .hifine-gallery-label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-top: 2px;
}
.hifine-gallery-section .hifine-gallery-stripes {
    position: absolute;
    right: -10px;
    top: 0;
    width: 80px;
    height: 100%;
    background: repeating-linear-gradient(45deg, transparent, transparent 5px, #008bb5 5px, #008bb5 10px);
    transform: skewX(-20deg);
    opacity: 0.8;
}
@media (max-width: 768px) {
    .hifine-gallery-section { padding: 40px 20px; }
    .hifine-gallery-section .hifine-gallery-title { font-size: 30px; }
}
/*hifine-gallery-section */

/*hifine-custom-blog-title*/
.hifine-custom-blog-title h2, 
.hifine-custom-blog-title h3, 
.hifine-custom-blog-title h4 {
    color: #004a99 !important;
    font-weight: 700 !important;
    line-height: 1.3; 
    margin-top: 1.2em; 
}
.hifine-custom-blog-title h2 a,
.hifine-custom-blog-title h3 a,
.hifine-custom-blog-title h4 a {
    color: #004a99 !important;
    font-weight: 700 !important;
    text-decoration: none; 
}
.hifine-custom-blog-title h2 a:hover,
.hifine-custom-blog-title h3 a:hover,
.hifine-custom-blog-title h4 a:hover {
    color: #0056b3 !important; 
}
.hifine-custom-blog-title a {
    color: #008bb5 !important; 
    font-weight: 500; 
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 139, 181, 0.2); 
    transition: all 0.3s ease;
}

.hifine-custom-blog-title a:hover {
    color: #004a99 !important; 
    border-bottom: 1px solid #004a99;
}
/*hifine-custom-blog-title*/

/*product faq*/
.category-faq-container {
    margin-top: 40px;
    padding: 25px;
    background-color: #f9f9f9;
    border-left: 5px solid #2e7d32; 
    border-radius: 4px;
}

.category-faq-container h3 {
    margin-top: 0;
    color: #333;
    font-size: 22px;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item strong {
    display: block;
    font-size: 17px;
    color: #2e7d32;
    margin-bottom: 8px;
}

.faq-item p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}
/*product faq*/

/* index product card*/
.archive-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
    background-color: #ffffff;
}

.archive-card {
    position: relative;
    background: #f8f8f8; 
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid transparent;
    overflow: hidden;
}

.card-main-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    padding: 50px 30px 40px;
    height: 100%;
    box-sizing: border-box;
}

.archive-card::before {
    content: attr(data-index);
    position: absolute;
    top: 25px;
    left: 30px;
    font-size: 11px;
    font-weight: 700;
    color: #bbbbbb;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 2;
}

.card-image-wrapper {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.archive-image {
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply; 
    transition: transform 0.6s ease;
}

.card-tag {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    color: #7cbd43; 
    border: 1px solid #7cbd43;
    padding: 2px 8px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.card-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.archive-card:hover {
    background: #ffffff;
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.08);
    border-color: #eee;
}

.archive-card:hover .archive-image {
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .archive-product-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}
/* index product card*/  





/* Video Layout */

.video-container, .video-archive-page { 
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 20px; 
}

.video-player-wrap {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.video-player-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-main-layout { 
    display: flex; 
    flex-direction: row; 
    gap: 50px; 
}
.video-content { flex: 2; min-width: 0; }
.video-sidebar { 
    flex: 1; 
    background: #f8f9fa; 
    padding: 30px; 
    border-radius: 15px; 
    height: fit-content;
}

.video-content h1 { font-size: 32px; margin-bottom: 15px; line-height: 1.2; }
.video-description { font-size: 16px; line-height: 1.6; color: #333; margin-top: 25px; }
.video-divider { border: 0; border-top: 1px solid #eee; margin: 40px 0; }

.video-author-box { 
    display: flex; 
    align-items: center; 
    padding: 15px 0; 
    border-bottom: 1px solid #eee; 
}
.fixed-avatar { width: 50px; height: 50px; border-radius: 50%; margin-right: 15px; object-fit: cover; }
.author-info strong { display: block; font-size: 16px; }
.author-info span { font-size: 13px; color: #777; }

/* --- 4. Related Products Sidebar --- */
.video-sidebar h3 { margin-top: 0; margin-bottom: 20px; font-size: 20px; border-bottom: 2px solid #000; display: inline-block; }
.product-item { margin-bottom: 30px; text-align: center; }
.product-item img { border-radius: 8px; margin-bottom: 12px; transition: opacity 0.3s; }
.product-item img:hover { opacity: 0.8; }
.product-item h4 { font-size: 16px; margin: 10px 0; color: #000; text-decoration: none; }
.product-item a { text-decoration: none; }

/* The "View Product" Button */
.view-btn { 
    display: inline-block; 
    background: #000; 
    color: #fff !important; 
    padding: 10px 20px; 
    border-radius: 5px; 
    text-decoration: none; 
    font-size: 14px; 
    font-weight: bold;
    transition: background 0.3s;
}
.view-btn:hover { background: #333; }

.video-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    margin: 30px 0; 
}
.video-card { 
    border-radius: 12px; 
    overflow: hidden; 
    background: #fff; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); 
    transition: transform 0.3s ease;
}
.video-card:hover { transform: translateY(-8px); }
.card-thumb { position: relative; display: block; height: 200px; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-overlay { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); 
    background: rgba(220, 53, 69, 0.9); color: #fff; width: 50px; height: 50px; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.card-info { padding: 20px; }
.card-info h3 { margin: 0 0 10px; font-size: 18px; }
.card-info h3 a { color: #000; text-decoration: none; }
.card-info .date { font-size: 13px; color: #999; }


@media (max-width: 1024px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .video-main-layout { gap: 30px; }
}

@media (max-width: 768px) {
    .video-main-layout { flex-direction: column; } 
    .video-grid { grid-template-columns: 1fr; }
    .video-content h1 { font-size: 26px; }
    .video-sidebar { margin-top: 30px; }

    .related-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .product-item { margin-bottom: 0; }
}

@media (max-width: 480px) {
    .related-list { grid-template-columns: 1fr; } 
    .video-container { padding: 0 15px; }
    .video-author-box { flex-direction: row; }
}

/* Video Layout */

/* 去掉特色图片的圆角 */
.wp-block-post-featured-image img, 
.wp-block-post-featured-image figure,
.attachment-post-thumbnail {
    border-radius: 0 !important;
}
/* 去掉特色图片的圆角 */

/*Air Purifier Requirement Calculator*/
.filter-calc-wrapper {
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}
.filter-calc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 30px;
    color: #0f172a;
    max-width: 550px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.filter-calc-header {
    margin-bottom: 25px;
    text-align: center;
}
.filter-calc-header h2 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
    color: #1e293b;
}
.filter-calc-header p {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: #64748b;
}
.calc-unit-selector {
    display: flex;
    margin: 0 auto 25px;
    border: 1px solid #cbd5e1;
    width: fit-content;
    border-radius: 4px;
    overflow: hidden;
}
.calc-u-btn {
    border: none;
    background: #fff;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
}
.calc-u-btn.active {
    background: #0f172a;
    color: #fff;
}
.calc-inputs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.calc-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    color: #475569;
}
.calc-field input, .calc-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
    border-radius: 4px;
    box-sizing: border-box;
}
.calc-options-grid {
    margin: 20px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.calc-options-grid label {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #334155;
}
.calc-submit {
    width: 100%;
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 15px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
}
.calc-cadr-display {
    background: #f8fafc;
    padding: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-top: 25px;
}
#res-cadr {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 5px 0;
}
.res-card {
    border-left: 4px solid #0f172a;
    padding: 15px;
    margin-top: 15px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-left: 4px solid #0f172a;
    border-radius: 0 4px 4px 0;
}
.res-card-title {
    font-weight: 800;
    font-size: 0.9rem;
}
.res-card-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin: 5px 0;
}
.res-card-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .filter-calc-card { padding: 20px; }
    .calc-inputs-grid { grid-template-columns: 1fr; }
    .calc-options-grid { grid-template-columns: 1fr; }
    .filter-calc-header h2 { font-size: 1.3rem; }
}
/*Air Purifier Requirement Calculator*/

/*tools cta*/
.tools-cta {
    background-color: #f4f7f9;
    padding: 80px 20px;
    margin-top: 60px;
    border-top: 1px solid #e1e8ed;
    box-sizing: border-box;
}

.tools-cta__container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.tools-cta__content {
    flex: 1 1 500px;
}

.tools-cta__title {
    color: #1a1a1a;
    font-size: 32px;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.tools-cta__text {
    color: #4a5568;
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
}

.tools-cta__action {
    flex-shrink: 0;
}

.tools-cta__btn {
    display: inline-block;
    background-color: #7cbd43;
    color: #ffffff;
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.tools-cta__btn:hover {
    background-color: #6aa838;
}

@media (max-width: 768px) {
    .tools-cta {
        padding: 60px 20px;
    }
    .tools-cta__container {
        text-align: center;
        justify-content: center;
    }
    .tools-cta__btn {
        display: block;
    }
}
/*tools cta*/

/*Manufacturing Capabilities*/
.hifine-factory-showcase {
    padding: 80px 20px;
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-title {
    font-size: 42px;
    font-weight: 900;
    color: #111;
    margin-bottom: 40px;
    line-height: 1.2;
}

.feature-item {
    margin-bottom: 30px;
}

.feature-item h3 {
    font-weight: 900;
    font-size: 20px;
    color: #111;
    margin-bottom: 10px;
}

.feature-item p {
    color: #555;
    line-height: 1.6;
}

.showcase-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.showcase-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ececec;
    transition: 0.4s;
}

.showcase-gallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
    .hifine-factory-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 20px;
    }
    .section-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
}

@media (max-width: 600px) {
    .showcase-gallery {
        grid-template-columns: 1fr;
    }
    .showcase-gallery img {
        height: 220px;
    }
}
/*Manufacturing Capabilities*/

/*solutions*/
.hf-solutions-page {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    font-family: inherit;
    color: #222;
    line-height: 1.6;
    background-color: #fff;
}

.hf-color-primary {
    color: #7DB942;
}

.hf-hero {
    padding: 60px 20px 80px;
}

.hf-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    line-height: 1.15;
    font-weight: 800;
    color: #111;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.hf-hero-copy {
    max-width: 900px;
}

.hf-hero-copy p {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 16px;
}

.hf-capabilities {
    padding: 60px 20px;
}

.hf-cap-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.hf-row-reverse {
    flex-direction: row-reverse;
}

.hf-cap-content {
    flex: 1;
}

.hf-cap-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #111;
    line-height: 1.2;
    margin-bottom: 24px;
    margin-top: 0;
}

.hf-cap-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 24px;
}

.hf-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hf-feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #333;
    font-weight: 500;
}

.hf-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #7DB942;
    font-weight: 800;
}

.hf-cap-image {
    flex: 1;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f5f5f5;
    border: 1px solid #eaeaea;
}

.hf-cap-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hf-process-section {
    padding: 80px 20px;
    background-color: #fff;
    border-top: 1px solid #eaeaea;
}

.hf-process-header {
    max-width: 800px;
    margin-bottom: 60px;
}

.hf-process-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 20px;
}

.hf-process-header p {
    font-size: 1.1rem;
    color: #555;
}

.hf-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.hf-process-step {
    border-top: 2px solid #eaeaea;
    padding-top: 24px;
}

.hf-step-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #7DB942;
    line-height: 1;
    margin-bottom: 20px;
}

.hf-process-step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

.hf-process-step p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.hf-cta-section {
    padding: 80px 20px 100px;
    background-color: #fff;
    text-align: center;
}

.hf-cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    background-color: #f9fbf7;
    border: 1px solid #eef5e9;
    border-radius: 12px;
}

.hf-cta-container h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #111;
    margin-bottom: 20px;
}

.hf-cta-container p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
}

.hf-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hf-btn-solid {
    background-color: #7DB942;
    color: #fff;
    border: 2px solid #7DB942;
}

.hf-btn-solid:hover {
    background-color: #6a9e38;
    border-color: #6a9e38;
}

.hf-btn-outline {
    background-color: transparent;
    color: #7DB942;
    border: 2px solid #7DB942;
}

.hf-btn-outline:hover {
    background-color: #7DB942;
    color: #fff;
}

@media (max-width: 1024px) {
    .hf-cap-row, .hf-row-reverse {
        flex-direction: column;
        gap: 40px;
    }
    .hf-cap-image {
        width: 100%;
    }
    .hf-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hf-hero {
        padding: 40px 15px;
    }
    .hf-process-grid {
        grid-template-columns: 1fr;
    }
    .hf-cta-container {
        padding: 40px 20px;
    }
    .hf-cta-buttons {
        flex-direction: column;
    }
    .hf-btn {
        width: 100%;
    }
}
/*solutions*/

/*faqpage*/
.hf-faq-wrapper { max-width: 800px; margin: 60px auto; padding: 0 20px; }
.hf-faq-item { border-bottom: 1px solid #eaeaea; }
.hf-faq-question { width: 100%; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; background: none; border: none; font-size: 1.15rem; font-weight: 600; color: #333; text-align: left; cursor: pointer; transition: color 0.3s; }
.hf-faq-question:hover { color: #7DB942; }
.hf-faq-question::after { content: '+'; font-size: 1.5rem; color: #7DB942; }
.hf-faq-item.active .hf-faq-question::after { content: '-'; }
.hf-faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease-out; overflow: hidden; }
.hf-faq-item.active .hf-faq-answer { grid-template-rows: 1fr; }
.hf-faq-answer > div { min-height: 0; color: #555; line-height: 1.7; padding-bottom: 20px; }
/*faqpage*/


