/*!
Theme Name: Blocksy
Theme URI: https://creativethemes.com/blocksy/
Author: CreativeThemes
Author URI: https://creativethemes.com
Description: Blocksy is a blazing fast and lightweight WordPress theme built with the latest web technologies. It was built with the Gutenberg editor in mind and has a lot of options that makes it extendable and customizable. You can easily create any type of website, such as business agency, shop, corporate, education, restaurant, blog, portfolio, landing page and so on. It works like a charm with popular WordPress page builders, including Elementor, Beaver Builder, Visual Composer and Brizy. Since it is responsive and adaptive, translation ready, SEO optimized and has WooCommerce built-in, you will experience an easy build and even an increase in conversions.
Version: 2.0.95
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Copyright: (c) 2019 CreativeThemes.
Requires at least: 6.5
Requires PHP: 7.0
Tested up to: 6.7
Text Domain: blocksy
Blocksy Minimum Companion Version: 2.0.74-beta1
Tags: accessibility-ready, blog, block-patterns, e-commerce, wide-blocks, block-styles, grid-layout, one-column, two-columns, three-columns, four-columns, right-sidebar, left-sidebar, translation-ready, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, theme-options, threaded-comments, buddypress, rtl-language-support, news
*/

.ct-social-box {
    --theme-icon-size: 24px;
    --items-spacing: 25px;
    margin-top: 10px;
    --theme-icon-color: var(--theme-palette-color-1);
    --theme-icon-hover-color: var(--theme-palette-color-1);
    /*--background-color: rgba(218, 222, 228, 0.3);*/
    --background-hover-color: var(--theme-palette-color-1);
}

.ct-header-text .entry-content {
    padding: 20px 0;
}

.cdc-footer__website {
    vertical-align: top;
    margin-right: 0
}

.cdc-footer__website-group {
    font-size: 0;
    box-sizing: border-box;
    width: 100%
}

.cdc-footer__website-column {
    display: inline-block;
    box-sizing: border-box;
    font-size: 20px;
    vertical-align: top;
    width: 25%;
    padding-left: 0;
}

.cdc-footer__website-title {
    font-weight: 700;
    font-size: 24px;
    line-height: 36px;
    margin-bottom: 10px;
    color: var(--theme-palette-color-1);
}

.cdc-footer__website-title a {
    display: inline-block;
    vertical-align: top;
    max-width: 100%;
    color: #11140F
}

.cdc-footer__website-title a:hover {
    color: #11140F
}

.cdc-footer__website-list {
    list-style: none;
    margin: 0;
}

.cdc-footer__website-item a {
    display: inline-block;
    vertical-align: top;
    max-width: 100%;
    padding: 4px 0;
    font-size: 16px;
    line-height: 28px;
    font-weight: 600;
    color: var(--theme-palette-color-4);
}

.cdc-footer__website-item a:hover {
    color: #11140F
}

.ct-widget li ul {
    padding-inline-start: 0 !important;
}

.ct-footer .ct-widget {
    width: 100%;
}

.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-cdeb382a > .uagb-container-inner-blocks-wrap {
    margin: 0 !important;
}

.uagb-block-d73ce10d .uagb-ifb-title {
    position: relative;
    text-shadow: 7px 0 1px #6200FF9E;
    z-index: 1;
}
.uagb-block-d73ce10d .uagb-ifb-desc{
    display: inline-block;
    background: linear-gradient(to right, #6200FF, #3B009900);
    padding: 0 10px;
}
.swiper-container {
    width: 99%;
    height: 100%;
    padding: 20px 0 50px 0;
}
.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    height: 350px; /* 设置固定高度 */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    transition: 300ms;
    transform: scale(0.8);
    left: 167px;
}
.swiper-slide-active,.swiper-slide-duplicate-active{
    transform: scale(1);
}
.post-slide-card {
    position: relative;
    width: 100%;
    height: 100%; /* 使用父元素高度 */
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 3px 2px rgb(0 0 0 / 20%);
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.post-slide-card:hover {
    /*transform: scale(1.05); !* 放大效果 *!*/
    box-shadow:  0 0 3px 5px rgb(0 0 0 / 20%);
}
.post-slide-card:hover > .image-wrapper {
    transform: scale(1.1); /* 放大效果 */
}
.image-wrapper {
    position: relative;
    height: 200px; /* 设置固定高度 */
    transition: all 0.3s ease;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-date{
    font-size: 12px;
    color: #666666;
}


.post-info {
    padding: 0 15px;
    background: #fff;
    flex: 1; /* 使用剩余空间 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-title {
    font-size: 15px;
    color: #333;
    text-align: start;
    padding-top: 10px;
}

.meta-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content:space-between;
}
.post-tags{
    display: flex;
    column-gap:10px;
}
.tag-item {
    background: #E8DEF8;
    color: #4A4459;
    padding: 2px 10px;
    border-radius: 5px;
    font-size: 14px;
}

.category-badge {
    display: inline-block;
    margin-right: 8px;
    color: #666;
    font-size: 14px;
    text-decoration: underline;
}
.swiper-pagination-bullet-active{
    background: #6200FF !important;
    width: 25px !important;
    border-radius: 10px !important;
}
/* 移除默认列表样式 */
ul.recommended-articles-list {
    list-style: none;
    padding-left: 25px;
}

/* 自定义拉长圆点 */
.recommended-article {
    --marker-width: 15px;    /* 圆点宽度 */
    --marker-height: 8px;    /* 圆点高度 */
    --marker-color: #D8BFFF; /* 圆点颜色 */
    position: relative;
    padding-left: calc(var(--marker-width) + 10px); /* 留出间距 */
    margin-bottom: 12px;     /* 列表项间距 */
}

.recommended-article::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: var(--marker-width);
    height: var(--marker-height);
    background: var(--marker-color);
    border-radius: 20px; /* 控制圆角程度（值越大越接近胶囊形） */
    transition: 0.3s;    /* 添加悬停动效（可选） */
}

/* 悬停效果（可选） */
.recommended-article:hover::before {

    background: #6200FF;
}
.post-title{
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.uagb-block-216f8925 .uagb-ifb-title{
    display: inline-block;
    background: #6200FF;
    padding: 0 50px 0 20px;
   border-radius: 0 25px 25px 0;
}
.uagb-block-899c498a  .uagb-post__title a {
    position: relative;
    padding-left: 40px; /* 为图标留出空间 */
    display: inline-block;
    line-height: 1.5;
}

.uagb-block-899c498a .uagb-post__title a::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 13px;
    background: #6200FF;
    border-radius: 0 7px 7px 0;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.uagb-post__cta .wp-block-button__link {
    position: relative;
    padding-right: 60px !important; /* 增加右侧空间 */
    overflow: visible; /* 显示溢出内容 */
    transition: all 0.3s;
}

/* 白色正方形 */
.uagb-post__cta .wp-block-button__link::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 4px;
}

/* Unicode箭头 */
.uagb-post__cta .wp-block-button__link::after {
    content: "\f061"; /* Font Awesome箭头Unicode */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6200FF;
    font-size: 18px;
    z-index: 1;
    transition: all 0.3s;
}

/* Hover效果 */
.uagb-post__cta .wp-block-button__link:hover::after {
    color: rgba(98, 0, 255, 0.7);
}
.uagb-post__cta .wp-block-button__link:hover::before {
    color: white;
}

.wp-block-uagb-container.uagb-is-root-container .uagb-block-1dc856f5{
    align-self: flex-start;
}


.custom-search-container {
    display: flex;
    align-items: center;
    max-width: 600px;
    padding: 0 15px;
    border: 2px solid #e1e8ed;
    border-radius: 5px;
    background: white;
}
.search-icon {
    color: #6200FF;
    font-size: 20px;
    cursor: pointer;
}
.separator {
    width: 1px;
    height: 25px;
    background-color: #6200FF;
    margin: 0 15px;
    opacity: 0.5;
}
.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    background: transparent !important;
}
.search-input::placeholder {
    color: #999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.uagb-block-e4d0982b.is-grid.uagb-post__items{
    max-height: 350px;
    overflow-y: scroll;
}
.uagb-block-e4d0982b .uagb-post__date{
    color: #333333;
    font-size: 12px;
}
.uagb-block-e4d0982b .uagb-post__text{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}
.post-text{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}
.tools-container{
    background: white;
    padding: 10px;
}
.popular-post{
    margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee;
}
.post-date{
    font-size: 12px;
}
.post-categories{
    display: flex;
    column-gap: 10px;
    flex-wrap: wrap;
    row-gap: 5px;
    width: 70%;
}
.uagb-post-grid .uagb-post__date:not(:last-child)::after{
    content: none !important;
}
.uagb-block-e4d0982b .uagb-post__taxonomy{
    background: #6200FF;
    padding: 0 5px;
    border-radius: 5px;
}
.uagb-block-e4d0982b .uagb-post__inner-wrap .uagb-post__taxonomy a {
    color: white !important;
}
.post-taxonomy{
    background: #6200FF;
    padding:5px;
    border-radius: 5px;
    font-size: 12px;
    color: white;
    width: auto;
}

.tools-title{
    border-top-width: 0;
    border-left-width: 0;
    border-right-width: 0;
    border-bottom-width: 1px;
    border-style: solid;
    border-color: #d9d9d9;
    padding-bottom: 10px;
}
.tools-title-text{
    border-top-width: 0;
    border-left-width: 5px;
    border-right-width: 0;
    border-bottom-width: 0;
    border-style: solid;
    border-color: var(--theme-palette-color-1, #6200FF);
    font-weight: 400;
    font-size: 20px;
    padding-left: 5px;
}
.post-taxonomy:hover{
    color: white;
    background: #6200ffb3;
    transition: 0.3s;
}
/* tree-menu.css */
.tree-menu {
    list-style: none;
    padding-left: 20px;
}

.tree-menu li {
    position: relative;
    margin: 5px 0;
    transition: all 0.3s;
}

.tree-menu a {
    text-decoration: none;
    color: #333;
    padding: 5px;
    display: inline-block;
    transition: color 0.3s;
}

.tree-menu a:hover {
    color: #6200FF;
}

.tree-menu .sub-menu {
    display: none;
    padding-left: 20px;
}
.tags-list{
    padding-top: 10px;
    display: flex;
    column-gap: 10px;
}
.tag-item-1{
    padding:0 5px;
    border: black 1px solid;
    border-radius: 5px;
}
.menu-arrow {
    cursor: pointer;
    padding: 0 8px;
    display: inline-block;
    transition: transform 0.3s;
    vertical-align: middle;
}

.menu-arrow i {
    font-size: 22px;
    color: #666;
    transition: color 0.3s;
}

.tree-menu li.active > .sub-menu {
    display: block;
}

.tree-menu li.active > .menu-arrow {
    transform: rotate(90deg);
}

.tree-menu li.active > .menu-arrow i {
    color: #6200FF;
}

.wp-block-tag-cloud a {
    border-radius: 5px;
}
.is-style-outline a{
    padding: 10px;
}
:root {
    --has-classic-forms:#f6f6f6 !important;
}
.site-main .ct-container{
    padding: 50px 0;
}
.wp-block-uagb-container.uagb-block-1dc856f5{
    position: sticky;
    top: 40px;
}
.entry-title{
    font-size: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.entries:not([data-cards=cover]) :is(.entry-button,.entry-meta,.ct-media-container):last-child:not(:only-child) {
   margin-top: 0 !important;
}

.post-categories a:not(:first-child) {
    display: none;
}
li.meta-categories a:nth-child(n+3) {
    display: none;
}
li.meta-categories > [data-type="underline"]::before,
li.meta-categories > [data-type="underline"]::after {
    content: none !important;
}

.popular-posts-container::-webkit-scrollbar {
    width: 5px; /* 滚动条宽度 */
}

.popular-posts-container::-webkit-scrollbar-track {
    background: #f1f1f1; /* 轨道颜色 */
}

.popular-posts-container::-webkit-scrollbar-thumb {
    background: #D9D9D9; /* 滑块颜色 */
    border-radius: 4px;
}

[data-footer*="type-1"] .ct-footer [data-row*="middle"] > div{
    --grid-template-columns: 2.2fr 1fr !important;
}
/*页眉菜单*/

/* 手机端响应式 */
@media (max-width: 1100px) {
    .swiper-slide{
        left: 0px;
    }
}
@media (max-width: 768px) {
    .main-menu {
        flex-direction: column;
    }

    .mega-dropdown {
        position: static;
        transform: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .cdc-footer__website-title{
        font-size: 18px;
    }
    .cdc-footer__website-item a{
        font-size: 14px;
    }
    .post-info{
        padding: 30px 15px 0 ;
    }
}
@media (max-width: 480px) {
    .cdc-footer__website-item a{
        font-size: 10px;
    }
}

.responsive-mega-menu .main-menu > li {
    margin-right: 20px;
    padding: 0 10px;
}

.responsive-mega-menu .main-menu > li > a {
    color: white;
    font-size: 16px;
    font-weight: 400;
}