/* 轮播图容器 */
.backgorund {
    margin-top: 100px;
    width: 100%;
    background: black;
}

.carousel {
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 80vh;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播控制按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.control-prev {
    left: 20px;
}

.control-next {
    right: 20px;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: white;
}

/* 加载提示 */
.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: black;
}

/* 错误提示 */
.error-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: black;
}

/* 走进富安辰样式 */
.introduction {
    width: 80%;
    margin: 0 auto;
}

.introduction h1 {
    font-size: 30px;
    font-weight: 600;
    padding: 20px 0;
    border-bottom: 2px solid #409eff;
}

.introduction .container {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
}

.introduction .text {
    width: 55%;
    display: flex;
    flex-direction: column;
}

.introduction .textIntroduce {
    font-size: 16px;
    line-height: 30px;
    color: #666;
}

.introduction .box {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.introduction .box .item {
    width: 30%;
    display: flex;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.introduction .box .item:hover {
    transform: translateY(-5px);
}

.introduction .box .item img {
    width: 80px;
    height: 80px;
}

.introduction .box .item .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 20px;
}

.introduction .box .item .content p {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.introduction .box .item .content span {
    color: #999;
    margin: 5px 0;
    font-size: 14px;
}

.introduction .img {
    width: 40%;
}

.introduction .img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 推荐产品样式 */
.products {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    background: url("../assets/home/chanbj.jpg") no-repeat;
    background-size: 100% 100%;
    padding: 5% 0;
}

.products .text {
    width: 60%;
    color: #fff;
}

.products .text h1 {
    font-size: 60px;
    color: #fff;
    font-weight: bold;
    font-family: arial;
    padding: 20px 0;
    display: inline-block;
    border-bottom: 2px solid #409eff;
}

.products .text h2 {
    font-size: 30px;
    margin: 20px 0;
}

.products .text p {
    line-height: 30px;
}

.products .moreBtn {
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.products .moreBtn button {
    font-size: 14px;
    color: #fff !important;
    border-width: 0px;
    width: 150px;
    height: 50px;
    border-radius: 0px;
    background: #409eff;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.products .moreBtn button:hover {
    background: #3095fb;
}

/* 标题样式 */
.titles {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.titles h1 {
    display: flex;
    align-items: flex-end;
    width: 100%;
    font-size: 30px;
    font-weight: 600;
    padding: 20px 0;
    border-bottom: 2px solid #409eff;
    margin-top: 30px;
}

.titles h1 p {
    font-size: 14px;
    margin-left: 10px;
    font-weight: 500;
    color: #555555;
}

/* 产品展示样式 */
.productShow {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    padding: 20px 0 20px 20px;
    box-sizing: border-box;
    background-color: #f2f2f2;
}

.productShow .item {
    width: 19%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 1%;
    margin-top: 20px;
    cursor: pointer;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.productShow .item:hover {
    transform: translateY(-5px);
    box-shadow: 5px 5px 8px -5px #409eff;
}

.productShow .item img {
    width: 100%;
    min-height: 200px;
    height: auto;
    object-fit: cover;
}

.productShow .item p {
    width: 100%;
    height: 40px;
    text-align: center;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 空状态样式 */
.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 0;
}

.empty-icon {
    font-size: 60px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-description {
    color: #999;
    font-size: 14px;
}

.equipment {
    width: 80%;
    padding: 20px;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: url("../assets/home/shebeibj.jpg");
    background-size: 100% 100%;
}

.equipment p {
    width: 50%;
    color: #555;
    margin: 30px 0;
    font-size: 14px;
    line-height: 25px;
    text-align: center;
}

/* 轮播图样式 */
.equipment-carousel {
    width: 100%;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.equipment-carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.equipment-carousel-wrapper {
    display: flex;
    width: 100%;
}

.equipment-carousel-item {
    flex-shrink: 0;
    position: relative;
    padding: 0 15px;
    box-sizing: border-box;
}

.equipment-carousel-item h3 {
    text-align: center;
    margin: 10px 0;
}

.equipment-carousel-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* 轮播控制按钮 */
.carousel-btn-prev,
.carousel-btn-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

/* 分页指示器 */
.carousel-pagination {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
}

.carousel-pagination-dot.active {
    background-color: #409eff;
}

/* 加载状态 */
.equipment-loading {
    text-align: center;
    padding: 50px 0;
    color: #666;
}

/* 错误状态 */
.equipment-error {
    text-align: center;
    padding: 50px 0;
    color: #f00;
}

.news {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.news .box {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 新闻列表容器 */
.news-list {
    width: 100%;
    min-height: 300px;
    box-sizing: border-box;
}

/* 新闻条目 */
.news-item {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px dashed #949494;
}

.news-item:hover {
    background-color: #f1f1f1;
    cursor: pointer;
    color: #409eff;
    transition-duration: 500ms;
}

.news-item:not(:hover) {
    transition-duration: 500ms;
}

.news-item .news-title {
    font-size: 16px;
    width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.news-item .news-date {
    font-size: 14px;
    color: #666;
}

/* 空状态样式 */
.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 0;
    min-height: 300px;
    justify-content: center;
}

.empty-icon {
    font-size: 60px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-description {
    color: #999;
    font-size: 14px;
}

/* 分页样式 */
.pagination {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-btn.active {
    background-color: #409eff;
    color: white;
    border-color: #409eff;
}

.pagination-ellipsis {
    padding: 0 5px;
}

/* 移动端适配 */
@media only screen and (max-width: 576px) {
    .backgorund {
        margin-top: 60px;
    }

    .carousel-container {
        height: 30vh !important;
    }

    .carousel-indicators {
        display: none;
    }

    .carousel-control {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .introduction .container {
        flex-direction: column;
    }

    .introduction .box {
        display: none;
    }

    .introduction {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .introduction .text {
        width: 100%;
    }

    .introduction .img {
        width: 100%;
        margin: 10px 0;
    }

    .introduction h1 {
        font-size: 24px;
    }

    .products {
        width: 100%;
        flex-direction: column;
        padding: 5%;
    }

    .products .text {
        width: 100%;
    }

    .products .text h1 {
        font-size: 40px;
    }

    .products .text h2 {
        font-size: 24px;
    }

    .products .moreBtn {
        width: 100%;
        margin: 30px 0;
    }

    .titles {
        width: 90%;
    }

    .productShow {
        width: 90%;
        justify-content: center;
    }

    .productShow .item {
        width: 90%;
    }

    .equipment {
        width: 90%;
        padding: 10px 0;
    }

    .equipment p {
        width: 90%;
    }

    .equipment-carousel-item {
        width: 100%;
    }

    .news .box {
        width: 90%;
    }

    .news-item .news-title {
        width: 70%;
    }
}
