/* 首页特有样式 */

/* 英雄区域 */
.hero {
    height: 100vh;
    position: relative;
    padding-top: 65px;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
}

.hero-content {
    margin-left: 20%;
    /* margin-top: 20%; */
    max-width: 1000px;
    text-shadow:-1px -1px #fff,1px 1px #333;

}

.hero h1 {
    font-size: 60px;
    font-weight: 300;
    margin-bottom: 12px;
}

.hero p {
    font-size: 25px;
    margin-left: 30px;
}

/* 自定义分页器样式 */
.hero-pagination {
    position: absolute;
    bottom: 13px;
    left: 50% !important;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    width: auto;
    z-index: 10;
}

.hero-pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.51);
    margin: 0 3px;
    opacity: 1;
    display: inline-block;
}

.hero-pagination .swiper-pagination-bullet-active {
    background-color: rgba(255, 255, 255, 1);
}

/* 产品部分 */
.section-header {
    text-align: center;
    padding: 80px 0 40px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 300;
    color: #000;
    margin-bottom: 10px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 300;
    color: #000;
    position: relative;
    display: inline-block;
}

.section-header h3:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
}

.product-row {
    display: flex;
    align-items: center;
    margin: 0 auto 60px;
    max-width: 1920px;
    position: relative;
    padding: 0 5%;
}

.product-row:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: #FFF8DC;
    z-index: -1;
}

.product-row.reverse:before {
    left: auto;
    right: 0;
}

.product-image {
    flex: 1;
    padding: 61px 92px 55px 0;
    display: flex;
    justify-content: right;
    align-items: center;
    max-width: 50%;
    position: relative;
    z-index: 1;
}

.product-image img {
    max-width: 440px;
    width: 100%;
    transition: transform 0.6s ease, filter 0.5s ease, opacity 0.6s ease;
    opacity: 1;
    will-change: opacity, transform;
    position: relative;
    z-index: 2;
}

.product-info {
    flex: 1;
    padding: 20px 0 20px 50px;
    max-width: 450px;
}

.product-title {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
}

.product-title-tab {
    font-size: 18px;
    font-weight: 300;
    color: #000;
    padding: 10px 20px 10px 0;
    cursor: pointer;
    position: relative;
    margin-right: 20px;
}

.product-title-tab.active {
    color: #66cc33;
}

.product-title-tab.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #66cc33;
}

.product-info h4 {
    font-size: 18px;
    font-weight: 300;
    color: #000;
}

.product-info h5 {
    font-size: 18px;
    font-weight: 300;
    color: #000;
}

.product-desc-container {
    margin: 20px 0;
}

.product-desc {
    display: none;
    margin: 20px 0;
    color: #666;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
}

.product-desc.active {
    display: block;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.product-tags a {
    color: #666;
    font-size: 11px;
    margin-right: 10px;
    margin-bottom: 10px;
    white-space: nowrap;
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 5px 12px;
    transition: all 0.3s ease;
}

.product-tags span:hover {
    border-color: #66cc33;
    color: #66cc33;
}

/* 产品行背景色调整 */
.product-row:nth-child(1):before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: #FFF8DC;
    z-index: -1;
}

.product-row:nth-child(2):before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: #F4F9E2;
    z-index: -1;
}

.product-row:nth-child(3):before {
    content: '';
    position: absolute;
    left: 47%;
    top: 0;
    width: 53%;
    height: 100%;
    background-color: #FDF3EA;
    z-index: -1;
}

/* 关于我们部分 */
.about-section {
    display: flex;
    align-items: center;
    max-width: 865px;
    width: 100%;
    margin: 100px auto;
    border: 1px solid #E9E9E9;
    padding: 20px 30px;
    box-sizing: border-box;
    gap: 42px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    max-width: 448px;
}

.about-info {
    flex: 1;
    /* padding: 0 20px; */
    padding-right: 20px;
}

.quality-tag {
    display: inline-block;
    background-color: #dd5b5c;
    color: white;
    padding: 0 15px;
    font-size: 12px;
    margin-bottom: 13px;
    height: 20px;
}

.about-info h4 {
    font-size: 18px;
    font-weight: 300;
    /* margin-bottom: 32px; */
    color: #000;
}

.about-info p {
    color: #666666;
    font-size: 14px;
    font-weight: 300;
    line-height: 24px;
    margin-bottom: 31px;
}

/* 产品应用部分 */
.application {
    padding-bottom: 50px;
    position: relative;
    text-align: center;
}

.application:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 50%;
    background-color: #FEF0EF;
    z-index: -1;
}

.app-categories {
    display: flex;
    justify-content: space-between;
    max-width: 754px;
    margin: 0 auto 33px;
}

.category {
    font-size: 16px;
    font-weight: 300;
    color: #323232;
}

.app-items {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 0 auto;
    max-width: 1200px;
}

.app-item {
    position: relative;
}

.app-item-img {
    width: 269px;
    height: 151px;
    overflow: hidden;
    border-radius: 10px;
}

.app-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-overlay {
    margin-top: 10px;
    font-family: Microsoft YaHei;
    font-weight: 300;
    font-size: 16px;
    color: #323232;
    text-align: center;
}

.center-btn {
    margin: 0 auto;
    margin-top: 20px;
}

/* 美食广场部分 */
.food-court {
    background-color: #F4F9E2;
    padding-bottom: 80px;
}

.food-content {
    display: flex;
    align-items: center;
    max-width: 1016px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.food-image {
    flex: 0 0 333px;
    /* padding: 34px 46px; */
}

.food-info {
    flex: 1;
    /* padding: 40px; */
}

.food-info h4 {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 6px;
}

.food-info p {
    margin: 17px 0;
    color: #666;
    font-size: 14px;
    font-weight: 300;
    line-height: 24px;
}

/* 首页特定的产品图片淡入淡出效果 */
.product-image-fading {
    opacity: 0 !important;
    transform: scale(0.95) !important;
}

/* 响应式媒体查询 - 首页特定 */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 48px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .product-row {
        padding: 0 20px;
    }
    
    .about-section {
        padding: 0 20px;
    }
    
    .app-items {
        padding: 0 20px;
    }
    
    .food-content {
        margin: 0 20px;
    }
}

@media (max-width: 768px) {
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav ul li {
        margin: 5px 10px;
    }
    
    .hero-content {
        margin-left: 20%;
        margin-top: 20%;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
        margin-left: 15px;
    }
    
    .hero-menu {
        display: none;
    }
    
    .app-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .category {
        margin-bottom: 15px;
    }
    
    .app-item {
        width: 100%;
        margin-bottom: 15px;
    }
    
    /* 产品行布局调整 */
    .product-row {
        flex-direction: column;
        padding: 0;
        margin-bottom: 40px;
    }
    
    .product-row:before {
        width: 100%;
        height: 50%;
        top: 0;
        left: 0;
    }
    
    .product-row.reverse:before {
        top: 50%;
        left: 0;
        right: auto;
    }
    
    /* 产品图片和信息区域调整 */
    .product-image, 
    .product-info {
        max-width: 100%;
        width: 100%;
        padding: 15px;
    }
    
    .product-image {
        order: 1;
    }
    
    .product-info {
        order: 2;
    }
    
    /* 确保图片大小合适 */
    .product-image img {
        max-width: 100%;
        height: auto;
    }
    
    /* 产品标题调整 */
    .product-title {
        flex-wrap: wrap;
    }
    
    .product-title-tab {
        padding: 8px 15px 8px 0;
        font-size: 16px;
    }
    
    /* 产品标签调整 */
    .product-tags {
        justify-content: flex-start;
    }
    
    .product-tags span {
        margin-right: 8px;
        margin-bottom: 8px;
        font-size: 10px;
        padding: 4px 10px;
    }
    
    /* 确保第三个产品区域背景色正确 */
    .product-row:nth-child(3):before {
        left: 0;
        top: 0;
        width: 100%;
        height: 50%;
    }
    
    /* 反转布局的产品行在移动端不需要反转 */
    .product-row.reverse {
        flex-direction: column;
    }
}

/* 添加大屏幕适配样式 */
@media (min-width: 1921px) {
    .products {
        padding: 0 5%;
    }
    
    .product-row {
        max-width: 1920px;
    }
    
    .product-row .product-info {
        padding-right: 2%;
        padding-left: 2%;
    }
    
    .product-row:nth-child(2) .product-info {
        padding-left: 5%;
        padding-right: 2%;
    }
    
    /* 大屏幕下的关于我们部分 */
    .about-section {
        max-width: 865px; /* 设置最大宽度，与产品应用部分保持一致 */
        width: 100%;
        box-sizing: border-box;
        padding: 20px 30px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* 确保产品应用和美食广场部分宽度一致 */
    .application .app-items,
    .food-court .food-content {
        max-width: 1200px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
} 