/* 川娃子食品网站样式表 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* 头部样式 */
.z_header_warp {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.z_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.z_logo {
    display: flex;
    align-items: center;
}

.z_logo .img1 {
    height: 50px;
    margin-right: 10px;
}

.z_logo .img2 {
    height: 30px;
}

.z_header_nav ul {
    display: flex;
    list-style: none;
}

.z_header_nav li {
    position: relative;
    margin: 0 15px;
}

.z_header_nav a {
    font-size: 16px;
    color: #333;
    padding: 10px 0;
    display: block;
    position: relative;
}

.z_header_nav .downnav {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 150px;
    padding: 10px 0;
    display: none;
    z-index: 1000;
}

.z_header_nav li:hover .downnav {
    display: block;
}

.z_menu_btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.z_menu_btn .line {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 轮播图样式 */
.z_banner_warp {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.z_banner {
    height: 100%;
    position: relative;
}

.z_banner .imgbg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.z_text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
}

.z_text .tit {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
}

.z_text .desc {
    font-size: 24px;
}

.swiper_dot {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.swiper_dot span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: 0.3s;
}

.swiper_dot span.active {
    background: #fff;
}

/* 页面内容 */
.z_page {
    margin-top: 80px;
}

.z_warp {
    margin-top: 80px;
}

.z_index_tit {
    text-align: center;
    margin-bottom: 60px;
}

.z_index_tit .tit {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
}

.z_index_tit .slg {
    font-size: 18px;
    color: #666;
}

/* 关于我们部分 */
.z_index_about {
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.z_index_about .flbox {
    flex: 1;
    padding-right: 50px;
}

.z_index_about .frbox {
    flex: 1;
    position: relative;
}

.z_about_num {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.z_about_num li {
    text-align: center;
}

.z_about_num h3 {
    font-size: 36px;
    font-weight: bold;
    color: #e62536;
}

.z_about_num h4 {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* 核心优势部分 */
.z_index_ys {
    position: relative;
    padding: 100px 0;
    background: #f5f5f5;
}

.z_index_ys .z_index_tit .white {
    color: #fff;
}

.z_ys_swiper {
    max-width: 1200px;
    margin: 50px auto 0;
}

.z_ys_swiper ul {
    display: flex;
    list-style: none;
    overflow-x: auto;
}

.z_ys_swiper li {
    flex: 0 0 auto;
    width: 220px;
    margin: 0 15px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.z_ys_swiper .topbox {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.z_ys_swiper .imgbg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.z_ys_swiper .ico {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
}

.z_ys_swiper .btmbox {
    padding: 20px;
    text-align: center;
}

.z_ys_swiper .tit {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}

.z_ys_swiper .desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.z_arr {
    display: block;
    margin: 10px auto 0;
    color: #e62536;
    font-size: 18px;
}

/* 产品中心 */
.z_index_pro {
    padding: 100px 0;
}

.z_pro_list {
    position: relative;
}

.z_pro_list .warp {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.z_pro_list .item {
    flex: 1;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.z_pro_list .item:hover {
    background: #f5f5f5;
}

.z_pro_list .titbar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.z_pro_list .ico {
    margin-right: 10px;
}

.z_pro_list .tt {
    font-size: 18px;
    font-weight: bold;
}

.z_pro_list .nava {
    display: flex;
    flex-direction: column;
}

.z_pro_list .nava .li {
    padding: 5px 0;
    cursor: pointer;
}

.z_pro_list .nava .li.active {
    color: #e62536;
}

.z_series_swiper {
    max-width: 1200px;
    margin: 0 auto;
}

/* 品牌动态 */
.z_index_news {
    padding: 100px 0;
    background: #f5f5f5;
}

.z_news_warp {
    max-width: 1200px;
    margin: 50px auto 0;
}

.z_news_swiper ul {
    display: flex;
    list-style: none;
    overflow-x: auto;
}

.z_news_swiper li {
    flex: 0 0 auto;
    width: 350px;
    margin: 0 15px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.z_news_swiper .imgbox {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.z_news_swiper .imgbg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.z_news_swiper .time {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 10px;
    text-align: center;
}

.z_news_swiper .time em {
    display: block;
    font-size: 24px;
    font-weight: bold;
}

.z_news_swiper .infobox {
    padding: 20px;
}

.z_news_swiper .tit {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.z_news_swiper .desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 页脚 */
.z_footer {
    background: #333;
    color: #fff;
    padding: 50px 0 20px;
}

.z_footer .warp {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.z_footer .top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.z_footer .flbox {
    flex: 1;
    padding-right: 50px;
}

.z_footer .frbox {
    flex: 2;
    display: flex;
    justify-content: space-between;
}

.z_footer .item {
    flex: 1;
}

.z_footer .tt {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.z_footer ul {
    list-style: none;
}

.z_footer li {
    margin-bottom: 10px;
}

.z_footer .btm {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #666;
    padding-top: 20px;
}

.z_footer .tel em {
    color: #e62536;
    font-style: normal;
}

/* 固定按钮 */
.z_fixed_btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.z_fixed_btn a {
    width: 50px;
    height: 50px;
    background: #e62536;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .z_header_nav {
        display: none;
    }
    
    .z_menu_btn {
        display: flex;
    }
    
    .z_index_tit .tit {
        font-size: 28px;
    }
    
    .z_index_tit .slg {
        font-size: 16px;
    }
    
    .z_index_about {
        flex-direction: column;
        padding: 50px 0;
    }
    
    .z_index_about .flbox {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .z_about_num {
        flex-direction: column;
        gap: 20px;
    }
    
    .z_pro_list .warp {
        flex-direction: column;
    }
    
    .z_footer .top {
        flex-direction: column;
    }
    
    .z_footer .frbox {
        flex-direction: column;
        gap: 20px;
    }
    
    .z_footer .btm {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .z_news_swiper li {
        width: 300px;
    }
}