/* Entry Mask Styles - 进入遮罩动画样式 */

#entry-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, background 0.3s ease;
}

/* 暗色模式下的遮罩背景 */
[data-bs-theme="dark"] #entry-mask {
  background: rgba(20, 20, 20, 0.7);
}

.typing-container {
  text-align: center;
  max-width: 80%;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1.8rem;
  line-height: 1.6;
  color: var(--bs-body-color, #212529);
}

/* 暗色模式下的文字颜色 */
[data-bs-theme="dark"] .typing-container {
  color: var(--bs-body-color, #dee2e6);
}

.typing-text {
  margin-bottom: 0.5rem;
  white-space: pre-wrap;
  text-align: center;
  overflow: hidden;
}

.typing-author {
  font-size: 1.2rem;
  color: inherit;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0.8;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  background-color: currentColor;
  margin-left: 2px;
  animation: blink 1s infinite;
}

/* 固定在底部的进度条样式 */
.progress-container {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 300px;
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  overflow: hidden;
  transition: background 0.3s ease;
}

/* 暗色模式下的进度条背景 */
[data-bs-theme="dark"] .progress-container {
  background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: currentColor;
  border-radius: 3px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0.8;
}

/* 进度条光泽效果 */
.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 2s infinite;
}

/* 暗色模式下的光泽效果调整 */
[data-bs-theme="dark"] .progress-bar::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

/* 动画定义 */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(5px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* body状态类 */
body.mask-active {
  overflow: hidden;
  height: 100vh;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .typing-container {
    font-size: 1.4rem;
  }
  
  .typing-author {
    font-size: 1rem;
  }
  
  .progress-container {
    max-width: 250px;
  }
}