
/* 全局样式 */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(120deg, #a1c4fd, #c2e9fb);
  background-size: 400% 400%;
  animation: gradientBackground 10s ease infinite;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

header {
  background-color: rgba(255, 255, 255, 0.8);
  color: #4caf50;
  padding: 20px 10px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

#progress {
  width: 80%;
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  margin: 20px 0;
  position: relative;
}

#progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, #4caf50, #81c784);
  border-radius: 5px;
  transition: width 0.3s ease-in-out;
}

#progress-percentage {
  margin-top: 10px;
  font-size: 1rem;
  color: #4caf50;
}

#live-time {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #4caf50;
  text-align: center;
}

#grid {
  display: grid;
  grid-template-columns: repeat(5, 60px);
  gap: 10px;
  justify-content: center;
  margin: 0 auto;
}

.cell {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  color: #333;
  font-size: 20px;
  cursor: pointer;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.cell:hover {
  background-color: #e0f7fa;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.cell:active {
  transform: scale(0.95);
}

.cell.hidden {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

footer {
  background-color: rgba(255, 255, 255, 0.8);
  color: #666;
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

#restart-button {
  margin-top: 10px;
  padding: 10px 20px;
  background: #4caf50;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#restart-button:hover {
  background: #45a049;
}
