/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    font-size: 50px;
    font-weight: bold;
    color: #333;
}

.header-bottom {
    background-color: #333;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    width: 150px;
    text-align: center;
    list-style: none;
    white-space: nowrap;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: #555;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.nav-item:hover > .dropdown {
    display: block;
}

.dropdown-item {
    list-style: none;
    text-align: center;
}

.dropdown-link {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-link:hover {
    background-color: #555 !important;
}

/* 确保所有下拉菜单项高度一致 */
.dropdown-item {
    height: auto;
}

.dropdown-item a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-item a:hover {
    background-color: #555 !important;
}

/* 二级下拉菜单样式 */
.nav-item .nav-item {
    position: relative;
    width: 100%;
}

.nav-item .nav-item:hover > .dropdown {
    display: block;
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: 0;
}

/* 确保产品1级子节点的下拉菜单正确显示 */
.dropdown .nav-item:hover > .dropdown {
    display: block;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-item {
    flex: 0 0 100%;
    height: 100%;
    cursor: pointer;
    text-align: center;
}

.carousel-item img {
    /* width: 100%; */
    height: 100%;
    object-fit: cover;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel:hover .carousel-control {
    opacity: 1;
}

.carousel-control.prev {
    left: 330px;
}

.carousel-control.next {
    right: 330px;
}

/* 产品滑动展示样式 */
.product-slider {
    margin-top: 20px;
    padding-top: 5px;
    background-color: #f5f5f5;
}

.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.product-item {
    flex: 0 0 25%;
    padding: 10px;
    cursor: pointer;
    text-align: center;
}

.product-item img {
    width: 70%;
    height: 230px;
    object-fit: cover;
    border-radius: 4px;
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-container:hover .slider-control {
    opacity: 1;
}

.slider-control.prev {
    left: 10px;
}

.slider-control.next {
    right: 10px;
}

/* 新闻和案例样式 */
.news-cases {
    display: flex;
    padding: 10px 100px;
    gap: 40px;
}

.news,
.cases {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news img,
.cases img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* 产品列表样式 */
.product-list {
    display: flex;
    min-height: 600px;
}

.product-list-left {
    flex: 1;
    background-color: #f5f5f5;
    padding: 20px;
    max-width: 250px;
    min-width: 250px;
    width: 250px;
}

.product-list-left ul {
    list-style: none;
}

.product-list-left li {
    margin-bottom: 10px;
}

.product-list-left a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.product-list-left a:hover {
    background-color: #e0e0e0;
}

#product-list-right {
    width: calc(100vw - 290px);
    padding: 20px;
}

.product-item-row {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
    /* cursor: pointer; */
}

.product-item-row img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 20px;
}

.product-item-info {
    flex: 1;
}

.product-item-info h3 {
    margin-bottom: 10px;
}

.product-item-info p {
    margin-bottom: 15px;
}

.product-item-info a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a {
    padding: 8px 12px;
    margin: 0 5px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a.active {
    background-color: #333;
    color: #fff;
}

/* 产品详情样式 */
.product-detail {
    padding: 40px 0;
    text-align: center;
}

.product-detail h1 {
    margin-bottom: 30px;
}

.product-detail img {
    /* width: 100%; */
    max-height: 500px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 30px;
}

.product-detail-content {
    line-height: 1.8;
}

.product-detail table td{
    text-align: left;
}

/* 关于我们和联系我们样式 */
.about-us,
.contact-us {
    padding: 40px 100px;
}

.about-us img,
.contact-us img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
}
.about-us p{
    text-indent: 2em;
    line-height:1.8;
}
.about-us p label{
    font-weight: 700;
}

.divStyle {
    width: 100%;
}
.divStyle td{width: 50%;}
.divStyle span{ height: 60px;line-height: 60px;margin-top: 15px;font-size: 25px;padding-left: 5px;}
.divStyle input{
    width: 98%;
    height: 60px;
    line-height: 60px;
    margin-top: 25px;
    font-size: 25px;
    padding-left: 13px;
}
.divStyle .input1{
    width: 93%;
}
.divStyle textarea{
    width: 99%;
    margin-top: 25px;
    font-size: 25px;
    padding-left: 13px;
}
#checkcodestr1{
    width: 35%;
    float: left;
}
#codeImg {
    width: 20%;
    float: left;
    height: 60px;
    line-height: 60px;
    margin: 25px 15px 0 15px;
}
#send {
    width: 15%;
    float: left;
}
/* 底部样式 */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
    }
    
    .dropdown {
        position: static;
        display: none;
    }
    
    .nav-item:hover .dropdown {
        display: block;
    }
    
    .product-item {
        flex: 0 0 50%;
    }
    
    .news-cases {
        flex-direction: column;
    }
    
    .product-list {
        flex-direction: column;
    }
    
    .product-item-row {
        flex-direction: column;
    }
    
    .product-item-row img {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
}