* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #8B4513;
  --primary-light: #D2B48C;
  --primary-dark: #654321;
  --accent-color: #D4A574;
  --beige: #E8D4C0;
  --light-beige: #F5E6D3;
  --text-dark: #3d3d3d;
  --text-light: #666;
  --border-color: #D4C4B0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}


body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  color: var(--text-dark);
  background: transparent;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.main-bg {
  position: relative;
  z-index: 2; /* 确保在轮播图之上 */
  width: 100%;
  padding-bottom: 0;
  background-color: transparent; /* 暂时去掉整块米色背景，避免形成整条米色方框 */
}


.container {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
}

/* 导航栏样式 - Updated 2025-12-12 16:48:00 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to bottom, rgba(0, 77, 64, 1), rgba(0, 121, 107, 0.8)); /* 深绿到浅绿的渐变 */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  padding: 0;
  transition: top 0.4s ease-in-out; /* 平滑的滑动过渡效果 */
}

.navbar-hidden {
  top: -150px; /* 将导航栏向上移出屏幕，值大于导航栏高度即可 */
}

.navbar-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 100px;
}

.logo img {
    max-height: 100px; /* 调整最大高度以适应导航栏 */
    width: auto; /* 保持宽高比 */
    transition: transform 0.3s ease; /* 添加平滑过渡效果 */
}

.logo:hover img {
    transform: scale(1.05); /* 鼠标悬停时轻微放大 */
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text-cn {
  font-size: 20px;
  font-weight: bold;
  color: white;
  line-height: 1.2;
}

.logo-text-en {
  font-size: 12px;
  color: white;
  line-height: 1.2;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
}

.search-container {
  position: relative;
}

.search-container input {
  padding: 8px 30px 8px 15px;
  border-radius: 20px;
  border: 1px solid #ccc;
  background-color: rgba(255, 255, 255, 0.8);
}

.search-container .fa-search {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  cursor: pointer;
}

.nav-menu li a {
  text-decoration: none;
  color: white;
  font-weight: 400;
  transition: color 0.3s;
  font-size: 16px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: #D4A574;
}

.nav-item-with-dropdown {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(0, 77, 64, 0.95);
  list-style: none;
  padding: 12px 0;
  border-radius: 8px;
  min-width: 140px;
  width: max-content;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  margin-top: 8px;
}

.nav-item-with-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li {
  padding: 0;
}

.nav-dropdown li a {
  display: block;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.2s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.nav-dropdown li a:hover {
  background-color: rgba(212, 165, 116, 0.2);
  color: var(--accent-color);
  padding-left: 28px;
}

.user-center {
  background-color: var(--primary-color);
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
  font-size: 16px;
  flex-shrink: 0;
}

.user-center:hover {
  background-color: var(--primary-dark);
}

/* 轮播图样式 */
.hero-section {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: visible;
  z-index: 1; /* 确保在内容之下 */
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding-top: 60px;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.carousel-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 700px;
}

.carousel-content h1 {
  font-size: 44px;
  margin-bottom: 16px;
  font-weight: bold;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

.carousel-content p {
  font-size: 18px;
  margin-bottom: 36px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  font-weight: 400;
}

.carousel-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn {
  padding: 11px 28px;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background-color: var(--beige);
  color: var(--primary-dark);
  font-weight: 600;
}

.btn-primary:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: white;
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

/* 主要内容区域 */
.main-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* 左侧菜单 */
.left-menu {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  position: fixed;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  height: fit-content;
  z-index: 500;
}

.menu-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: transparent; /* 将背景设置为透明，移除红色圆点 */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.menu-circle:hover {
  background: rgba(210, 180, 140, 0.5);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.15);
  transform: scale(1.05);
}

.menu-circle span {
  display: block;
  line-height: 1.3;
}

/* 中间内容区域 */
.main-content {
  padding: 0;
  background: transparent;
}

.main-content #food-section {
  background: transparent;
  padding: 0;              /* 取消顶部 40px 内边距，让内容紧贴标题条 */
  margin: 0;               /* 保持不额外拉开距离 */
}

.content-section {
  margin-bottom: 80px; /* 增加内容区块之间的间距 */
}

.content-section:last-child {
  margin-bottom: 0;
}

/* 品牌介绍和下一个标题条之间不要额外留 80px 间距 */
#brand-introduction-section.content-section {
  margin-bottom: 0;
}

/* 标题条公共样式：热门菜品 / 热门团购 使用矩形盒子 */
.section-title-strip {
  position: relative;
  height: 384px;
 background-image: url('../图片/首页/标题背景/品牌介绍.png');
  display: flex;
  align-items: center;           /* 垂直居中 */
  justify-content: center;       /* 水平居中 */
  padding: 0 160px;
  gap: 24px;                     /* 左右装饰与标题之间固定间距 */
  margin-bottom: 0;           /* 移除下方空隙 */
}

.section-title-strip h2 {
  position: relative;
  font-size: 40px;                /* 大号粗体棕字 */
  font-weight: 800;
  color: #8B4513;
  letter-spacing: 6px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
  margin: 0;                      /* 避免浏览器自带外边距影响居中 */
}

.section-title-strip h2::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: linear-gradient(to right,
    rgba(139,69,19,0),
    rgba(139,69,19,0.8),
    rgba(139,69,19,0));
}

.title-deco-left,
.title-deco-right {
  height: 100px;   /* 略放大一点，与 40px 标题高度接近 */
  width: auto;
}

.title-deco-left {
  margin-right: 24px;
}

.title-deco-right {
  margin-left: 24px;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--beige);
  text-align: left;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-light);
  margin-top: -10px;
  margin-bottom: 25px;
}

/* 热素活动区域：单独居中标题和说明文案样式 */
#activity-section {
  padding: 40px;
  position: relative;
}

#activity-section .section-title {
  text-align: center;
  border-bottom: none;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

#activity-section .section-subtitle {
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 30px;
}

/* 热门菜品 */
#food-section {
  position: relative;
  min-height: 100vh; /* 至少一屏高度，实际由内部大图撑开 */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0; /* 让内容从顶部开始 */
  border-bottom: none;
  margin-top: 0; /* 间距由上一个 section 的 padding 决定 */
  margin-bottom: 0; /* 覆盖掉 content-section 默认的 80px 外边距 */
  background: url('../图片/首页/标题背景/品牌介绍.png') center/cover no-repeat;
}

#food-section .section-title {
  display: none; /* 保留语义结构，但不在外层米色区域显示 */
}

#food-section .section-title::before {
  content: none; /* 彻底移除红色圆点 */
}

#food-section .section-title::after {
  content: '';
  display: block;
  width: 120px; /* 调整宽度，使其更精致 */
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent-color), transparent); /* 调整渐变颜色与主题色协调 */
  margin: 8px 0 0 0; /* 紧贴标题下方，靠左 */
}

/* 大图内部的“热门菜品”标题 */
.food-main-label {
  position: absolute;
  top: 40px;
  left: 60px;
  z-index: 5;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 4px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.85);
}

.food-main-label::after {
  content: '';
  display: block;
  margin-top: 10px;
  width: 140px;
  height: 2px;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.7), rgba(255,255,255,0));
}

/* 食心美点部分新增的副标题样式 */
#food-section .section-subtitle {
  text-align: center;
  color: #6A4A3A; /* Darkened color */
  margin-top: 5px;
  margin-bottom: 25px;
  text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.7), 0px 0px 10px rgba(255, 255, 255, 0.7);
}

/* 热门菜品 - 大图 + 右侧缩略图布局 */
.food-highlight {
  position: relative;
  width: 100vw;
  height: 100vh; /* 直接占满一整屏 */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.food-highlight-main {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
  background: #000;
}

.food-main-image {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
}

.food-main-info {
  position: absolute;
  left: 40px;
  bottom: 40px;
  max-width: 320px;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.85);
}

.food-main-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.food-main-desc {
  font-size: 14px;
  margin-bottom: 10px;
}

.food-main-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 16px;
}

.food-main-buttons {
  display: flex;
  gap: 10px;
}

.food-highlight-sides {
  position: absolute;        /* 贴在大图右侧区域 */
  right: 160px;              /* 控制整体左右位置 */
  bottom: 90px;              /* 向上移动 10 像素 */
  width: 160px;              /* 三张卡片宽度区域 */
  height: 420px;             /* 竖直方向区域 */
  pointer-events: none;      /* 容器不接事件，内部卡片可以 */
}

.food-side-card {
  position: absolute;
  left: 0;                   /* 三张左边对齐 */
  width: 150px;
  height: 210px;
  border-radius: 24px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.45;                 /* 默认稍微暗一点 */
  transform: scale(0.88);        /* 默认稍微小一点 */
  filter: brightness(0.65);      /* 整体偏暗 */
  transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease; /* 过渡更柔和 */
}

/* 中间当前卡片：更亮、更大，堆叠效果 */
.food-side-card.food-active {
  opacity: 1;
  transform: scale(1.05);   /* 比两侧略大一点 */
  filter: brightness(1);    /* 恢复正常亮度 */
  z-index: 3;
}

/* 队列流动的进入 / 离开状态 */
.food-thumb-enter {
  transform: translateY(40px);
  opacity: 0;
}

.food-thumb-enter-active {
  transform: translateY(0);
  opacity: 1;
}

.food-thumb-leave {
  transform: translateY(0);
  opacity: 1;
}

.food-thumb-leave-active {
  transform: translateY(-40px);
  opacity: 0;
}

/* 三张卡片：从左下到右上的错位路径 */
.food-side-1 {          /* 第一张：最下面、最靠左 */
  top: 260px;
  left: 0;
}

.food-side-2 {          /* 第二张：中间位置，稍微向右、向上 */
  top: 170px;
  left: 25px;
}

.food-side-3 {          /* 第三张：最上面、最靠右 */
  top: 80px;
  left: 50px;
}

.food-side-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.food-side-overlay h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.8);
}

.food-highlight-controls {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.food-dots-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.food-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.food-dot.active {
  background-color: white;
}

.food-dot:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.food-highlight-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.food-highlight-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  background: var(--primary-color);
  color: #fff;
}

.food-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 60px; /* 增加上边距 */
}

.food-tab {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.food-tab.active, .food-tab:hover {
    background-color: #D4574B;
    color: white;
    border-color: #D4574B;
}

.carousel-container-wrapper {
    overflow: hidden;
    width: 100%;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.food-card-carousel {
    display: flex;
    gap: 30px; /* 增大卡片间距 */
    padding-bottom: 20px;
    animation: scroll 40s linear infinite; /* 恢复并调整动画 */
}

.food-card-carousel:hover {
    animation-play-state: paused;
}

.food-card-item {
    flex: 0 0 320px; /* 增大卡片宽度 */
    border-radius: 12px; /* 增大圆角 */
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15); /* 调整阴影 */
    transition: transform 0.3s ease;
}

.food-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.food-card-item:hover::before {
    background-color: rgba(0, 0, 0, 0.5);
}

.food-card-item:hover {
    transform: translateY(-10px);
}

.food-card-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.food-card-info {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    text-align: center;
    width: 90%;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.food-card-item:hover .food-card-info {
    opacity: 0;
}

.food-card-info h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: none;
}

.food-card-divider {
    width: 50px;
    height: 2px;
    background-color: white;
    border: none;
    margin: 0 auto 10px;
}

.food-card-desc {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.food-card-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-color);
}

.food-card-buttons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.food-card-item:hover .food-card-buttons {
    opacity: 1;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 20px;
}

.btn-details {
    background-color: var(--beige);
    color: var(--primary-dark);
    border: none;
}

.btn-purchase {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

/* 热门团购 */
#group-buy-section {
  position: relative;
  min-height: calc(100vh + 100px); /* 至少一屏内容 + 100px 标题区，不强制多余空白 */
  display: flex;
  flex-direction: column;
  justify-content: center; /* 垂直居中内容 */
  padding: 180px 0 30px; /* 顶部保留 100px 标题区，底部空白减小 */
  border-bottom: 2px solid var(--beige);
  background: url('../图片/首页/标题背景/品牌介绍.png') center/cover no-repeat;
  margin-top: 0;     /* 与热门菜品之间的间距交给 food-section 控制 */
  margin-bottom: 0;  /* 贴近页脚顶部 */
}

/* 视频背景容器 */
.group-buy-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.group-buy-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
}

/* 视频叠加层 */
.group-buy-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

/* 团购内容容器 */
.group-buy-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 40px;
  margin: 0 auto;
}

#group-buy-section .section-title {
  text-align: center;
  color: white;
  border-bottom: none;
  font-size: 48px;
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

#group-buy-section .section-title::after {
  content: '';
  display: block;
  width: 200px;
  height: 3px;
  background: linear-gradient(to right, transparent, #8B4513, transparent);
  margin: 20px auto 0;
  box-shadow: 0 0 20px rgba(139, 69, 19, 0.5);
}

#group-buy-section .section-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 15px;
  margin-bottom: 50px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 1px;
}

/* 只保留顶部标题条，去掉区块内部叠在图片上的大标题 */
#brand-introduction-section .section-title,
#group-buy-section .section-title {
  display: none;
}

.food-main-label {
  display: none;
}

.group-buy-container {
  display: grid;
  /* 砌体式布局：5列网格 */
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  grid-auto-rows: 300px; /* 设置行高 */
  position: relative;
  z-index: 2;
  padding: 0 40px;
  max-width: 1400px;
  margin: 0 auto;
}

/* 砌体式布局卡片大小设置 */
.group-buy-container .group-buy-card:nth-child(1) {
  grid-column: span 1;
  grid-row: span 1;
  order: 9;
}

.group-buy-container .group-buy-card:nth-child(2) {
  grid-column: span 1;
  grid-row: span 1;
  order: 11;
}

.group-buy-container .group-buy-card:nth-child(3) {
  grid-column: span 1;
  grid-row: span 1;
  order: 2;
}

.group-buy-container .group-buy-card:nth-child(4) {
  grid-column: 1 / span 2;
  grid-row: span 1;
  order: 8;
}

.group-buy-container .group-buy-card:nth-child(5) {
  grid-column: span 1;
  grid-row: span 1;
  order: 3;
}

.group-buy-container .group-buy-card:nth-child(6) {
  grid-column: span 1;
  grid-row: span 1;
  order: 4;
}

.group-buy-container .group-buy-card:nth-child(7) {
  grid-column: span 1;
  grid-row: span 1;
  order: 10;
}

.group-buy-container .group-buy-card:nth-child(8) {
  grid-column: 1 / span 2;
  grid-row: span 1;
  order: 1;
}

#brand-introduction-section {
	    min-height: calc(100vh + 100px); /* 额外预留 100px 用于标题 */
	    /* 顶部留出导航栏高度 + 标题区，底部少量留白 */
	    padding: 200px 0 60px; /* 顶部比原来多 100px */
	    position: relative;
	    display: flex; /* 使用flex居中 */
	    align-items: center;
	    justify-content: center;
	    overflow: hidden;
	    background: none;
	    /* 去掉默认 content-section 的底部间距，避免视频下方出现米色条 */
	    margin-bottom: 50px; /* 还原为统一的 50px */
	}

.brand-intro-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.brand-intro-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-wood-board {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 320px;
  max-width: 40vw;
  height: auto;
  display: block;
  pointer-events: auto;
}

.brand-wood-board-img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.brand-wood-board-text {
  position: absolute;
  left: 10%;
  width: 80%;
  text-align: center;
  color: #3b2a1a;
  font-weight: 700;
  font-size: clamp(14px, 1.6vw, 20px);
  letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.35);
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
}

.brand-wood-board-text.is-active {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.brand-wood-board-text-1 {
  top: calc(35% + 13px);
}

.brand-wood-board-text-2 {
  top: calc(55% + 10px);
}

.brand-wood-board-text-3 {
  top: 80%;
}

.brand-wood-board-fixed {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 40vw;
  height: auto;
  z-index: 2;
  pointer-events: auto;
  transform: rotate(180deg);
  transform-origin: center;
}

.brand-wood-board-fixed-img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.brand-wood-board-fixed-text {
  position: absolute;
  left: 10%;
  width: 80%;
  text-align: center;
  color: #3b2a1a;
  font-weight: 700;
  font-size: clamp(14px, 1.6vw, 20px);
  letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) rotate(180deg);
  cursor: pointer;
  user-select: none;
}

.brand-wood-board-fixed-text.is-active {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.brand-wood-board-fixed-text-1 {
  top: calc(35% + 88px);
}

.brand-wood-board-fixed-text-2 {
  top: calc(55% + 5px);
}

#brand-display-box.brand-display-box--statement {
  width: 384px;
  height: 210px;
  max-width: calc(100vw - 140px);
  border-radius: 18px;
  padding: 20px 4px 20px 22px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

#brand-display-box.brand-display-box--statement .brand-statement-title {
  font-size: 26px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.78);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

#brand-display-box.brand-display-box--statement .brand-statement-list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

#brand-display-box.brand-display-box--statement .brand-statement-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.72);
}

#brand-display-box.brand-display-box--statement .brand-statement-label {
  min-width: 72px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.72);
}

#brand-display-box.brand-display-box--statement.brand-display-box--dense .brand-statement-title {
  font-size: 24px;
}

#brand-display-box.brand-display-box--statement.brand-display-box--dense .brand-statement-row {
  font-size: 15px;
  line-height: 1.25;
}

#brand-display-box.brand-display-box--statement .brand-statement-value {
  flex: 1 1 auto;
}

@media (max-width: 768px) {
  #brand-display-box.brand-display-box--statement {
    width: auto;
    height: auto;
    min-height: 190px;
    padding: 22px 20px;
    max-width: calc(100vw - 60px);
  }
}

#brand-display-box.brand-display-box--slide {
  transition: transform 0.45s ease, opacity 0.45s ease;
  will-change: transform, opacity;
}

#brand-display-box.brand-display-box--slide-out {
  transform: translateX(-110vw);
  opacity: 0;
}

.brand-circle-transition {
  position: relative;
  margin-top: -100px;            /* 负边距使其紧贴品牌介绍背景，向上移动 */
  min-height: 400px;             /* 拉大盒子高度 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 240px 50px 40px 50px;           /* 内部间距，让内容在半圆内部居中 */
  gap: 24px;
  overflow: hidden;              /* 裁剪超出部分 */
  --rotation: 0deg;              /* CSS变量，用于控制旋转角度 */
}

.brand-circle-transition::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 1200px;                 /* 圆形图片的完整宽度 */
  height: 1200px;                /* 圆形图片的完整高度 */
  background: url('../图片/半圆/半圆.png') center center/contain no-repeat;
  transform: translateX(-50%) rotate(var(--rotation));
  transform-origin: center 600px;
  z-index: 0;
}

.brand-circle-transition .title-deco-left,
.brand-circle-transition .title-deco-right {
  position: relative;
  z-index: 1;
  height: 100px;
  width: auto;
  align-self: center;
  margin-bottom: 0;
}

.brand-circle-transition h2 {
  position: relative;
  z-index: 1;
  font-size: 40px;
  font-weight: 800;
  color: #8B4513;
  letter-spacing: 6px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
  margin: 0;
}

.brand-circle-transition h2::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: linear-gradient(to right,
    rgba(139,69,19,0),
    rgba(139,69,19,0.8),
    rgba(139,69,19,0));
}

#brand-introduction-section::before {
	    content: '';
	    position: absolute;
	    top: 0;
	    left: 0;
	    width: 100%;
	    height: 100%;
	    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.4) 100%);
	    z-index: 1;
	}

/* 品牌介绍内容容器 */
/* 品牌介绍内容容器 - 铺满宽度 */
.brand-intro-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 40px; /* 左右留出一些边距 */
    margin: 0 auto;
}

#brand-introduction-section .section-title {
  text-align: left;                    /* 靠左对齐 */
  color: white;
  border-bottom: none;
  font-size: 48px;
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
  padding-left: 80px;                 /* 与下方内容左侧对齐 */
}

#brand-introduction-section .section-title::after {
  content: '';
  display: block;
  width: 200px;
  height: 3px;
  background: linear-gradient(to right, transparent, #D4A574, transparent);
  margin: 20px 0 0;                   /* 紧贴标题正下方，左边缘与标题对齐 */
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.5);
}

#brand-introduction-section .section-subtitle {
  text-align: left;                    /* 副标题靠左 */
  color: rgba(255, 255, 255, 0.95);
  margin-top: 15px;
  margin-bottom: 50px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 1px;
  padding-left: 80px;                 /* 与标题、内容左对齐 */
}

/* 品牌介绍部分的group-buy-card样式增强 */
#brand-introduction-section .group-buy-card {
    transition: all 0.3s ease;
}

#brand-introduction-section .group-buy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

/* group-buy-card样式 */
.group-buy-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.group-buy-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.group-buy-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* 热门团购 - 图片内售价角标容器 */
.group-buy-image-with-price {
  position: relative;
}

.group-buy-image-with-price img {
  display: block;
}

.group-buy-price-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.group-buy-price-badge .badge-original {
  font-size: 18px;
  opacity: 0.9;
  text-decoration: line-through;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
}

.group-buy-price-badge .badge-current {
  font-size: 24px;
  color: #ffeb3b;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
}

.group-buy-info {
  padding: 20px;
  text-align: center;
}

.group-buy-info h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.group-buy-info p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.price-tag {
  margin-bottom: 20px;
}

.current-price {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-right: 10px;
}

.original-price {
  font-size: 16px;
  color: var(--text-light);
  text-decoration: line-through;
}

/* 详细信息展示样式 - 紧凑版本 */
.group-buy-details {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
  text-align: left;
  font-size: 11px;
  max-height: 80px;
  overflow: hidden;
}

.detail-title {
  font-size: 11px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.detail-price {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-color);
}

.detail-discount {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 11px;
}

.detail-promo {
  background-color: #fff5f5;
  padding: 4px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
}

.promo-tag {
  background-color: var(--primary-color);
  color: white;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: bold;
  font-size: 9px;
  white-space: nowrap;
}

.promo-text {
  color: var(--primary-color);
  font-weight: bold;
  white-space: nowrap;
}

.promo-time {
  color: #999;
  font-size: 9px;
  margin-left: auto;
  white-space: nowrap;
}

.detail-description {
  margin-bottom: 4px;
  color: var(--text-dark);
  font-size: 10px;
  line-height: 1.2;
}

.detail-description p {
  margin: 2px 0;
}

.detail-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
  color: var(--text-light);
  font-size: 9px;
}

.detail-notes {
  color: var(--text-light);
  font-size: 9px;
}

.food-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.food-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  line-height: 1.5;
}

.food-price {
  font-size: 20px;
  font-weight: bold;
  color: var(--accent-color);
}


/* 热门团购 */
.activity-tabs {
  display: flex;
  gap: 20px; /* 调整标签之间的间距 */
  margin-bottom: 30px; /* 增加标签与画廊之间的间距 */
  justify-content: center;
}

.activity-tab {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--accent-color); /* 调整边框颜色与主题色协调 */
  background: transparent;
  color: var(--light-beige);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.activity-tab.active,
.activity-tab:hover {
  background: var(--accent-color);
  color: white; /* 调整激活状态颜色为白色 */
  border-color: var(--accent-color);
}

.activity-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide-activity {
    min-width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}


/* 品牌介绍 */
.brand-content {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;       /* 左右两块分散对齐 */
  width: 100%;                          /* 占满整行 */
  padding: 0 60px;                      /* 略微收窄左右留白 */
  margin: 0;                            /* 不再额外居中 */
}

.brand-left {
  flex: 0 0 500px;                      /* 再次加宽整体宽度 */
  width: 500px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;                  /* 占满 brand-left，保持等宽 */
  background: rgba(232, 212, 192, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  padding: 22px 24px;
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

#brand-display-box {
  position: relative;
  top: -30px;
}

.brand-text p {
  color: var(--primary-dark); /* 深棕色 */
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 440px;                         /* 右侧区域宽度，与左侧一致 */
  flex-shrink: 0;
}

/* 堆叠式轮播图 */
.brand-stacked-carousel {
  position: relative;
  width: 100%;
  height: 260px;
}

.brand-slide {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: transform 0.4s ease, opacity 0.4s ease, z-index 0.4s ease;
}

/* 默认都稍微缩小、透明度低一点 */
.brand-slide {
  transform: translateX(0) scale(0.85);
  opacity: 0;
  z-index: 1;
}

/* 当前居中卡片 */
.brand-slide.is-active {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 3;
}

/* 左右两侧堆叠卡片 */
.brand-slide.is-prev {
  transform: translateX(-90px) scale(0.92);
  opacity: 0.78;
  z-index: 2;
}

.brand-slide.is-next {
  transform: translateX(90px) scale(0.92);
  opacity: 0.78;
  z-index: 2;
}

.brand-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
}

.brand-slide-content {
  position: absolute;
  left: 24px;
  bottom: 24px;
  right: 24px;
  color: #fff;
  z-index: 1;
}

.brand-slide-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.brand-slide-content p {
  font-size: 13px;
}

/* Add new styles for brand image */
.brand-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px; /* Space between image and text */
  border-radius: 8px;
}

/* 右侧信息栏 */
.right-sidebar {
  width: 66px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-end;
  padding: 16px 8px;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  transition: all .2s ease-out;
  overflow: visible;
}

body.food-center-page .right-sidebar {
  padding-right: 0;
}

.right-sidebar:hover {
  width: 180px;
  transform: translateY(-50%) scale(1.05);
}

body.store-query-page .right-sidebar:hover {
  width: 80px;
  transform: translateY(-50%);
}

/* 不再需要竖线，清空伪元素样式 */
.right-sidebar::before {
  content: none;
}

.sidebar-icon-item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 192, 203, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  z-index: 1;
  font-size: 18px;
  color: rgba(212, 165, 116, 0.9);
  overflow: visible;
}

.sidebar-icon-item * {
  pointer-events: none;
}

.right-sidebar:hover .sidebar-icon-item {
  width: 44px;
  border-radius: 50%;
  justify-content: center;
}

body.store-query-page .right-sidebar:hover .sidebar-icon-item {
  width: 52px;
  border-radius: 50%;
  justify-content: center;
}

.sidebar-label {
  position: absolute;
  right: 52px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  padding: 8px 18px;
  background: #e60012;      /* 红色条幅，接近参考图 */
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

 .ai-auto-bubble {
   position: absolute;
   right: 62px;
   top: 50%;
   transform: translateY(-50%) translateX(12px);
   background: rgba(232, 212, 192, 0.70);
   color: rgba(60, 50, 38, 0.92);
   border-radius: 14px;
   padding: 10px 12px;
   font-size: 13px;
   line-height: 1.35;
   max-width: 260px;
   box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
   opacity: 0;
   pointer-events: none;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
   z-index: 3;
 }

 .ai-auto-bubble::after {
   content: '';
   position: absolute;
   right: -7px;
   top: 50%;
   width: 12px;
   height: 12px;
   background: rgba(232, 212, 192, 0.10);
   transform: translateY(-50%) rotate(45deg);
   border-radius: 2px;
 }

 .ai-auto-bubble.is-visible {
   opacity: 1;
   transform: translateY(-50%) translateX(0);
   transition: opacity 260ms ease, transform 260ms ease;
 }

 @media (max-width: 520px) {
   .ai-auto-bubble {
     max-width: 150px;
     font-size: 12px;
     padding: 8px 10px;
   }
 }

.right-sidebar:hover .sidebar-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

body.ai-chat-open .right-sidebar {
  width: 66px;
  transform: translateY(-50%);
  pointer-events: none;
}

body.ai-chat-open .right-sidebar:hover {
  width: 66px;
  transform: translateY(-50%);
}

body.ai-chat-open .right-sidebar:hover .sidebar-label {
  opacity: 0;
  transform: translateY(-50%) translateX(10px);
}

body.ai-chat-open .sidebar-icon-item {
  transition: transform 0.35s ease, opacity 0.25s ease, background 0.25s ease;
}

body.ai-chat-open .sidebar-icon-item--store {
  transform: translateY(-30px);
}

body.ai-chat-open .sidebar-icon-item--feedback {
  transform: translateY(30px);
}

body.ai-chat-open .sidebar-icon-item--ai {
  transform: translateX(120px);
  opacity: 0;
  pointer-events: none;
}

/* AI 聊天遮罩与面板 */
.ai-chat-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1001;
}

.ai-chat-panel {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translate(110%, -50%);
  width: 24rem;
  max-width: calc(100vw - 32px);
  height: 70vh;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.25s ease;
  z-index: 1002;
}

body.ai-chat-open .ai-chat-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.ai-chat-open .ai-chat-panel {
  transform: translate(0, -50%);
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0.12s;
}

body.ai-chat-closing .ai-chat-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.ai-chat-closing .ai-chat-panel {
  transform: translate(110%, -50%);
  opacity: 0;
  pointer-events: none;
  transition-delay: 0s;
}

body.ai-chat-closing .right-sidebar {
  width: 66px;
  transform: translateY(-50%);
  pointer-events: none;
}

body.ai-chat-closing .sidebar-icon-item {
  transition: transform 0.35s ease, opacity 0.25s ease, background 0.25s ease;
}

body.ai-chat-closing .sidebar-icon-item--store {
  transform: translateY(-30px);
}

body.ai-chat-closing .sidebar-icon-item--feedback {
  transform: translateY(30px);
}

body.ai-chat-closing .sidebar-icon-item--ai {
  transform: translateX(120px);
  opacity: 0;
  pointer-events: none;
}

.ai-chat-header {
  height: 54px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: linear-gradient(to bottom, rgba(0, 77, 64, 1), rgba(0, 121, 107, 0.9));
  color: #fff;
}

.ai-chat-embed {
  flex: 1;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ai-chat-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  background: #f7f7f7;
}

.ai-chat-title {
  font-size: 16px;
  font-weight: 600;
}

.ai-chat-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 22px;
  line-height: 34px;
  cursor: pointer;
}

.ai-chat-messages {
  flex: 1;
  padding: 14px;
  overflow: auto;
  background: #f7f7f7;
}

.ai-chat-message {
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.ai-chat-message--ai {
  background: #ffffff;
  color: #333;
  border: 1px solid rgba(0,0,0,0.06);
}

.ai-chat-message--user {
  margin-left: auto;
  background: rgba(0, 121, 107, 0.12);
  color: #0b3d35;
}

.ai-chat-input {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  padding: 12px;
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.ai-chat-input input {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  padding: 0 12px;
  outline: none;
}

.ai-chat-input button {
  height: 40px;
  padding: 0 14px;
  border: none;
  border-radius: 10px;
  background: rgba(0, 121, 107, 0.9);
  color: #fff;
  cursor: pointer;
}

.sidebar-icon-item:hover {
  background: rgba(255, 192, 203, 0.55);
  transform: scale(1.05);
}

.sidebar-icon-item:hover i {
  animation: jitter .3s linear forwards;
}

/* 抖动动画 */
@keyframes jitter {
  0% {
    transform: scale(1.2) rotate(10deg);
  }

  50% {
    transform: scale(0.8) rotate(-10deg);
  }

  100% {
    transform: scale(1.0) rotate(0deg);
  }
}

/* 固定悬浮窗 */
.fixed-floats {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.float-window {
  width: 80px;
  height: 80px;
  background-color: var(--beige);
  color: var(--primary-dark);
  text-align: center;
  line-height: 80px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(139, 69, 19, 0.15);
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--primary-color);
}

.float-window:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(139, 69, 19, 0.3);
}

/* 页脚样式 */
.footer {
  background: linear-gradient(to bottom, rgba(0, 77, 64, 1), rgba(0, 121, 107, 0.3));
  color: white;
  padding: 50px 0;
  position: relative;
  z-index: 1;
  margin-top: 0;
}

body.food-center-page .footer {
  display: block;
  visibility: visible;
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(420px, 1fr) minmax(300px, 360px);
  gap: 18px 22px;
  align-items: start;
  padding: 0 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  grid-column: 1;
  grid-row: 1;
  transform: translate(-200px, 0px);
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  isolation: isolate;
}

.footer-logo img {
  width: min(720px, 100%);
  height: auto;
  display: block;
  transform: scale(0.85);
  transform-origin: left center;
  border-radius: 14px;
  box-shadow: 0 0 0 5px rgba(232, 212, 192, 0.85), 0 14px 28px rgba(0, 0, 0, 0.18);
}

.footer-links {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: nowrap;
}

.footer-links .footer-section {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
}

.footer-links .footer-section h3 {
  margin-bottom: 12px;
  color: rgba(212, 165, 116, 0.95);
  font-size: 20px;
  letter-spacing: 0.2px;
}

.footer-links .footer-section p,
.footer-links .footer-section li {
  margin-bottom: 8px;
  font-size: 15px;
  color: rgba(245, 245, 245, 0.82);
}

.footer-links .footer-section ul li a {
  font-size: 15px;
}

@media (max-width: 1200px) {
  .footer-content {
    grid-template-columns: minmax(240px, 320px) minmax(360px, 1fr) minmax(260px, 320px);
  }

  .footer-logo img {
    width: min(520px, 100%);
  }
}

.footer-qr-container {
  grid-column: 3;
  justify-self: end;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  transform: translateX(200px);
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.footer-qr-container .footer-qr-item {
  width: 100%;
}

.footer-qr-container .footer-qr-item:nth-child(1) { grid-column: 1; grid-row: 1; }
.footer-qr-container .footer-qr-item:nth-child(2) { grid-column: 2; grid-row: 1; }
.footer-qr-container .footer-qr-item:nth-child(3) { grid-column: 1; grid-row: 2; }
.footer-qr-container .footer-qr-item:nth-child(4) { grid-column: 2; grid-row: 2; }
.footer-qr-container .footer-qr-item:nth-child(5) {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: center;
  align-self: center;
}

.footer-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.footer-qr-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.12);
}

.footer-qr-img {
  width: 108px;
  height: 108px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  padding: 6px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.footer-qr-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.footer-qr-label {
  font-size: 12px;
  color: #e7e7e7;
  letter-spacing: 0.2px;
  line-height: 1.1;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 16px;
}

.footer-section p, .footer-section li {
  margin-bottom: 10px;
  color: #ccc;
  font-size: 13px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 13px;
}

.footer-section ul li a:hover {
  color: var(--beige);
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social-icon {
  width: 50px;
  height: 50px;
  background-color: var(--beige);
  color: var(--primary-dark);
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-size: 20px;
  transition: transform 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icon:hover {
  transform: translateY(-5px);
  background-color: var(--primary-color);
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid #555;
  color: #999;
  font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .main-wrapper {
    flex-direction: column;
  }

  .left-menu {
    width: 100%;
    position: relative;
    top: 0;
  }

  .right-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    gap: 16px;
    padding: 12px 6px;
  }

  body.food-center-page .right-sidebar {
    padding-right: 0;
  }

  .right-sidebar::before {
    display: none;
  }

  .sidebar-icon-item {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .food-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .activity-grid {
    grid-template-columns: 1fr;
  }

  .brand-content {
    flex-direction: column;
  }

  .brand-features {
    width: 100%;
  }

  #brand-introduction-section .section-title {
    font-size: 36px;
  }

  .brand-intro-content {
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-menu {
    gap: 15px;
    font-size: 12px;
  }

  .hero-section {
    height: 350px;
    margin-top: 50px;
  }

  .carousel-content h1 {
    font-size: 32px;
  }

  .carousel-content p {
    font-size: 16px;
  }

  .carousel-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .main-wrapper {
    padding: 20px 10px;
    gap: 10px;
  }

  .main-content {
    padding: 20px;
  }

  .food-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 22px;
  }

  .fixed-floats {
    right: 0;
  }

  .float-window {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 12px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    width: 100%;
    justify-content: center;
    grid-column: 1;
    grid-row: auto;
    transform: none;
  }

  .footer-logo img {
    transform: none;
  }

  .footer-links {
    grid-column: 1;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .footer-qr-container {
    width: 100%;
    justify-self: stretch;
    justify-content: center;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    transform: none;
  }

  .footer-qr-container .footer-qr-item:nth-child(1),
  .footer-qr-container .footer-qr-item:nth-child(2),
  .footer-qr-container .footer-qr-item:nth-child(3),
  .footer-qr-container .footer-qr-item:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-qr-container .footer-qr-item:nth-child(5) {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
  }

  .footer-qr-img {
    width: 104px;
    height: 104px;
  }

  #brand-introduction-section {
    padding: 40px 0;
  }

  #brand-introduction-section .section-title {
    font-size: 28px;
  }

  #brand-introduction-section .section-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .brand-intro-content {
    padding: 0 20px;
  }
}

/* 新增的底部卡片区域样式 */
.bottom-cards-section {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 40px 0;
}



