/* 移动端优化样式 */

/* 移动端导航栏优化 */
@media (max-width: 768px) {
  /* 确保移动端汉堡菜单按钮可见且可点击 */
  .top-menu-burger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    position: relative;
  }

  .top-menu-burger:hover {
    background: #f59e0b;
    border-color: #f59e0b;
  }

  .top-menu-burger:hover .top-menu-burger__lines,
  .top-menu-burger:hover .top-menu-burger__lines::before,
  .top-menu-burger:hover .top-menu-burger__lines::after {
    background: #fff;
  }

  .top-menu-burger.active {
    background: #f59e0b;
    border-color: #f59e0b;
  }

  .top-menu-burger.active .top-menu-burger__lines,
  .top-menu-burger.active .top-menu-burger__lines::before,
  .top-menu-burger.active .top-menu-burger__lines::after {
    background: #fff;
  }

  /* 移动端顶部菜单样式 */
  .top-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 80px 20px 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: block !important;
  }

  .top-menu.active {
    transform: translateX(0);
  }

  /* 移动端导航栏关闭按钮 */
  .top-menu__close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: #f59e0b;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease;
  }

  .top-menu__close-btn:hover {
    background: #d97706;
    transform: scale(1.1);
  }

  .top-menu__close-btn span {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
  }

  /* 移动端菜单链接样式 */
  .top-menu__link {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease;
  }

  .top-menu__link:hover {
    color: #f59e0b;
  }

  .top-menu__link:last-child {
    border-bottom: none;
  }

  /* 移动端菜单标题样式 */
  .top-menu__links-header {
    font-size: 18px;
    font-weight: 600;
    color: #f59e0b;
    margin: 24px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f59e0b;
  }

  .top-menu__links-header:first-child {
    margin-top: 0;
  }

  /* 移动端登录区域样式 */
  .top-menu__signin {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #f59e0b;
  }

  .top-menu__signin-link {
    display: block;
    padding: 16px;
    background: #f59e0b;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
  }

  .top-menu__signin-link:hover {
    background: #d97706;
    color: #fff;
  }

  /* 确保移动端菜单在桌面端隐藏 */
  .top-menu__desktop-section {
    display: none !important;
  }

  .top-menu__mobile-section {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
  }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
  .top-menu {
    padding: 70px 16px 16px;
  }

  .top-menu__link {
    padding: 14px 0;
    font-size: 15px;
  }

  .top-menu__links-header {
    font-size: 16px;
    margin: 20px 0 12px 0;
  }

  .top-menu__signin {
    margin-top: 24px;
    padding-top: 20px;
  }

  .top-menu__signin-link {
    padding: 14px;
    font-size: 15px;
  }
}
