.clock-container {
  display: flex;
  justify-content: start;
  align-items: center;
  height: 200px;
  font-family: sans-serif;
  margin: 10px 0 0 0;
}

/* ===== 基本樣式：白天配色 ===== */
.clock {
  position: relative;
  width: 160px;
  height: 160px;
  border: 8px solid rgba(30, 45, 90, 1);
  border-radius: 50%;
  background: var(--clock-bg, rgba(255, 255, 255, 0.5));
  box-shadow:
    inset 7px 7px 10px rgba(200, 200, 256, 0.6),
    inset -7px -7px 10px rgba(0, 0, 20, 0.2),
    2px 2px 5px rgba(0, 0, 0, 0.4);

  /* 顏色變數（白天） */
  --hand-color: rgba(0, 0, 0, 0.6);
  --second-color: rgba(255, 0, 0, 0.75);
  --dot-color: rgba(80, 80, 80, 1);
  --label-color: #333;
}

/* ===== 夜間樣式 ===== */
.clock.is-night {
  background: var(--clock-bg, rgb(45, 60, 90));
  border: 8px solid rgba(25, 40, 75, 1);
  --hand-color:  rgb(255,255,255,0.75);
  --second-color: rgba(255, 80, 80, 0.9);
  --dot-color: rgba(255, 255, 255, 1);
  --label-color:  rgba(255, 255, 255,0.95);
}

/* ===== 共用部件 ===== */
.glass-overlay {
  top: 10px;
  left: 10px;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom;
  transform: rotate(0deg);
}

.hour {
  width: 6px;
  height: 50px;
  background: var(--hand-color);
  z-index: 3;
  border-radius: 10px;
}

.minute {
  width: 4px;
  height: 65px;
  background: var(--hand-color);
  z-index: 2;
  border-radius: 10px;
}

.second {
  width: 2px;
  height: 80px;
  background: var(--second-color);
  z-index: 1;
  border-radius: 10px;
}

.center-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--dot-color);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.number {
  position: absolute;
  width: 100%;
  height: 100%;
  text-align: center;
  transform: rotate(calc(30deg * var(--n)));
  font-size: 16px;
  font-weight: bold;
  color: var(--label-color);
}

.label {
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: var(--label-color);
}

.timezone {
  bottom: 60px;
}

.date {
  top: 60px;
}

/* ===== 手機版（維持顏色自動切換） ===== */
@media (max-width: 1024px) {
  .clock {
    width: 120px;
    height: 120px;
    border: 7px solid rgba(22, 88, 188, 0.66);
    border-radius: 50%;
    box-shadow:
      inset 1px 2px 1px rgba(200, 200, 256, 0.6),
      inset -1px -2px 1px rgba(0, 0, 20, 0.2),
      2px 2px 5px rgba(0, 0, 0, 0.4);
  }

  .hour {
    width: 6px;
    height: 45px;
    background: var(--hand-color);
  }

  .minute {
    width: 4px;
    height: 55px;
    background: var(--hand-color);
  }

  .second {
    width: 2px;
    height: 60px;
    background: var(--second-color);
  }

  .center-dot {
    width: 12px;
    height: 12px;
    background: var(--dot-color);
  }

  .number {
    font-size: 12px;
    color: var(--label-color);
  }

  .label {
    font-size: 9px;
    color: var(--label-color);
  }

  .timezone {
    bottom: 42px;
  }

  .date {
    top: 42px;
  }

  .glass-overlay {
    top: 7px;
    left: 7px;
    width: 100%;
    height: 100%;
  }
}
