@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@400;600&display=swap');

:root {
  --bg-light: #f5f5f7;
  --bg-dark: #000000;
  --text-light: #1d1d1f;
  --text-dark: #f5f5f5;
  --card-light: #ffffffcc;
  --card-dark: #1c1c1ecc;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Noto Sans TC', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-light);
  transition: all 0.3s ease;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

body.dark {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

.container {
  background: var(--card-light);
  padding: 3rem 4rem;
  border-radius: 28px;
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(20px);
  min-width: 340px;
  transition: all 0.3s ease;
}

body.dark .container {
  background: var(--card-dark);
}

.title {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.clock {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.theme-toggle {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .container {
    padding: 2rem;
  }

  .title {
    font-size: 1.75rem;
  }

  .clock {
    font-size: 1.5rem;
  }
}
