/* 重置樣式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  font-size: 14px; /* 移动端基础字体增大 */
  line-height: 1.6;
  color: #343434;
  font-family: "Helvetica Neue",Helvetica,"Nimbus Sans L",Arial,"Liberation Sans","Hiragino Sans GB","Source Han Sans CN Normal","Microsoft YaHei","Wenquanyi Micro Hei","WenQuanYi Zen Hei","ST Heiti",SimHei,"WenQuanYi Zen Hei Sharp",sans-serif !important;
  margin: 0;
  padding: 0;
  background-color: #f8f8f8;
  overflow-x: hidden; /* 防止横向滚动 */
}

.container {
  max-width: 960px;
  margin: 20px auto 0;
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  width: 100%; /* 移动端占满宽度 */
  padding-bottom: 20px; /* 底部留白 */
}

/* 头部样式优化 */
.header {
  text-align: center;
  margin-bottom: 0;
  position: relative;
  padding: 5px 0 0;
}

.content-with-bg {
  background-image: url('../images/xing4.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 15px;
  margin: 0 15px 15px;
  border-radius: 8px;
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
}

/* 优化文本容器 */
.text-container {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 15px 15px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(2px);
  width: 100%;
  margin-left: 140px; /* 为logo留出空间 */
  margin-top: 0;
}

.floating-logo {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
}

.logo {
  width: 120px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.intro {
  font-size: 14px; /* 移动端字体增大 */
  color: #111;
  line-height: 1.8;
  text-align: justify;
  text-indent: 2em;
  margin: 0;
}

/* 优化营业信息区域 */
.business-info-section {
  margin: 20px 15px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.business-info-section .info-plain {
  font-size: 15px; /* 移动端字体增大 */
  color: #333;
  line-height: 2;
  margin: 0 auto;
  max-width: 600px;
}

.info-location {
  color: #c62828;
  font-weight: 700;
}

.info-phone {
  color: #c62828;
  font-weight: 800;
  text-decoration: none;
}

.info-phone:hover {
  text-decoration: underline;
}

/* 优化菜单选择区域 */
.menu-section-wrapper {
  margin: 10px 0 5px 0;
  /* 如果需要固定高度，可以取消下面这行的注释并调整值 */
   max-height: 200px; 
  /* 如果需要最小高度，可以取消下面这行的注释并调整值 */
  /* min-height: 150px; */
}

#diningdetail_recommended {
  margin: 0;
  padding: 0 20px;
  height: auto; /* 高度自适应内容 */
  overflow: visible; /* 允许内容正常显示 */
}

/* 优化菜单选项容器 */
#diningdetail_recommended .lazyload-wrapper {
  margin: 0;
  padding: 0;
}

/* 优化菜单选项 */
.menu-options {
  margin: 0;
  padding: 0;
}

/* 优化Bootstrap栅格 */
.menu-options > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
}

/* 优化菜单列表 */
.diningdetail_menu_list {
  margin: 10px 0;
}

.menu-options h3 {
  font-size: 24px;
  color: #7a4c2b;
  margin: 0 0 10px 0;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 10px;
}

.menu-options h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7a4c2b, transparent);
}

.diningdetail_menu_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.diningdetail_menu_list li {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.diningdetail_menu_list li:hover {
  transform: translateY(-5px);
}

.diningdetail_menu_list .pic {
  margin-bottom: 12px;
  padding: 10px;
  background: #f8f8f8;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  transition: background 0.3s ease;
}

.diningdetail_menu_list li:hover .pic {
  background: #cad6c3;
}

.diningdetail_menu_list .pic img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.diningdetail_menu_list li:hover .pic img {
  transform: scale(1.1);
}

.diningdetail_menu_list a {
  color: #555;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.diningdetail_menu_list a:hover {
  color: #7a4c2b;
}

/* 优化招牌菜轮播 */
.section-title {
  text-align: center;
  margin: 5px 0 10px;
  position: relative;
}

.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #7a4c2b, transparent);
}

.section-title::before {
  left: 0;
}

.section-title::after {
  right: 0;
}

.title-cn {
  display: inline-block;
  padding: 0 20px;
  font-size: 32px;
  color: #7a4c2b;
  font-weight: 700;
  background: white;
  position: relative;
  z-index: 1;
}

.title-en {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: #666;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Swiper 轮播容器 */
.dishes-swiper-container {
  margin: 15px 15px 20px; /* 底部边距 */
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.dishesSwiper {
  width: 100%;
  height: 500px; /* 可根据需要调整高度 */
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dish {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.dish img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保持图片比例，填满容器 */
  border-radius: 0;
  display: block;
}

/* 文字内容已移除，保留样式以防未来需要 */
.dish-content {
  display: none; /* 隐藏文字内容 */
}

.dish h3 {
  display: none;
}

.dish p {
  display: none;
}

/* Swiper 导航按钮样式 */
.swiper-button-prev,
.swiper-button-next {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.swiper-button-prev:after,
.swiper-button-next:after {
  font-size: 20px;
  font-weight: bold;
  color: #7a4c2b;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: #7a4c2b;
}

.swiper-button-prev:hover:after,
.swiper-button-next:hover:after {
  color: white;
}

/* Swiper 分页器样式 */
.swiper-pagination {
  bottom: 20px !important;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.5);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #7a4c2b;
  width: 30px;
  border-radius: 6px;
}

/* 响应式优化 */
@media (max-width: 960px) {
  .container {
    margin: 0 auto;
    width: 100%;
    box-shadow: none;
    padding-bottom: 15px; /* 移动端减少底部留白 */
  }
  
  body {
    background-color: #fff;
    font-size: 14px;
  }
  
  /* 优化标题大小 */
  .title-cn {
    font-size: 28px;
  }
  
  .title-en {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-bottom: 12px; /* 平板端进一步减少底部留白 */
  }
  
  body {
    font-size: 15px; /* 平板字体大小 */
  }
  
  .header {
    padding: 10px 0 0;
  }
  
  .content-with-bg {
    margin: 0 10px 15px;
    padding: 12px;
    min-height: 100px;
  }
  
  .text-container {
    margin-left: 0;
    margin-top: 15px;
    padding: 12px;
  }
  
  .floating-logo {
    top: 12px;
    left: 12px;
    transform: none;
  }
  
  .logo {
    width: 100px;
    height: 50px;
  }
  
  .intro {
    font-size: 14px;
    line-height: 1.8;
  }
  
  .business-info-section {
    margin: 15px 10px;
    padding: 15px;
  }
  
  .business-info-section .info-plain {
    font-size: 14px;
  }
  
  .menu-options h3 {
    font-size: 20px;
    margin: 0 0 15px 0;
  }
  
  .diningdetail_menu_list {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 100%;
  }
  
  .diningdetail_menu_list .pic {
    width: 70px;
    height: 70px;
  }
  
  .diningdetail_menu_list .pic img {
    width: 35px;
    height: 35px;
  }
  
  .diningdetail_menu_list a {
    font-size: 14px;
  }
  
  .title-cn {
    font-size: 26px;
  }
  
  .title-en {
    font-size: 12px;
  }
  
  .dishes-swiper-container {
    margin: 10px 10px 15px; /* 平板端底部边距 */
  }
  
  .dishesSwiper {
    height: 350px; /* 平板高度调整 */
  }
  
  .dish img {
    height: 100%;
  }
  
  .swiper-button-prev,
  .swiper-button-next {
    width: 40px;
    height: 40px;
  }
  
  .swiper-button-prev:after,
  .swiper-button-next:after {
    font-size: 16px;
  }
  
  .swiper-pagination {
    bottom: 15px !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding-bottom: 10px; /* 手机端最小化底部留白 */
  }
  
  body {
    font-size: 14px; /* 手机字体大小 */
  }
  
  .header {
    padding: 5px 0 0;
  }
  
  .content-with-bg {
    margin: 0 8px 12px;
    padding: 8px;
    min-height: 90px;
  }
  
  .text-container {
    padding: 10px 12px;
    margin-top: 65px;
  }
  
  .floating-logo {
    top: 8px;
    left: 8px;
  }
  
  .logo {
    width: 90px;
    height: 45px;
  }
  
  .intro {
    font-size: 13px;
    line-height: 1.7;
    text-indent: 1.5em;
  }
  
  .business-info-section {
    margin: 12px 8px;
    padding: 12px;
  }
  
  .business-info-section .info-plain {
    font-size: 13px;
    line-height: 1.9;
  }
  
  .indent-line {
    display: block;
    padding-left: 1em;
  }
  
  .menu-section-wrapper {
    margin: 8px 0 5px 0;
  }
  
  #diningdetail_recommended {
    padding: 0 10px;
  }
  
  .menu-options h3 {
    font-size: 18px;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
  }
  
  .diningdetail_menu_list {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    max-width: 100%;
  }
  
  .diningdetail_menu_list .pic {
    width: 60px;
    height: 60px;
    padding: 8px;
    margin-bottom: 8px;
  }
  
  .diningdetail_menu_list .pic img {
    width: 30px;
    height: 30px;
  }
  
  .diningdetail_menu_list a {
    font-size: 12px;
  }
  
  .section-title {
    margin: 8px 0 10px;
  }
  
  .section-title::before,
  .section-title::after {
    width: 15%;
  }
  
  .title-cn {
    font-size: 22px;
    padding: 0 12px;
  }
  
  .title-en {
    font-size: 11px;
    margin-top: 6px;
    letter-spacing: 2px;
  }
  
  .dishes-swiper-container {
    margin: 8px 8px 12px; /* 手机端底部边距 */
    border-radius: 8px;
  }
  
  .dishesSwiper {
    height: 280px; /* 手机高度优化 */
  }
  
  .dish img {
    height: 100%;
  }
  
  .swiper-button-prev,
  .swiper-button-next {
    width: 32px;
    height: 32px;
  }
  
  .swiper-button-prev:after,
  .swiper-button-next:after {
    font-size: 12px;
  }
  
  .swiper-pagination {
    bottom: 10px !important;
  }
  
  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
  
  .swiper-pagination-bullet-active {
    width: 20px;
  }
}