/* ===================================
   倒计时模块样式（适配平台设计系统）
   =================================== */

.timer-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.timer-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

/* 输入区 */
.input-section {
  margin-bottom: var(--space-lg);
}

.input-section label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.input-section select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast), background-color var(--transition-normal);
  margin-bottom: var(--space-md);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.input-section select:last-of-type {
  margin-bottom: 0;
}

.input-section select:focus {
  border-color: var(--brand-secondary);
}

.input-section select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 自定义时间输入 */
.custom-time-wrap {
  margin-bottom: var(--space-md);
}

.custom-time-wrap .hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

#custom-time {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast), background-color var(--transition-normal);
}

#custom-time:focus {
  border-color: var(--brand-secondary);
}

#custom-time:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 时间显示 */
.display-section {
  text-align: center;
  margin-bottom: var(--space-lg);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.time-display {
  font-size: 3.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--brand-primary);
  text-shadow: 0 0 20px rgba(233, 69, 96, 0.2);
  line-height: 1.2;
}

.phase-display {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  min-height: 1.4em;
}

/* 控制按钮 */
.controls {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.controls .btn {
  min-width: 80px;
}

@media (max-width: 480px) {
  .time-display {
    font-size: 2.75rem;
  }

  .timer-container {
    padding: var(--space-md);
  }
}
