/* --- 全局变量与基础样式 --- */
:root {
  --color-primary: #c084fc;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
}
body {
  font-family: "Outfit", sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #050505;
} /* --- 背景动画效果 --- */
.animated-bg {
  background: linear-gradient(-45deg, #2c0e37, #1e1b4b, #0b1023, #2c0e37);
  background-size: 400% 400%;
  animation: gradientBg 20s ease infinite;
  position: absolute;
  inset: 0;
  z-index: -2;
}
@keyframes gradientBg {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 漂浮的光斑 (Blobs) */
.blob {
  position: absolute;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.5;
  animation: floatBlob 20s infinite alternate;
}
.blob-1 {
  top: 10%;
  left: 20%;
  width: 300px;
  height: 300px;
  background: #6d28d9;
  border-radius: 40% 60% 70% 30%;
}
.blob-2 {
  bottom: 20%;
  right: 10%;
  width: 350px;
  height: 350px;
  background: #1e40af;
  border-radius: 60% 40% 30% 70%;
  animation-delay: -5s;
}
.blob-3 {
  bottom: 10%;
  left: 30%;
  width: 200px;
  height: 200px;
  background: #db2777;
  border-radius: 30% 70% 70% 30%;
  animation-delay: -10s;
}

@keyframes floatBlob {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(30px, 50px) rotate(20deg);
  }
}

/* 星星粒子 */
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: var(--opacity);
    transform: scale(1);
  }
}

/* --- 开场动画层 (已加速) --- */
#intro-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #050505;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.8s;
}
.intro-text {
  font-size: 3rem;
  font-weight: 200;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1em;
  margin-right: -1em;
  opacity: 0;
  filter: blur(15px);
  animation: textReveal 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards; /* 加速到 1.2s */
}
@media (min-width: 768px) {
  .intro-text {
    font-size: 5rem;
  }
}
.intro-line {
  width: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary),
    transparent
  );
  margin-top: 2rem;
  box-shadow: 0 0 15px var(--color-primary);
  opacity: 0;
  animation: lineExpand 1.2s ease-in-out 0.3s forwards; /* 加速到 1.2s */
}
@keyframes textReveal {
  0% {
    opacity: 0;
    letter-spacing: 0.2em;
    filter: blur(15px);
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    letter-spacing: 1em;
    filter: blur(0);
    transform: scale(1);
  }
}
@keyframes lineExpand {
  0% {
    width: 0;
    opacity: 0;
  }
  40% {
    width: 150px;
    opacity: 1;
  }
  80% {
    width: 150px;
    opacity: 0.5;
  }
  100% {
    width: 0;
    opacity: 0;
  }
}

/* --- 主界面组件 --- */
#main-wrapper {
  opacity: 0;
  transform: scale(1.1);
  filter: blur(10px);
  transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 玻璃拟态面板 */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* 输入框样式 */
.glass-input-wrapper {
  position: relative;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.glass-input-wrapper:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}
.glass-input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(192, 132, 252, 0.5);
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.2);
}
.glass-input {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  width: 100%;
}
.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 200;
}

/* 标签页 (Tabs) */
.tab-active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}
.tab-inactive {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid transparent;
}
.tab-inactive:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
}

/* 动画类 */
.float-anim {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.input-entrance {
  opacity: 0;
  animation: inputSlideUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 1.8s; /* 同步加速 */
}
@keyframes inputSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 滚动条美化 */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 名言字体 */
.font-serif {
  font-family: "Noto Serif SC", serif;
}
