/*
Theme Name: XTAR CC
Theme URI: https://www.xtar.cc
Description: XTAR定制主题，模块化，高级自定义主题，联系：13632418451
Author: 一墨流年
Author URI: https://www.xtar.cc
Template: blocksy
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blocksy-child
*/


/*导航*/
.head-top {
    background: #ffffff;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,.05);
    color: #333;
}
.header-nav {
    height: 80px;
}
.single-content img{
	width: 100%;	
}
p.has-text-align-center {
    text-align: center!important;
}
.single-iframe {
    position: relative;
    padding-bottom: 56.25%; /* 16:9的宽高比 */
    height: 0;
    overflow: hidden;
}

.single-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.w50{
    width: 50%;
    margin: 0 auto;
}
.imageResponse{
    width: 100%;	
}
.from-width{
    width: 750px;
}
.ct-header-text h6 {
    color: #fff;
}
/*页脚*/
.widget_nav_menu h3,.widget_block h6 {
    font-size: 20px;
    color: #ffffff;
}

.widget_nav_menu li>a {
    color: #f1f1f1;
}

.sharethis-inline-follow-buttons img{
    padding-right: 12px;
    width: 50px;

}
.footer h6 {
    font-size: 20px;
    font-weight: bold;
}
.asl-cont .sl-ddl-city {display: none !important;}
.asl-cont .sl-ddl-state {display: none !important;}

.submit-forms-examplemodal {
    position: fixed;
    display: block;
    bottom: 120px;
    right: calc(var(--theme-frame-size, 0px) + var(--back-top-side-offset, 25px));
    z-index: 999;
    background: rgba(11, 49, 143, .9);
    height: 49px;
    width: 49px;
    line-height: 49px;
    text-align: center;
    font-size: 25px;
    color: #ffffff !important;
}
.ct-back-to-top {
    bottom: 68px!important;
}
/*关于我们*/
.about-bg{
    background-color: #f8f8f8;
    background-image: url(/wp-content/uploads/2024/01/home-background.jpg);
    background-size: cover;
}
.about-message p {
    color: #000000;
    font-size: 16px;
}
.about-message h2 {
    color: #0075c4;
    font-weight: bold;
    font-size: 24px;
}
.home-title h2{
    font-weight: bold;
    font-size: 32px;
}
.about-card {
    background: rgb(255 255 255 / 60%);
}
/*四个卡片*/
.text-card-left {
    padding-left: 0!important;
}
/*首页热门文章*/
.home-post img {
    border-radius: 4px;
}
.home-post-header a {
    color: #333333;
    text-decoration: underline;
    font-weight: bold;
}
.home-post-header h2 {
    font-weight: 600;
    color: #000000;
}
.random-hot-single-article a {
    font-weight: bold;
    font-size: 20px;
    color: #000000;
    line-height: 20px;
}
.random-hot-single-article p {
    margin: 0;
    color: #999;
}
.andom-hot-single-article-meta{
    padding: 0 30px;
    margin-top:20px;
}

.latest-post-meta a {
    font-size: 16px;
    color: #2c3a47;
    line-height: 20px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.latest-post-meta p {
    margin: 0;
    color: #999;
}
.latest-post-img {
    height: 100px;
    width: 150px;
    overflow: hidden; /* 隐藏溢出部分 */
}

.latest-post-img img {
    width: 100%; /* 使图像宽度填满容器 */
    height: 100%; /* 使图像高度填满容器 */
    object-fit: cover; /* 裁剪并保持宽高比 */
}

/*文章分类页面*/
.post-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-preview {
    height: 150px;
    width: 100%;
    overflow: hidden;
}
.post-content p {
    line-height: 1.5;
    color: #787878;
    text-align: left;
}

.entry-excerpt p {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制显示两行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*产品详情*/
.single-content table.tg {
    overflow-x: auto;
    overflow-y: hidden; /* 确保纵向滚动条不显示 */
    white-space: nowrap; /* 防止文本换行，保证横向滚动效果 */
}

/* 强制显示横向滚动条 */
.single-content table.tg::-webkit-scrollbar {
    height: 4px; /* 调整滚动条高度 */
}

.single-content table.tg::-webkit-scrollbar-thumb {
    background-color: #888; /* 调整滚动条拖动部分的颜色 */
}

.single-content h1 {
    font-weight: bold;
    margin-bottom: 50px;
}

.single-content table.tg {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    overflow-x: auto;
    display: block; /* 将 display 属性改为 block */
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
}

.single-content table.tg th, 
.single-content table.tg td {
    border: 1px solid #ddd;
    padding: 8px;
    white-space: nowrap; /* 防止内容换行 */
    text-align: left;
    font-size: 10px;
}

.product-single-title h1{
    font-size: 42px;
    font-weight: bold;
}

/*文章详情页*/
.single-header h1 {
    font-weight: 700;
    color: #333;
    font-size: 40px;
}
.single-content p {
    color: #333;
    text-align: left;
}

 .article-full img{
     width: 100%;
 }
 .fit {
    background: #f7f8fa;
}
.single-card{
    border-radius: 8px;
    background-color:#fff;
    padding: 66px 80px 80px;
}
.single-post-img {
    height: 150px;
    overflow: hidden;
}
.single-post-meta a {
    color: #333;
}
.single-post-meta {
    line-height: 1;
    font-size: 15px;
    color: #333;
}
.single-post-meta p {
    color: #53667b;
    margin: 8px 0;
}
.single-header p {
    color: #0b318f;
}

.aligncenter {
    text-align: center;
}
.are-vertically-aligned-center {
    justify-content: center;
}

.random-post ul {
    counter-reset: random-article-counter; /* 初始化计数器 */
    list-style-type: none; /* 移除默认列表样式 */
    padding: 0;
}

.random-post li {
    counter-increment: random-article-counter; /* 每个列表项递增计数器 */
    margin-bottom: 10px; /* 列表项之间的间距 */
    position: relative; /* 为计数器的定位做准备 */
    padding-left: 30px; /* 留出空间放置计数器 */
}

.random-post li::before {
    content: counter(random-article-counter) ". "; /* 使用计数器的值 */
    position: absolute; /* 绝对定位 */
    left: 0; /* 放在列表项的最左边 */
    font-weight: bold; /* 字体加粗 */
    color: #333; /* 默认字体颜色 */
}

.asp_w_container_1 {
    border: 1px solid #000000;
    border-radius: 16px;
}
/* 单独设置前三个列表项计数器的颜色 */
.random-post li:nth-child(1)::before { color: red; } /* 第一个列表项计数器为红色 */
.random-post li:nth-child(2)::before { color: green; } /* 第二个列表项计数器为绿色 */
.random-post li:nth-child(3)::before { color: blue; } /* 第三个列表项计数器为蓝色 */


.buy-button {
    border: 1px solid #0b318f;
    padding: 10px 20px;
    color: #ffffff;
    background: #0b318f;
    font-size: 14px;
    border-radius: 4px;
}

#search-modal .ct-panel-content {
    max-height: 550px;
}

[data-header*="type-1"] #search-modal {
    max-height: 550px;
}

/* 隐藏带有 prev page-numbers 类的元素 */
.prev.page-numbers,
.next.page-numbers {
    display: none;
}

.ct-pagination {
    background: #ffffff;
    padding: 10px 0px;
}

/* 只针对表格添加样式 */
.e_box.p_articles table {
    width: 100%;
    border-collapse: collapse;
    /* 去除单元格之间的空隙 */
    overflow-x: auto;
    display: inline-block;
    /* 允许横向滚动 */
}

.e_box.p_articles th,
.e_box.p_articles td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
    /* 添加表格边框 */
}

/* 可选：设置表头的背景色和字体颜色 */
.e_box.p_articles thead th {
    background-color: #f2f2f2;
    color: #333;
}

/* 手机端样式 */
@media (max-width: 600px) {
    .e_box.p_articles table {
        width: 100%;
        /* 在小屏幕设备上自动宽度 */
    }
}

  .widget_recent_entries ul,.widget_categories ul {
    list-style-type: disc; /* 设置项目符号类型为圆点 */
    padding-left: 20px;    /* 为了使项目符号显示，需要增加一些左边距 */
}

.ct-basic-table-container {
    overflow-x: auto;
    white-space: nowrap;
}

body:not(.elementor-editor-active) .entry-content .elementor-widget-basic-table {
    display: none;
}

.product-card-content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 2; /* 显示两行 */
    font-size: 14px;
    color: #333;
}
.product-card-content h5{
    font-size: 18px;
    font-weight: bold;
    color: #000;
}
.contrast-table-list h3 {
    font-size: 44px;
    margin-bottom: 50px;
    font-weight: bold;
    color: #0b318f;
}
[class^="ntb_edit_table_class_"] {
    display: none;
}

.table td, .table th {
    white-space: normal;
}
.table th, .table td {
    vertical-align: middle;
}
.hidden-table {
    display: none;
}
.contrast-table-list button {
    border: none;
    background: #0b318f;
    margin-top: 30px;
    border-radius: 32px;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 36px;
}

/* 针对移动设备的样式 */
@media (max-width: 768px) {

    #search-modal .ct-panel-content,
    [data-header*="type-1"] #search-modal {
        max-height: 100vh;
        /* 全高 */
        height: 100vh;
        /* 确保高度设置为全高 */
    }

    #search-modal .ct-panel-content {
        max-height: 550px;
    }

    .ct-hidden-sm {
        display: block !important;
    }
}


@media (max-width: 768px) {
    .widget-menu {
        display: none; /* 默认隐藏菜单 */
    }

    /* 针对 widget-area-1 的布局 */
    [data-footer*="type-1"] .ct-footer [data-column="widget-area-1"] {
        position: relative; /* 保持原有的 position */
        display: block!important;
    
    }

    /* 针对 widget-area-2 的布局 */
    [data-footer*="type-1"] .ct-footer [data-column="widget-area-2"] {
        position: relative; /* 保持原有的 position */
        display: block!important;
    }

    .ct-widget.active .widget-menu {
        display: block; /* 当手风琴展开时显示菜单 */
    }

    .widget-title {
        display: flex; /* 使用 flexbox 实现两端对齐 */
        justify-content: space-between; /* 左右两端对齐 */
        align-items: center; /* 垂直居中 */
        cursor: pointer;
        padding-right: 20px; /* 给右边留出空间 */
    }

    .widget-title::after {
        content: '\002B'; /* 默认显示加号 */
        font-size: 18px; /* 调整符号大小 */
    }

    .ct-widget.active .widget-title::after {
        content: '\2212'; /* 展开时显示减号 */
    }
}

