/* 在线时间 - 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  color: #eee;
  overflow-x: hidden;
}

/* 导航栏 */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-bar a {
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  font-size: 14px;
}

.nav-bar a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.nav-bar a.active {
  background: #e94560;
  color: #fff;
}

.nav-bar a.nav-brand {
  font-weight: 700;
  font-size: 16px;
  margin-right: 8px;
  background: transparent;
  color: #fff;
}
.nav-bar a.nav-brand:hover {
  background: rgba(255, 255, 255, 0.1);
}

.fullscreen-btn {
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(233, 69, 96, 0.8);
  border: none;
  color: #fff;
  font-size: 14px;
  transition: all 0.3s;
}

.fullscreen-btn:hover {
  background: #e94560;
  transform: translateY(-2px);
}

/* 主内容区 */
.main-content {
  padding: 80px 20px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 数字时间显示 */
.digital-time {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
}

.date-display {
  font-size: clamp(1rem, 3vw, 1.5rem);
  opacity: 0.9;
  margin-bottom: 8px;
}

.site-brand {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.15em;
  margin-bottom: 32px;
}

/* 表盘容器 */
.clock-container {
  position: relative;
  width: min(380px, 90vw);
  height: min(380px, 90vw);
}

.clock-face {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #2a2a4a, #1a1a2e);
  border: 8px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* 表盘刻度 */
.clock-face::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #e94560;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  box-shadow: 0 0 10px #e94560;
}

.mark {
  position: absolute;
  width: 2px;
  background: rgba(255, 255, 255, 0.4);
  left: 50%;
  top: 50%;
  transform-origin: 50% 0;
  margin-left: -1px;
}

.mark.minute {
  height: 8px;
  margin-top: 8px;
}

.mark.hour {
  height: 14px;
  margin-top: 14px;
  width: 3px;
  background: rgba(255, 255, 255, 0.7);
}

.mark span {
  position: absolute;
  left: 50%;
  top: -24px;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* 指针 */
.hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: 50% 100%;
  transition: transform 0.05s cubic-bezier(0.4, 2.3, 0.3, 1);
}

.hand.hour-hand {
  width: 6px;
  height: 28%;
  margin-left: -3px;
  background: linear-gradient(to top, #e94560, #ff6b6b);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

.hand.minute-hand {
  width: 4px;
  height: 38%;
  margin-left: -2px;
  background: linear-gradient(to top, #4ecdc4, #44a08d);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(78, 205, 196, 0.5);
}

.hand.second-hand {
  width: 2px;
  height: 42%;
  margin-left: -1px;
  background: linear-gradient(to top, #ffd93d, #ffb347);
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(255, 217, 61, 0.6);
}

/* 全屏模式 */
body.fullscreen .nav-bar {
  display: none;
}

body.fullscreen .main-content {
  padding-top: 20px;
}

body.fullscreen .clock-container {
  width: min(90vmin, 500px);
  height: min(90vmin, 500px);
}
