/* 通用样式清理 */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    /*flex-direction: column;*/
    background-color: #282929;
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

.product-content {
    /* background-image: url(../../images/backgroud/sushi.jpg); */
    background-size: cover; /* 让背景图片覆盖整个页面 */
    background-attachment: fixed; /* 背景固定，不随滚动条移动 */
    background-position: center; /* 背景居中 */
    background-repeat: no-repeat; /* 背景不重复 */
    width: 100%;
}
/*
.scrollable-content {
    margin-left: 200px;
    margin-right: 200px;
    
} */

/* 主容器样式 */
.container {
    flex: 1;
    display: flex;
    justify-content: center; /* 内容水平居中 */
    align-items: center; /* 内容垂直居中 */
    padding: 20px;
    background-color: white;
}

/* Additional styling for the carousel */
.swiper-wrapper {
    display: flex; /* 确保内容在一行显示 */
}

.swiper-container {
    width: 100%;
    max-width: 80%; /* 限制滑块的最大宽度 */
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
    height: auto;
}

.swiper-slide {
    width: 100%; /* 确保每个 slide 占据容器的全部宽度 */
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover; /* 确保背景图片覆盖整个 slide */
    background-position: center;
}
.swiper-slide img {
    width: 100%; /* 图片宽度适配容器 */
    height: auto;
    object-fit: cover;
}

/* Swiper 按钮样式 */
.swiper-button-next, .swiper-button-prev {
    color: #007bff; /* 按钮颜色 */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10; /* 确保按钮位于图片上方 */
    opacity: 0; /* 默认隐藏按钮 */
    transition: opacity 0.3s ease; /* 平滑显示效果 */
}

.swiper-button-next {
    right: 10px; /* 右侧按钮位置 */
}

.swiper-button-prev {
    left: 10px; /* 左侧按钮位置 */
}

/* Swiper 分页点样式 */
.swiper-pagination {
    position: absolute;
    bottom: 10px; /* 分页点位置 */
    width: 100%;
    text-align: center;
    color: white;
    z-index: 10; /* 确保分页点位于图片上方 */
}

/* 鼠标悬停时显示按钮 */
.swiper-container:hover .swiper-button-next,
.swiper-container:hover .swiper-button-prev {
    opacity: 1; /* 显示按钮 */
}

.section {
    text-align: center;
    color: black;
    background-color: white
}

.main-name {
    font-size: 80px;
    font-family: Chancery L, cursive;
    font-weight: 600
}

.context {
    color: black;
    word-wrap: break-word; /* 单词过长时自动换行 */
    overflow-wrap: break-word; /* 现代浏览器推荐 */
    white-space: normal; /* 确保正常的换行行为 */
    text-align: center;
    font-family: Didot, serif;
    background-color: white;
}

.question {
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: visible; /* 确保子元素完整显示 */
    width: 90%;
    text-align: center;
    justify-content: center;
    margin:auto;
}



.menu-detail {
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: visible; /* 确保子元素完整显示 */
    width: 90%;
    margin: auto;
}

.menu-title {
    background-color: #4b1c0896;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color:white;
    font-size: 50px;
}

.ans {
    margin: 30px;
}

.menu-title:hover {
    background-color: #f5f5e7;
    color: black;
}

.question-title {
    background-color: #4b1c0896;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color:white;
    font-size: 40px;
}

.question-title:hover {
    background-color: #ca610b;
}

.answer {
    max-height: 0; /* 默认折叠 */
    overflow: hidden; /* 隐藏超出部分 */
    transition: max-height 0.3s ease; /* 添加动画 */
    padding: 0 10px;
    font-size: 30px;
    font-family: Didot, serif;
    background-color: rgba(255, 255, 255, 0.733);
}

.answer p {
    margin: 10px 0;
    white-space: normal; /* 允许文字换行 */
    overflow: visible; /* 确保内容显示完整 */
    text-overflow: clip; /* 禁止文字被截断 */
}

.highlight {
    /*background-color: rgb(255, 179, 0);  设置高光背景颜色 */
    /*color: black;  设置文字颜色 */
    padding: 0 5px; /* 添加内边距 */
    border-radius: 10px;
    font-weight: 900;
    font-size: 30px;
    cursor: pointer;
}
.highlight:hover {
    color: black;
    background-color: white;
}

.cat-imgs {
    height: 400px;
}

#menu .context {
    font-size: 20px;
}

.category {
    font-size: 40px;
}

.contacts-context {
    font-size: 20px;
}

.context-inner {
    margin-left: 50px; /* 为文字添加 margin */
    margin-right: 50px;
    font-family: Didot, serif;
    font-size: 20px;
}

.dish-detail {
    font-size: 20px;
    margin-left: 40px;
}

.main-title {
    text-align: center;
    font-size: 80px;
    font-family: URW Chancery L, cursive;
    font-weight: 600
}

.food-grid {
    display: grid;
    grid-template-columns: 20% 60% 20%; /* 左中右三部分 */
    align-items: center; /* 子元素垂直居中 */
    gap: 20px; /* 子元素之间的间距 */
    padding: 10px 0; /* 为每一行增加垂直间距 */
}

.food-img {
    display: flex;
    align-items: flex-start; /* 图片上对齐 */
    justify-content: center; /* 图片水平居中 */
}

.food-img img {
    width: 100%; /* 确保图片宽度占满父容器 */
    height: auto; /* 保持图片比例 */
    object-fit: contain; /* 确保图片不被裁剪 */
    display: block; /* 移除图片的 inline 元素间隙 */
}

.food {
    text-align: left; /* 文字左对齐 */
    font-size: 20px; /* 适当调整字体大小 */
    line-height: 1.5; /* 增加文字间距 */
    display: flex;
    flex-direction: column; /* 文字容器纵向布局 */
    justify-content: flex-start; /* 文字与图片上对齐 */
}

.price {
    text-align: right; /* 价格右对齐 */
    font-weight: bold; /* 价格加粗 */
    font-size: 20px; /* 适当调整字体大小 */
    display: flex;
    align-items: flex-start; /* 价格上对齐 */
}

.allergens {
    color: #aaa; /* 过敏原信息颜色变浅 */
    font-size: 12px; /* 缩小字体 */
    margin-top: 5px; /* 增加与上方文字的间距 */
}
.whatsapp {
    cursor: pointer;
}
.facebook {
    cursor: pointer;
}

.instagram {
    cursor: pointer;
}

.drinks-img img{
    width: 100%;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .food-grid {
        gap: 5px;
    }
    .cat-imgs {
        width: 100%;
        height: auto;
    }
    .main-name {
        font-size: 30px;
        font-family: Didot, serif;
    }
    .highlight {
        font-size: 20px;
    }
    .container {
        /* background-image: url(../../images/backgroud/sushi.jpg); */
        background-color: rgba(255, 255, 255, 0.5);
        background-blend-mode: overlay;
    }
    
    .section {
        background-color: white;
    }
    .contacts-context {
        font-size: 20px;
        margin-top: 20px;
    }
    .main-title {
        margin-top: 20px;
        font-size: 40px;
        font-family: Didot, serif;
        font-weight: 600
    }
    .product-content {
        background-image: none;
    }
    #general {
        /* background-image: url(../../images/backgroud/sushi.jpg); */
    }
    #main-text {
        background-color: rgba(255, 255, 255, 0.5);
    }
    #reservation {
        /* background-image: url(../../images/backgroud/sushi.jpg); */
    }
    #contacts {
        /* background-image: url(../../images/backgroud/sushi.jpg); */
    }
    .contacts-context {
        background-color: rgba(255, 255, 255, 0.5);
    }
    /*
    .product-content {
        background-image: url('/images/backgroud/bbq.jpg');
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        height: 100vh;   
    }*/
    .swiper-container {
        width: 100%;
        max-width: 800px; /* 限制滑块的最大宽度 */
        height: auto;
        margin: 5 auto; /* 将容器水平居中 */
        position: relative;
        overflow: hidden;
        margin-top: 90px;
    }
    .context {
        color: black;
        margin-left: 5px;
        margin-right: 5px;
        word-wrap: break-word; /* 单词过长时自动换行 */
        overflow-wrap: break-word; /* 现代浏览器推荐 */
        white-space: normal; /* 确保正常的换行行为 */
    }
    .question-title {
        font-size: 30px;
    }
    
    .answer {
        font-size: 20px;
    }
    .responsive-iframe {
        width: 99%; /* 让 iframe 宽度适配父容器 */
        height: 70%;
        border: 0;
    }

    .scrollable-content {
        margin-left: 0;
        margin-right: 0;
    }

    
    .context-inner {
        margin-left: 0px; /* 为文字添加 margin */
        margin-right: 0px;
        font-size: 20px;
        
    }
}
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
    .scrollable-content {
        margin-left: 0;
        margin-right: 0;
    }
    .product-content {
        background-image: none;
    }
    .container {
        background-color: white;
    }
    .section {
        background-color: white;
    }
    #general {
        /* background-image: url(../../images/backgroud/sushi.jpg); */
    }
    #main-text {
        background-color: rgba(255, 255, 255, 0.5);
    }
    #reservation {
        /* background-image: url(../../images/backgroud/sushi.jpg); */
    }
    #contacts {
        /* background-image: url(../../images/backgroud/sushi.jpg); */
    }
    .contacts-context {
        background-color: rgba(255, 255, 255, 0.5);
    }
}
@media (min-width: 769px) and (max-width: 1024px)  {
    .section {
        background-color: white;
    }
    .contacts-context {
        font-size: 20px;
        margin-top: 20px;
    }
    .main-title {
        margin-top: 20px;
        font-size: 50px;
        font-family: URW Chancery L, cursive;
        font-weight: 600
    }
    .product-content {
        background-image: none;
        background-size: cover; /* 背景图自适应填充 */
        background-repeat: no-repeat; /* 不重复 */
        background-position: center; /* 居中对齐 */
    } 
    #general {
        /* background-image: url(../../images/backgroud/sushi.jpg); */
    }
    #main-text {
        background-color: rgba(255, 255, 255, 0.5);
    }
    #reservation {
        /* background-image: url(../../images/backgroud/sushi.jpg); */
    }
    #contacts {
        /* background-image: url(../../images/backgroud/sushi.jpg); */
    }
    .contacts-context {
        background-color: rgba(255, 255, 255, 0.5);
    }
    .swiper-container {
        width: 100%;
        max-width: 800px; /* 限制滑块的最大宽度 */
        height: auto;
        margin: 5 auto; /* 将容器水平居中 */
        position: relative;
        overflow: hidden;
        margin-top: 90px;
    }
    .context {
        color: black;
        margin-left: 40px;
        margin-right: 40px;
        word-wrap: break-word; /* 单词过长时自动换行 */
        overflow-wrap: break-word; /* 现代浏览器推荐 */
        white-space: normal; /* 确保正常的换行行为 */
    }
    .question-title {
        font-size: 30px;
    }
    
    .answer {
        font-size: 20px;
    }
    .responsive-iframe {
        width: 99%; /* 让 iframe 宽度适配父容器 */
        height: 70%;
        border: 0;
    }

    .scrollable-content {
        margin-left: 0;
        margin-right: 0;
    }
    .context-inner {
        margin-left: 0px; /* 为文字添加 margin */
        margin-right: 0px;
        font-size: 15px;
    }
    .container {
        /* background-image: url(../../images/backgroud/sushi.jpg); */
        background-color: rgba(255, 255, 255, 0.5);
        background-blend-mode: overlay;
    }
}
/* ===== HERO (full-bleed, no white sides) ===== */
.hero{
  position: relative;
  width: 100%;
  min-height: clamp(520px, 72vh, 760px);
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
}

/* 关键：让 <img> 真正当背景用 */
.hero__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* 关键：铺满，不变形 */
  object-position: center;
  transform: scale(1.02);  /* 防止边缘缝隙 */
}

/* 更高级的叠加：中间更透、底部更暗，文字更清晰 */
.hero__overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 28% 35%, rgba(0,0,0,.25), rgba(0,0,0,.72)),
    linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.75));
}

/* 内容块：左对齐 + 最大宽度 + 安全边距 */
.hero__content{
  position: relative;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0;
  color: #fff;
  max-width: 620px;        /* 控制文本块比例 */
}

/* 字体层级 */
.hero__title{
  margin: 0;
  font-size: clamp(44px, 5.4vw, 78px);
  line-height: .95;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.hero__subtitle{
  margin: 16px 0 0 0;
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  opacity: .9;
}

.hero__desc{
  margin: 16px 0 0 0;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  color: rgba(255,255,255,.88);
  max-width: 52ch;
}

/* CTA：别用纯白大块，做成更像品牌按钮 */
.hero__cta{
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  background: #EB5D31;
  color: #000;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid #EB5D31;
  transition: transform .12s ease, opacity .12s ease;
}

.hero__cta:hover{ transform: translateY(-1px); }
.hero__cta:active{ transform: translateY(0); opacity: .92; }

/* 手机端：居中一点更舒服 */
@media (max-width: 720px){
  .hero{ min-height: 560px; }
  .hero__content{
    max-width: 100%;
    text-align: left;
  }
}

.sushi-section{
  background: #fff;
}

.sushi-container{
  width: min(1700px, calc(100% - 64px));
  margin: 0 auto;
}

.sushi-title{
  text-align: center;
  font-size: 56px;              /* 🔥 关键：再上一个台阶 */
  letter-spacing: .16em;
  font-weight: 400;
  margin-bottom: 96px;
  text-transform: uppercase;
}

.sushi-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}


/* 👇 关键修复 */
.sushi-row--reverse{
  grid-template-columns: 1fr 1fr;
}

.sushi-row--reverse .sushi-text{
  order: 1;
}

.sushi-row--reverse .sushi-image{
  order: 2;
}

/* 图片容器 = 画框 */
.sushi-image{
  position: relative;
  width: 100%;
  max-width: 620px;      /* 控制画框大小，可调 */
  aspect-ratio: 4 / 3;  /* 固定比例，防止图片高低乱跳 */
  overflow: hidden;     /* 🔥 核心：裁掉超出的部分 */
  border-radius: 16px;  /* 高级感 */
  background: #000;     /* 图片加载前兜底 */
}

/* 图片本身 */
.sushi-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;    /* 🔥 填满容器，多余裁掉 */
  object-position: center;
  display: block;
}
.sushi-text p{
  font-size: 20px;
  line-height: 1.85;
  max-width: 54ch;
}
.sushi-image{
  margin-left: auto;
  margin-right: auto;
}

.sushi-text p{
  margin-left: auto;
  margin-right: auto;
}

/* 移动端 */
@media (max-width: 768px){
  .sushi-container{
    width: min(900px, calc(100% - 32px));
  }

  .sushi-title{
    font-size: 38px;
    letter-spacing: .12em;
    margin-bottom: 40px;
  }

  .sushi-row{
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 56px;
  }

  /* ✅ 移动端统一：永远图片在上、文字在下（包括 reverse 行） */
  .sushi-row .sushi-image{ order: 1; }
  .sushi-row .sushi-text{ order: 2; }

  .sushi-image{
    max-width: 100%;
    aspect-ratio: 16 / 10; /* 移动端更舒服一些，可按你喜好调 */
    border-radius: 14px;
  }

  .sushi-text p{
    font-size: 18px;
    line-height: 1.75;
    max-width: 60ch;
  }
}

/* 特殊内容面板：默认完全收起 */
.special-panel{
  max-height: 0;            /* 收起 */
  overflow: hidden;         /* 🔥 不露一丁点 */
  transition: max-height .35s ease;
  padding: 0;
  margin: 0;
}

/* 展开状态由 JS 设置 max-height，不需要额外 class 也行 */

/* 内层：不要留空白 */
.special-panel__inner{
  padding: 0;
  margin: 0;
}

/* 图片：占满容器宽度，高度自适应 */
.special-flyer{
  width: 100%;
  height: auto;             /* 🔥 高度跟图片决定 */
  display: block;
}