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

body {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  font-size: 12px;
  line-height: 1.42857;
  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;
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 20px auto 0;
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  min-height: calc(100vh - 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: 13px;
  color: #111;
  line-height: 1.6;
  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: 14px;
  color: #333;
  line-height: 1.8;
  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;
}

.dishes {
  margin: 15px 15px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.dishes.single-slide {
  height: 500px;
}

.dish {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
}

.dish.active {
  opacity: 1;
  position: relative;
}

.dish img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 0;
}

.dish-content {
  padding: 20px;
  background: white;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}

.dish h3 {
  font-size: 24px;
  color: #7a4c2b;
  margin: 0 0 10px 0;
  text-align: center;
}

.dish p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

.carousel-btn {
  position: absolute;
  top: 150px; /* 图片区域中间 */
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: none;
  background: rgba(255,255,255,0.9);
  color: #7a4c2b;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  font-size: 24px;
  font-weight: bold;
}

.carousel-btn:hover {
  background: #7a4c2b;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/* 响应式优化 */
@media (max-width: 960px) {
  .container {
    margin: 0 auto;
    width: 100%;
    box-shadow: none;
  }
  
  body {
    background-color: #fff;
  }
}

@media (max-width: 768px) {
  .text-container {
    margin-left: 0;
    margin-top: 15px;
  }
  
  .floating-logo {
    top: 15px;
    left: 10px;
    transform: none;
  }
  
  .diningdetail_menu_list {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 100%;
  }
  
  .dishes.single-slide {
    height: 450px;
  }
  
  .dish img {
    height: 250px;
  }
  
  .carousel-btn {
    top: 125px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .content-with-bg {
    margin: 0 10px 15px;
    padding: 10px;
  }
  
  .text-container {
    padding: 12px 15px;
    margin-top: 70px;
  }
  
  .diningdetail_menu_list {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 100%;
  }
  
  .dishes.single-slide {
    height: 400px;
  }
  
  .dish img {
    height: 200px;
  }
  
  .dish-content {
    padding: 15px;
  }
  
  .dish h3 {
    font-size: 20px;
  }
  
  .carousel-btn {
    top: 100px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  
  .section-title::before,
  .section-title::after {
    width: 20%;
  }
  
  .title-cn {
    font-size: 24px;
    padding: 0 15px;
  }
}