/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Background */
body, html {
  width: 100%;
  height: 100%;
  font-family: sans-serif;
  background: linear-gradient(to bottom, #5a4170, #000000);
  overflow: hidden;
}

/* 主容器 */
.home-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  padding: 8vh 4vw;
}

/* H1：在 GIF 上方 */
.title-on-head {
  position: absolute;
  right: 4vw;
  top: 6vh; /* 控制其“浮在头部上方”的位置 */
  font-size: 130px;
  font-weight: 1000;
  color: white;
  z-index: 2;
  line-height: 1.05;
  text-align: right;
   font-family: "Notable", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* 左侧内容区域：h2, p, button */
.left-content {
  position: relative;
  z-index: 3;
  padding-left: 2vw;
  max-width: 90%;
  margin-top: 16vh; /* 保证与 h1 拉开差距 */
  color: white;
}

.left-content h2 {
  font-size: 130px;
  font-weight: 1000;
  line-height: 1.05;
  margin-bottom: 10px;
   font-family: "Notable", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.title-on-head,
.left-content h2 {
  font-family: "Notable", sans-serif;
}
.glitched {
  color: white;
  position: relative;
  text-shadow:
    1px 0 rgb(0, 255, 225),
    -1px 0 rgb(200, 132, 255);
  filter: contrast(1.4) saturate(1.3);
}

/* 可选更强烈像素化感（增强 AI 被识别的质感） */
@media (min-width: 768px) {
  .glitched {
    font-size: 130px;
    background-clip: text;
    -webkit-background-clip: text;
   
    filter: contrast(4.4) saturate(1.3) blur(0.4px);

    text-rendering: geometricPrecision;
  }
}

.italic {
  display: inline-block;
  transform: skewX(-8deg);
}


.left-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  margin-top: 15vh; 
}


/* GIF 图像 */
.bg-gif {
  position: absolute;
  right: 1vw;
  bottom: 3vh;
  width: 620px;
  height: auto;
  z-index: 1;
  pointer-events: none;

  mix-blend-mode: screen;
  opacity: 0.8;
  filter: brightness(2.2) contrast(1.1) saturate(1.3);
}
/* 左上角小GIF */
.bg-gif-left {
  position: absolute;
  top: 6vh;     /* 调整它与 h1 同高 */
  left: 1vw;     /* 靠左一点 */
  width: 200px;  /* 可调为 250~350px，约等于 H1 宽度 */
  height: auto;

  z-index: 1;    /* 放在 h1 后面但高于背景 */

  mix-blend-mode: screen;
  opacity: 0.6;
  filter: brightness(1.2) contrast(1.1) saturate(1.3);
  pointer-events: none;
}

/* 公共容器样式 */
.marquee-container {
  position: absolute;
  width: 100%;
  overflow: hidden;
  z-index: 10;
  height: 48px;
  background: linear-gradient(to right, hsl(267, 30%, 37%,0.4), hsl(266, 30%, 52%,0.3)); /* 紫色条 */
  display: flex;
  align-items: center;
}

.marquee-container.top {
  top: 0;
}

.marquee-container.bottom {
  bottom: 0;
}

/* 滚动内容轨道 */
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee-loop 12s linear infinite;
  flex-shrink: 0;
}

.marquee-track span {
   font-family: "Notable", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: hsl(0, 0%, 100%,0.6); /* 与背景对比 */
  padding-right: 2rem;
}

/* 平滑无断滚动 */
@keyframes marquee-loop {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 两边渐隐遮罩 */
.fade-overlay {
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 11;
  pointer-events: none;
}

.fade-overlay.left {
  left: 0;
  background: linear-gradient(to right, #5c427b, transparent);
}

.fade-overlay.right {
  right: 0;
  background: linear-gradient(to left, #5c427b, transparent);
}
/* 针对屏幕宽度小于 768px 的手机和平板 */
@media screen and (max-width: 768px) {
  .title-on-head {
    font-size: 56px;
    top: 8vh;
    right: 5vw;
  }

  .left-content h2 {
    font-size: 56px;
  }

  .left-content {
    padding-left: 4vw;
    margin-top: 20vh;
    max-width: 90%;
  }

  .marquee-track span {
    font-size: 16px;
  }

  .bg-gif {
    width: 280px;
    bottom: 2vh;
  }
}
@media screen and (min-width: 1200px) {
  /* 超大屏优化 */
}

.gif-orbit {
  position: absolute;
  right: 5vw;
  top: 6vh;
  width: 580px;
  height: 580px;
  border: 2px dashed rgba(255, 255, 255, 0.3); /* 可调颜色与线型 */
  border-radius: 50% 70%; /* 椭圆感 */
  transform: rotate(45deg);
  z-index: 2; /* 在 GIF 背后或前面，根据你想要的感觉调整 */

  animation: rotate-slow 12s linear infinite;
}
.start-transition .gif-orbit {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

@keyframes rotate-slow {
  0% { transform: rotate(45deg); }
  100% { transform: rotate(405deg); }
}
/* 添加过渡动画的基础样式 */

.start-transition .title-on-head {
  transform: translateX(100vw);
  opacity: 0;
  transition: all 1.8s ease-in-out;
}

.start-transition .left-content {
  transform: translateX(-100vw);
  opacity: 0;
  transition: all 1.8s ease-in-out;
}

.start-transition .bg-gif {
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%) scale(1.8); /* 更明显放大 */
  filter: brightness(1.2); /* 不再模糊，只提亮 */
  transition: all 2s ease-in-out;
}

.circle-button {
  position: absolute;
  top: 125%;
  left: 55%;
  transform: translate(-50%, 0); /* 水平居中但不再向上移 */
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: white;
  color: black;
  border: none;
  font-size: 28px;
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s ease, transform 0.3s ease;
}


.circle-button:hover {
  background-color: #ccc;
  transform: translateX(-50%) scale(1.1);
}

.arrow {
  display: inline-block;
  animation: bounce 1.2s infinite;
}

/* 向下箭头弹跳效果 */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
/* 圆形按钮的毛玻璃效果 */
.frosted-glass {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
}

/* 如果你希望按钮上文字颜色是渐变反差色，可以加 */
.frosted-glass .arrow {
  color: #fff;
}
.start-transition .circle-button,
.start-transition .marquee-container {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
