/* 一、全局基础样式 */
::selection {
  background: #E6E6FA;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Scada-Regular;
}

html {
  scroll-behavior: smooth;
}

body {
  margin-top: 100px;
  overflow-x: visible;
  -ms-overflow-style: none;
  background: #f8f9fa;
  /* 继承原横屏滚动的body背景，避免背景冲突 */
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  /* 固定背景层级最低，不影响滚动容器 */
  background: url(https://static.igem.wiki/teams/5911/home/bg1.webp) center/cover no-repeat;
}

/*-------------------底层卡片----------------------------------------------------------------------------------*/
.di-yi-ceng {
  --jiao: 26px;
  --liu-hai: 2.25rem;
  position: relative;
  width: 100%;
  min-height: calc(100vh + 600px);
  margin-top: 0;
  /* 移除负margin，避免向上偏移遮挡横屏滚动容器 */
  background: rgba(125, 125, 125, 0.125);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
  border-radius: var(--jiao);
  padding: calc(var(--liu-hai) + 2rem) 0 4rem;
  z-index: 1;
  /* 层级低于横屏滚动容器，不遮挡 */
  margin-bottom: 40px;
}

/* ========= 全局粒子 ========= */
.particles-box {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(183, 148, 246, .6);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(183, 148, 246, .8);
  animation: float 15s infinite linear;
}

@keyframes float {
  from {
    transform: translateY(100vh) translateX(0);
  }

  to {
    transform: translateY(-10vh) translateX(100px);
  }
}