/*!
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%;
	display:flex;
	 justify-content: space-evenly;
}

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

.cdc-footer__website-title {
    font-weight: 700;
    font-size: 22px;
    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: 17px;
    line-height: 28px;
    font-weight: 600;
    color: var(--theme-palette-color-4);
}

.cdc-footer__website-item a:hover {
    color: #2069bb;
}

.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 #2069bb9E;
    z-index: 1;
}

.uagb-block-d73ce10d .uagb-ifb-desc {
    display: inline-block;
    background: linear-gradient(to right, #2069bb, #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%);
    background: #2069bb;
}

.post-slide-card:hover > .post-info {
    background: #2069bb;
}

.post-slide-card:hover .post-title,
.post-slide-card:hover .post-date,
.post-slide-card:hover .category-badge {
    color: #ffffff;
}

.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;
    transition: all 0.3s ease;
}

.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: #c2d5eb;
    color: #4A4459;
    padding: 2px 10px;
    border-radius: 5px;
    font-size: 14px;
    transition: 0.5s;
}

.tag-item:hover {
    background: #333333;
    color: #FFFFFF;
}

.category-badge {
    display: inline-block;
    margin-right: 8px;
    color: #666;
    font-size: 14px;
    text-decoration: underline;
}

.swiper-pagination-bullet-active {
    background: #2069bb !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; /* 圆点高度 */
    position: relative;
    padding-left: calc(var(--marker-width) + 10px); /* 留出间距 */
    margin-bottom: 12px; /* 列表项间距 */
}

.recommended-article:hover::before {
    content: "\f054";
    font-family: 'Font Awesome 5 Free';
    font-weight: 600;
    font-size: 20px;
    position: absolute;
    color: #2069bb;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}


.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: #2069bb;
    padding: 0 50px 0 50px;
    border-radius: 0 0 25px 0;
}

.uagb-block-899c498a .uagb-post__title a {
    position: relative;
    padding-left: 35px; /* 为图标留出空间 */
    display: inline-block;
    line-height: 1.5;
}

.uagb-block-899c498a .uagb-post__title a::before {
    content: "\f061";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #2069bb;
    font-size: 20px;
    z-index: 1;
    transition: all 0.3s;
}

.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: 25px;
    height: 25px;
    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: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #2069bb;
    font-size: 16px;
    z-index: 1;
    transition: all 0.3s;
}

/* Hover效果 */
.uagb-post__cta .wp-block-button__link:hover::after {
    color: #2091f9;
}

.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: #2069bb;
    font-size: 20px;
    cursor: pointer;
}

.separator {
    width: 1px;
    height: 25px;
    background-color: #2069bb;
    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: #2069bb;
    padding: 0 5px;
    border-radius: 5px;
}

.uagb-block-e4d0982b .uagb-post__inner-wrap .uagb-post__taxonomy a {
    color: white !important;
}

.post-taxonomy {
    background: #79747E;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    color: white;
    width: auto;
}

.tools-title {
    padding-bottom: 10px;
}

.tools-title-text {
    font-weight: 400;
    font-size: 20px;
    background: #2069bb;
    border-radius: 25px;
    padding: 10px 50px;
    color: white;
    position: relative;
}

.tools-title-text:before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' stroke='white' stroke-width='0.5' d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z'/%3E%3C/svg%3E");
    /* 移除font-family/font-weight等字體相關屬性 */
    width: 30px;
    height: 30px;
    position: absolute;
    color: white;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    /*display: flex;*/
    /*justify-content: center;*/
    align-items: center;

    border: 2px solid white;
    border-radius: 50%;
    box-sizing: border-box;
}

.post-taxonomy:hover {
    color: white;
    background: #2069bb;
    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: #0073aa;
}

.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;
    transition: 0.5s;
}

.tag-item-1:hover {
    background: #2069bb;
    color: white;
}

.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: #0073aa;
}

.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;
}

.search-form {
    background: #2069bb;
    padding: 5px 15px;
    border-radius: 5px;
}
.ct-footer [data-row]>div{
	 --grid-template-columns: 2.4fr 1fr!important;
}
.responsive-mega-menu .main-menu > li > a {
    color: white;
    font-size: 16px;
    font-weight: 400;
	}
.responsive-mega-menu .main-menu > li {
    margin-right: 20px;
    padding: 0 10px;
}

/*页眉菜单*/

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

@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;
    }

.uagb-block-216f8925 .uagb-ifb-title{
	font-size:20px !important;
}

	.cdc-footer__website{
		display:none;
	}
}