* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  padding-top: 50px;
  background-color: #9d4008;
  margin: 0;
  padding: 0;
  /* min-height: 100vh; */
}

@media screen and (max-width: 430px) {
  body {
    padding-top: 40px;
  }
}

/* 导航栏基础样式 */
.navbar {
  position: sticky;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px 0 15px;
  background-color: #fffdf8;
  border-bottom: 2px solid #a0522d;
  height: 50px;
  top: 0px;
  width: 100%;
  z-index: 1000;
}

/* Logo 样式 */
.logo img {
  width: 125px;
  height: 50px;
}

/* 导航链接样式 */
.nav-links {
  display: flex;
  gap: 50px;
  font-family: "Modak", Helvetica;
  font-weight: 400;
  color: #9d4008;
  font-size: 15px;
  letter-spacing: 0.4px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.nav-links a {
  text-decoration: none;
  color: #9d4008;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Hamburger 按钮基础样式 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: #9d4008;
  transition: all 0.3s ease-in-out;
  border-radius: 1px;
}

/* Hamburger 动画效果 */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 移动端样式 */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
}

/* 更小屏幕的样式 */
@media (max-width: 430px) {
  .hamburger {
    width: 20px;
    height: 15px;
  }

  .hamburger span {
    height: 2px;
  }

  /* 调整小屏幕下的动画效果 */
  .hamburger.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

/* 设置三条线的位置 */
.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 7px;
}

.hamburger span:nth-child(3) {
  top: 14px;
}

/* 在移动端显示 hamburger */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 45px;
    left: 0;
    width: 100%;
    height: calc(100vh - 45px);
    background-color: #fffdf8;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
    z-index: 999;
    transition: all 0.3s ease-in-out;
  }

  .nav-links.active {
    display: flex;
  }
}

/* Hover 效果 */
.nav-links a:hover {
  color: #c2500a;
  transform: translateY(-2px);
}

/* 添加下划线效果 */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #9d4008;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section 基础样式 */
.hero-section {
  width: 100%;
  height: 100%;
  display: flex;
  padding: 20px;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeIn 1.2s ease-out forwards;
  animation-delay: 0.3s;
}

.HeroImages {
  width: 100%;
  max-width: auto;
  height: auto;
  min-height: 320px;
  border-radius: 4.2vw;
  object-fit: cover;
  opacity: 0;
  animation: fadeInImage 1.2s ease-out forwards;
  animation-delay: 0.5s;
}

/* 动画键帧 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInImage {
  from {
    opacity: 0;
    transform: translate(0%, 30%);
  }
  to {
    opacity: 1;
    transform: translate(0%, 0%);
  }
}

/* 响应式样式 */
@media screen and (max-width: 768px) {
  .navbar {
    height: 45px;
    padding: 0 20px 0 10px;
  }

  .logo img {
    width: 100px;
    height: 40px;
  }

  body {
    padding-top: 45px;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media screen and (max-width: 430px) {
  body {
    margin: 0;
    padding: 0;
  }

  /* 确保导航栏和内容不受影响 */
  .navbar {
    height: 40px;
  }

  body {
    padding-top: 40px;
  }
}

/* 确保画在手机端也正常工作 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 导航链接的基础样式 */
.nav-links a {
  text-decoration: none;
  color: #9d4008;
  transition: all 0.3s ease; /* 添加过渡效果 */
  position: relative; /* 为下划线效果添加相对定位 */
  padding: 5px 0; /* 添加一些内边距 */
}

/* Hover 效 */
.nav-links a:hover {
  color: #c2500a; /* 稍微变亮的颜色 */
  transform: translateY(-2px); /* 轻微上移 */
}

/* 添加下划效果 */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #9d4008;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* 移动端菜单的 hover 效果 */
@media (max-width: 768px) {
  .nav-links a {
    padding: 15px 0;
    width: 80%;
    max-width: 300px;
    text-align: center;
    border-bottom: 1px solid rgba(157, 64, 8, 0.2);
    transition: all 0.3s ease;
  }

  .nav-links a:hover {
    background-color: rgba(157, 64, 8, 0.05); /* 添加背景色变化 */
    transform: translateY(-2px); /* 保持轻微上移效果 */
    color: #c2500a;
  }

  /* 移动端不显示下划线效果 */
  .nav-links a::after {
    display: none;
  }
}

p {
  font-family: "Modak", Helvetica;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Welcome Section 基础样式 */
.welcome-section {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  position: relative;
}

.welcome-container {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0px;
  opacity: 0;
  transform: translateY(40px); /* 添加始位移 */
  transition: all 0.8s ease-out; /* 从 1.2s 改为 0.8s */
}

.welcome-container:has(> .welcome-bg.show) {
  opacity: 1;
  transform: translateY(0);
}

.welcome-border {
  width: 110%;
  min-width: 1000px;
  height: 50px;
  object-fit: cover;
}

.welcome-border-top {
  object-position: top;
  transform: translateY(1px);
}

.welcome-border-bottom {
  object-position: bottom;
  transform: translateY(-1px);
}

.welcome-bg {
  overflow: hidden;
  width: 100%;
  height: 100%;
  background-color: #fffdf8;
}

/* 确保动画关键帧存在 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Welcome Content Styles */
.welcome-content {
  position: relative;
  max-width: 773px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.welcome-title {
  color: #9d4008;
  font-size: 50px;
  font-family: "Modak", cursive;
  font-weight: 400;
  margin: 0;
}

.welcome-line {
  width: 742px;
  height: 0;
  border: 1px solid #9d4008;
  margin: 30px auto;
  max-width: 100%;
  position: relative;
}

.welcome-line::before,
.welcome-line::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #9d4008;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.welcome-line::before {
  left: 0;
}

.welcome-line::after {
  right: 0;
}

.welcome-text {
  color: #9d4008;
  font-size: 20px;
  font-family: "Afacad", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  margin: 40px 0 0 0;
}

/* 手机端响应式 */
@media screen and (max-width: 430px) {
  .welcome-text {
    font-size: 16px;
    margin: 30px 0 0 0;
  }

  .welcome-line {
    margin: 25px auto;
  }

  .welcome-line::before,
  .welcome-line::after {
    width: 6px;
    height: 6px;
  }
}

/* Mascot Styles */
.mascot-container {
  width: 100%;
  position: relative;
  margin-top: -70px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
  z-index: 1;
}

.mascot-container.show {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  z-index: 1;
}

.mascot-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
  position: relative;
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@media screen and (max-width: 768px) {
  .mascot-container {
    margin-top: 0px;
  }
}

/* 平板端样式 (768px - 1439px) */
@media screen and (max-width: 1439px) {
  .mascot-image {
    max-width: 1000px;
  }
}

/* 小平端样式 (431px - 767px) */
@media screen and (max-width: 767px) {
  .welcome-title {
    font-size: 38px;
  }

  .welcome-text {
    font-size: 18px;
  }

  .mascot-image {
    max-width: 800px;
  }
}

/* 样 (430px 及以下) */
@media screen and (max-width: 430px) {
  .welcome-title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 15px;
  }

  .welcome-line {
    margin: 15px auto;
  }

  .welcome-text {
    font-size: 13px;
    margin-top: 15px;
  }

  .mascot-image {
    max-width: 380px;
  }
}

/* 特屏幕的额外整 */
@media screen and (max-width: 375px) {
  .welcome-title {
    font-size: 26px;
  }
}

@media screen and (max-width: 310px) {
  .welcome-title {
    font-size: 24px;
  }
}

@media screen and (max-width: 300px) {
  .welcome-title {
    font-size: 22px;
  }
}

@media screen and (max-width: 270px) {
  .welcome-title {
    font-size: 21px;
  }
}

@media screen and (max-width: 260px) {
  .welcome-title {
    font-size: 20px;
  }
}

/* Menu Section Styles */
.menu-section {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  padding: 2rem;
  color: white;
  text-align: center;
  visibility: hidden;
}

/* 显示的基础样式 */
.menu-section.show {
  visibility: visible;
}

/* 为各个元素添加初始状态 */
.menu-title,
.cards-container,
.section-title,
.section-description,
.view-more-button {
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}

/* 隔线的特殊样式 */
.divider-line {
  width: 865px;
  height: 0;
  border: 1px solid white;
  margin: 30px auto;
  max-width: 100%;
  position: relative;
  transform: scaleX(0);
  opacity: 0;
  will-change: transform, opacity;
}

/* 动画类优化 */
.menu-section.show .menu-title {
  animation: fadeInUp 0.8s ease-out forwards;
}

.menu-section.show .divider-line {
  animation: expandLine 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

.menu-section.show .cards-container {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.4s;
}

.menu-section.show .section-title {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.6s;
}

.menu-section.show .section-description {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.7s;
}

.menu-section.show .view-more-button {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.8s;
}

/* 动画关键帧 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandLine {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

.menu-title {
  font-family: "Modak", cursive;
  font-size: 50px;
  font-weight: 400;
}

.divider-line {
  width: 865px;
  height: 0;
  border: 1px solid white;
  margin: 10px auto;
  max-width: 100%;
  position: relative;
}

.divider-line::before,
.divider-line::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.divider-line::before {
  left: 0;
}

.divider-line::after {
  right: 0;
}

.section-title {
  font-family: "ADLaM Display", serif;
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 10px;
}

.section-description {
  font-family: "Afacad", sans-serif;
  font-size: 18px;
  margin-bottom: 20px;
}

.cards-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem 2rem;
  margin: 6rem auto 4rem auto;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateX(100px);
  max-width: 865px;
}

.menu-card {
  width: 243px;
  height: 225px;
  background: #f8ede3;
  border-radius: 41px;
  padding: 1rem;
  position: relative;
  margin: 0 auto;
  float: left;
}

.menu-card:last-child {
  display: none;
}

.bagel-image-1 {
  width: 220px;
  height: 210px;
  position: absolute;
  top: -70px;
  left: 10px;
}

.bagel-image-2 {
  width: 210px;
  height: 200px;
  position: absolute;
  top: -70px;
  left: 18px;
}

.bagel-image-3 {
  width: 220px;
  height: 210px;
  position: absolute;
  top: -75px;
  left: 13px;
}

.card-title {
  font-family: "Afacad", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #9d4008;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
}

.view-more-button {
  background: #f8ede3;
  border: 1px solid #9d4008;
  border-radius: 25px;
  color: #9d4008;
  font-family: "Afacad", sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding: 0.5rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.view-more-button:hover {
  background: #c2500a;
  color: #f8ede3;
  outline: 2px solid #f8ede3;
}

/* 添加从右滑入的动画关键帧 */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.build-bagel-section,
.about-section {
  margin-bottom: 20px;
}
/* Content Sections (Build Bagel, About, Contact) */
.build-bagel-section,
.about-section,
.contact-section {
  padding: 40px 100px;
  /* position: relative; */
  max-width: 1000px;
  margin: 0 auto;
  background: transparent;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.build-bagel-section {
  padding-top: 70px;
}

.build-bagel-section.show,
.about-section.show,
.contact-section.show {
  opacity: 1;
  transform: translateY(0);
}

/* Shared Content Container */
.content-wrapper {
  display: flex;
  gap: 40px;
  width: 100%;
  align-items: center;
}

/* Section Images */
.feature-image {
  width: 366px;
  height: 255px;
  border-radius: 30px;
  border: 1px solid #9d4008;
  object-fit: cover;
}

/* Content Text */
.content-text {
  flex: 1;
  max-width: 354px;
}

.content-text h2 {
  color: #9d4008;
  font-family: "ADLaM Display", cursive;
  font-size: 30px;
  margin-bottom: 20px;
}

.content-text p {
  color: #9d4008;
  font-family: "Afacad", sans-serif;
  font-size: 15px;
  margin-bottom: 20px;
  text-align: justify;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
  margin-bottom: 10px;
  position: relative;
  width: 100%;
}

.section-header h1 {
  width: fit-content;
  text-align: center;
  text-wrap: nowrap;
  white-space: nowrap;
  color: #b64807;
  font-family: "Modak", cursive;
  font-size: 50px;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  line-height: 1.2;
}

/* Beige Background 基础样式 */
.beige-background {
  overflow: hidden;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url("image/beige\ bg.png");
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-out;
  padding-bottom: 40px;
}

/* Mascot Variations */
.build-bagel-section .mascot-icon {
  width: 102.86px;
  height: 104.35px;
  transform: rotate(1.11deg);
  transform-origin: 0 0;
}

.about-section .mascot-icon {
  width: 93.02px;
  height: 113.19px;
  transform: rotate(-1.29deg);
  transform-origin: 0 0;
}

.contact-section .mascot-icon {
  width: 90.69px;
  height: 144.77px;
  transform: rotate(-0.65deg);
  transform-origin: 0 0;
}

/* Section Separator */
.section-separator {
  width: 100%;
  flex: 1;
  height: 0;
  border: 1px solid #b64807;
  margin: 10px auto;
  max-width: 100%;
  position: relative;
}

.section-separator::before,
.section-separator::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #b64807;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.section-separator::before {
  left: 0;
}

.section-separator::after {
  right: 0;
}

/* Call-to-Action Button */
.cta-button {
  width: 150px;
  height: 32px;
  background: #f8ede3;
  border-radius: 16px;
  border: 1px solid #9d4008;
  color: #9d4008;
  font-family: "Afacad", sans-serif;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 0;
  transition: all 0.3s ease;
  text-align: center;
}

.cta-button:hover {
  background: #9d4008;
  color: #f8ede3;
}

/* Content Sections Animation - 初始状 */
.beige-background {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

/* 标题动画 */
.build-bagel-section .section-header {
  opacity: 0;
  transform: translateX(-100px); /* 从左边开始 */
  transition: all 0.8s ease-out;
}

.about-section .section-header {
  opacity: 0;
  transform: translateX(100px); /* 从右边开始 */
  transition: all 0.8s ease-out;
}

.contact-section .section-header {
  opacity: 0;
  transform: translateX(-100px); /* 左边开始 */
  transition: all 0.8s ease-out;
}

/* 内容动画 */
.build-bagel-section .content-wrapper,
.about-section .content-wrapper,
.contact-section .content-wrapper {
  opacity: 0;
  transform: translateY(30px); /* 从下往上 */
  transition: all 0.8s ease-out;
  transition-delay: 0.3s; /* 稍微延迟内容的动画 */
}

/* 显示状态 */
.beige-background.show {
  opacity: 1;
}

/* 标题显示状态 */
.build-bagel-section.show .section-header,
.about-section.show .section-header,
.contact-section.show .section-header {
  opacity: 1;
  transform: translateX(0);
}

/* 内容显示状态 */
.build-bagel-section.show .content-wrapper,
.about-section.show .content-wrapper,
.contact-section.show .content-wrapper {
  opacity: 1;
  transform: translateY(0);
}

/* Mascot 动画 - 初始状态 */
.mascot-icon {
  opacity: 0;
  transition: all 0.8s ease-out;
  transition-delay: 0.4s; /* 在标题之后显示 */
}

/* Build Bagel Mascot 动画 */
.build-bagel-section .mascot-icon {
  transform: rotate(1.11deg) translateX(-30px);
}

/* About Mascot 动画 */
.about-section .mascot-icon {
  transform: rotate(-1.29deg) translateX(30px);
}

/* Contact Mascot 动画 */
.contact-section .mascot-icon {
  transform: rotate(-0.65deg) translateX(-30px);
}

/* Mascot 显示状态 */
.build-bagel-section.show .mascot-icon,
.about-section.show .mascot-icon,
.contact-section.show .mascot-icon {
  opacity: 1;
  transform: rotate(0) translateX(0);
  animation: floatMascot 3s ease-in-out infinite;
}

/* Mascot 浮动动画 */
@keyframes floatMascot {
  0%,
  100% {
    transform: translateY(0) rotate(1deg);
  }
  50% {
    transform: translateY(-5px) rotate(-1deg);
  }
}

/* 基础容器控制 */
html,
body {
  max-width: 100vw;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Back to Top Button 样式 */
#backToTop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  width: 40px;
  height: 40px;
  outline: 1px solid white;
  background-color: #9d4008;
  color: #f8ede3;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#backToTop:hover {
  background-color: #b64807;
  transform: translateY(-3px);
}

/* 照片轮播样式 */
.photo-slider {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  padding: 0;
}

.slider-container {
  width: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  animation: scroll 30s linear infinite;
  gap: 0;
  width: fit-content;
}

.slide {
  flex: 0 0 250px;
  width: 250px;
  height: 300px;
  margin: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-flex-shrink: 0;
}

/* 添加滚动动画 */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 12)); /* 移动第一组图片的总宽度 */
  }
}

/* 添加鼠标悬停暂停效果 */
.slider-track:hover {
  animation-play-state: paused;
}

.footer {
  position: relative;
  width: 100%;
  height: 100%;
  display: block; /* 防止任何意外的间距 */
}

.footer-background {
  width: 100%;
  height: 80px;
  object-fit: cover;
  object-position: top;
}

.footer-content {
  width: 100%;
  height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  padding-bottom: 0px;
}

.footer-logo {
  width: 200px;
  height: 80px;
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-nav a {
  color: white;
  font-size: 18px;
  font-family: "Modak", cursive;
  text-decoration: none;
  transition: all 0.3s ease;
  /* 添加以下文字渲染优化属性 */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.3px; /* 稍微增加字间距提高可读性 */
}

.footer-nav a:hover {
  color: #fff6c7; /* 鼠标悬停时改变文字颜色 */
  transform: translateY(-2px); /* 轻微向上移动 */
}

.social-icons {
  width: 100%;
  max-width: 250px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.social-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease; /* 稍微延长动画时间使旋转更流畅 */
}

.social-icon:hover {
  transform: scale(1.2) rotate(360deg);
  cursor: pointer;
}

.social-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.footer-line {
  width: 100%;
  height: 1px;
  background-color: white; /* 改用background-color替代border */
  margin: 20px auto 0px auto; /* 居中显示 */
  opacity: 1; /* 确保可见性 */
  display: block; /* 确保显示为块级元素 */
}

.copyright {
  color: white;
  font-size: 12px;
  font-family: "Libre Caslon Text", serif;
  line-height: 40px;
  text-align: center;
}

/* 更新active导航链接样式 */
.nav-links a.active {
  color: #c2500a; /* 高亮颜色 */
  font-weight: 400;
  position: relative;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 移除下划线效果 */
.nav-links a.active::after {
  display: none; /* 移除下划线 */
}

/* 更新hover效果 */
.nav-links a:hover:not(.active) {
  color: #c2500a;
  transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
  .mascot-icon {
    display: none;
  }

  .nav-links a.active {
    background-color: rgba(157, 64, 8, 0.1);
    color: #c2500a;
    font-weight: 400;
  }

  .slide {
    flex: 0 0 200px;
    width: 200px;
  }

  @keyframes scroll {
    100% {
      transform: translateX(calc(-200px * 12));
    }
  }

  .about-section .content-wrapper {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .feature-image {
    width: 300px;
    height: 200px;
    margin: 0 auto;
  }

  .content-text {
    max-width: 100%;
    text-align: center;
    padding: 0 20px;
  }

  .section-header h1 {
    font-size: 35px;
    text-align: center;
    width: 100%;
  }

  .build-bagel-section,
  .about-section,
  .contact-section {
    padding: 40px 20px;
  }
  .build-bagel-section {
    padding-top: 70px;
  }

  .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .feature-image {
    width: 100%;
    height: auto;
  }

  .content-text {
    max-width: 100%;
    text-align: center;
  }

  .section-separator {
    width: 100%;
  }

  .section-header {
    flex-direction: column;
  }

  .flex-reverse {
    flex-direction: column-reverse;
  }
}

@media screen and (max-width: 600px) {
  .footer-nav {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .footer-background {
    display: none;
  }

  .beige-background {
    background-image: none;
    background-color: #fffdf8;
  }

  .build-bagel-section,
  .about-section,
  .contact-section {
    padding: 20px;
  }

  .section-header h1 {
    font-size: 30px;
  }

  a {
    text-align: center;
  }

  .social-icons {
    max-width: 160px;
  }

  .footer-line {
    margin: 0;
  }

  .footer-content {
    padding: 10px;
    padding-bottom: 0px;
  }

  .mascot-container {
    padding-bottom: 0px;
  }

  .mascot-image {
    margin-top: 0px;
  }
}

@media screen and (max-width: 860px) {
  .menu-section {
    max-height: unset;
  }
  .menu-card:last-child {
    display: unset;
    visibility: hidden;
  }
}

@media screen and (max-width: 450px) {
  .divider-line {
    margin: 0;
  }

  .cards-container {
    padding-top: 80px;
    padding-bottom: 20px;
    gap: 5rem 1rem;
    margin: 0;
  }

  .menu-card {
    width: 150px;
    height: 125px;
    border-radius: 20px;
  }

  .menu-card:last-child {
    display: unset;
    visibility: unset;
  }

  .bagel-image-1,
  .bagel-image-2,
  .bagel-image-3 {
    width: 110px;
    height: auto;
    top: -40px;
    left: 18px;
  }

  .card-title {
    font-size: 13px;
  }

  .section-title {
    font-size: 25px;
  }

  .section-description {
    font-size: 15px;
  }
}

