/* 时间工具页面特定样式 */

/* 当前时间显示 */
.current-time-display {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.time-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

.time-item:last-child {
  margin-bottom: 0;
}

.time-label {
  font-weight: 600;
  min-width: 120px;
}

.time-value {
  font-family: "Courier New", monospace;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 6px;
  flex: 1;
}

/* 转换器部分 */
.converter-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  border-left: 4px solid #667eea;
}

.converter-section h4 {
  color: #333;
  margin-bottom: 15px;
  font-size: 18px;
}

/* 时间戳结果显示 */
.timestamp-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timestamp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e1e5e9;
}

.timestamp-label {
  font-weight: 600;
  min-width: 120px;
  color: #555;
}

.timestamp-value {
  font-family: "Courier New", monospace;
  font-size: 14px;
  background: #f1f3f4;
  padding: 5px 8px;
  border-radius: 4px;
  flex: 1;
}

/* 倒计时器样式 */
.time-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.time-input {
  width: 80px;
  padding: 10px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

.time-input:focus {
  border-color: #667eea;
  outline: none;
}

.countdown-display {
  text-align: center;
  margin: 30px 0;
}

.countdown-time {
  font-size: 48px;
  font-weight: 700;
  font-family: "Courier New", monospace;
  color: #667eea;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.countdown-status {
  font-size: 18px;
  font-weight: 600;
  color: #666;
  transition: color 0.3s ease;
}

.countdown-status.finished {
  color: #e74c3c;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* 进度条 */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #e1e5e9;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 20px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
  border-radius: 4px;
}

/* 时区转换样式 */
.form-select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  cursor: pointer;
}

.form-select:focus {
  border-color: #667eea;
  outline: none;
}

.timezone-results {
  margin-top: 20px;
}

.timezone-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timezone-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.timezone-item:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.timezone-name {
  font-weight: 600;
  color: #333;
  flex: 1;
}

.timezone-time {
  font-family: "Courier New", monospace;
  font-size: 16px;
  color: #667eea;
  font-weight: 600;
  margin-right: 10px;
}

/* 世界时钟样式 */
.world-clock {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clock-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #667eea;
}

.clock-city {
  font-weight: 600;
  color: #333;
}

.clock-time {
  font-family: "Courier New", monospace;
  font-weight: 600;
  color: #667eea;
}

/* 复制按钮样式 */
.btn-copy {
  background: #667eea;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-copy:hover {
  background: #5a67d8;
}

/* 快捷操作按钮 */
.quick-actions .btn {
  width: 100%;
  margin-bottom: 8px;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .time-inputs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .time-input {
    width: 60px;
  }

  .countdown-time {
    font-size: 36px;
  }

  .timezone-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .timezone-name {
    font-size: 14px;
  }

  .timezone-time {
    font-size: 14px;
  }

  .timestamp-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .timestamp-label {
    min-width: auto;
  }
}

/* 工具面板动画 */
.tool-panel {
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
