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

/* 时间戳转换样式 */
.timestamp-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.current-time {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
}

.current-time h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.time-display {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.time-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.time-item label {
  font-weight: bold;
  opacity: 0.9;
}

.time-item span {
  font-family: monospace;
  font-size: 1.1rem;
}

.converter-section {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 15px;
}

.converter-section h3 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

/* 倒计时器样式 */
.countdown-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.countdown-setup {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 15px;
}

.countdown-setup h3 {
  color: #333;
  margin-bottom: 1.5rem;
  text-align: center;
}

.time-inputs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.time-input-group {
  flex: 1;
  text-align: center;
}

.time-input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #667eea;
}

.time-input-group input {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
}

.countdown-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.countdown-controls .btn {
  flex: 1;
  padding: 0.8rem;
  font-size: 0.9rem;
}

.countdown-display {
  text-align: center;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 15px;
  min-width: 80px;
}

.time-number {
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1;
}

.time-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.time-separator {
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
}

.countdown-finished {
  background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 15px;
  font-size: 1.3rem;
  font-weight: bold;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* 日期计算器样式 */
.date-calculator {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.calculator-section {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 15px;
}

.calculator-section h4 {
  color: #667eea;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.date-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.add-subtract-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.diff-result {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
}

.diff-item {
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  flex: 1;
}

.diff-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.diff-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

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

.timezone-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.timezone-item:hover {
  background: #e9ecef;
}

.timezone-name {
  font-weight: bold;
  color: #667eea;
}

.timezone-time {
  font-family: monospace;
  font-size: 1.1rem;
  color: #333;
}

/* 帮助内容 */
.help-content h4 {
  color: #667eea;
  margin: 1rem 0 0.5rem 0;
  font-size: 1rem;
}

.help-content h4:first-child {
  margin-top: 0;
}

.help-content p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* 相关工具 */
.related-tools {
  list-style: none;
}

.related-tools li {
  margin-bottom: 0.8rem;
}

.related-tools a {
  display: block;
  padding: 0.8rem;
  background: #f8f9fa;
  color: #667eea;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s;
}

.related-tools a:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tool-container {
        grid-template-columns: 1fr;
    }
  .timestamp-section {
    grid-template-columns: 1fr;
  }

  .countdown-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .time-inputs {
    flex-direction: column;
  }

  .countdown-timer {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .time-unit {
    min-width: 60px;
    padding: 1rem;
  }

  .time-number {
    font-size: 2rem;
  }

  .date-inputs {
    grid-template-columns: 1fr;
  }

  .add-subtract-inputs {
    grid-template-columns: 1fr;
  }

  .diff-result {
    flex-direction: column;
  }
}
