/* 页面整体布局和背景 */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui,
    -serif;
  background: radial-gradient(circle at top left, #ffe7f1, #e6f0ff 40%, #f7f7f7);
  color: #111827;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* 中心卡片区域，参考 Apple 风格的干净卡片 */
.card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-radius: 28px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
  padding: 28px 24px 24px;
  box-sizing: border-box;
}

.title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.08em;
}

/* 倒计时显示数字 */
.time-display {
  font-variant-numeric: tabular-nums;
  font-size: 56px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.08em;
  margin: 12px 0 4px;
}

/* 时间输入区域布局 */
.time-inputs {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 16px 0 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 90px;
}

.input-group label {
  font-size: 13px;
  color: #6b7280;
}

.input-group input {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 16px;
  outline: none;
  text-align: center;
  background-color: #f9fafb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.input-group input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  background-color: #ffffff;
}

/* 控制按钮区域 */
.controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.btn {
  min-width: 120px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.08s ease, color 0.15s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.btn.ghost {
  background-color: rgba(255, 255, 255, 0.9);
  color: #111827;
  border: 1px solid #e5e7eb;
}

.btn.ghost:hover {
  background-color: #f9fafb;
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.hint {
  margin: 0;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .card {
    border-radius: 24px;
    padding: 22px 18px 18px;
  }

  .time-display {
    font-size: 46px;
  }

  .btn {
    min-width: 108px;
  }
}

