@font-face {
  font-family: 'LXGW WenKai';
  src: url('../LXGWWenKai-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  --bg: #ffffff;
  --text: #111827;
  --text-secondary: #6b7280;
  --en-bg: #ffffff;
  --en-text: #000000;
  font-family: "LXGW WenKai", -apple-system, BlinkMacSystemFont, "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background-color .35s ease, color .35s ease;
}

body.dark {
  --bg: #000000;
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --en-bg: #000000;
  --en-text: #ffffff;
}

.wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.title {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: .5em .8em;
}

.zh {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  white-space: nowrap;
  color: var(--text);
  transition: color .35s ease;
}

.en {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.2rem, 3.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  color: var(--en-text);
  background: var(--en-bg);
  clip-path: circle(var(--r, 0px) at var(--cx, 50%) var(--cy, 50%));
  transition: background-color .35s ease, color .35s ease;
  z-index: 2;
}

.spot {
  position: fixed;
  left: 0;
  top: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #ffffff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 3;
}

.time {
  position: relative;
  z-index: 1;
  text-align: center;
}

.date {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  letter-spacing: .08em;
  margin-bottom: .6rem;
  transition: color .35s ease;
}

.clock {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  color: var(--text);
  transition: color .35s ease;
}

.link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .06em;
  transition: color .35s ease;
}

.link-text {
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}

.link-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1.5px solid var(--text);
  color: var(--text);
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, transform .35s cubic-bezier(.22, .61, .36, 1);
}

.link:hover .link-arrow {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateX(3px);
}

.link:hover .link-text {
  transform: translateX(-4px);
}

.link svg {
  display: block;
}

.theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 4;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1.5px solid var(--text);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, transform .25s ease;
}

.theme-toggle:hover {
  background: var(--text);
  color: var(--bg);
  transform: rotate(25deg);
}

.theme-toggle .icon-sun {
  display: none;
}

body.dark .theme-toggle .icon-moon {
  display: none;
}

body.dark .theme-toggle .icon-sun {
  display: block;
}
