/* 自定义样式 */

/* 字体定义 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
/* 自定义颜色变量 */
:root {
    --primary-green: #126352;
    --primary-green-dark: #0A4238;
    --primary-orange: #FD742D;
    --primary-orange-dark: #E55A1A;
    --primary-gray: #3C3F3F;
    --primary-gray-dark: #272A2A;
    --primary-gray-light: #626565;
    --primary-gray-lighter: #8D9090;
    --primary-gray-lightest: #B7B9B9;
    --primary-gray-lightestest: #f1f1f1;
    --primary-green-light: #E8F5EA;
    /* Font Variables */
    --font-primary: 'Poppins','Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'STHeiti', 'SimHei', sans-serif;
}

/* 颜色工具类 */

/* 绿色工具类 */
.border-primary-green {
    border: 1px solid var(--primary-green);
    border-color: var(--primary-green);
}
.bg-primary-green {
    background-color: var(--primary-green);
}
.bg-primary-green-dark {
    background-color: var(--primary-green-dark);
}
.bg-primary-green-light {
    background-color: var(--primary-green-light);
}
.text-primary-green {
    color: var(--primary-green);
}
.text-primary-green-dark {
    color: var(--primary-green-dark);
}
.hover\:bg-primary-green:hover {
    background-color: var(--primary-green);
}
.hover\:bg-primary-green-dark:hover {
    background-color: var(--primary-green-dark);
}
.hover\:text-primary-green:hover {
    color: var(--primary-green);
}
.hover\:text-primary-green-dark:hover {
    color: var(--primary-green-dark);
}
.hover\:border-primary-green:hover {
    border-color: var(--primary-green);
}
.hover\:text-white:hover {
    color: white;
}

/* 支持 Tailwind 中使用主题绿色 */
.bg-primary-green\/20 {
    background-color: rgba(18, 99, 82, 0.2);
}
.bg-primary-green\/30 {
    background-color: rgba(18, 99, 82, 0.3);
}

/* 橙色工具类 */
.border-primary-orange {
    border: 1px solid var(--primary-orange);
}
.bg-primary-orange {
    background-color: var(--primary-orange);
}
.bg-primary-orange-dark {
    background-color: var(--primary-orange-dark);
}
.text-primary-orange {
    color: var(--primary-orange);
}
.text-primary-orange-dark {
    color: var(--primary-orange-dark);
}
.hover\:bg-primary-orange:hover {
    background-color: var(--primary-orange);
}
.hover\:bg-primary-orange-dark:hover {
    background-color: var(--primary-orange-dark);
}
.hover\:text-primary-orange:hover {
    color: var(--primary-orange);
}
.hover\:border-primary-orange:hover {
    border-color: var(--primary-orange);
}
.hover\:text-primary-orange-dark:hover {
    color: var(--primary-orange-dark);
}
.hover\:border-primary-orange-dark:hover {
    border-color: var(--primary-orange-dark);
}

/* 灰色工具类 */
.bg-primary-gray {
    background-color: var(--primary-gray);
}
.bg-primary-gray-dark {
    background-color: var(--primary-gray-dark);
}

/* Group hover */
.group:hover .group-hover\:text-white {
    color: white;
}
.group:hover .group-hover\:text-primary-green {
    color: var(--primary-green);
}
.group:hover .group-hover\:bg-primary-green {
    background-color: var(--primary-green);
}
.group:hover .group-hover\:bg-primary-green-dark {
    background-color: var(--primary-green-dark);
}
.group:hover .group-hover\:text-primary-orange {
    color: var(--primary-orange);
}
.group:hover .group-hover\:text-primary-orange-dark {
    color: var(--primary-orange-dark);
}
.group:hover .group-hover\:bg-primary-orange {
    background-color: var(--primary-orange);
}
.group:hover .group-hover\:bg-primary-orange-dark {
    background-color: var(--primary-orange-dark);
}

/* Global Styles */
html {
    background-color: transparent !important;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    overflow-x: hidden;
    color: #3C3F3F;
    margin: 0;
    padding: 0;
}

/* 修复移动端滚动时页面高度变化的问题 */
/* 在移动端，使用 fixed 定位的 sidebar-menu 使用视口高度而不是父元素高度 */
@media (max-width: 1023px) {
    #sidebar-menu[class*="fixed"] {
        height: 100vh !important;
        height: 100dvh !important; /* 使用动态视口高度，避免地址栏影响 */
        max-height: 100vh !important;
        max-height: 100dvh !important;
    }
}



/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green-dark);
}


/* Swiper 轮播图样式 */
.heroSwiper .swiper-pagination {
    bottom: 30px;
}

.heroSwiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s;
}

.heroSwiper .swiper-pagination-bullet-active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* Swiper 导航按钮样式 */
.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
    color: #fff;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s;
}

.heroSwiper .swiper-button-next:hover,
.heroSwiper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.4);
}

.heroSwiper .swiper-button-next::after,
.heroSwiper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 768px) {
    
    .heroSwiper .swiper-button-next,
    .heroSwiper .swiper-button-prev {
        display: none; /* 移动端隐藏导航按钮 */
    }
    
    .heroSwiper .swiper-pagination {
        bottom: 20px;
    }
}


.table-container::-webkit-scrollbar {
    width: 6px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.canshu{ font-size: 14px; overflow: hidden;}

.canshu .table-container{
    max-width: 100vw;
    width: 100%;
    position: relative;
    overflow-x: auto;
    overflow-y: auto;
    padding-right: 16px;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}
.canshu .table-container p {
    margin: 20px 0;
    font-size:14px;
}

.canshu .table-container h3{
font-size: 16px;
font-weight: 600;
margin-bottom: 1.25rem;
position: relative;
}


.canshu .table-container::-webkit-scrollbar {
    width: 3px;
    height: 3px; 

}

.canshu .table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0;
}

.canshu .table-container::-webkit-scrollbar-thumb {
    background: #1E579E;
    border-radius: 0;
}

.canshu .table-container::-webkit-scrollbar-thumb:hover {
    background: #0f3d6b;
}

.canshu table{
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    
}

.canshu th,.canshu td {
    padding: 10px;
    text-align: center;
    font-size: 14px;
    background-color:white;
    transition: background-color 0.1s ease,color 0.3s ease;
    border-bottom: 1px solid #e0e0e0;

}

.canshu-img {
    background-color: transparent !important;
}

.canshu-img img {
    background-color: transparent !important;
    mix-blend-mode: normal;
}
@media (max-width: 767px) {

    .canshu th,.canshu td {
        font-size: 12px !important;
    
    }
    .canshu table tr:first-child td{
        font-size: 12px !important;
    }
}
@media (max-width: 1023px) {
    .canshu .canshu-img {
        max-width: 300px !important;
    }

    .canshu .table-container {
        padding-right: 16px;
        padding-bottom: 16px;
    }
}
@media (min-width: 1024px) {

.canshu .table-container p {
    font-size:16px;
}
.canshu .table-container h3{
font-size: 18px;
}

.canshu th,.canshu td {
    font-size: 16px;
    padding: 20px;

   }
}

.canshu table tr:first-child {
    position: sticky;
    -webkit-position: sticky;
    -moz-position: sticky;
    -ms-position: sticky;
    -o-position: sticky;
    top: 0px;
    z-index: 20;
    color: white;
}
.canshu table tr:first-child td{
    font-size: 16px;
}

.canshu table tr:first-child td {
   color: white;
    background-color: var(--primary-green);
}

.canshu tr:nth-child(odd) td {
    background-color: #f0f0f0;
}

.canshu tr:hover td {
    background-color: var(--primary-green);
    color: white;
}

.canshu td {
    color: #333333;
}


.blog-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    line-height: 1.4;
}

.blog-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 1.2rem;
    margin-top: 2rem;
    line-height: 1.4;
}

.blog-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 1.8rem;
    line-height: 1.4;
}

.blog-content h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
    line-height: 1.4;
}

.blog-content p,
.blog-content li {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--primary-gray);
    font-size: 16px;
}
.blog-content ul{
    list-style: disc;   
    padding-left:1.5rem; 
    margin-bottom:1.5rem;   
}
.blog-content li{
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.blog-content img {
    display: block;
    height: auto !important;
    margin: 2rem auto;
    max-width: 100% !important;
    border-radius: 1rem;
}
.blog-content a{
    color: var(--primary-orange);
    text-decoration: underline;
    transition: color 0.3s ease;
    font-weight: 600;
}
.blog-content a:hover{
    color: var(--primary-orange-dark);
}

.blog-content .table-container {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    max-height: none;
    height: auto;
}

.blog-content .table-container::-webkit-scrollbar {
    height: 3px;
    width: 0px;
}

.blog-content .table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.blog-content .table-container::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

.blog-content .table-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green-dark);
}

.blog-content .table-container {
    overflow-y: hidden !important;
}

.blog-content table {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    border-collapse: collapse !important;
    margin: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border: none !important;
    height: auto !important;
    max-height: none !important;
}

.blog-content table th,
.blog-content table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    vertical-align: top;
    height: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.blog-content table th:last-child,
.blog-content table td:last-child {
    border-right: none;
}

.blog-content table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(---text-dark);
    font-size: 14px;
    border-bottom: 2px solid #d1d5db;
}

.blog-content table td {
    color: var(---text-gray);
    font-size: 14px;
    line-height: 1.5;
}

.blog-content table tr:hover {
    background-color: #f9fafb;
}




.blog-content table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .blog-content h2 {
        font-size: 20px;
        margin-bottom: 1.2rem;
        margin-top: 2rem;
    }
    
    .blog-content h3 {
        font-size: 18px;
        margin-bottom: 1rem;
        margin-top: 1.8rem;
    }
    
    .blog-content p,
    .blog-content li {
        font-size: 14px;
        margin-bottom: 1.2rem;
    }
    
    .blog-content img {
        margin: 1.5rem auto;
    }
    
    .blog-content .table-container {
        margin: 1.5rem 0;
    }
    
    .blog-content table {
        font-size: 13px;
    }
    
    .blog-content table th,
    .blog-content table td {
        padding: 8px 12px;
        font-size: 13px;
    }
}
.blog-next-prev a{
    transition: color 0.5s ease;
}
.blog-next-prev a:hover {
    color: var(--primary-green);
}





.articlesSwiper-pagination .swiper-pagination-bullet {
    background: var(--primary-orange-dark);
    width: 12px;
    height: 12px;
    opacity: 0.3;
}

.articlesSwiper-pagination .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 6px;
    background: var(--primary-orange);
    opacity: 1;
}



@media (max-width: 480px) {
    body.tawk-mobile, html.tawk-mobile {
        display: none !important;
    }
}