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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(270deg, #0f2027, #203a43, #2c5364);
  background-size: 600% 600%;
  animation: gradientMove 15s ease infinite;
  color: #eee;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  overflow: hidden;
}

@keyframes gradientMove {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

.main-container {
  text-align: center;
  padding: 2rem;
  max-width: 720px;
  width: 90vw;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.no {
  color: #fff;
  margin-right: 0.4rem;
  user-select: text;
}

.strike-wrapper {
  position: relative;
  display: inline-block;
  padding: 0 0.2rem;
  max-width: 14ch;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: bottom;
  user-select: text;
}

.strike-text {
  color: #eee;
  position: relative;
  z-index: 1;
  letter-spacing: 0.1em;
  font-variant-east-asian: full-width;
  user-select: text;
  font-family: 'Segoe UI Mono', Consolas, monospace;
}

.strike-line {
  position: absolute;
  top: 55%;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff3b3b, #d80000, #ff3b3b);
  box-shadow: 0 0 6px #d80000aa;
  transform: translateY(-50%);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
}

.cursor {
  display: inline-block;
  width: 1ch;
  color: #f55;
  animation: blink 1s step-end infinite;
  user-select: none;
  margin-left: 0.15rem;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* 按钮样式 */
button {
  cursor: pointer;
  background: linear-gradient(135deg, #d80000, #ff3b3b);
  border: none;
  padding: 0.7em 1.6em;
  border-radius: 9999px;
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  box-shadow: 0 6px 12px rgba(255, 59, 59, 0.5);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.15s ease;
  user-select: none;
}

button:hover,
button:focus {
  background: linear-gradient(135deg, #ff3b3b, #d80000);
  box-shadow: 0 8px 16px rgba(255, 59, 59, 0.8);
  outline: none;
  transform: scale(1.05);
}

/* 弹窗样式 */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  max-width: 420px;
  box-shadow: 0 0 30px rgba(255, 59, 59, 0.7);
  color: #eee;
  text-align: center;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.modal-content h2 {
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.75rem;
}

.modal-content p {
  line-height: 1.5;
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
}

.modal-content button {
  background: #d80000;
  padding: 0.6em 1.4em;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: none;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.modal-content button:hover,
.modal-content button:focus {
  background: #ff3b3b;
  outline: none;
  transform: scale(1.05);
}

/* 响应式 */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .modal-content {
    padding: 1.4rem 1.8rem;
    max-width: 90vw;
  }
}
