/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Roboto', system-ui, -apple-system, sans-serif;
  background: linear-gradient(145deg, #2b3a4f 0%, #1e2c3a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card {
  background: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(16px);
  background: #fef9e7;
  border-radius: 48px;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5), inset 0 2px 8px rgba(255, 255, 200, 0.6);
  padding: 32px 28px 28px;
  width: 100%;
  text-align: center;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 215, 130, 0.5);
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #3e2c1b;
  margin-bottom: 6px;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 rgba(255, 210, 120, 0.5);
}

.subtitle {
  color: #6b5a44;
  font-size: 1rem;
  margin-bottom: 28px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* 计时器数字 */
.timer-display {
  font-size: 5.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-family: 'Courier New', 'Fira Code', monospace;
  background: #1e2c2e;
  color: #f7e382;
  padding: 18px 10px;
  border-radius: 60px;
  margin: 10px 0 30px;
  letter-spacing: 4px;
  text-shadow: 0 0 10px #ffbb2e;
  box-shadow: inset 0 -6px 0 #0f1a1a, 0 12px 20px rgba(0,0,0,0.4);
  background: radial-gradient(circle at 20% 20%, #2f4a4a, #0f2020);
  border: 2px solid #c8a84c;
  word-break: break-word;
}

/* 按钮区域 */
.button-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px 0 22px;
}

.btn {
  border: none;
  background: white;
  padding: 14px 26px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #f3e5cb;
  color: #3b2e1a;
  box-shadow: 0 6px 0 #b49b6b, 0 8px 14px rgba(0,0,0,0.3);
  border: 1px solid #dbb45c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 90px;
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #8b744b, 0 6px 10px rgba(0,0,0,0.3);
  background: #ecd598;
}

.btn:disabled {
  opacity: 0.5;
  transform: translateY(2px);
  box-shadow: 0 2px 0 #7b6a4a, 0 5px 8px rgba(0,0,0,0.3);
  pointer-events: none;
  filter: grayscale(0.2);
}

.btn-start {
  background: #7bb85a;
  color: white;
  border-color: #4a702e;
  box-shadow: 0 6px 0 #3b5722, 0 8px 14px rgba(0,0,0,0.3);
}

.btn-pause {
  background: #e6b448;
  color: #2d2410;
  border-color: #b57c20;
}

.btn-reset {
  background: #cfcfcf;
  color: #2d2d2d;
  border-color: #8f8f8f;
}

.btn-sound-test {
  background: #dfd7c4;
  color: #3b3220;
  padding: 10px 20px;
  font-size: 0.95rem;
  box-shadow: 0 4px 0 #a39476, 0 5px 10px rgba(0,0,0,0.3);
  min-width: auto;
  flex: 0 1 auto;
}

.sound-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0 12px;
}

.status-badge {
  background: #2e3824;
  color: #e7d7a0;
  padding: 8px 18px;
  border-radius: 28px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.4px;
  box-shadow: inset 0 1px 5px rgba(0,0,0,0.5);
}

.rhythm-note {
  color: #5b4e36;
  font-size: 0.9rem;
  margin-top: 10px;
  font-style: italic;
  background: rgba(236, 218, 172, 0.45);
  border-radius: 20px;
  padding: 8px 14px;
  display: inline-block;
}

.footer {
  margin-top: 24px;
  color: #cbbf9c;
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.9;
}

/* 响应式调整 */
@media (max-width: 420px) {
  .timer-display {
    font-size: 4.2rem;
    padding: 14px 8px;
  }
  .btn {
    padding: 12px 18px;
    font-size: 1rem;
  }
  .title {
    font-size: 2rem;
  }
}