/* IE11 兼容样式 - 扬州冬日美食专题页面 */
@charset "utf-8";

/* ==================== 基础样式 ==================== */
.wrapper {
  width: 100%;
  min-height: 100vh;
  background: #eff6ff;
  /* IE11不支持linear-gradient，使用纯色背景 */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eff6ff', endColorstr='#dbeafe', GradientType=0);
}

/* ==================== 头区样式 ==================== */
.header-section {
  position: relative;
  width: 100%;
  height: 1080px;
  overflow: hidden;
  /* IE11 flexbox兼容 */
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  background: #f6f6f6;
  /* IE11渐变兼容 */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1e40af', endColorstr='#fbbf24', GradientType=1);
}

.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/banner-pc.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  filter: alpha(opacity=60); /* IE8-IE11 opacity兼容 */
  z-index: 1;
}

.snow-container,
.steam-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 40px;
}

.header-title {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  color: #eff6ff;
}

.header-subtitle {
  font-size: 28px;
  font-weight: 400;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  color: #eff6ff;
}

/* ==================== 内容区样式 ==================== */
.content-wrapper {
  width: 100%;
  /* 确保内容可见 */
  display: block;
  visibility: visible;
  opacity: 1;
  filter: alpha(opacity=100);
}

.section {
  width: 100%;
  padding: 60px 0;
  /* 确保section可见 */
  display: block;
  visibility: visible;
  overflow: visible;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
  /* 确保container可见 */
  display: block;
  visibility: visible;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  color: #1e40af !important;
  text-align: center !important;
  margin: 0 auto 60px auto !important;
  position: relative;
  padding-bottom: 20px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
  -ms-transform: translateY(0) !important;
  transform: translateY(0) !important;
  width: 100% !important;
  max-width: 100% !important;
}
.light {
  color: #f6f6f6 !important;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #1e40af;
  border-radius: 2px;
}

/* ==================== 栏目一：介绍文案 ==================== */
.section-intro {
  background: #1e40af;
  /* IE11不支持backdrop-filter，移除 */
  margin: 0 auto;
  /* 确保可见 */
  display: block;
  visibility: visible;
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
  min-height: 200px;
}

.intro-content {
  max-width: 900px;
  margin: 0 auto;
  /* 确保可见 */
  display: block;
  visibility: visible;
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
}

.intro-content p {
  font-size: 18px;
  line-height: 1.8;
  color: #f6f6f6 !important;
  margin-bottom: 40px;
  text-align: justify;
  /* 确保可见 */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
}

.intro-content p:last-child {
  margin-bottom: 0;
}

/* ==================== 栏目二：轮播图 ==================== */
.section-carousel {
  background: transparent;
  /* 确保可见 */
  display: block;
  visibility: visible;
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
  min-height: 500px;
}
.food-carousel {
  position: relative;
  padding: 40px 0px 60px;
  /* 确保可见 */
  display: block;
  visibility: visible;
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
}

.food-carousel .swiper-slide {
  height: auto;
  /* IE11 flexbox兼容 */
  display: -ms-flexbox;
  display: flex;
}

.carousel-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  width: 100%;
  height: 100%;
  min-height: 480px;
  /* IE11 flexbox兼容 */
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  /* 确保可见 */
  visibility: visible;
}

.carousel-image {
  width: 100%;
  height: 300px;
  min-height: 300px;
  overflow: hidden;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  /* 确保可见 */
  display: block;
  visibility: visible;
}

.carousel-image img {
  width: 100%;
  height: 100%;
  /* IE11不支持object-fit，使用background-size替代方案 */
  /* 如果必须使用img，则设置固定尺寸 */
  display: block;
}

/* IE11 object-fit替代方案 - 修复图片显示 */
.carousel-image {
  position: relative;
  background-color: #f0f0f0;
}

.carousel-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* IE11不支持object-fit，使用固定尺寸 */
  min-width: 100%;
  min-height: 100%;
}

.carousel-content {
  padding: 40px;
  -ms-flex: 1;
  flex: 1;
  /* IE11 flexbox兼容 */
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  min-height: 180px;
  /* 确保可见 */
  visibility: visible;
}

.carousel-content h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1e3a8a !important;
  margin-bottom: 10px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  /* 确保可见 */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
}

.carousel-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #666 !important;
  -ms-flex: 1;
  flex: 1;
  margin: 0;
  /* 确保可见 */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
}

/* Swiper 按钮样式 */
.swiper-button-prev,
.swiper-button-next {
  width: 50px;
  height: 50px;
  background: #4d4040;
  border-radius: 50%;
  color: #1e40af;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  /* IE11 flexbox兼容 */
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-top: 0;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  /* 确保可见 */
  visibility: visible;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}

.swiper-button-prev img,
.swiper-button-next img {
  width: 30px;
  height: 30px;
  display: block;
}

.swiper-button-prev {
  left: 10px;
}

.swiper-button-next {
  right: 10px;
}

/* Swiper 分页指示器样式 */
.swiper-pagination {
  position: relative;
  bottom: 0;
  margin-top: 40px;
  text-align: center;
  /* 确保可见 */
  display: block;
  visibility: visible;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(217, 119, 6, 0.4);
  opacity: 1;
  filter: alpha(opacity=100);
  margin: 0 6px;
  cursor: pointer;
  display: inline-block;
  /* 确保可见 */
  visibility: visible;
}

.swiper-pagination-bullet-active {
  background: #1e40af;
  width: 24px;
  border-radius: 6px;
}

.section-carousel .food-content {
  padding: 20px;
}

.section-carousel .food-content h3 {
  font-size: 16px;
  margin-bottom: 6px;

  font-weight: 600;
  color: #1e3a8a;
}

/* ==================== 栏目三、四：美食网格 ==================== */
.section-traditional,
.section-western {
  background: transparent;
  /* 确保可见 */
  display: block;
  visibility: visible;
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
  min-height: 500px;
}

/* IE11 Grid布局替代方案 - 使用float布局 */
.food-grid {
  /* 移除grid布局，使用float */
  list-style: none;
  padding: 0;
  margin: 40px 0 0 0;
  /* 清除浮动 */
  *zoom: 1; /* IE6-7 hasLayout */
  /* 确保可见 */
  display: block;
  visibility: visible;
}

.food-grid::after {
  content: "";
  display: table;
  clear: both;
}

.food-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  /* IE11 flexbox兼容 */
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  /* IE11 Grid替代：使用float布局，3列 */
  float: left;
  width: 31.333%;
  margin-right: 2%;
  margin-bottom: 40px;
  /* 确保可见 */
  visibility: visible;
  /* 确保容器宽度正确 */
  box-sizing: border-box !important;
  min-width: 0 !important;
}

/* 每行最后一个清除右边距 */
.food-item:nth-child(3n) {
  margin-right: 0;
}

.food-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  /* 确保可见 */
  display: block;
  visibility: visible;
}

.food-image img {
  width: 100%;
  height: 100%;
  /* IE11不支持object-fit，使用替代方案 */
  display: block;
}

/* IE11 object-fit替代方案 - 修复图片显示（仅用于传统美食） */
.section-traditional .food-image {
  position: relative;
  background-color: #f0f0f0;
}

.section-traditional .food-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* IE11不支持object-fit，使用固定尺寸 */
  min-width: 100%;
  min-height: 100%;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
  z-index: 1;
}

/* 传统美食部分的内容样式 */
.section-traditional .food-content {
  padding: 40px;
  -ms-flex: 1;
  flex: 1;
  /* IE11 flexbox兼容 */
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  /* 确保可见 */
  visibility: visible;
  /* 确保容器宽度正确，防止文本溢出 */
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  min-height: 250px;
}

.section-traditional .food-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: #1e3a8a !important;
  margin-bottom: 10px;
  /* 确保可见 */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
}

.section-traditional .food-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #666 !important;
  -ms-flex: 1;
  flex: 1;
  /* 确保可见 */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
  /* 确保文本换行 */
  white-space: normal !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  /* 确保宽度正确，防止文本溢出 */
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  min-width: 0 !important;
}

/* 西式美食部分的内容样式 */
.section-western .food-image {
  position: relative;
  height: 360px;
  /* 确保可见 */
  display: block;
  visibility: visible;
  overflow: hidden;
  background-color: #f0f0f0;
}

/* 西式美食图片显示修复 */
.section-western .food-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
  /* IE11不支持object-fit，使用固定尺寸 */
  min-width: 100%;
  min-height: 100%;
  z-index: 1;
}

.section-western .food-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  /* IE11渐变兼容 */
  background: #000;
  background: rgba(0, 0, 0, 0.8);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#CC000000', endColorstr='#00000000', GradientType=0);
  /* IE11 flexbox兼容 */
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  z-index: 2;
  /* 确保可见 */
  visibility: visible;
  height: 80px !important;
}

.section-western .food-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: #fff !important;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  /* 确保可见 */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
}

.section-western .food-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #fff !important;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  /* 确保可见 */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
}

/* ==================== 尾区样式 ==================== */
.footer-section {
  width: 100%;
  background: #1e40af;
  padding: 40px 0;
  margin-top: 80px;
  /* 确保可见 */
  display: block;
  visibility: visible;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
  /* 确保可见 */
  display: block;
  visibility: visible;
}

.footer-line {
  font-size: 16px;
  color: #fff;
  line-height: 1.8;
  margin-bottom: 10px;
  /* 确保可见 */
  display: block;
  visibility: visible;
}

.footer-line:last-child {
  margin-bottom: 0;
}

.footer-link {
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
  /* 确保可见 */
  display: inline;
  visibility: visible;
}

/* ==================== 回到顶部按钮 ==================== */
.scroll-to-top {
  position: fixed;
  bottom: 15%;
  right: 60px;
  width: 50px;
  height: 50px;
  background: #1e40af;
  border-radius: 50%;
  /* IE11 flexbox兼容 */
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  filter: alpha(opacity=0);
  visibility: hidden;
  -ms-transform: translateY(20px) rotate(-90deg);
  transform: translateY(20px) rotate(-90deg);
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.scroll-to-top.show {
  opacity: 1;
  filter: alpha(opacity=100);
  visibility: visible;
  -ms-transform: translateY(0) rotate(-90deg);
  transform: translateY(0) rotate(-90deg);
}

.scroll-to-top img {
  width: 24px;
  height: 24px;
  display: block;
  filter: brightness(0) invert(1);
}

/* ==================== IE11 特定修复 ==================== */
/* 覆盖frame.css中的动画样式，确保IE11中内容默认可见 */
.content-wrapper .section {
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
  visibility: visible !important;
  -ms-transform: translateY(0) !important;
  transform: translateY(0) !important;
  min-height: 1px;
}

.content-wrapper .section-title {
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
  visibility: visible !important;
  -ms-transform: translateY(0) !important;
  transform: translateY(0) !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  max-width: 100% !important;
}

.content-wrapper .intro-content {
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
  visibility: visible !important;
  -ms-transform: translateY(0) !important;
  transform: translateY(0) !important;
}

.content-wrapper .food-carousel {
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
  visibility: visible !important;
  -ms-transform: translateY(0) !important;
  transform: translateY(0) !important;
}

.content-wrapper .food-grid {
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
  visibility: visible !important;
  -ms-transform: translateY(0) !important;
  transform: translateY(0) !important;
}

/* 确保所有文本内容可见 */
.content-wrapper * {
  visibility: visible !important;
}

/* 确保容器有高度和可见性 */
.content-wrapper .container {
  position: relative;
  z-index: 1;
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
  visibility: visible !important;
}

/* 修复可能的overflow问题 */
.content-wrapper,
.content-wrapper .section,
.content-wrapper .container {
  overflow: visible;
}

/* 确保链接可见 */
.content-wrapper a {
  visibility: visible !important;
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
}

.content-wrapper a img {
  display: block;
  visibility: visible !important;
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
}

/* 修复图片显示问题 - 覆盖common.css中的object-fit */
.content-wrapper img {
  display: block !important;
  max-width: 100%;
  height: auto;
  visibility: visible !important;
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
  /* IE11不支持object-fit，移除 */
  object-fit: none !important;
}

/* 确保所有文本元素可见 */
.content-wrapper p,
.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4,
.content-wrapper h5,
.content-wrapper h6,
.content-wrapper li,
.content-wrapper ul,
.content-wrapper ol {
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
  visibility: visible !important;
  display: block !important;
  /* 确保文本换行 */
  white-space: normal !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4,
.content-wrapper h5,
.content-wrapper h6 {
  display: block !important;
}

.content-wrapper ul,
.content-wrapper ol {
  display: block !important;
}

.content-wrapper li {
  display: list-item !important;
}

/* 确保轮播图内容可见 */
.content-wrapper .swiper-wrapper,
.content-wrapper .swiper-slide,
.content-wrapper .carousel-item,
.content-wrapper .carousel-content {
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
  visibility: visible !important;
}

/* 确保美食网格项可见 */
.content-wrapper .food-item,
.content-wrapper .food-content {
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
  visibility: visible !important;
}

/* 确保西式美食图片可见 */
.section-western .food-item .food-image,
.section-western .food-item .food-image img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
  position: relative !important;
}

.section-western .food-item .food-image img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
}
