/* Visual refinements layered over the preserved legacy stylesheet. */
img {
  max-width: 100%;
}

/* 栏目图片库：前台栏目页同步展示的图片卡片 */
.channel-media-block {
  margin-top: 24px;
  clear: both;
}

.channel-media-title {
  font-size: 18px;
  margin: 0 0 14px;
  padding-left: 10px;
  border-left: 4px solid #138044;
}

.channel-media-title span {
  font-size: 13px;
  color: #999;
  font-weight: normal;
  margin-left: 8px;
}

.media-card {
  background: #fff;
  border: 1px solid #eee;
  margin-bottom: 18px;
  overflow: hidden;
}

.media-card a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f2efed;
}

.media-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.media-card a:hover img {
  transform: scale(1.04);
}

.media-card-name {
  margin: 0;
  padding: 8px 10px;
  font-size: 13px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.container-fluid {
  width: 100%;
  max-width: 1230px !important;
}

.logo_box .logo {
  display: flex;
  align-items: center;
  height: 130px;
  line-height: normal;
}

.logo_box .logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 420px;
  max-height: 118px;
  object-fit: contain;
}

#myCarousel.home-banner .carousel-inner > .item > a {
  display: block;
  aspect-ratio: 1270 / 715;
  overflow: hidden;
  background: #f2efed;
}

#myCarousel.home-banner .carousel-inner img {
  display: block;
  width: 100% !important;
  height: 100%;
  object-fit: cover;
}

#myCarousel.inner-banner .carousel-inner > .item > a {
  display: block;
  overflow: hidden;
  background: #f2efed;
}

#myCarousel.inner-banner .carousel-inner img {
  display: block;
  width: 100% !important;
  height: auto;
  object-fit: contain;
}

.suspend_nav ul li .weixin {
  width: 224px;
  box-sizing: border-box;
  padding: 10px;
}

.suspend_nav ul li .weixin img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: 320px;
  margin: 0 auto;
  object-fit: contain;
}

.suspend_nav ul li .weixin p {
  margin: 8px 0 0;
  color: #5d504c;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}

.weixin_popup,
.douyin_popup {
  width: min(300px, calc(100vw - 30px));
  max-height: calc(100vh - 30px);
  box-sizing: border-box;
  margin: 0;
  padding: 34px 20px 16px;
  transform: translate(-50%, -50%) scale(0);
}

.weixin_popup.active,
.douyin_popup.active {
  transform: translate(-50%, -50%) scale(1);
}

.weixin_popup img,
.douyin_popup img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: calc(100vh - 130px);
  margin: 0 auto;
  object-fit: contain;
}

.weixin_popup p,
.douyin_popup p {
  margin: 10px 0 0;
  line-height: 1.6;
}

.title1 {
  padding-top: 22px;
  text-align: center;
}

.title1 h5 {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 18px;
  background: transparent;
  line-height: 1.35;
}

.gsjj .title1,
.csrjj .title1,
.cpzs .title1,
.lxwm .title1 {
  margin-bottom: 16px;
}

.gsjj .text {
  margin: 0;
  padding: 2px 24px 0 0;
  color: #5b514d;
  font-size: 16px;
  line-height: 2;
}

.gsjj .text p {
  margin: 0 0 12px;
}

.gsjj .img {
  height: auto !important;
  margin: 0;
}

.video-frame {
  position: relative;
  width: 100%;
  min-height: 240px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #241b18;
  border-radius: 2px;
  box-shadow: 0 12px 28px rgba(65, 36, 24, 0.12);
}

.video-frame .video-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease, opacity 180ms ease;
}

.video-frame .video-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  padding: 0 0 0 5px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #fff;
  background: rgba(173, 0, 0, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  font-size: 28px;
  line-height: 64px;
  text-align: center;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.video-frame .video-play:hover,
.video-frame .video-play:focus-visible {
  transform: scale(1.06);
  background: #c60000;
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

.video-frame:hover .video-poster {
  transform: scale(1.015);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100% !important;
  min-height: 0;
  border: 0;
  opacity: 0;
  transition: opacity 180ms ease;
}

.video-frame.is-playing .video-poster,
.video-frame.is-playing .video-play {
  opacity: 0;
  pointer-events: none;
}

.video-frame.is-loaded iframe {
  opacity: 1;
}

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

.csrjj .brief-img,
.csrjj .brief {
  float: none;
}

.csrjj .brief {
  padding: 12px 0 12px 30px;
  line-height: 1.9;
}

.csrjj .brief p {
  margin: 0 0 6px;
}

.cpzs .title1 p {
  margin: 4px 0 0;
  color: #847873;
  font-size: 14px;
  line-height: 1.6;
}

.cpzs .nav1 {
  clear: both;
  margin: 10px auto 26px;
}

.nav1 ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0;
  padding: 0;
}

.nav1 ul li {
  list-style: none;
}

.nav1 ul a {
  display: block;
  width: auto;
  min-width: 128px;
  box-sizing: border-box;
  padding: 0 18px;
  margin: 0 !important;
  line-height: 38px;
  border: 1px solid rgba(162, 0, 2, 0.24);
  border-radius: 20px;
  background: #fff;
  color: #8a2421 !important;
  text-align: center;
  white-space: nowrap;
}

.nav1 ul a:link,
.nav1 ul a:visited {
  color: #8a2421 !important;
}

.nav1 ul a:hover,
.nav1 ul a:focus {
  background: #a20002;
  color: #fff !important;
}

.cpzs_con {
  position: relative;
  margin-top: 0;
}

.cpzs_con .swiper-slide {
  height: auto;
}

.news1 {
  display: block;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

.news1 .imgbox,
.xwzx_con .imgbox {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.news1 .img,
.xwzx_con .img {
  width: 100%;
  height: 100% !important;
}

.news1 .img > img,
.xwzx_con .img > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xwzx_con .con1 ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.xwzx_con .con1 ul li {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

.xwzx_con .con1 ul li > a {
  display: block;
  height: 100%;
}

.ysuys {
  width: min(100%, 1040px) !important;
  height: auto !important;
  aspect-ratio: 1.78;
  margin: 32px auto 0 !important;
  overflow: hidden;
  background: #201817;
}

.ysuys ul,
.ysuys ul li {
  height: 100% !important;
}

.ysuys ul li img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lxwm #container111 {
  height: 500px !important;
  min-height: 360px;
}

.neiye {
  padding: 36px 0 54px;
}

.neiye .inner-layout {
  display: block;
  margin-right: 0;
  margin-left: 0;
}

.neiye .inner-tabs-col,
.neiye .inner-content-col {
  float: none;
  width: 100%;
  padding-right: 0;
  padding-left: 0;
}

.ny_nav ul {
  display: flex !important;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0 0 18px;
  padding: 0;
}

.ny_nav ul li {
  flex: 0 1 auto;
  min-width: 142px;
  margin: 0;
  list-style: none;
}

.ny_nav ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 20px;
  border: 1px solid transparent;
  background: #e8e8e8;
  color: #5e5957;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}

.ny_nav ul li a:hover,
.ny_nav ul li a:focus {
  border-color: rgba(162, 0, 2, 0.18);
  background: #f4e8e8;
  color: #a20002;
}

.ny_nav ul li a.active {
  border-color: #a20002;
  background: #a20002;
  color: #fff;
}

.neiye .title2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  box-sizing: border-box;
  margin: 0 0 26px;
  padding: 0 16px 0 0;
}

.neiye .title2::before,
.neiye .title2::after {
  display: none;
  content: none;
}

.neiye .title2 h5 {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 142px;
  margin: 0;
  padding: 0 24px;
  line-height: 1.4;
}

.neiye .title2 p {
  margin: 0;
  line-height: 1.5;
}

.cp_ny {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 18px;
  margin: 0;
  padding: 4px 0 0;
}

.cp_ny > [class*="col-"] {
  float: none;
  width: auto;
  padding: 0;
}

.cp_ny .news1 {
  height: 100%;
  margin: 0;
}

footer {
  padding: 30px 0 24px;
}

footer ul.footerty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 0;
  line-height: 1.5;
}

footer ul.footerty li {
  margin-bottom: 6px;
}

footer .text {
  line-height: 1.8;
}

@media (max-width: 767px) {
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }

  .logo_box .logo {
    float: none !important;
    width: max-content;
    height: 60px;
  }

  .logo_box .logo img {
    max-width: 220px;
    max-height: 44px;
  }

  #myCarousel.home-banner .carousel-inner > .item > a {
    aspect-ratio: 1270 / 715;
  }

  #myCarousel.inner-banner .carousel-inner > .item > a {
    aspect-ratio: auto;
  }

  .title1 {
    padding-top: 18px;
  }

  .title1 h5 {
    padding: 0 10px;
  }

  .gsjj .title1,
  .csrjj .title1,
  .cpzs .title1,
  .lxwm .title1 {
    margin-bottom: 10px;
  }

  .gsjj .row:last-child {
    display: flex;
    flex-direction: column;
  }

  .gsjj .row:last-child > [class*="col-"] {
    float: none !important;
  }

  .gsjj .row:last-child > [class*="col-"]:first-child {
    order: 1;
  }

  .gsjj .row:last-child > [class*="col-"]:last-child {
    order: 2;
  }

  .video-frame {
    min-height: 0;
    margin: 0;
    border-radius: 0;
  }

  .gsjj .text {
    padding: 18px 0 0;
    font-size: 15px;
    line-height: 1.95;
  }

  .csrjj .brief-box {
    display: block;
  }

  .csrjj .brief {
    padding: 20px 0 0;
    text-align: center;
  }

  .csrjj .brief p {
    margin-bottom: 4px;
  }

  .cpzs .nav1 {
    margin: 22px auto 20px !important;
  }

  /* 宽度写在 li 上（flex item，百分比相对 ul 解析）；
     写在 a 上时 li 宽度未定，百分比会循环解析导致按钮宽度失控 */
  .nav1 ul {
    gap: 8px;
  }

  .nav1 ul li {
    width: calc(50% - 4px);
  }

  .nav1 ul a {
    width: 100%;
    min-width: 0;
    padding: 0 8px;
    line-height: 36px;
    font-size: 14px;
  }

  .neiye {
    padding: 24px 0 40px;
  }

  .ny_nav ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
  }

  .ny_nav ul li {
    min-width: 0;
  }

  .ny_nav ul li a {
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #e2dfde;
    border-radius: 2px;
    font-size: 14px;
  }

  .cp_ny {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
    padding: 0;
  }

  footer {
    padding: 26px 0 86px;
  }

  .cpzs-2 .more1 {
    display: none;
  }

  .xwzx_con .con1 ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .xwzx_con .con1 ul li .text {
    max-height: 48px;
    overflow: hidden;
  }

  .ysuys {
    aspect-ratio: 1.5;
    margin-top: 22px !important;
  }

  .lxwm #container111 {
    height: 360px !important;
    min-height: 0;
  }
}

/* ============================================================
   Layout fixes (2026-09-21)

   1) .nav1 类名冲突：main.css 的旧顶部导航样式
      （display:flex / justify-content:space-between / height:124px /
      .nav1 li:nth-child(4) 左边距 20vw）作用到了首页
      "美食介绍 / 门店展示"的栏目 tabs 上，导致按钮被拉开、
      第 4 个按钮右移、末尾按钮掉行。当前模板顶部导航实际用
      .pcherad，.nav1 仅用于首页 tabs，这里整体重置。

   2) bootstrap 的 .clearfix / .row 伪元素（content:" "; display:table）
      在 grid 容器里会成为第一个 grid item，占据第一格，
      把卡片整体挤后一格、末行卡片错位。
      凡是改为 grid 布局的容器都必须清除伪元素。
   ============================================================ */

.nav1 {
  display: block;
  height: auto;
}

.nav1 ul li:nth-child(4) {
  margin-left: 0 !important;
}

.xwzx_con .con1 ul::before,
.xwzx_con .con1 ul::after,
.cp_ny::before,
.cp_ny::after,
.csrjj .brief-box::before,
.csrjj .brief-box::after {
  content: none !important;
  display: none !important;
}

/* 页头：桌面端把 LOGO 缩入顶部信息条，欢迎语接在 LOGO 之后（2026-11-06）
   移动端(<992px)不生效，仍显示 .logo_box 里的小 LOGO，
   以保证汉堡按钮 / 下拉菜单的原有定位不变 */
@media (min-width: 992px) {
  header .top {
    background: #f2f2f2;
    isolation: isolate;
  }

  header .top .top-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 52px;
    max-width: 75%;
  }

  header .top .top-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    height: 52px;
  }

  header .top .top-logo img {
    display: block;
    width: auto;
    height: 38px;
    max-width: 190px;
    object-fit: contain;
    /* LOGO 原图是白底，正片叠底使其融入浅灰信息条，避免出现白色矩形 */
    mix-blend-mode: multiply;
  }

  header .top h5 {
    margin: 0;
    font-size: 13px;
    color: #8c8c8c;
    line-height: 52px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  header .top ul {
    margin: 0;
  }

  header .top ul li {
    line-height: 52px;
  }

  .logo_box {
    display: none;
  }
}
