* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

header {
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px;
  min-width: 1200px;
  margin: 20px auto;
  background-color: #fff;
  padding: 15px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px;
  min-width: 1200px;
  min-height: 950px;
  margin: auto;
  display: flex;
  flex: 1;
}

.sidebar {
  width: 320px;
  background-color: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-right: 20px;
}

.clock-container {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--clock-bg, #ffffff);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
}



.clock {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  position: relative;
  background-color: #fff;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.clock-face {
  position: relative;
  width: 100%;
  height: 100%;
  transform: translateY(-3px);
}

.hand {
  width: 50%;
  height: 6px;
  background: #333;
  position: absolute;
  top: 50%;
  transform-origin: 100%;
  transform: rotate(90deg);
  transition: all 0.05s;
  transition-timing-function: cubic-bezier(0.1, 2.7, 0.58, 1);
  border-radius: 3px;
}

.hour-hand {
  height: 8px;
  width: 35%;
  left: 15%;
}

.min-hand {
  height: 6px;
  width: 45%;
  left: 5%;
}

.second-hand {
  height: 3px;
  background: #e74c3c;
}

.center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: #333;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.clock-number {
  position: absolute;
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
}

.clock-number span {
  display: inline-block;
  position: absolute;
  transform: translate(-50%, -50%);
}

/* 时钟数字位置 - 精确调整 */
.clock-number span:nth-child(1) {
  top: 8%;
  left: 50%;
}

/* 12 */
.clock-number span:nth-child(2) {
  top: 50%;
  left: 93%;
}

/* 3 */
.clock-number span:nth-child(3) {
  top: 92%;
  left: 50%;
}

/* 6 */
.clock-number span:nth-child(4) {
  top: 50%;
  left: 7%;
}

/* 9 */

/* 右侧数字位置 */
.clock-number span:nth-child(5) {
  top: 13%;
  left: 71%;
}

/* 1 */
.clock-number span:nth-child(7) {
  top: 28.5%;
  left: 87%;
}

/* 2 */
.clock-number span:nth-child(9) {
  top: 72%;
  left: 87%;
}

/* 4 */
.clock-number span:nth-child(11) {
  top: 87%;
  left: 71%;
}

/* 5 */

/* 左侧数字位置 */
.clock-number span:nth-child(6) {
  top: 13%;
  left: 29.5%;
}

/* 11 */
.clock-number span:nth-child(8) {
  top: 28.5%;
  left: 14%;
}

/* 10 */
.clock-number span:nth-child(10) {
  top: 72%;
  left: 13.5%;
}

/* 8 */
.clock-number span:nth-child(12) {
  top: 87%;
  left: 29.5%;
}

/* 7 */



/* 时钟刻度样式 */
.clock-marks {
  position: absolute;
  width: 100%;
  height: 100%;
}

.mark {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 12px;
  background: #666;
  transform-origin: 50% 250px;
  margin-left: -1px;
}

.mark.hour-mark {
  width: 4px;
  height: 20px;
  background: #333;
}

.controls {
  margin-bottom: 30px;
}

h2 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #333;
}

.color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.color-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
}

.color-option.selected {
  border-color: #333;
}

.custom-color {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.custom-color input {
  margin-right: 10px;
  width: 100px;
  height: 30px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
}

button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #45a049;
}

.fullscreen-btn {
  background-color: #3498db;
}

.fullscreen-btn:hover {
  background-color: #2980b9;
}

.description {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.description h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.description p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 10px;
}

.footer {
  text-align: center;
  padding: 25px;
  color: #7f8c8d;
  border-top: 1px solid #eaeef2;
}

/* 全屏样式 */
body.fullscreen {
  padding: 0;
}

body.fullscreen header,
body.fullscreen .sidebar,
body.fullscreen .nav_box,
body.fullscreen #st-2,
body.fullscreen .wwads-cn{
  display: none;
}

body.fullscreen .clock-container{
  box-shadow:none;
}

body.fullscreen .container {
  padding: 0;
}

body.fullscreen .clock-container {
  border-radius: 0;
  height: 100vh;
}

body.fullscreen .clock {
  width: 700px;
  height: 700px;
}

body.fullscreen .mark {
  transform-origin: 50% 350px;
}

.digital-clock {
  position: absolute;
  bottom: 50px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
}
