body, html, #app {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;  /* 白色背景 */
}



#app {
  height: 100%;
  font-family: "Montserrat", serif;
}

#app a {
  text-decoration: none;
  color: #fff;
}
/* 最强：手机 <= 768px 隐藏所有 canvas，及常见 wrapper */
@media (max-width: 768px) {
  /* 隐藏所有 canvas */
  canvas {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* 如果你希望同时移除包含容器（不占位） */
  .slider-canvas-wrapper,
  .slider-canvas-wrapper * {
    display: none !important;
  }

  /* 保险起见：如果 bootstrap 的 .carousel-item 覆盖了布局，也强制不占位 */
  .carousel-item {
    min-height: 0 !important;
    padding: 0 !important;
  }
}

  
/* 轮播封面 Canvas 容器 */
.slider-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 650px;  /* 可自行调整 */
  background: #ffffff; /* 关键：白色背景 */
  overflow: hidden;
}

/* Canvas 不再覆盖全屏，只在 wrapper 内 */
#canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 文字居中显示 */
.hero {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #000; /* 白底改黑字 */
  z-index: 10;
}

h1, h2, p {
  margin: 0;
  padding: 0;
  color: #000;
  text-shadow: none; /* 白底不需要黑影 */
  user-select: none;
}

h1 {
  font-size: 80px;
  font-weight: 700;
  text-transform: uppercase;
}

h2 {
  font-size: 60px;
  font-weight: 500;
  text-transform: uppercase;
}

/* 空白轮播页 */
.empty-slide {
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: #ffffff;
}

/* 顶部导航与主菜单公共修复 */
.nav-item {
  position: relative;
}

/* 下拉菜单效果 */
.nav-item .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: white;
  border: 1px solid #e9ecef;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  z-index: 1001;

  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: all 0.3s ease;

  margin: 0;
  padding: 0.5rem 0;
  display: block;
  pointer-events: none;
}

/* 鼠标悬停时显示 */
.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* 防止抖动 - 扩展 hover 区域 */
.nav-item::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
  display: none;
}

.nav-item:hover::after {
  display: block;
}

/* 下拉菜单项 */
.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.5rem 1.5rem;
  color: #212529;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #0d6efd;
}

