/* src/css/base.css */

/* 基礎樣式 */

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: transparent;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.container {
  text-align: center;
  background: rgb(255 255 255 / 8%);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 25px 50px rgb(0 0 0 / 20%);
  border: 1px solid rgb(255 255 255 / 15%);
  max-width: 95%;
  width: 400px;
  position: relative;
  z-index: 10;
}

h1 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 500;
  text-shadow: 0 2px 10px rgb(0 0 0 / 20%);
}

.countdown {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffd32a;
  margin: 1.2rem 0;
  text-shadow: 0 0 25px rgb(255 211 42 / 70%);
  position: relative;
  font-family: 'Arial Rounded MT Bold', 'Helvetica Rounded', Arial, sans-serif;
}

.countdown::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffd32a, transparent);
  border-radius: 2px;
}

.message {
  color: rgb(255 255 255 / 85%);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.target-url {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  color: #70a1ff;
  word-break: break-all;
}

.progress-container {
  width: 100%;
  height: 6px;
  background: rgb(255 255 255 / 15%);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 1.5rem;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #ffa502);
  border-radius: 3px;
  width: 100%;
  animation: progress 5s linear forwards;
}

@keyframes progress {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

.loading-dots {
  display: inline-flex;
  gap: 5px;
  margin-left: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  background: #70a1ff;
  border-radius: 50%;
  animation: bounce 1.4s ease-in-out infinite both;
}

.dot:nth-child(1) {
  animation-delay: -0.32s;
}

.dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

.footer {
  margin-top: 1.5rem;
  color: rgb(255 255 255 / 60%);
  font-size: 0.9rem;
}
