:root {
  --bg: rgba(255, 255, 255, 1);
  --text: rgba(34, 34, 34, 1);
  --muted: #5fa3a3;
  --line: rgba(224, 224, 224, 0.85);
  --accent: #5fa3a3;
  --accent-soft: #a3dada;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

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

/* ===== 基本樣式：白天配色 ===== */
.clock {
  position: relative;
  width: 160px;
  height: 160px;
  border: 8px solid #5fa3a3;
  border-radius: 50%;
  background: var(--clock-bg, rgba(255, 255, 255, 1));
  /* 顏色變數（白天） */
  --hand-color: #5fa3a3a3;
  --second-color: rgba(255, 0, 0, 0.75);
  --dot-color: #5fa3a3;
  --label-color: #5fa3a3;
}

/* ===== 夜間樣式 ===== */
.clock.is-night {
  background: var(--clock-bg, rgb(42, 72, 72));
  --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);
  transition: all 0.3s ease;
}

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

.minute {
  width: 4px;
  height: 60px;
  background: var(--hand-color);
  z-index: 2;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.second {
  width: 2px;
  height: 70px;
  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;
  left: 50%;
  width: calc(100% - 16px);
  margin: 0;
  transform: translateX(-50%);
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: var(--label-color);
  background: none;
  pointer-events: none;
}

.timezone {
  bottom: 50px;
}

.date {
  top: 50px;
}

.timelogo {
  bottom: 18px;
}

.timelogo img {
  height: 15px;
}

.IDL{
  font-size: 1rem;
  text-align: center;
}

.digitalClock {
  font-family: "DotGothic16", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin:0 0 18px 0;
  white-space: nowrap;
  text-align: center;
}

/* ===== 手機版（維持顏色自動切換） ===== */
@media (max-width: 720px) {
  .small-content {
    padding: 0.5rem 0.25rem;
  }

  /* .small-content h2 {
    margin: 0.4rem 0.2rem;
    font-size: clamp(0.75rem, 2.8vw, 1.1rem);
    line-height: 1.25;
    text-align: center;
  } */

  .clock-container {
    height: auto;
    margin: 3px 2px 0 2px;
  }

  .clock {
    box-sizing: border-box;
    width: clamp(100px, 30vw, 180px);
    height: clamp(100px, 30vw, 180px);
    border: clamp(5px, 1.2vw, 8px) solid var(--muted);
    border-radius: 50%;
  }

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

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

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

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

  .number {
    font-size: 12px;
  }

  .label {
    font-size: 10px;
  }

  .timezone {
    bottom: 32%;
  }

  .date {
    top: 32%;
  }

  .timelogo {
    bottom: 12%;
  }

  .timelogo img {
    height: clamp(8px, 2.5vw, 12px);
  }
  .indexDC{
    padding: 0;
    margin: 0;
    font-size: 0.75rem;
  }
}
