/* ========= 平板通用调整（<= 1024px） ========= */

@media (max-width: 1024px) {

  #navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

  .sectionOne {
    height: 700px;
    padding: 80px 16px 60px;
    align-items: center;
    text-align: center;
    background-position: center top;
  }

  .sectionOne h1 {
    font-size: 48px;
    width: 90%;
    margin: 12px auto;
  }

  .sectionOne p {
    font-size: 18px;
    width: 85%;
    margin: 12px auto;
  }

  .menu .container {
    width: 100%;
  }

  /* 菜单卡片从 4 列变成 2 列左右 */
  .itemsUl {
    flex-wrap: wrap;
    row-gap: 30px;
  }

  .appItem,
  .dumItem,
  .baoItem,
  .mainItem,
  .coItem {
    width: 40%;
  }

  /* footer 中心内容不要太散 */
  .footer-content {
    padding: 0 16px;
  }
}

/* ========= 手机主断点（<= 768px） ========= */

@media (max-width: 768px) {

  .leftNav,
  .rightNav {
    display: none;
  }

  /* Hero 区进一步缩小字体 */
  .sectionOne {
    padding: 70px 12px 50px;
  }

  .sectionOne h1 {
    font-size: 36px;
    width: 100%;
  }

  .sectionOne p {
    font-size: 16px;
    width: 100%;
  }

  /* menu 标题缩小一点 */
  .menu h2 {
    font-size: 30px;
    margin-top: 40px;
  }

  .menu-category h3 {
    font-size: 22px;
    margin: 20px 0;
  }

  /* 菜单按钮行：换成多行居中 */
  .menu-items {
    row-gap: 10px;
    column-gap: 10px;
    padding: 0 8px;
  }

  .menu button {
    font-size: 12px;
    padding: 5px 10px;
  }

  /* 菜单卡片：单列为主 */
  .itemsUl {
    flex-direction: column;
    align-items: center;
  }

  .appItem,
  .dumItem,
  .baoItem,
  .mainItem,
  .coItem {
    width: 100%;
    max-width: 380px;
  }

  /* 回到顶部按钮靠近一点 */
  .scroll-to-top-btn {
    bottom: 20px;
    right: 20px;
  }

  .locations-title {
    font-size: 28px;
    letter-spacing: 4px;
  }

  .location-name {
    font-size: 20px;
  }

  .location-address,
  .location-schedule,
  .location-time {
    font-size: 16px;
  }

  /* About 文案略小 */
  .about-intro h2 {
    font-size: 32px;
  }

  .about-intro p {
    font-size: 16px;
  }

  .slider-wrapper {
    height: 320px;
  }

  /* Footer：上下堆叠 */
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-logo {
    margin-top: -25px;
    margin-bottom: -50px;
  }
  

  .footer-links ul {
    font-size: 18px;
    text-align: center;
  }

  .footer-contact {
    padding-top: 20px;
  }
  .footer-contact p {
    font-size: 16px;
  }

  .footer-social {
    margin-top: 10px;
    padding-left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .mobile-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 100px; /* 根据header高度调整 */
    left: 0;
    width: 100%;
    background-color: #1b1b1b;
    list-style: none;
    padding: 20px 0;
    z-index: 1000;
  }

  .mobile-nav li {
    padding: 15px 20px;
    text-align: center;
  }


  .mobile-nav li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
  }

  /* 遮罩层 */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  #menuToggle {
    display: block;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #eb8538;
    cursor: pointer;
    z-index: 1001;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  #navbar {
    position: relative;
    justify-content: center;
    min-height: 180px;
  }
}


/* ========= 小屏手机（<= 480px） ========= */

@media (max-width: 480px) {
  
  .sectionOne {
    padding: 60px 12px 40px;
    background-position: 30% center;
  }

  .sectionOne h1 {
    font-size: 28px;
  }

  .sectionOne p {
    font-size: 14px;
  }

  
  .menu h2 {
    font-size: 24px;
  }

  .menu-category h3 {
    font-size: 20px;
  }

  /* menu 卡片间距缩小 */
  .appItem,
  .dumItem,
  .baoItem,
  .mainItem,
  .coItem {
    padding: 8px;
  }

  .itemsUl p {
    font-size: 14px;
  }

  /* locations 标题再收一点 */
  .locations-title {
    font-size: 24px;
    letter-spacing: 3px;
  }

  /* about 图片高度再矮一点，防止超出屏幕太多 */
  .slider-wrapper {
    height: 260px;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  /* Footer 字再小一点 */
  .footer-links ul {
    font-size: 16px;
  }

  .footer-contact p {
    font-size: 14px;
  }
}