/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, 'Microsoft YaHei', Arial, sans-serif;
}

body {
    color: #333;
    background-color: #fff;
    line-height: 1.6;
    transition: all 0.3s ease;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

a:hover {
    color: #c00;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #c00;
    color: #fff;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #a00;
    color: #fff;
    transform: translateY(-2px);
}

/* 顶部广告位 */
.top-banner {
    width: 100%;
    /*height: 160px;*/
    display: contents;
    overflow: hidden;
    background-color: #f8f8f8;
    /*margin-bottom: 10px;*/
}

.top-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.top-banner:hover img {
    /*transform: scale(1.02);*/
}

/* Logo区域 */
.logo-section {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-right: 320px; /* 为右侧广告位留出空间 */
}

.main-logo {
    display: flex;
    align-items: center;
}

.main-logo img {
    height: 80px;
    margin-right: 15px;
    width: 520px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #c00;
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 16px;
    font-weight: normal;
    color: #666;
}

.logo-banner {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    height: 80px;
    overflow: hidden;
    border: 1px solid #eee;
}

.logo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 首页的搜索和用户、语言相关*/
.sl_container{
    width: 100%;
    display: flex;
    justify-content: center; /* 子元素水平居中（关键） */
    align-items: center;  /* 子元素垂直居中（可选，按需加） */
    flex-wrap: wrap;      /* 屏幕变小时自动换行，不挤在一起 */
    margin: 0 auto;       /* 兜底居中，兼容特殊情况 */
    padding: 10px 0;
}
.sl_container > * {
    margin: 0 5px; /* 左右间距5px，可自行调整 */
}
.sl_container .search{
    width: 600px;
    border-color: #C01428;
    border: red 1px solid;
    border-radius: 15px;

}
.sl_container .search li{
    list-style: none;

}
.search-item{
    width: 120px;

}
.search-item a{
    display: inline-block;
    width: 120px;
    height: 45px;
    line-height: 36px;
    text-align: center;
    background-color: #C01428;
    color: #ffffff;
    border-bottom-left-radius: 15px;
    border-top-left-radius: 15px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}
.search_submenu{
    display: none;
}
.search_submenu a{
    text-align: center;
    background-color: #C01428;
    color: #ffffff;
}
.search_input{
    width: 430px;
    padding-left: 10px;
    padding-right: 10px;
    border: 0px;
}
.search_input:focus{
    border: none;
    outline: none;
    box-shadow: none;

}
.btn_search{
    width: 45px;
    background-position-x: center;
    background-position-y: center;
    background-image: url("/assets/image/search.png");
    color: #ffffff;
    border: 0px;
    border-top-right-radius: 15px;
    border-top-left-radius: 0px;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 0px;
}
.right_info{
    width: 350px;
    display: contents !important;
}
.login_info{
    width: 200px;
    margin-left: 10px;
    margin-right: 10px;
    padding-left: 10px;
    padding-right: 10px;
    display: inline-block;
    border-radius: 15px;
    background-color: #C01428;
    color: #ffffff;
}
.login_info img{
    margin-top: 10px;
    width: 30px;
    height: 30px;
}
.login_info span{
    position: relative;
    top: -10px;
}
.language{
    display: flex;
    line-height: 40px;
    text-align: center;
}
.language a{
    width: 130px;
    border-radius: 15px;
    border:#E7E7E7 1px solid;
}
/* 导航栏 */
.navbar {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 水平0，垂直4px，模糊8px，浅黑透明 */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;

}

.nav-item {
    position: relative;
    min-width: 120px;
    padding-left: 20px;

}

.nav-link {
    display: block;
    /*color: #fff;*/
    font-size: 16px;
    font-weight: 500;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    /*background-color: #c00;*/
    /*color: #fff;*/
}

/* 下拉菜单样式 */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #fff;
    border: 1px solid #eee;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item:hover .submenu {
    display: block;
}

.submenu li {
    border-bottom: 1px solid #f5f5f5;
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
}

.submenu a:hover {
    background-color: #f8f8f8;
    color: #c00;
    padding-left: 25px;
}

/* 语言切换下拉菜单样式 */
.lang-submenu {
    min-width: 120px;
}

.lang-submenu a {
    text-align: center;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    padding: 15px;
}
.mobile-menu{
    display: none;
}

/* 主体内容区域 */
.main-content {
    padding: 30px 0;
    display: flex;
}

/* 侧边广告位 */
.sidebar {
    width: 160px;
    padding: 0 0px;
}

.ad-item {
    width: 100%;
    height: 120px;
    overflow: hidden;
    /*margin-bottom: 15px;*/
    border: 1px solid #eee;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.ad-item:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.ad-item img {
    width: 134px;
    height: 100%;
    object-fit: cover;
}

/* 中间内容区域 - 田字形布局 */
.content-area {
    flex: 1;
    padding: 0 5px;
    width: 918.8px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.content-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    /*padding: 20px;*/
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
.content-card .more{
    float: right;
    padding-right: 10px;
}
.card-title {
    font-size: 18px;
    color: #111111;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5f5f5;
    display: flex;
    align-items: center;
    padding-left: 10px;
    /*width: 80%;*/
}
.card-title span{
    color: #c00;
}
.card-title i {
    margin-right: 10px;
    font-size: 20px;
}

/* 关于正晟 */
.about_img{
    width: 514px;
    height: 100%;
}
.about-content {
    font-size: 14px;
    color: #666;
    line-height: 1.8;

    /* 超出部分隐藏 */
    overflow: hidden;
    /* 显示省略号 */
    text-overflow: ellipsis;
    /* 弹性盒模型布局 */
    display: -webkit-box;
    /* 设置显示的行数 */
    -webkit-line-clamp: 10;
    /* 设置文本的排列方向为垂直 */
    -webkit-box-orient: vertical;
}

.about-content p {
    margin-bottom: 15px;
}

.about-more {
    text-align: right;
    margin-top: 10px;
}

/* 厂商列表 */
.vendor-list {
    /*display: grid;*/
    /*grid-template-columns: 1fr ;*/
    /*gap: 10px;*/
}
.product-list{
    display: grid;
    grid-template-columns: 1fr 1fr ;
}

.vendor-item .company{
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    
    max-width: 36ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
}
.vendor-item .instruction{
    font-size: 12px;
    width: 100%;
    
     max-width: 52ch;
     display: -webkit-box;
     -webkit-line-clamp:3;
     -webkit-box-orient:vertical;
   
    overflow: hidden;
     text-overflow: ellipsis;
    
}
.vendor-item  {
    /*display: flex;*/
    align-items: center;
    padding: 8px 10px;
    transition: all 0.3s ease;
}
.product-item{
    display: grid;
    align-items: center;
    padding: 8px 10px;
    transition: all 0.3s ease;
}
.product-item .img_show{
    width: 247px;
    /*max-width: 247px;*/
    /*max-height: 163px;*/
    height: 163px;
}
.product-item .img_show img{
    width: 247px;
    height: 163px;
}
.product-item .img_name{
    width: 247px;
    text-align: center;
    vertical-align: center;
}
.vendor-item:hover, .product-item:hover {
    background-color: #f8f8f8;
    border-radius: 3px;
}

.vendor-item i, .product-item i {
    color: #c00;
    margin-right: 8px;
    font-size: 12px;
}

.vendor-item a, .product-item a {
    font-size: 14px;
    color: #333;
}

.vendor-item a:hover, .product-item a:hover {
    color: #c00;
    text-decoration: underline;
}

.list-more {
    grid-column: 1 / -1;
    text-align: right;
    margin-top: 10px;
}

/* 展会信息 */
.exhibition-info {
    font-size: 14px;
    color: #666;
}

.exhibition-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}
.exhibition_img img,.first img{
    width: 150px;
    height: 105px;
}
.exhibition_img{
    width: 150px;
    height: 105px;
    padding-left: 5px;
    padding-right: 5px;
}
.exh_info{
    padding-left: 10px;
    padding-right: 10px;
}
.exh_info .exh_title{
    font-weight: bold;
    font-size: 16px;
}
.exh_info .exh_date{
    font-size: 12px;
}
.exh_info .exh_address{
    font-size: 12px;
}
.exh_else{
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 5px;
    padding-bottom: 5px;
}
.exh_else .exh_city{
    font-size: 12px;
    width: 32px;
}
.exh_else .exh_title{
    font-size: 12px;
    width: 180px;
    white-space: nowrap; /* 强制文字不换行 */
    overflow: hidden; /* 隐藏超出容器的部分 */
    text-overflow: ellipsis; /* 超出部分替换为... */
}
.exh_else .exh_date{
    font-size: 12px;
    width: 62px;
}
.exh_else .exh_address{
    font-size: 12px;
    width: 142px;
    white-space: nowrap; /* 强制文字不换行 */
    overflow: hidden; /* 隐藏超出容器的部分 */
    text-overflow: ellipsis; /* 超出部分替换为... */
}
.exhibition-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.exhibition-date {
    width: 80px;
    height: 80px;
    background-color: #f8f8f8;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.date-month {
    font-size: 16px;
    font-weight: 700;
    color: #c00;
}

.date-year {
    font-size: 14px;
    color: #666;
}

.exhibition-details {
    flex: 1;
}

.exhibition-details h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
}

.exhibition-details p {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: #ccc;
    padding: 30px 0;
    margin-top: 20px;
}

.footer-content {
    text-align: center;
}

.footer-products {
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-products a {
    color: #ccc;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.footer-products a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-contact {
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-contact span {
    margin: 0 15px;
}

.footer-copyright {
    font-size: 13px;
    color: #999;
    padding-top: 15px;
    border-top: 1px solid #444;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .sidebar {
        display: none;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .logo-section {
        padding-right: 0;
        flex-direction: column;
        text-align: center;
    }

    .logo-banner {
        position: relative;
        top: 0;
        transform: none;
        width: 100%;
        margin-top: 15px;
    }
    .sl_container{
        /*display: none;*/
        max-width: 992px;
    }
    .sl_container .search{
        width: 327px;
        border-color: #C01428;
        border: red 1px solid;
        border-radius: 15px;

    }
    .sl_container .search li{
        list-style: none;

    }
    .search_input{
        width: 159px;
        padding-left: 10px;
        padding-right: 10px;
        border: 0px;
    }
    .search_input:focus{
        border: none;
        outline: none;
        box-shadow: none;

    }
    .btn_search{
        width: 45px;
        background-position-x: center;
        background-position-y: center;
        background-image: url("/assets/image/search.png");
        color: #ffffff;
        border: 0px;
        border-top-right-radius: 15px;
        border-top-left-radius: 0px;
        border-bottom-right-radius: 15px;
        border-bottom-left-radius: 0px;
    }
    .right_info{
        width: 350px;
        display: contents !important;
    }
    .login_info{
        width: 200px;

        left: 200px;
        margin-left: 10px;
        margin-right: 10px;
        padding-left: 10px;
        padding-right: 10px;
        display: inline-block;
        border-radius: 15px;
        background-color: #C01428;
        color: #ffffff;
    }
    .login_info img{
        margin-top: 10px;
        width: 30px;
        height: 30px;
    }
    .login_info span{
        position: relative;
        top: -10px;
        color: #ffffff;
    }
    .login_info > .login_a{
        color: #ffffff;
    }
    .login_a{
        color: #ffffff;
    }
    .language{
        display: flex;
        line-height: 40px;
        text-align: center;
    }
    .language a{
        width: 90px;
        border-radius: 15px;
        border:#E7E7E7 1px solid;
    }
}

@media (max-width: 768px) {
    .top-banner {
        height: 60px;
    }
    .mobile-menu-btn{
        display: block;
        color: #c01428;
    }
    .mobile-menu{
        display: none;
        position: absolute;
        padding-left: 60px;
        background-color: #ffffff;
    }
    .mobile-menu .nav-item{
        display: flex;

    }

    .mobile-menu .nav-item svg{
        margin-top: 22px;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #333;
    }

    .nav-menu.active {
        display: flex;
    }

    .submenu {
        position: static;
        min-width: 100%;
        background-color: #444;
    }

    .submenu a {
        color: #eee;
    }

    .submenu a:hover {
        background-color: #555;
        color: #fff;
    }

    .mobile-menu-btn {
        display: block;
        color: #c01428;
    }

    .vendor-list {
        grid-template-columns: 1fr;
    }
    .product-list{
        grid-template-columns: 1fr 1fr;
    }
    .sl_container{

        max-width: 768px;
    }
    .sl_container .search{
        width: 768px;
        border-color: #C01428;
        border: red 1px solid;
        border-radius: 15px;

    }
    .sl_container .search li{
        list-style: none;

    }
    .search_input{
        width: 111px;
        padding-left: 10px;
        padding-right: 10px;
        border: 0px;
    }
    .search_input:focus{
        border: none;
        outline: none;
        box-shadow: none;

    }
    .btn_search{
        width: 45px;
        background-position-x: center;
        background-position-y: center;
        background-image: url("/assets/image/search.png");
        color: #ffffff;
        border: 0px;
        border-top-right-radius: 15px;
        border-top-left-radius: 0px;
        border-bottom-right-radius: 15px;
        border-bottom-left-radius: 0px;
    }
    .right_info{
        width: 250px;
        display: flex !important;
    }
    .login_info{
        width: 170px;

        left: 200px;
        margin-left: 10px;
        margin-right: 10px;
        padding-left: 10px;
        padding-right: 10px;
        display: inline-block;
        border-radius: 15px;
        background-color: #C01428;
        color: #ffffff;
    }
    .login_info img{
        /*display: none;*/
        margin-top: 10px;
        width: 30px;
        height: 30px;
    }
    .login_info span{
        display: none;
        /*position: relative;*/
        /*top: -10px;*/
        /*font-size: 12px;*/
    }
    .language{
        display: flex;
        line-height: 40px;
        text-align: center;
    }
    .language a{
        width: 90px;
        border-radius: 15px;
        border:#E7E7E7 1px solid;
    }
}

@media (max-width: 576px) {
    .container{
        width:100%;
        padding: 0 0 0 0;
    }
    .company_list{
        margin-left: 0px;
    }
    .company_list .info_top{
        width: 100%;
    }

    .content-area{
        width:100%;
        padding: 0 0 0 0;
    }
    .content-card{
        width:100%;
    }
    .product-item .img_show{
        width: 100%;
        height: auto;
    }
    .product-item .img_show img{
        width: 100%;
        height: auto;
    }
    .about-content{
        width: 98%;
    }
    .top-banner {
        height: 40px;
    }

    .main-logo img {
        height: 60px;
        width: 100%;
    }
    .exh_else .exh_city{
        display: none;
    }
    .red_menu{

    }
    .logo-text {
        font-size: 20px;
    }

    .logo-text span {
        font-size: 14px;
    }

    .footer-contact span {
        display: block;
        margin: 5px 0;
    }
    .sl_container{
        max-width: 576px;
        display: grid
    }
    .sl_container .search{
        width: 278px;
        border-color: #C01428;
        border: red 1px solid;
        border-radius: 15px;

    }
    .sl_container .search li{
        list-style: none;

    }
    .search_input{
        width: 111px;
        padding-left: 10px;
        padding-right: 10px;
        border: 0px;
    }
    .search_input:focus{
        border: none;
        outline: none;
        box-shadow: none;

    }
    .btn_search{
        width: 45px;
        background-position-x: center;
        background-position-y: center;
        background-image: url("/assets/image/search.png");
        color: #ffffff;
        border: 0px;
        border-top-right-radius: 15px;
        border-top-left-radius: 0px;
        border-bottom-right-radius: 15px;
        border-bottom-left-radius: 0px;
    }

    .login_info{
        width: 170px;
        margin-top: 10px;
        left: 200px;
        margin-left: 0px;
        margin-right: 10px;
        padding-left: 10px;
        padding-right: 10px;
        display: inline-block;
        border-radius: 15px;
        background-color: #C01428;
        color: #ffffff;
    }
    .login_info img{
        /*display: none;*/
        margin-top: 10px;
        width: 30px;
        height: 30px;
    }
    .login_info span{
        display: inline-flex;
    }
    .language{
        display: flex;
        margin-top: 10px;
        line-height: 40px;
        text-align: center;
    }
    .language a{
        width: 60px;
        border-radius: 15px;
        border:#E7E7E7 1px solid;
        font-size: 10px;
    }
    .product-list{
        display: flow;
    }
    /*.product-item .img_show{*/
    /*    width: 100%;*/
    /*    height: auto;*/
    /*}*/
    /*.product-item .img_show img{*/
    /*    width: 100%;*/
    /*    height: auto;*/
    /*}*/
}


.pagination{
    margin: 20px 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px; /* 页码之间的间距 */
}

/* 分页项的样式 */
.pagination li {
    display: inline-block;
}
.pagination li span{
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px; /* 圆角优化视觉 */
    transition: all 0.2s ease; /* 过渡动画，让交互更丝滑 */
    box-sizing: border-box;
}
/* 核心层级：li > span > a */
.pagination li span a {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px; /* 圆角优化视觉 */
    transition: all 0.2s ease; /* 过渡动画，让交互更丝滑 */
    box-sizing: border-box;
}
.pagination li  a {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px; /* 圆角优化视觉 */
    transition: all 0.2s ease; /* 过渡动画，让交互更丝滑 */
    box-sizing: border-box;
}

/* 普通页码样式（红色调基础） */
.pagination li span{
    color: #d32f2f; /* 深红色文字 */
    border: 1px solid #fce4e4; /* 浅红色边框 */
    background-color: #fff;
}
.pagination li span a{
    color: #d32f2f; /* 深红色文字 */
    border: 1px solid #fce4e4; /* 浅红色边框 */
    background-color: #fff;
}
.pagination li a{
    color: #d32f2f; /* 深红色文字 */
    border: 1px solid #fce4e4; /* 浅红色边框 */
    background-color: #fff;
}

/* 鼠标悬停效果 */
.pagination li:not(.disabled):not(.active) span a:hover {
    background-color: #fef2f2; /* 浅红色背景 */
    border-color: #f87171; /* 深一点的红色边框 */
    color: #b91c1c; /* 更深的红色文字 */
    transform: translateY(-1px); /* 轻微上移，增强交互感 */
}
.pagination li:not(.disabled):not(.active)  a:hover {
    background-color: #fef2f2; /* 浅红色背景 */
    border-color: #f87171; /* 深一点的红色边框 */
    color: #b91c1c; /* 更深的红色文字 */
    transform: translateY(-1px); /* 轻微上移，增强交互感 */
}


/* 当前页码样式（突出显示） */
.pagination li.active span a {
    background-color: #d32f2f; /* 主红色背景 */
    color: #fff; /* 白色文字 */
    border-color: #d32f2f;
    cursor: default; /* 鼠标指针变为默认，标识不可点击 */
}
.pagination li.active span{
    background-color: #d32f2f; /* 主红色背景 */
    color: #fff; /* 白色文字 */
    border-color: #d32f2f;
    cursor: default; /* 鼠标指针变为默认，标识不可点击 */
}

/* 禁用页码样式（如上一页、下一页不可点击时） */
.pagination li.disabled span a {
    color: #f5d7d7; /* 浅红色文字，标识禁用 */
    border-color: #fce4e4;
    background-color: #fff;
    cursor: not-allowed; /* 鼠标指针变为禁止，标识不可点击 */
}

.pagination li.disabled span {
    color: #f5d7d7; /* 浅红色文字，标识禁用 */
    border-color: #fce4e4;
    background-color: #fff;
    cursor: not-allowed; /* 鼠标指针变为禁止，标识不可点击 */
}

/* 禁用状态取消悬停效果 */
.pagination li.disabled span a:hover {
    transform: none;
    background-color: #fff;
    border-color: #fce4e4;
    color: #f5d7d7;
}
