/* 响应式样式 */

/* 新建手机端右下角浮动导航栏 - 上下排列 */
.new-float-nav {
  position: fixed !important;
  right: 10px !important;
  bottom: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  z-index: 99999 !important;
  width: auto !important;
  align-items: flex-end !important;
}

.new-float-nav a,
.new-float-nav div {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  background: rgba(102, 126, 234, 0.95) !important;
  color: white !important;
  padding: 12px !important;
  border-radius: 50% !important;
  text-decoration: none !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  backdrop-filter: blur(10px) !important;
  cursor: pointer !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.new-float-nav a svg,
.new-float-nav div svg {
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
}

/* 全局字号自动缩放 */
html {
  font-size: clamp(14px, 1.25vw, 18px);
}

/* 标题字号自动缩放 */
h1 {
  font-size: clamp(24px, 3.5vw, 48px);
}

h2 {
  font-size: clamp(20px, 2.5vw, 36px);
}

h3 {
  font-size: clamp(16px, 1.8vw, 28px);
}

h4 {
  font-size: clamp(14px, 1.4vw, 24px);
}

h5 {
  font-size: clamp(12px, 1.2vw, 20px);
}

h6 {
  font-size: clamp(11px, 1.1vw, 18px);
}

/* 大屏幕优化 */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }

  .product-grid,
  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  }

  .hero-banner {
    height: 600px;
  }

  .slide-content h1 {
    font-size: 56px;
  }

  .slide-content p {
    font-size: 28px;
  }
}

/* 平板 */
@media (max-width: 1024px) {
  .container {
    max-width: 100%;
  }

  .hero-banner {
    height: 400px;
  }

  .slide-content h1 {
    font-size: 36px;
  }

  .slide-content p {
    font-size: 20px;
  }

  .product-grid,
  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }

  .detail-header {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0 !important;
  }

  .detail-image {
    text-align: center;
    padding: 0;
    margin: 0;
    margin-top: 60px;
  }

  /* 移动端:产品信息区域显示在产品名称下方 */
  .detail-info {
    margin-top: 0;
    padding: 0 12px;
  }

  /* 移动端产品画廊样式 */
  .product-gallery {
    width: 100%;
    gap: 10px;
  }

  .gallery-main {
    height: 280px;
    border-radius: 12px;
  }

  /* 平板端画廊产品名称 */
  .gallery-product-title {
    text-align: center;
    padding: 8px 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 255, 0.98) 100%);
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    margin: 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    padding: 0;
    width: 100%;
    overflow: visible;
  }

  .gallery-thumb {
    width: 100% !important;
    min-width: auto !important;
    height: 55px;
    border-radius: 8px;
    border-width: 2px;
  }

  .gallery-thumb:hover,
  .gallery-thumb.active {
    transform: translateY(-2px) scale(1.05);
  }

  .video-indicator {
    font-size: 16px;
    width: 24px;
    height: 24px;
  }


  /* 手机端线路信息不折行,缩小字号 */
  .route-info-simple {
    font-size: 13.8px;
    padding: 8px 12px !important;
    margin: 8px 0 3px 0;
  }

  /* 手机端产品分类和线路编号居中显示 */
  .detail-title-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .detail-category,
  .detail-route-number {
    margin: 5px 0;
  }

  /* 手机端多页签在一行显示 */
  .main-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .main-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .route-info-simple .route-info-row {
    display: block;
    gap: 0;
    margin-bottom: 6px;
    width: 100%;
  }

  /* 手机端每行显示一个完整字段，整行显示不换行，字号自适应 */
  .route-info-simple .route-info-item {
    display: inline-block;
    white-space: normal;
    overflow: visible;
    width: 100%;
    padding: 0;
    font-size: 12px;
    line-height: 1.5;
    box-sizing: border-box;
    word-wrap: break-word;
    word-break: break-all;
  }

  /* 产品评分和查看评论合并显示在同一行 */
  .route-info-simple .route-info-row.route-info-row-2 {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 6px;
  }

  .route-info-simple .route-info-row.route-info-row-2 .route-info-item {
    width: auto;
    flex: 1;
    min-width: 0;
  }

  /* 如果内容较长，进一步缩小字号 */
  .route-info-simple .route-info-item[title] {
    font-size: 11px;
  }

  .detail-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }


  /* 行程介绍内容不缩放，由子元素统一控制 */
  .itinerary-content {
    transform: none;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    overflow-x: hidden;
    padding: 0 15px;
  }

  /* 景点介绍中的图片恢复100% */
  .day-itinerary-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
  }



  /* 搜索结果优化 */
  .search-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  /* 导航优化 */
  .nav-menu {
    gap: 20px;
  }

  .nav-menu a {
    font-size: 15px;
  }

  /* 平板和手机端隐藏搜索框 */
  .nav-search {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  /* 平板和手机端隐藏登录/注册按钮 */
  .nav-auth-buttons {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

/* 中等屏幕 */
@media (max-width: 900px) {
  .product-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px;
    padding: 0 5px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 模态框优化 */
  .search-results-modal {
    width: 95%;
    max-height: 90vh;
  }

  .modal-content {
    max-width: 90%;
  }
}

/* 手机端样式优化 */
@media (max-width: 768px) {
  #landscapeWarning {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
    color: white !important;
    font-size: 20px !important;
    font-weight: bold !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 999999 !important;
    text-align: center !important;
    padding: 20px !important;
  }
  /* 移动端隐藏顶部所有元素 - 只影响移动端，不影响电脑端 */
  .top-header,
  .top-header * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  /* 隐藏主导航栏的内容,但不影响 nav-menu */
  .main-nav .logo,
  .main-nav .nav-auth-buttons,
  .main-nav .mobile-menu-btn,
  .main-nav .nav-search {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  .main-nav .container,
  .main-nav .nav-content {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  /* 移除主导航栏的紫色背景 */
  .main-nav {
    background: transparent !important;
    min-height: 0 !important;
    height: auto !important;
  }

  /* 强制让 nav-menu 脱离父元素的隐藏影响 */
  .main-nav #navMenu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 55px !important;
    left: auto !important;
    right: -100% !important;
    z-index: 9999 !important;
    width: auto !important;
    min-width: 80px !important;
    max-width: 120px !important;
    height: auto !important;
    max-height: calc(100vh - 60px) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 6px !important;
    gap: 3px !important;
    transition: right 0.3s ease !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    border-radius: 0 0 0 8px !important;
    overflow-y: auto !important;
    margin: 0 !important;
  }

  .main-nav #navMenu li {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }

  .main-nav #navMenu a {
    font-size: 13px !important;
    color: #333 !important;
    text-align: center !important;
    width: 100% !important;
    padding: 8px 10px !important;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    display: block !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
  }

  .main-nav #navMenu a:hover,
  .main-nav #navMenu a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    transform: translateX(-2px) !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
  }

  .main-nav #navMenu.active {
    right: 0 !important;
  }

  .breadcrumb,
  .scroll-progress,
  .mobile-product-header,
  .mobile-product-header * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  /* 确保页面占满整个宽度，无左右白条 */
  body,
  html {
    width: 100%;
    overflow-x: hidden;
    min-width: 100vw;
    max-width: 100vw;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
  }

  /* 移除容器的左右padding和最大宽度限制 */
  .container {
    max-width: 100vw !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* 确保所有容器占满宽度 */
  body > *,
  section > .container,
  footer > .container,
  header > .container,
  nav > .container {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  /* 确保所有容器占满宽度 */
  body > *,
  section > .container,
  footer > .container {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  /* 产品详情页占满宽度 */
  .product-detail-section,
  .section.product-detail-section {
    padding: 0;
    width: 100%;
    max-width: 100vw;
    /* 添加上边距，避免被固定顶部导航栏遮挡 */
    padding-top: 60px !important;
  }

  /* 产品详情页主容器占满宽度 */
  .product-detail,
  .detail-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  /* 触摸滑动效果 */
  .mobile-product-header,
  .info-card,
  .mobile-content-card,
  .mobile-day-block {
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.1);
    touch-action: manipulation;
  }

  /* 平滑滚动 */
  * {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  /* 渐变动画 */
  @keyframes gradientShift {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

  .mobile-product-header,
  .mobile-book-btn,
  .mobile-day-badge {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
  }

  /* 手机端产品画廊样式 */
  .product-gallery {
    width: 100%;
    gap: 8px;
    position: relative;
  }

  .gallery-main {
    min-height: 530px;
    height: 530px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
  }

  .gallery-main::before {
    display: none !important;
  }

  .gallery-media,
  .gallery-main img,
  .gallery-main video {
    width: 100%;
    height: 530px !important;
    min-height: 530px !important;
    object-fit: cover !important;
    display: block;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    filter: none !important;
  }

  .gallery-media::before,
  .gallery-media::after {
    display: none !important;
  }

  /* 隐藏缩略图 */
  .gallery-thumbs {
    display: none;
  }

  /* 隐藏移动端画廊返回按钮 */
  .mobile-gallery-back-btn {
    display: none !important;
  }

  /* 隐藏移动端画廊汉堡菜单按钮 */
  .mobile-gallery-menu-btn {
    display: none !important;
  }



  /* 移动端隐藏图片左右箭头按钮 */
  .gallery-arrow {
    display: none !important;
  }

  /* 移动端显示更大的箭头按钮 (‹ 和 ›) */
  .desktop-gallery-arrow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    height: auto !important;
    font-size: 66px !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    color: white !important;
    opacity: 0.6 !important;
    z-index: 10 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    text-shadow: none !important;
    -webkit-text-shadow: none !important;
    -moz-text-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
  }

  .desktop-gallery-arrow:hover {
    background: transparent !important;
    color: white !important;
    border-color: transparent !important;
    transform: translateY(-50%) !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    opacity: 0.8 !important;
  }

  .desktop-gallery-arrow-left {
    left: 8px !important;
  }

  .desktop-gallery-arrow-right {
    right: 8px !important;
  }

  /* 手机端画廊产品名称 */
  .gallery-product-title {
    text-align: center;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 255, 0.98) 100%);
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    margin: 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* 移动端画廊返回按钮 */
  .mobile-gallery-back-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(50, 50, 50, 0.8) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    pointer-events: auto !important;
    opacity: 0.7;
  }

  .mobile-gallery-back-btn span {
    color: white;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    margin-left: -1px;
  }

  .mobile-gallery-back-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 255, 0.95) 100%);
    color: #667eea;
    border-color: #667eea;
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    opacity: 1;
  }

  .mobile-gallery-back-btn:active {
    transform: scale(1.02);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 255, 1) 100%);
  }

  /* 移动端画廊汉堡菜单按钮 */
  .mobile-gallery-menu-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(50, 50, 50, 0.8) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    gap: 4px;
    padding: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    pointer-events: auto !important;
    opacity: 0.7;
  }

  .mobile-gallery-menu-btn span {
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 2px;
    flex-shrink: 0;
    display: block;
    transition: all 0.3s ease;
  }

  /* 移动端产品详情固定顶部导航栏 */
  .mobile-product-fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 10000;
    transition: all 0.3s ease;
  }

  .fixed-header-left,
  .fixed-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .fixed-header-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 12px;
  }

  .fixed-header-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .fixed-header-back-btn,
  .fixed-header-phone-btn,
  .fixed-header-wechat-btn,
  .fixed-header-breadcrumb-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(50, 50, 50, 0.8) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    opacity: 1;
  }

  /* 确保电话和微信图标颜色一致 */
  .fixed-header-phone-btn,
  .fixed-header-wechat-btn {
    color: white !important;
    filter: brightness(1.1) !important;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.3) !important;
  }

  /* 汉堡菜单样式 - 3行3个横杠 */
  .breadcrumb-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 16px;
    gap: 3px;
  }

  .breadcrumb-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* 面包屑下拉菜单 */
  .breadcrumb-dropdown {
    position: fixed !important;
    top: 60px !important;
    right: 12px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 255, 0.98) 100%) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    padding: 4px !important;
    z-index: 99999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-5px) !important;
    transition: all 0.2s ease !important;
  }

  .breadcrumb-dropdown.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  .breadcrumb-dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 10px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    color: #333 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
  }

  .breadcrumb-dropdown-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
    color: #667eea !important;
  }

  .breadcrumb-dropdown-icon {
    font-size: 14px !important;
    flex-shrink: 0 !important;
    width: 18px !important;
    text-align: center !important;
  }

  .fixed-header-phone-btn {
    text-decoration: none;
  }

  .fixed-header-back-btn:hover,
  .fixed-header-phone-btn:hover,
  .fixed-header-wechat-btn:hover,
  .fixed-header-breadcrumb-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 255, 0.95) 100%);
    color: #667eea;
    border-color: #667eea;
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    opacity: 1;
  }

  /* 面包屑按钮hover时，汉堡横杠变色 */
  .fixed-header-breadcrumb-btn:hover .breadcrumb-hamburger span {
    background: #667eea;
  }

  .fixed-header-back-btn:active,
  .fixed-header-phone-btn:active,
  .fixed-header-wechat-btn:active,
  .fixed-header-breadcrumb-btn:active {
    transform: scale(1.02);
  }

  .mobile-gallery-menu-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 255, 0.95) 100%);
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    opacity: 1;
  }

  .mobile-gallery-menu-btn:hover span {
    background: #667eea;
  }

  .mobile-gallery-menu-btn:active {
    transform: scale(1.02);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 255, 1) 100%);
  }

  /* 移动端菜单显示 */
  .nav-menu.active {
    right: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* 移动端菜单基础样式 - 强制覆盖所有可能的隐藏规则 */
  .nav-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 55px !important;
    left: auto !important;
    right: -100% !important;
    z-index: 999 !important;
    width: auto !important;
    min-width: 80px !important;
    max-width: 120px !important;
    height: auto !important;
    max-height: calc(100vh - 60px) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 6px !important;
    gap: 3px !important;
    transition: right 0.3s ease !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    border-radius: 0 0 0 8px !important;
    overflow-y: auto !important;
    margin: 0 !important;
  }

  /* 移动端菜单激活状态 */
  .nav-menu.active {
    right: 0 !important;
  }

  /* 移动端菜单激活状态 */
  .nav-menu.active {
    right: 0 !important;
  }

  .gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    padding: 0;
    width: 100%;
    overflow: visible;
  }

  .gallery-thumb {
    width: 100% !important;
    min-width: auto !important;
    height: 50px;
    border-radius: 6px;
    border-width: 2px;
  }

  .gallery-thumb:hover,
  .gallery-thumb.active {
    transform: translateY(-1px) scale(1.03);
  }

  .video-indicator {
    font-size: 14px;
    width: 20px;
    height: 20px;
  }

  /* 手机端详情图片容器 */
  .detail-image {
    padding: 0;
    margin: 60px 0 0 0;
    width: 100%;
  }

  /* 手机端:产品信息区域显示在产品名称下方 */
  .detail-info {
    margin-top: 0;
    padding: 12px;
  }

  /* 手机端顶部大图区域 */
  .mobile-product-header {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  .mobile-product-image {
    width: 100%;
    max-width: 100vw;
    min-height: 200px;
    max-height: 400px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  .mobile-product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
  }

  .mobile-product-image:active img {
    transform: scale(1.05);
  }

  .mobile-product-info {
    padding: 20px 0;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    color: white;
    margin-top: -40px;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .mobile-product-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 12px 0;
    line-height: 1.4;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .mobile-product-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
  }

  .mobile-category,
  .mobile-route-number {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 12px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  .mobile-product-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .mobile-product-price .price {
    font-size: 32px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  .mobile-product-price .price-unit {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
  }

  /* 快速信息卡片 */
  .mobile-quick-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
  }

  .mobile-quick-info .info-card {
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
  }

  .mobile-quick-info .info-card:nth-child(2n) {
    border-right: none;
  }

  .info-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .info-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  }

  .info-icon {
    font-size: 20px;
    flex-shrink: 0;
  }

  .info-text {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
  }

  /* 移动端内容卡片 */
  .mobile-content-card {
    margin: 0 0 20px 0;
    background: white;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    max-width: 100vw;
    padding: 20px 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    padding: 20px 15px;
    box-sizing: border-box;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .mobile-content-card:active {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
  }

  .mobile-card-title {
    font-size: 18px;
    font-weight: bold;
    padding: 18px 20px 12px;
    margin: 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
  }

  .title-icon {
    font-size: 24px;
  }

  .mobile-card-content {
    padding: 18px 20px;
    color: #555;
    line-height: 1.8;
    font-size: 14px;
  }

  /* 移动端行程块 */
  .mobile-day-block {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background: white;
    transition: background 0.3s ease;
  }

  .mobile-day-block:last-child {
    border-bottom: none;
  }

  .mobile-day-block:active {
    background: #f8f9ff;
  }

  .mobile-day-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }

  .mobile-day-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  }

  .mobile-day-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
    flex: 1;
  }

  .mobile-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
  }

  .mobile-info-row:last-child {
    border-bottom: none;
  }

  .info-label {
    font-size: 14px;
    color: #999;
    flex-shrink: 0;
    min-width: 80px;
  }

  .info-value {
    font-size: 14px;
    color: #333;
    flex: 1;
    line-height: 1.5;
  }

  .mobile-day-content {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    color: #555;
    line-height: 1.8;
    font-size: 14px;
  }

  /* 手机端底部固定按钮 */
  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: white;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid #f0f0f0;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .price-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .price-label {
    font-size: 12px;
    color: #999;
  }

  .total-price {
    font-size: 28px;
    font-weight: bold;
    color: #667eea;
  }

  .mobile-book-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
  }

  .mobile-book-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  }

  .btn-icon {
    font-size: 20px;
  }

  /* 隐藏桌面版头部 */
  .desktop-only {
    display: none;
  }

  /* 显示手机端底部按钮 */
  .mobile-bottom-bar {
    display: flex;
  }

  /* 增加底部间距，避免被固定按钮遮挡 */
  .site-footer {
    padding-bottom: 80px;
  }

  .detail-content {
    padding-bottom: 80px;
  }

  /* 产品详情页手机端底部固定按钮 */
  .product-detail-mobile-bottom {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3px 15px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: max(3px, env(safe-area-inset-bottom));
  }

  .product-detail-mobile-bottom .mobile-price-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .product-detail-mobile-bottom .price-label {
    font-size: 12px;
    color: #999;
  }

  .product-detail-mobile-bottom .price-value {
    font-size: 28px;
    font-weight: bold;
    color: #ff6b6b;
  }

  .product-detail-mobile-bottom .price-unit {
    font-size: 12px;
    color: #666;
    margin-left: 4px;
  }

  .product-detail-mobile-bottom .mobile-book-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
  }

  .product-detail-mobile-bottom .mobile-book-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  }

  .product-detail-mobile-bottom .btn-icon {
    font-size: 20px;
  }

  /* 页面二维码移动端样式 */
  .detail-header-row,
  .news-header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-qrcode {
    margin: 10px auto;
  }

  /* 产品详情页移动端二维码 */
  .detail-title-row {
    display: none;
  }

  /* 移动端确保价格正常显示 */
  .detail-price {
    display: none;
  }

  .detail-price .price {
    font-size: 28px;
    color: var(--accent-color);
    font-weight: bold;
  }

  .detail-price .price-unit {
    font-size: 14px;
    color: var(--light-text);
  }

  /* 移动端产品分类和线路编号居中显示 */
  .detail-title-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .detail-title-content .detail-category {
    display: inline-block;
    margin-top: 5px;
    margin-bottom: 5px;
    align-self: center;
  }

  .detail-title-content .detail-route-number {
    display: inline-block;
    margin: 5px 0;
    align-self: center;
  }

  /* 产品标签（分类和编号）在同一行显示 */
  .detail-tags {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
  }

  .detail-tags .detail-category {
    margin: 0;
  }

  .detail-tags .detail-route-number {
    margin: 0;
  }

  /* 产品详情页线路信息移动端 */
  .route-info-simple {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 8px;
  }

  .route-info-simple-item {
    font-size: 12px;
    padding: 4px 8px;
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
  }

  .detail-title-row .page-qrcode {
    margin: 10px auto 0 auto;
  }

  /* 移动端：隐藏"立即预订"按钮（因为有底部固定栏），但保留"选择团期"按钮 */
  .detail-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px !important;
    margin-bottom: 4px !important;
  }

  .detail-actions .book-btn {
    display: none;
  }

  .detail-actions .toggle-calendar-prices-btn {
    width: 100%;
    padding: 10px 20px;
    text-align: center;
  }

  .detail-actions .page-qrcode {
    margin-bottom: 15px;
  }

  /* 移动端:减少detail-content的间距,更紧凑 */
  .detail-content {
    padding: 8px 12px !important;
    margin-bottom: 3px !important;
  }

  .detail-section {
    margin-bottom: 3px !important;
  }

  /* 移动端:日历价格区域的detail-section特殊处理 */
  #calendarPriceSection {
    margin-bottom: 0 !important;
  }

  .detail-section h2 {
    margin-bottom: 5px !important;
    padding-bottom: 5px !important;
    font-size: 18px !important;
  }

  /* ========================================
     移动端产品详情页块间距优化
     顺序: 行程速览 → 亮点 → 标签 → 行程详情 → 费用 → 须知 → 看了又看
     ======================================== */

  /* 1. 行程速览块 */
  .recommendation-detail-content {
    padding: 8px 12px !important;
    margin-bottom: 3px !important;
  }

  .recommendation-section {
    margin-bottom: 3px !important;
  }

  .recommendation-section h2 {
    margin-bottom: 5px !important;
    padding-bottom: 3px !important;
    font-size: 16px !important;
  }

  /* 移动端:行程速览内容间距更紧凑 */
  .recommendation-content {
    line-height: 1.4 !important;
  }

  .recommendation-content p {
    margin-bottom: 4px !important;
  }

  /* 2. 亮点块（与行程速览样式相同） */
  #highlightSection {
    padding: 8px 12px !important;
    margin-bottom: 3px !important;
  }

  /* 3. 标签块（亮点、行程、费用、须知） */
  .main-tabs-container {
    margin-top: 0;
    margin-bottom: 0;
    padding: 8px 12px;
    width: 100%;
    overflow: visible;
  }

  /* 包含主页签的detail-content移动端特殊处理 */
  .detail-content:has(.main-tabs-container) {
    padding: 8px 12px !important;
    padding-bottom: 3px !important;
    margin-bottom: 3px !important;
  }

  /* 包含主页签的detail-section移动端特殊处理 */
  .detail-content:has(.main-tabs-container) .detail-section {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  /* 线路信息快捷显示移动端 */
  .detail-route-summary {
    padding: 12px;
    gap: 8px;
    border-left-width: 3px;
  }

  .route-summary-item {
    font-size: 12px;
    padding: 4px 8px;
    gap: 4px;
  }

  /* 线路信息头部区域移动端 */
  .route-info-header .route-info-grid {
    padding: 15px;
  }

  .route-info-header .route-info-grid::before {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .route-info-header .route-info-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 12px;
  }

  .route-info-header .route-info-label {
    flex: none;
    margin-bottom: 4px;
  }

  .route-info-header .route-info-value {
    text-align: left;
  }

  /* 新闻详情页移动端二维码 */
  .news-qrcode-container {
    padding: 10px;
    margin-bottom: 15px;
  }

  /* 行程高亮区域移动端 - 不再单独缩放，由父容器统一控制 */
  .day-itinerary-info-highlight {
    padding: 15px;
    transform: none;
    max-width: 100%;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
  }

  .day-itinerary-info-highlight .day-itinerary-item {
    font-size: 14px;
    padding: 5px 0;
  }

  /* 4. 行程详情块 */
  #introductionSection {
    padding: 8px 12px !important;
    margin-bottom: 3px !important;
    margin-top: 0 !important;
  }

  #introductionSection .detail-section {
    margin-bottom: 0 !important;
  }

  #introductionSection h2 {
    margin-bottom: 5px !important;
    padding-bottom: 3px !important;
  }

  /* 5. 费用块 */
  #feesSection {
    padding: 8px 12px !important;
    margin-bottom: 3px !important;
  }

  #feesSection .detail-section {
    margin-bottom: 0 !important;
  }

  #feesSection h2 {
    margin-bottom: 5px !important;
    padding-bottom: 3px !important;
  }

  /* 6. 须知块 */
  #reminderSection {
    padding: 8px 12px !important;
    margin-bottom: 3px !important;
  }

  #reminderSection .detail-section {
    margin-bottom: 0 !important;
  }

  /* 移除须知区域后的所有间距 */
  #reminderSection {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  #reminderSection h2 {
    margin-bottom: 5px !important;
    padding-bottom: 3px !important;
  }

  /* 7. 看了又看块 */
  .related-products {
    padding: 8px 12px !important;
    margin-bottom: 0 !important;
  }

  .related-products h2 {
    margin-bottom: 5px !important;
    padding-bottom: 3px !important;
  }

  /* 看了又看区域（移动端优化） */
  .related-products-section {
    margin-top: -10px !important;
    padding: 8px 12px !important;
  }

  .related-products-section .section-header {
    margin-bottom: 8px !important;
    padding: 0 !important;
  }

  .related-products-section .section-header h2 {
    margin-bottom: 4px !important;
    padding-bottom: 0 !important;
    font-size: 18px !important;
    margin-top: 0 !important;
  }

  .related-products-section .section-header p {
    font-size: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .related-products-section .related-products-scroll {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 移除看了又看区域后的空白 */
  .related-products-section + .site-footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* ========================================
     行程内部样式（保持紧凑）
     ======================================== */

  /* 增加行程内容之间的间距，避免放大后重叠 */
  .day-itinerary-content {
    margin-top: 3px;
    margin-bottom: 0;
    min-height: 50px;
    position: relative;
    z-index: 2;
  }

  /* 行程内容最后一段不需要底部间距 */
  .day-itinerary-content > p:last-child,
  .day-itinerary-content > div:last-child {
    margin-bottom: 0;
  }

  /* 确保景点图片有足够空间显示 */
  .day-itinerary-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    position: relative;
    z-index: 3;
  }

  /* 行程内容的段落之间也要有间距 */
  .day-itinerary-content p {
    margin-bottom: 8px;
  }

  /* 标题与内容之间的间距 */
  .day-title {
    margin-bottom: 3px;
    padding-bottom: 3px;
    position: relative;
    z-index: 2;
  }

  /* 行程详情容器宽度调整 - 不缩放，由子元素控制 */
  .detail-content {
    padding: 8px 12px !important;
    transform: none;
    transform-origin: center top;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
    overflow: visible;
    overflow-x: hidden;
  }

  /* 主页签所在的detail-content不缩放，确保标签完整显示 */
  .detail-content:has(.main-tabs-container) {
    transform: none;
    overflow: visible;
    padding: 8px 12px !important;
    max-width: 100vw;
    width: 100%;
    box-sizing: border-box;
  }

  .detail-section {
    padding: 8px 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  /* 行程速览section去除顶部间距 */
  .itinerary-overview-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* 行程速览所在的detail-content去除所有间距 */
  .itinerary-overview-detail-content {
    padding: 8px 12px !important;
    margin: 0 !important;
    margin-bottom: 3px !important;
  }

  /* 日历价格所在的detail-content去除底部间距 */
  #calendarPriceSection {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  /* 移动端:日历价格容器隐藏时不占用空间 */
  #calendarPricesContainer[style*="display: none"],
  #calendarPricesContainer[style*="display:none"] {
    margin: 0 !important;
    padding: 0 !important;
    display: none !important;
  }

  /* 移动端:日历价格容器去除底部间距 */
  .calendar-prices-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  /* 移动端:日历价格区域后紧跟的元素间距更紧凑 */
  .detail-content:has(#calendarPriceSection) + .detail-content {
    margin-top: 0 !important;
    padding-top: 5px !important;
  }

  /* 移动端:route-info-simple底部间距减小 */
  .route-info-simple {
    margin-bottom: 6px !important;
  }

  /* 主页签移动端 - 增加宽度确保完整显示 */
  .main-tabs {
    gap: 6px;
    padding: 10px 0;
    border-radius: 0;
    width: 100%;
    max-width: 100vw;
    min-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    box-sizing: border-box;
  }

  .main-tab {
    padding: 12px 18px;
    font-size: 14px;
    border-radius: 6px;
    flex-shrink: 0;
    min-width: fit-content;
    position: relative;
    z-index: 10;
    min-height: 44px;
  }

  /* 行程页签移动端 - 一行显示,支持横向滚动 */
  .itinerary-tabs-top,
  .itinerary-tabs-bottom {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 10px 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  /* 隐藏滚动条但保留功能 */
  .itinerary-tabs-top::-webkit-scrollbar,
  .itinerary-tabs-bottom::-webkit-scrollbar {
    height: 4px;
  }

  .itinerary-tabs-top::-webkit-scrollbar-thumb,
  .itinerary-tabs-bottom::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
  }

  .itinerary-tabs-top {
    margin-bottom: 15px;
    border-radius: 10px 10px 0 0;
  }

  .itinerary-tabs-bottom {
    margin-top: 15px;
    border-radius: 0 0 10px 10px;
  }

  .itinerary-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
  }

  .itinerary-tabs-content {
    min-height: 300px;
  }

  /* 连续行程移动端 - 增加上边距 */
  .itinerary-days-continuous {
    margin-top: 0;
  }

  /* 每天行程块宽度放大12%并居中 */
  .day-itinerary-block {
    margin-bottom: 3px;
    padding: 8px 12px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    overflow-x: hidden;
    min-height: 80px;
    position: relative;
    z-index: 1;
  }

  .day-title {
    font-size: 18px;
    margin-bottom: 3px;
    padding-bottom: 3px;
    position: relative;
    z-index: 2;
  }

  /* 顶部导航 - 隐藏顶部导航栏 */
  body {
    padding-top: 100px;
  }

  .top-header {
    display: none;
  }

  .header-content {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 5px;
    padding: 3px 10px !important;
  }

  .header-left {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 !important;
    margin: 0 !important;
  }

  .header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 !important;
    margin: 0 !important;
  }

  .header-right {
    flex: 0 0 auto;
    display: none;
    justify-content: flex-end;
    align-items: center;
  }

  .service-phone {
    font-size: 12px !important;
    white-space: nowrap;
  }

  .service-phone a {
    color: #fff !important;
    text-decoration: none;
  }

  .wechat-qrcode-img {
    width: 45px !important;
    height: 45px !important;
    flex-shrink: 0;
    border-radius: 4px !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
  }

  .auth-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .auth-buttons a {
    font-size: 15px !important;
    color: #fff !important;
    text-decoration: none;
    padding: 2px 6px !important;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
  }

  /* 主导航 */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 0;
    padding: 0;
    min-height: 100px;
    height: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }

  .main-nav .container {
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .logo {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    z-index: 10 !important;
    order: 1 !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 120px !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 8px 0 0 !important;
    background: transparent !important;
    padding: 2px 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    justify-content: flex-start !important;
    overflow: visible !important;
  }

  .logo a {
    font-size: 17px !important;
    display: block !important;
    color: #ffffff !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    font-weight: 800 !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    line-height: 1.3 !important;
    -webkit-text-fill-color: #ffffff !important;
    background-image: none !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: 0.5px !important;
  }

  /* 导航栏登录注册按钮 */
  .nav-auth-buttons {
    display: flex !important;
    gap: 4px !important;
    align-items: center !important;
    order: 2 !important;
    flex: 1 0 auto !important;
    margin: 0 5px 0 auto !important;
    justify-content: flex-end !important;
  }

  .nav-auth-buttons a {
    font-size: 12px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 5px 10px !important;
    background: rgba(255, 255, 255, 0.25) !important;
    border-radius: 16px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease !important;
  }

  .nav-auth-buttons a:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-1px) !important;
  }

  .nav-content {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    gap: 8px;
    overflow: visible;
    min-height: 95px;
    padding: 8px 12px !important;
    flex-wrap: wrap !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-bottom: none !important;
    margin: 0 !important;
    width: 100% !important;
    position: relative !important;
    left: 0 !important;
  }

  .nav-search {
    order: 4;
    width: 80% !important;
    max-width: 80% !important;
    margin: 6px auto 0 auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 1 1 auto !important;
    order: 100 !important;
    padding: 5px 10px !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    z-index: 10 !important;
    position: relative !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
  }

  .nav-search input {
    flex: 1 !important;
    padding: 5px 8px !important;
    font-size: 14px !important;
    height: 24px !important;
    order: 1 !important;
    border: none;
    outline: none;
    background: transparent;
    color: #333;
    font-weight: 400;
  }

  .nav-search input::placeholder {
    color: #a0a0a0;
    font-size: 14px;
    font-weight: 300;
  }

  .nav-search input:focus {
    color: #222;
  }

  .nav-search button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 5px 10px !important;
    font-size: 16px !important;
    height: 24px !important;
    min-width: 32px !important;
    order: 2 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    color: white;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    font-weight: 500;
  }

  .nav-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.5);
  }

  .nav-search button:active {
    transform: scale(0.95) translateY(0);
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.3);
  }

  .mobile-menu-btn {
    order: 3;
    flex: 0 0 auto !important;
    width: 36px !important;
    height: 18px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 0 0 0 5px !important;
    z-index: 10;
    position: relative;
  }

  .mobile-menu-btn span {
    width: 24px !important;
    height: 3px !important;
    background: #ffffff !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
  }



  .nav-menu li {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }

  .nav-menu a {
    font-size: 13px !important;
    color: #333 !important;
    text-align: center !important;
    width: 100% !important;
    padding: 8px 10px !important;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    display: block !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    transform: translateX(-2px) !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
  }
  
  /* Banner */
  .hero-banner {
    height: 350px;
  }

  /* 产品分类 - 紧凑布局 */
  .product-categories {
    padding: 10px 0 10px 0;
    margin-top: 0;
  }
  
  .slide-content h1 {
    font-size: 28px;
  }
  
  .slide-content p {
    font-size: 16px;
  }
  
  .cta-btn {
    padding: 12px 30px;
    font-size: 16px;
  }
  
  /* 分区 */
  .section {
    padding: 25px 0;
  }

  .section.products-section {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .section-header {
    margin-bottom: 10px !important;
  }
  
  .section-header h2 {
    font-size: 28px;
    margin-bottom: 5px;
  }

  .section-header p {
    margin-bottom: 5px;
    font-size: 14px;
  }
  
  /* 分类网格 */
  .category-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .category-card {
    padding: 10px 5px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: auto;
  }

  .category-icon {
    font-size: 28px;
    margin-bottom: 5px;
    line-height: 1;
  }

  .category-card h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1.2;
  }

  .category-card p {
    font-size: 11px;
    opacity: 0.95;
    line-height: 1.2;
  }
  
  /* 产品网格 */
  .product-grid,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    margin: 0;
  }
  
  .product-image,
  .news-image {
    height: 200px;
  }
  
  /* 特点网格 */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .feature-card {
    padding: 25px 15px;
  }
  
  .feature-icon {
    font-size: 36px;
  }
  
  .feature-card h3 {
    font-size: 16px;
  }
  
  .feature-card p {
    font-size: 12px;
  }
  
  /* 页脚 */
  .site-footer {
    padding: 30px 0 15px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 1em; /* 一个汉字的距离 */
  }

  .footer-section {
    padding-left: 1em; /* 每个section的标题和内容都向右缩进一个汉字 */
  }

  /* 页脚链接横向排列 */
  .footer-section ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* 页脚二维码 */
  .footer-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
  }

  .footer-qrcode-img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .footer-qrcode p {
    margin-top: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
  }

  .footer-section ul li {
    margin-bottom: 0;
  }

  .footer-section ul li a {
    white-space: nowrap;
  }
  
  /* 模态框 */
  .modal-content {
    margin: 10% auto;
    padding: 25px 20px;
    max-width: 90%;
  }
  
  /* 筛选栏 - 移动端紧凑版 */
  .filter-section {
    padding: 10px 0;
  }
  
  .filter-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .filter-item {
    width: 100%;
    margin: 0;
    gap: 5px;
  }
  
  /* 搜索框单独一行 */
  .filter-item:first-child {
    width: 100%;
  }
  
  /* 三个筛选下拉框放在同一行 */
  .filter-item:nth-child(2),
  .filter-item:nth-child(3),
  .filter-item:nth-child(4) {
    width: calc(33.333% - 5.333px);
    display: inline-block;
  }
  
  .filter-bar {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .filter-item label {
    display: none;
  }
  
  .filter-item input,
  .filter-item select {
    padding: 8px 6px;
    font-size: 13px;
    min-width: auto;
    width: 100%;
    height: 38px;
  }
  
  .filter-item input {
    min-width: auto;
  }
  
  .filter-item select {
    padding-right: 20px;
  }
  
  /* 产品详情 */
  .detail-info h1 {
    font-size: 24px;
  }
  
  .detail-price .price {
    font-size: 28px;
  }
  
  .detail-actions {
    flex-direction: column;
  }
  
  .book-btn,
  .contact-btn {
    width: 100%;
  }
  
  .detail-content {
    padding: 25px 0;
  }
  
  .detail-section h2 {
    font-size: 20px;
  }
  
  /* 新闻详情 */
  .news-detail {
    padding: 25px 0;
  }
  
  .news-header h1 {
    font-size: 24px;
  }
  
  .news-content {
    font-size: 15px;
  }
  
  /* 预订模态框 */
  .booking-modal {
    max-width: 90%;
  }
  
  .payment-modal {
    max-width: 90%;
  }
  
  .qrcode img {
    width: 250px;
    height: 250px;
  }
  
  /* 页面标题 */
  .page-header {
    padding: 15px 0;
  }
  
  .page-header h1 {
    font-size: 28px;
  }
  
  .page-header p {
    font-size: 14px;
  }

  /* 页面导航按钮手机端样式 - 紧贴最右侧 */
  .page-navigation {
    right: 0;
    bottom: 15px;
  }

  .page-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  /* 滚动按钮手机端样式 */
  .scroll-buttons {
    right: 0;
    bottom: 15px;
  }

  .scroll-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  /* 移动端左侧浮动导航栏样式 */
  .itinerary-tabs.itinerary-tabs-left {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 6px;
    z-index: 1000;
    max-height: 60vh;
    overflow-y: auto;
    min-width: 55px;
    /* 移除背景和边框 */
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    /* 默认隐藏，根据滚动位置控制显示 */
    opacity: 0;
    visibility: hidden;
    /* 添加过渡效果 */
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  /* 移除导航栏容器的任何阴影 */
  .itinerary-tabs.itinerary-tabs-left::before,
  .itinerary-tabs.itinerary-tabs-left::after {
    display: none !important;
    background: none !important;
    box-shadow: none !important;
  }

  /* 强制覆盖所有 .itinerary-tab 的样式(除了左侧圆圈导航) */
  .itinerary-tabs:not(.itinerary-tabs-left) .itinerary-tab,
  .itinerary-tabs:not(.itinerary-tabs-left) .itinerary-tab * {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    outline: none !important;
    text-shadow: none !important;
    transform: none !important;
  }

  .itinerary-tabs.itinerary-tabs-left .itinerary-tab {
    /* 重置所有浏览器默认样式 */
    all: unset;
    /* 重新设置需要的样式 */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 1);
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    color: #000000 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
  }

  /* 移除按钮伪元素的阴影 */
  .itinerary-tabs.itinerary-tabs-left .itinerary-tab::before,
  .itinerary-tabs.itinerary-tabs-left .itinerary-tab::after {
    display: none !important;
    content: none !important;
    box-shadow: none !important;
  }

  .itinerary-tabs.itinerary-tabs-left .itinerary-tab:hover {
    background-color: rgba(255, 255, 255, 1) !important;
    border-color: rgba(0, 0, 0, 0.4) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    filter: none !important;
    transform: translateX(2px) !important;
    color: #000000 !important; /* 黑色 */
    outline: none !important;
  }

  .itinerary-tabs.itinerary-tabs-left .itinerary-tab.active {
    background-color: rgba(255, 255, 255, 1) !important;
    border-color: rgba(0, 0, 0, 0.4) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
    filter: none !important;
    color: #000000 !important; /* 黑色 */
    transform: none !important;
    outline: none !important;
    font-weight: 600 !important;
  }
}

/* 小屏手机 */
@media (max-width: 480px) {
  .hero-banner {
    height: 280px;
  }
  
  .slide-content h1 {
    font-size: 22px;
  }
  
  .slide-content p {
    font-size: 14px;
  }
  
  .cta-btn {
    padding: 10px 25px;
    font-size: 14px;
  }
  
  .slider-controls button {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .category-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .section-header h2 {
    font-size: 24px;
  }
  
  /* SKU选择每行两个 */
  .sku-item-card {
    flex: 0 0 calc(50% - 5px) !important;
    min-width: calc(50% - 5px) !important;
  }
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .product-image,
  .news-image {
    height: 180px;
  }
  
  .price {
    font-size: 20px;
  }
  
  /* 模态框 */
  .modal-content {
    padding: 20px 15px;
  }
  
  .qrcode img {
    width: 200px;
    height: 200px;
  }
  
  .payment-actions {
    flex-direction: column;
  }
  
  /* 表单 */
  .submit-btn {
    padding: 10px;
    font-size: 15px;
  }

  /* 搜索结果 */
  .search-results-modal {
    width: 95%;
    max-height: 95vh;
  }

  .search-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .search-result-item {
    flex-direction: column;
  }

  .search-result-item-image {
    width: 100%;
    height: 100px;
  }

  .search-result-item-image img {
    height: 100%;
  }

  /* 页面导航按钮移动端样式 - 紧贴最右侧 */
  .page-navigation {
    right: 0;
    bottom: 15px;
  }

  .page-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  /* 移动端提示框样式调整 */
  .nav-tooltip {
    right: 50px;
    font-size: 11px;
    padding: 5px 10px;
  }

  .page-nav-btn:hover .nav-tooltip {
    right: 45px;
  }

  /* 页面导航按钮移动端样式 - 紧贴最右侧 */
  .page-navigation {
    right: 0;
    bottom: 15px;
  }

  .page-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  /* 移动端提示框样式调整 */
  .nav-tooltip {
    right: 50px;
    font-size: 11px;
    padding: 5px 10px;
  }

  .page-nav-btn:hover .nav-tooltip {
    right: 45px;
  }

  /* 滚动按钮移动端样式 */
  .scroll-buttons {
    right: 0;
    bottom: 15px;
  }

  .scroll-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  /* 日历价格移动端 */
  .calendar-prices-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .calendar-price-card {
    padding: 10px 5px;
  }

  .calendar-price-date {
    font-size: 11px;
  }

  .calendar-price-amount {
    font-size: 14px;
  }

  /* 日历控件移动端优化 */
  .calendar-days {
    gap: 2px;
    padding: 4px;
  }

  .calendar-day {
    min-height: 50px;
    padding: 2px;
    aspect-ratio: auto;
  }

  .day-number {
    font-size: 12px;
    margin-bottom: 1px;
  }

  .day-price {
    font-size: 9px;
    line-height: 1.1;
    word-break: break-all;
    overflow: visible;
    white-space: normal;
    padding: 0 2px;
    max-width: 100%;
    text-overflow: clip;
  }

  /* 预订模态框中的日历 - 移动端优化 */
  .modal-content .calendar-day {
    min-height: 45px;
  }

  .modal-content .day-price {
    font-size: 8px;
  }

  /* 主页面日历容器 - 移动端优化 */
  #priceCalendarWrapper .calendar-day {
    min-height: 40px;
  }

  #priceCalendarWrapper .day-number {
    font-size: 10px;
  }

  #priceCalendarWrapper .day-price {
    font-size: 8px;
  }

  /* 小屏手机端主页签所在的detail-content不缩放 */
  .detail-content:has(.main-tabs-container) {
    transform: none;
    overflow: visible;
  }

  /* 小屏手机端增加行程块之间的间距 */
  .day-itinerary-block {
    margin-bottom: 3px !important;
    padding: 8px 12px !important;
  }

  .itinerary-days-continuous {
    margin-top: 0 !important;
  }

  .day-title {
    margin-bottom: 3px !important;
    padding-bottom: 3px !important;
  }

  /* 小屏手机端主页签一行显示 - 等间距分布 */
  .main-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    overflow-x: auto;
    width: 100%;
    min-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  /* 小屏手机端固定页签样式 */
  .itinerary-tabs-fixed {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 10px 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  /* 移动端左侧浮动导航栏 - 添加媒体查询，只在移动端应用 */
  @media (max-width: 768px) {
    .itinerary-tabs.itinerary-tabs-left {
      position: fixed;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 12px 6px;
      z-index: 1000;
      max-height: 60vh;
      overflow-y: auto;
      min-width: 55px;
      /* 移除背景和边框 */
      background: transparent !important;
      background-color: transparent !important;
      background-image: none !important;
      backdrop-filter: none !important;
      border: none !important;
      box-shadow: none !important;
      /* 默认隐藏，根据滚动位置控制显示 */
      opacity: 0;
      visibility: hidden;
      /* 添加过渡效果 */
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }
  }

  .main-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 10px 24px;
    font-size: 14px;
    text-align: center;
    min-width: 56px;
    border-radius: 24px;
    transition: all 0.3s ease;
  }

  .main-tab:hover {
    transform: translateY(-2px);
  }

  .main-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  }

  /* 小屏手机端行程页签保持一行,支持横向滚动 */
  .itinerary-tabs-top,
  .itinerary-tabs-bottom {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding: 10px 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .itinerary-tabs-top::-webkit-scrollbar,
  .itinerary-tabs-bottom::-webkit-scrollbar {
    height: 3px;
  }

  .itinerary-tabs-top::-webkit-scrollbar-thumb,
  .itinerary-tabs-bottom::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
  }

  .itinerary-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 12px;
  }

  /* 移动端左侧浮动导航按钮样式 */
  .itinerary-tabs.itinerary-tabs-left .itinerary-tab:hover {
    background: none;
    color: #666;
  }

  .itinerary-tabs.itinerary-tabs-left .itinerary-tab.active {
    background: none;
    color: #666;
  }

  /* 手机端右侧浮动导航栏 - 在产品详情页隐藏，因为固定导航栏已有这些按钮 */
  .mobile-float-nav {
    display: flex;
  }

  /* 手机端右侧浮动导航栏 */
  .mobile-float-nav {
    display: flex !important;
  }

  .mobile-float-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #ffffff;
  }

  .mobile-float-nav-item:hover,
  .mobile-float-nav-item:active {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
  }

  .mobile-float-nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .mobile-float-nav-text {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
  }

  .mobile-float-nav-phone {
    color: #ffd700;
    font-weight: 600;
  }

  /* 手机端侧边栏 - 显示二维码（非全屏弹窗样式） */
  .mobile-sidebar {
    position: fixed;
    right: 50%;
    top: 50%;
    transform: translate(50%, -50%);
    width: 260px;
    max-width: 80vw;
    height: auto;
    max-height: 80vh;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.98) 0%, rgba(118, 75, 162, 0.98) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 999998;
    padding: 25px 20px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-sidebar.active {
    display: flex;
    opacity: 1;
  }





  /* 遮罩层 */
  .mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999997;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-sidebar-overlay.active {
    display: block;
    opacity: 1;
  }

  /* 手机端侧边栏标题 */
  .mobile-sidebar-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
  }

  /* 手机端侧边栏二维码 */
  .mobile-sidebar-qrcode {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }

  /* 手机端侧边栏提示文字 */
  .mobile-sidebar-tip {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    margin-top: 20px;
    text-align: center;
    line-height: 1.6;
    font-weight: 500;
  }
}

/* 强制应用浮动导航栏样式（不受屏幕宽度限制） */
.mobile-float-nav {
  display: none !important;
  position: fixed !important;
  left: auto !important;
  right: 15px !important;
  bottom: 15px !important;
  flex-direction: column !important;
  gap: 8px !important;
  z-index: 9999 !important;
}

.mobile-float-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 3px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  color: #ffffff !important;
}

.mobile-float-nav-icon {
  font-size: 20px !important;
  margin-bottom: 4px !important;
}

.mobile-float-nav-text {
  font-size: 10px !important;
  font-weight: 500 !important;
  text-align: center !important;
  line-height: 1.2 !important;
}

.mobile-sidebar {
  width: 260px !important;
  max-width: 80vw !important;
  padding: 25px 20px !important;
  position: fixed !important;
  right: 50% !important;
  top: 50% !important;
  transform: translate(50%, -50%) !important;
  height: auto !important;
  max-height: 80vh !important;
  border-radius: 16px !important;
  z-index: 999998 !important;
}

.mobile-sidebar.active {
  display: flex !important;
  opacity: 1 !important;
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
  .hero-banner {
    height: 240px;
  }

  .slide-content h1 {
    font-size: 18px;
  }

  .slide-content p {
    font-size: 12px;
  }

  .cta-btn {
    padding: 8px 20px;
    font-size: 13px;
  }

  .section-header h2 {
    font-size: 20px;
    margin-bottom: 5px;
  }

  .section-header p {
    font-size: 13px;
    margin-bottom: 5px;
  }

  .section-header {
    margin-bottom: 10px !important;
  }

  .calendar-prices-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 超小屏幕主页签两行布局优化 - 增加宽度确保完整显示 */
  .main-tabs {
    gap: 6px;
    padding: 8px 12px;
    width: 100%;
    min-width: 100%;
  }

  .main-tab {
    padding: 6px 10px;
    font-size: 11px;
    min-width: fit-content;
  }

  /* 超小屏幕行程页签保持一行,支持横向滚动 */
  .itinerary-tabs-top,
  .itinerary-tabs-bottom {
    gap: 5px;
    padding: 8px 12px;
  }

  .itinerary-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* 桌面端隐藏手机底部按钮 */
@media (min-width: 769px) {
  .mobile-bottom-bar {
    display: none !important;
  }

  .site-footer {
    padding-bottom: 0;
  }

  .detail-content {
    padding-bottom: 25px;
  }

  .desktop-only {
    display: block;
  }

  /* 隐藏手机端浮动导航栏 */
  .mobile-float-nav {
    display: none !important;
  }

  /* 显示电脑端浮动导航栏 */
  .desktop-float-nav {
    display: flex !important;
  }

  /* 桌面端隐藏画廊产品名称 */
  .gallery-product-title {
    display: none !important;
  }
}

  /* 隐藏手机端侧边栏 */
  /* 侧边栏只在未激活时隐藏 */
  .mobile-sidebar:not(.active) {
    display: none !important;
  }

  .mobile-sidebar-overlay:not(.active) {
    display: none !important;
  }

  /* 激活状态强制显示 */
  .mobile-sidebar.active {
    display: flex !important;
    opacity: 1 !important;
    z-index: 999998 !important;
  }

  .mobile-sidebar-overlay.active {
    display: block !important;
    opacity: 1 !important;
    z-index: 999997 !important;
  }
}



/* 打印样式 */
@media print {
  .top-header,
  .main-nav,
  .scroll-buttons,
  .modal,
  .cta-btn {
    display: none !important;
  }

  .hero-banner {
    height: 300px;
  }

  body {
    font-size: 12pt;
  }

  .product-card,
  .news-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-banner {
    height: 250px;
  }

  .nav-menu {
    padding: 15px 0;
  }

  .section {
    padding: 20px 0;
  }

  .section.products-section {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .section-header {
    margin-bottom: 12px !important;
  }
}

/* 深色模式支持（系统偏好） */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #818cf8;
    --secondary-color: #a78bfa;
    --text-color: #e5e7eb;
    --light-text: #9ca3af;
    --bg-color: #1f2937;
    --white: #111827;
    --border-color: #374151;
  }

  .skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
  }
}


/* 减少动画（用户偏好） */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .product-card,
  .news-card,
  .category-card,
  .feature-card {
    animation: none;
    opacity: 1;
  }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000;
  }

  button,
  .cta-btn,
  .submit-btn,
  .product-btn,
  .book-btn {
    border: 2px solid currentColor;
  }
}
