.main_food{
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, #cbf6f8, #e2fdff);
    box-sizing: border-box;
}
.header_top_search {
    width: 100%;
    padding: 10px 15px;
}
/* === 搜索框容器：flex横向排列 === */
.header_top_search .layui-form {
    display: flex;
    align-items: center;
    width: 100%;
}

/* ★ 放大镜按钮：透明背景 + 左侧定位 */
.header_top_search .search-icon-btn {
    height: 38px;
    width: 38px;
    padding: 0;
    margin-right: -20px;
    background: #fbfefe;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 17px 0 0 17px;
}

/* 放大镜图标样式 */
.header_top_search .search-icon-btn .layui-icon {
    font-size: 20px;
    color: #2ca2ad;              /* 图标颜色，按需调整 */
    line-height: 1;
}

/* ★ Input框：左侧圆角（因为按钮在左边了） */
.header_top_search .layui-input {
    flex: 1;
    height: 38px;
    line-height: 38px;
    font-size: 15px;
    border-radius: 0 17px 17px 0;
    border: none;
    padding-left: 28px;          /* ★ 给放大镜图标留出空间 */
    background: rgba(255, 255, 255, 0.92);
}

.main2{
    width: 100%;
    height: auto;
    padding-top: 10px;
}
.main2_banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* ========== 轮播内容区域 ========== */
.main2_banner .bd {
    width: 100%;
    overflow: hidden;           /* 配合slide插件的leftLoop效果 */
}

.main2_banner_ul {
    display: flex;              /* slide插件会自动计算宽度，flex作为基础布局兜底 */
}

.main2_banner_li {
    flex-shrink: 0;             /* 防止轮播项被压缩 */
    width: 100%;                /* 单张占满容器宽度，vis:1时生效 */
}

.main2_banner_li a {
    display: block;
    width: 100%;
    height: 50vw;
}

.main2_banner_li img {
    width: 100%;
    height: auto;               /* 高度自适应，保持图片原始比例 */
    display: block;             /* 消除img底部默认间隙 */
    object-fit: cover;          /* 若需固定高度可改为cover裁剪填充 */
}

/* ========== 控制栏（按钮+指示点） ========== */
.main2_banner .hd {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;                  /* 按钮与指示点之间的间距 */
    pointer-events: none;       /* 让控制栏不遮挡图片点击 */
}

/* 恢复按钮和指示点的点击事件 */
.main2_banner .hd a,
.main2_banner .hd ul {
    pointer-events: auto;
}

/* ========== 左右切换按钮 ========== */
.main2_banner .hd .prev,
.main2_banner .hd .next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    display: none;
}
.main2_banner .hd .prev{
    position: absolute;
    left: 0;
    bottom: 50px;
}
.main2_banner .hd .next{
    position: absolute;
    right: 0;
    bottom: 50px;
}
.main2_banner .hd .prev:hover,
.main2_banner .hd .next:hover {
    background: rgba(255, 255, 255, 0.95);
}

/* 用CSS绘制箭头图标，无需额外引入字体或图片 */
.main2_banner .hd .prev::before,
.main2_banner .hd .next::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid #999;
    border-right: 2px solid #999;
}

.main2_banner .hd .prev::before {
    transform: rotate(-135deg);
    margin-left: 2px;           /* 视觉居中修正 */
}

.main2_banner .hd .next::before {
    transform: rotate(45deg);
    margin-right: 2px;          /* 视觉居中修正 */
}

/* ========== 指示点列表 ========== */
.main2_banner .hd .hd-list {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0;
}

/* slide插件自动生成的li指示点 */
.main2_banner .hd .hd-list li {
    width: 12px;
    height: 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 当前激活的指示点（slide插件会自动添加on类名） */
.main2_banner .hd .hd-list li.on {
    width: 20px;
    border-radius: 5px;
    background: #fff;
}

.main3{
    width: 100%;
    padding: 10px 10px;
}
.main31{
    width: 100%;
    background-color: #ffffff;
    border-top: 2px solid #e4ac25;
    box-sizing: border-box;
    margin-top: 20px;
}
.main31_img{
    width: 80%;
    height: auto;
    box-sizing: border-box;
    margin: 0 auto;
}
.main31_img img{
    width: 100%;
    margin: 0 auto;
    padding: 20px 20px;
}
.main31_content{
    width: 100%;
    height: auto;
    padding: 0 20px;
}
.main31_content p{
    color: #333333;
    font-size: 16px;
    line-height: 2;
    text-indent: 2em;
    font-family:  "Microsoft YaHei"
}


.main4{
    width: 100%;
    padding: 10px 15px 100px 15px;
    box-sizing: border-box;
}
.main4_list {
    width: 100%;
    box-sizing: border-box;
    padding: 20px 0;
}

.main4_ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main4_li {
    height: 30.4vw;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.main4_li a {
    width: 100%;
    height: 30.4vw;
    display: block;
    text-decoration: none;
}

.main4_li img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ========== 悬浮文字（左下角） ========== */
.main4_li h3 {
    position: absolute;
    left: 10px;
    bottom: 10px;
    margin: 0;                  /* 清除h3默认外边距，确保定位精准 */
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    max-width: calc(100% - 20px); /* 防止文字过长溢出右侧 */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); /* 深色阴影增强可读性 */
    pointer-events: none;       /* 避免文字遮挡a标签的点击区域 */
}