/* Block: .menu */

.section--banner {
    background-image: var(--bg-mobile, var(--bg-tablet, var(--bg-desktop)));
}
.wrap--banner {
    height: 50vh;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.banner-title {
    color: var(--background-color);
    font-size: 3.5rem;
    /* font-family: inherit; */
    text-shadow: 2px 2px 8px var(--brand-black-color);
}

.section--menu {
    background: linear-gradient(to bottom, var(--brand-grey-color), var(--brand-ivory-color));
  color: var(--brand-black-color);
  background-color: var(--brand-grey-color);
}

.section--menu h1,
.section--menu h2,
.section--menu h3,
.section--menu p {
  color: var(--brand-black-color);
}
.wrap--menu {
    gap: 10px;
}
/* Element: .menu__header */
.menu__header {
    text-align: center;
}

/* Element: .menu__pdf-link */
.menu__pdf-link {
    display: inline-block;
    padding: 12px 20px;
    background-color: var(--brand-red-color);
    color: var(--background-color);
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    /* margin-bottom: 40px; */
}

/* Element: .menu__tabs */
.menu__tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 15px;
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    /* border-bottom: 1px solid #ddd; */
}
.menu__tab {
    border: none;
    background-color: transparent;
    padding: 0; 
    /* font-family: inherit; */
    font-size: inherit;
    color: inherit; 
    text-align: inherit;
    cursor: pointer;
        border-bottom: 3px solid transparent;
            text-decoration: none;
}
/* Modifier: .menu__tab--active */
.menu__tab--active {
    color: var(--brand-red-color);
    border-bottom-color: var(--brand-red-color);
}
.menu__tab:focus-visible {
    outline: 2px solid var(--brand-red-color); 
    outline-offset: 2px;
    border-radius: 4px; 
}

.menu__tab:focus {
     box-shadow: 0 0 0 2px var(--brand-red-color); 
}
.menu__notice {
font-size: 1.2em; /* 字体稍大 */
  font-style: italic; /* 斜体 */
  text-align: center; /* 居中 */
  margin-bottom: 1em; /* 和下面的菜单拉开距离 */
}
/* Element: .menu__content */
.menu__content {
     position: relative;
    min-height: 400px; 
}


.menu__content--loading > * {
    visibility: hidden;
}

.menu__content--loading::before,
.menu__content--loading::after {
    visibility: visible;
}
.menu__content--loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7); /* 添加一个半透明的遮罩层 */
    z-index: 1;
}

.menu__content--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px; /* 垂直居中 */
    margin-left: -20px; /* 水平居中 */
    border: 4px solid var(--brand-grey-color); /* Spinner 的底圈 */
    border-top: 4px solid var(--brand-red-color); /* Spinner 的旋转部分颜色 */
    border-radius: 50%;
    animation: spin 1s linear infinite; /* 应用旋转动画 */
    z-index: 2;
}

/* 定义旋转动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.menu__subcategory-title {
    text-align: center;
    width: 100%;
    overflow: hidden;
    margin: 40px 0;
    font-size: 1.5em;
    color: var(--brand-red-color); /* 棕色 */
}
.menu__subcategory-title span {
    position: relative;
    padding: 0 20px;
}
.menu__subcategory-title span::before,
.menu__subcategory-title span::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100vw; /* 很长的线 */
    height: 1px;
    background: var(--background-color);
}
.menu__subcategory-title span::before {
    right: 100%;
    margin-right: 20px;
}
.menu__subcategory-title span::after {
    left: 100%;
    margin-left: 20px;
}


/* Element: .menu__grid */
.menu__grid {
    display: grid;
    grid-template-columns: 1fr; /* 移动端优先：一列 */
    gap: 30px;
}



/* Element: .menu__item (Treated as a nested Block for clarity) */
.menu-items {
    display: flex;
     flex-direction: row; 
        /* align-items: flex-start;
        gap: 15px;  */
        gap: 20px;
}
.menu-items__image-wrapper {
    flex: 0 0 150px;
    margin-bottom: 15px;
}
.menu-items__image {
    width: 100%;
    height: auto;
   aspect-ratio: 1 / 1; 
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.menu-items__container {
        flex-grow: 1; 
    }
.menu-items__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px dashed var(--brand-black-color);
    margin-bottom: 10px;
    width: 100%;
}
.menu-items__title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
}
.menu-items__price {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--brand-red-color);
}
.menu-items__description {
    font-size: 0.9em;
    color: var(--brand-grey-color);
}


/* 桌面端样式：两列 */
@media (min-width: 768px) {
    .section--banner {
  background-image:  var(--bg-tablet, var(--bg-desktop));
    }
    .menu__tabs {
    gap: 15px 20px;
    }
    .menu__grid {
        /* display: grid; */
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 30px;
    }
    .menu-items--has-image {
        grid-column: 1 / -1;
        /* flex-direction: row; */
        display: flex;
        gap: 25px;
        align-items: flex-start;
    }
    .menu-items--has-image .menu-items__image-wrapper {
        flex-basis: 250px; 
         margin-bottom: 0;
    }

    .menu-items--has-image .menu-items__content {
           flex: 1;
        min-width: 0; 
        padding-top: 10px; 
    }
    .menu-items:not(.menu-items--has-image) {
        display: flex;
        flex-direction: column; /* 保持默认的垂直卡片布局 */
    }

}

@media (min-width: 1024px) {
  .section--banner {
  background-image:  var(--bg-desktop);
}
    .menu__tabs {
    gap: 15px 30px;
    }
        .menu__tab:hover {
    color: var(--brand-red-color);
}
}