/* 首页样式 */

/* 轮播图模块 */
.carousel-section {
    width: 100%;
    position: relative;
}

.mySwiper {
    width: 100%;
    height: 600px;
}

.mySwiper .swiper-wrapper {
    width: 100%;
}

.mySwiper .swiper-slide {
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mySwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 自定义导航按钮 */
.mySwiper .swiper-button-prev,
.mySwiper .swiper-button-next {
    color: #fff;
    background: none;
    width: auto;
    height: auto;
    transition: all 0.3s ease;
}

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

.mySwiper .swiper-button-prev {
    left: 80px;
}

.mySwiper .swiper-button-next {
    right: 80px;
}

/* 自定义分页指示器 */
.mySwiper .swiper-pagination {
    bottom: 20px;
}

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

.mySwiper .swiper-pagination-bullet-active {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.mySwiper .swiper-pagination-bullet:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 搜索栏模块 */
.search-section {
    background-color: #c00404;
    padding: 15px 0;
    border-top: 1px solid #a00303;
}

.search-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.hot-search {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 16px;
}

/*.hot-search span {*/
/*    font-weight: bold;*/
/*}*/

/*.hot-search a {*/
/*    color: #fff;*/
/*    text-decoration: none;*/
/*    transition: opacity 0.3s ease;*/
/*}*/

/*.hot-search a:hover {*/
/*    opacity: 0.8;*/
/*    text-decoration: underline;*/
/*}*/

.search-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.phone-icon {
    width: 20px;
    height: 20px;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    width: 300px;
    height: 40px;
    padding: 0 15px;
    border: none;
    border-radius: 20px 0 0 20px;
    outline: none;
    font-size: 14px;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    width: 80px;
    height: 40px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #333;
}

/* 公司介绍模块 */
.company-section {
    padding: 60px 0;
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 28px;
    color: #333333;
    margin-bottom: 10px;
    font-weight: bold;
}

.subtitle {
    font-size: 18px;
    color: #333333;
}

.company-content {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: stretch;
}

.company-content .company-intro{
    font-size: 14px;
    color: #6c757d;
}

.company-left {
    flex: 0 0 auto;
    width: 50%;
    padding: 10px 0;
}

.company-right {
    flex: 0 0 auto;
    width: 50%;
}

.intro-paragraph {
    font-size: 14px;
    color: #6c757d;
    line-height: 2;
    margin-bottom: 15px;
}

.intro-left {
    text-align: left;
}

.intro-center {
    text-align: center;
}

.intro-more-btn {
    text-align: center;
    margin-top: 30px;
}

.btn-more {
    display: inline-block;
    padding: 10px 40px;
    background-color: #c00404;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-more:hover {
    background-color: #000000;
    color: #fff;
}

/* 家具资源模块 */
.furniture-section {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.furnitureSwiper {
    width: 100%;
    padding-bottom: 50px;
    overflow: hidden;
    position: relative;
}

/* 修复 slidesPerColumn 导致的 margin-top 不一致问题 */
.furnitureSwiper .swiper-slide {
    height: auto !important;
    background-color: transparent;
    margin-top: 0 !important;
}

/* 产品网格布局 - 2行4列 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

a.product-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-item {
    background-color: #fff;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.product-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.25);
}

.product-name {
    font-size: 16px;
    color: #333;
    margin: 0;
    transition: color 0.3s ease;
}

.product-item:hover .product-name {
    color: #c30b00;
}

/* 生产工艺模块 */
.process-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.process-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.process-section .section-header h2 {
    font-size: 28px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 10px;
}

.process-section .subtitle {
    font-size: 18px;
    color: #333333;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-item {
    background: #fff;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.15);
}

.process-item:hover {
    transform: translateY(-20px);
}

.process-img-box {
    width: 100%;
    height: 210px;
    overflow: hidden;
}

.process-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-text {
    padding: 20px 20px 25px 20px;
}

.process-text h3 {
    font-size: 20px;
    font-family: sans-serif;
    font-weight: 400;
    color: #333;
    margin: 0 0 10px;
}

.process-text p {
    font-size: 14px;
    font-family: sans-serif;
    color: #999999;
    line-height: 2;
    margin: 0;
}

/* 生产工艺模块 - 移动端适配 */
@media (max-width: 768px) {
    .process-section .section-header {
        margin-bottom: 30px;
    }
    
    .process-section .section-header h2 {
        font-size: 22px;
    }
    
    .process-section .subtitle {
        font-size: 16px;
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .process-img-box {
        height: 120px;
    }
    
    .process-text {
        padding: 15px;
    }
    
    .process-text h3 {
        font-size: 16px;
    }
    
    .process-text p {
        font-size: 13px;
    }
}

.company-right .swiper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.company-right .swiper-wrapper {
    width: 100%;
}

.company-right .swiper-slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.company-right .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 证书展示 */
.certificate-section {
    margin-top: 40px;
}

.certificate-section .swiper {
    width: 100%;
    padding-bottom: 30px;
}

.certificate-item {
    background-color: #f5f5f5;
    padding: 10px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
}

.certificate-item:hover {
    background-color: #c30b00;
}

.certificate-item:hover p {
    color: #fff;
}

.certificate-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    flex: 1;
}

.certificate-item p {
    font-size: 16px;
    color: #333;
    margin-top: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 移动端证书样式调整 */
@media (max-width: 767px) {
    .certificate-item img {
        height: 150px;
    }
}

/* 响应式设计 - 移动端轮播图高度调整 */
@media (max-width: 768px) {
    .mySwiper {
        height: 250px;
    }
    
    .mySwiper .swiper-slide {
        height: 250px;
    }
    
    /* 移动端轮播图箭头调整 */
    .mySwiper .swiper-button-prev,
    .mySwiper .swiper-button-next {
        top: 50% !important;
        width: 40px;
        height: 40px;
    }
    
    .mySwiper .swiper-button-prev {
        left: 10px;
    }
    
    .mySwiper .swiper-button-next {
        right: 10px;
    }
    
    .mySwiper .swiper-button-prev:after,
    .mySwiper .swiper-button-next:after {
        font-size: 20px;
        font-weight: bold;
    }
    
    /* 搜索栏 - 移动端 */
    .search-section {
        padding: 15px 0;
    }
    
    .search-section .container {
        padding: 0 10px;
    }
    
    .search-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .hot-search {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        line-height: 1.8;
    }
    
    .hot-search span {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }
    
    .search-right {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .phone-number {
        font-size: 16px;
        justify-content: center;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: calc(100% - 70px);
        font-size: 14px;
        height: 42px;
    }
    
    .search-box button {
        width: 70px;
        font-size: 14px;
        height: 42px;
    }
    
    /* 公司介绍模块 - 移动端 */
    .company-section {
        padding: 40px 0;
    }
    
    .company-content {
        padding: 0 15px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    /* 家具资源模块 - 移动端 */
    .furniture-section {
        padding: 40px 0;
    }
    
    .furniture-section .container {
        padding: 0 15px;
    }
    
    /* 移动端产品网格：2列×4行 */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-image {
        height: 150px;
    }
    
    /* 移动端导航按钮调整 */
    .furnitureSwiper .swiper-button-prev,
    .furnitureSwiper .swiper-button-next {
        width: 40px;
        height: 40px;
    }
    
    .furnitureSwiper .swiper-button-prev:after,
    .furnitureSwiper .swiper-button-next:after {
        font-size: 18px;
    }
    
    .furnitureSwiper .swiper-button-prev {
        left: 10px;
    }
    
    .furnitureSwiper .swiper-button-next {
        right: 10px;
    }
    
    /* 生产工艺模块 - 移动端 */
    .process-section {
        padding: 40px 0;
    }
    
    .process-section .container {
        padding: 0 15px;
    }
}

/* 响应式设计 - 小屏移动设备 */
@media (max-width: 480px) {
    /* 搜索栏 - 小屏移动端 */
    .search-section {
        padding: 12px 0;
    }
    
    .hot-search {
        gap: 6px;
        font-size: 14px;
    }
    
    .phone-number {
        font-size: 14px;
    }
    
    .search-box input {
        width: calc(100% - 65px);
        height: 40px;
    }
    
    .search-box button {
        width: 65px;
        height: 40px;
    }
}

/* 新闻动态模块 */
.news-section {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.news-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.news-tabs {
    display: flex;
    gap: 10px;
}

.news-tabs .tab {
    padding: 8px 20px;
    background-color: #c30b00;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    min-width: 136px;
    text-align: center;
}

.news-tabs .tab:hover {
    background-color: #000000;
}

.news-content {
    display: flex;
    gap: 40px;
}

.news-image-box {
    flex: 0 0 40%;
    max-width: 36%;
    height: 400px;
    overflow: hidden;
}

.news-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    background: #fff;
    padding: 20px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    align-items: flex-start;
}

.news-item:hover {
    box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.06);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    border-right: 1px solid #eee;
    padding-right: 20px;
    color: #999;
}

.news-date .date-md {
    font-size: 22px;
    font-family: Arial;
    color: #696969;
    line-height: 1;
}

.news-date .date-year {
    font-size: 14px;
    font-family: Arial;
    color: #adadad;
    margin-top: 5px;
}

.news-info {
    flex: 1;
}

.news-info h3 {
    font-size: 18px;
    font-family: sans-serif;
    color: #1b1b1b;
    margin: 0 0 4px;
    font-weight: 400;
    transition: margin 0.3s ease;
}

.news-info h3 a {
    text-decoration: none;
    color: inherit;
}

.news-info p {
    font-size: 14px;
    color: #999;
    line-height: 1.8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 新闻动态模块 - 移动端适配 */
@media (max-width: 768px) {
    .news-section {
        padding: 40px 0;
    }
    
    .news-section .container {
        padding: 0 15px;
    }
    
    .news-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .news-title {
        font-size: 22px;
    }
    
    .news-tabs {
        display: none;
    }
    
    .news-content {
        flex-direction: column;
    }
    
    .news-image-box {
        flex: none;
        max-width: 100%;
        height: 250px;
    }
    
    .news-item {
        padding: 15px;
    }
    
    .news-date {
        display: none !important;
    }
    
    .news-info h3 {
        font-size: 16px;
    }
}
