/* 首页六宫格 m-list2：内联矢量图标（替代白底 PNG 在浅色背景上不可见的问题） */
.m-list2 .ico {
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-list2 .ico-svg {
  width: 100%;
  height: 100%;
  display: block;
  flex-shrink: 0;
  color: #4a4a4a;
  stroke: currentColor;
  fill: none;
}

.m-list2 .con:hover .ico-svg {
  color: #fff;
}

.m-list2 .ico--brand img {
  object-fit: contain;
}

.m-list2 .con:hover .ico--brand img {
  filter: brightness(0) invert(1);
}

/* 页头右侧四图轮播：未初始化 Slick 时只显示第一张，避免四张纵向叠放 */
.hd-img .slider:not(.slick-initialized) > .item:not(:first-child) {
  display: none;
}

/* 首页首屏轮播：文案水平垂直居中，加大字号，偏大气；依赖 text-shadow 兼顾浅色背景可读性 */
body[data-page="home"] .banner .txt {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.64rem 0.44rem 0.88rem;
  box-sizing: border-box;
}

body[data-page="home"] .banner .txt .wp {
  width: 100%;
  max-width: 12.6rem;
  margin: 0 auto;
  text-align: center;
}

body[data-page="home"] .banner .tit {
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.32;
  max-width: none;
  margin: 0 auto;
  font-size: 0.52rem;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.45),
    0 0 1px rgba(0, 0, 0, 0.35);
}

body[data-page="home"] .banner .desc {
  font-size: 0.22rem;
  line-height: 1.65;
  max-width: none;
  margin: 0.22rem auto 0;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
  opacity: 0.98;
}

@media only screen and (max-width: 1199px) {
  body[data-page="home"] .banner .txt {
    padding: 0.48rem 0.32rem 0.56rem;
  }

  body[data-page="home"] .banner .txt .wp {
    max-width: none;
  }

  body[data-page="home"] .banner .tit {
    font-size: 0.36rem;
    letter-spacing: 0.03em;
  }

  body[data-page="home"] .banner .desc {
    font-size: 0.2rem;
    margin-top: 0.16rem;
  }
}

@media only screen and (max-width: 639px) {
  body[data-page="home"] .banner .tit {
    font-size: 0.3rem;
  }

  body[data-page="home"] .banner .desc {
    font-size: 0.18rem;
    line-height: 1.58;
  }
}

/* 内页补充样式（首页沿用原站 style.css，不在此覆盖 body 字体） */
.m-txt4 h2,
.m-txt4 h3 {
  font-size: 0.2rem;
  color: #d00909;
  margin: 0.2rem 0 0.1rem;
  font-weight: normal;
}

.m-txt4 p,
.m-txt4 li {
  font-size: 0.18rem;
  line-height: 1.78;
  color: #333;
}

.m-txt4 ul {
  margin: 0.12rem 0 0.2rem;
  padding-left: 0.24rem;
}

.m-txt4 a:hover {
  color: #ce0000;
}

.page-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.16rem;
  margin: 0.2rem 0;
}

.page-table th,
.page-table td {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.12rem 0.14rem;
  text-align: left;
}

.page-table th {
  background: rgba(206, 0, 0, 0.06);
  color: #333;
  font-weight: bold;
}

.org-grid {
  margin: 0.24rem 0 0;
}

.org-grid .item {
  display: block;
  margin-bottom: 0.2rem;
  padding: 0.22rem 0.28rem;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px 0 rgba(25, 3, 0, 0.11);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.org-grid .item strong {
  display: block;
  font-size: 0.2rem;
  color: #333;
  margin-bottom: 0.06rem;
}

.org-grid .item span {
  font-size: 0.16rem;
  color: #666;
  line-height: 1.63;
}

.service-blocks .block {
  margin-bottom: 0.24rem;
  padding: 0.24rem 0.28rem;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px 0 rgba(25, 3, 0, 0.11);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.service-blocks .block h3 {
  font-size: 0.2rem;
  color: #ce0000;
  margin: 0 0 0.1rem;
  font-weight: normal;
}

.service-blocks .block ul {
  margin: 0;
  padding-left: 0.22rem;
  font-size: 0.16rem;
  line-height: 1.78;
  color: #666;
}

.contact-page {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.contact-page__info {
  flex: 1 1 3.2rem;
  font-size: 0.18rem;
  line-height: 1.78;
}

.contact-page__info p {
  margin: 0 0 0.12rem;
}

.contact-form {
  flex: 1 1 3.6rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.16rem;
  font-size: 0.16rem;
  color: #333;
}

.contact-form .label-text {
  display: block;
  margin-bottom: 0.06rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #dadada;
  padding: 0.1rem 0.12rem;
  font-size: 16px;
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 1.2rem;
}

.btn-submit {
  display: inline-block;
  min-width: 1.4rem;
  height: 0.44rem;
  line-height: 0.44rem;
  text-align: center;
  border: 0;
  cursor: pointer;
  background: #ce0000;
  color: #fff;
  font-size: 0.16rem;
  padding: 0 0.2rem;
}

.btn-submit:hover {
  background: #d00909;
}

.btn.btn--primary {
  display: inline-block;
  min-width: 1.4rem;
  height: 0.44rem;
  line-height: 0.44rem;
  text-align: center;
  border: 0;
  cursor: pointer;
  background: #ce0000;
  color: #fff;
  font-size: 0.16rem;
  padding: 0 0.2rem;
  text-decoration: none;
}

.btn.btn--primary:hover {
  background: #d00909;
}

.form-hint {
  font-size: 0.14rem;
  color: #888;
  margin-top: 0.1rem;
}

.form-success {
  margin-top: 0.12rem;
  font-size: 0.16rem;
}

.form-success .btn-submit {
  text-decoration: none;
  margin-top: 0.08rem;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.2rem;
  margin-top: 0.2rem;
}

.sitemap-grid .box {
  padding: 0.22rem 0.24rem;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px 0 rgba(25, 3, 0, 0.11);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.sitemap-grid h3 {
  font-size: 0.2rem;
  color: #ce0000;
  margin: 0 0 0.12rem;
  font-weight: normal;
}

.sitemap-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-grid li {
  font-size: 0.16rem;
  line-height: 2;
}

.search-intro {
  font-size: 0.16rem;
  color: #666;
  margin: 0.16rem 0;
}

.empty-state {
  font-size: 0.16rem;
  color: #888;
  padding: 0.2rem 0;
}

@media (max-width: 768px) {
  .sitemap-grid {
    grid-template-columns: 1fr;
  }
}

/* 无侧栏内页（网站地图）：主栏占满 */
.row-main .wp.no-side .col-main {
  margin-left: 0;
  float: none;
  width: 100%;
}

/* 列表分页：上一页/下一页较宽 */
.pages li.arrow a {
  min-width: 0.9rem;
  width: auto;
  padding: 0 0.1rem;
  white-space: nowrap;
}

.pages li a.disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

/* 食安守护：与「中心动态」同用 g-box1 + g-t1 时，抵消 style.css 中 legacy .m-song .tit 的绝对定位与红字样式 */
.g-box1.m-song {
  overflow-y: auto;
}

.g-box1.m-song .g-t1 .tit {
  position: static;
  float: left;
  left: auto;
  right: auto;
  top: auto;
  font-size: 0.3rem;
  color: #fff;
  font-weight: normal;
  width: 2.04rem;
  height: 0.55rem;
  padding: 0 0 0 0.2rem;
  margin: 0;
  line-height: 0.55rem;
  border-bottom: none;
  background: url(static/index/images/i-bg3.png) no-repeat right center;
  -o-background-size: auto 100%;
  -ms-background-size: auto 100%;
  -moz-background-size: auto 100%;
  -webkit-background-size: auto 100%;
  background-size: auto 100%;
  cursor: pointer;
  transition: none;
}

.g-box1.m-song .g-t1 .tit.on {
  filter: brightness(1.06);
}

@media only screen and (max-width: 1199px) {
  .g-box1.m-song .g-t1 .tit {
    font-size: 0.36rem;
    height: 0.8rem;
    width: 2.6rem;
    line-height: 0.8rem;
    padding-left: 0.3rem;
  }
}

/* 首页「社会责任」：压缩主图与轮播高度，避免区块过高 */
body[data-page="home"] .row-a5 {
  padding-top: 0.36rem;
}

body[data-page="home"] .row-a5 .m-pic2 {
  margin-top: 0.12rem;
  margin-bottom: 0.22rem;
  height: 1.85rem;
  overflow: hidden;
}

body[data-page="home"] .row-a5 .m-pic2 a {
  display: block;
  height: 100%;
}

body[data-page="home"] .row-a5 .m-pic2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

body[data-page="home"] .row-a5 .m-slider2 .pic {
  padding-top: 36%;
}

@media only screen and (max-width: 1199px) {
  body[data-page="home"] .row-a5 .m-pic2 {
    height: 1.65rem;
    margin-bottom: 0.2rem;
  }

  body[data-page="home"] .row-a5 .m-slider2 .pic {
    padding-top: 44%;
  }
}
