@import url("../../../assets/conversion-workbench.css");

:root {
  --tool-accent: #0ea5e9;
  --tool-accent-strong: #0284c7;
  --tool-accent-soft: #e0f2fe;
}

.tool-card-soft {
  border: 1px solid var(--tool-border);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 34px rgba(34, 64, 122, 0.08);
  padding: 20px;
}

.beijing-stage {
  display: grid;
  grid-template-columns: minmax(200px, 0.78fr) minmax(280px, 1fr) minmax(240px, 0.82fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid #dbeaf5;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 30%),
    linear-gradient(180deg, #ecfeff 0%, #dff3ff 100%);
}

.time-stage-card .converter-actions {
  margin-top: 18px;
}

.clock-card,
.digital-card,
.meta-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
}

.analog-clock {
  display: grid;
  place-items: center;
  min-height: 280px;
}

.clock-face {
  position: relative;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: #fff;
  border: 10px solid #0ea5e9;
  box-shadow: inset 0 0 0 8px #e0f2fe;
}

.clock-mark {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: #0f172a;
  transform-origin: 50% 95px;
  transform: translateX(-50%) rotate(calc(var(--mark-index) * 30deg));
}

.clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: bottom center;
  border-radius: 999px;
}

.clock-hand.hour {
  width: 6px;
  height: 56px;
  background: #0f172a;
}

.clock-hand.minute {
  width: 4px;
  height: 80px;
  background: #334155;
}

.clock-hand.second {
  width: 2px;
  height: 92px;
  background: #f97316;
}

.clock-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0ea5e9;
  transform: translate(-50%, -50%);
}

.city-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #0369a1;
  font-size: 14px;
}

.digital-time {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.digital-time span,
.digital-time b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 88px;
  border-radius: 22px;
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
}

.digital-time b {
  min-width: auto;
  min-height: auto;
  background: transparent;
  color: #0f172a;
  box-shadow: none;
}

.digital-date {
  margin-top: 18px;
  font-size: 20px;
  color: #0369a1;
}

.meta-card {
  display: grid;
  gap: 12px;
}

.meta-line {
  display: grid;
  gap: 6px;
}

.meta-line span {
  color: #64748b;
  font-size: 13px;
}

.meta-line strong {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.6;
}

.time-meta {
  margin-top: 16px;
}

.time-meta .converter-stat strong {
  font-size: 16px;
  line-height: 1.5;
  word-break: break-all;
}

@media (max-width: 1100px) {
  .beijing-stage {
    grid-template-columns: 1fr;
  }
}
