/* 工作倒计时样式修复 */
/* 提高选择器特异性 */
html body .countdown-grid .countdown-item.work-countdown p.time {
  font-size: clamp(1.7rem, 2.5vw, 2.4rem) !important; /* 略微增加电脑端字体大小 */
  line-height: 1.2 !important;
  color: white !important; /* 时和分设置为白色 */
  text-shadow: none !important;
}

/* 设置1号位卡片的时和分的颜色为白色 */
html body .countdown-grid .countdown-item.work-countdown p.time {
  color: white !important;
}

/* 明确设置秒数为红色 */
html body .countdown-grid .countdown-item.work-countdown p.time .seconds-tens,
html body .countdown-grid .countdown-item.work-countdown p.time .seconds-ones {
  color: #ff0000 !important; /* 明确设置为红色 */
}

/* 设置"休息中"的样式为柔和的绿色 */
html body .countdown-grid .countdown-item.work-countdown p.time.resting {
  color: #4BE8A4 !important; /* 薄荷绿，更柔和的色调 */
  text-shadow: 0 0 5px rgba(75, 232, 164, 0.4) !important; /* 调整发光效果 */
  font-weight: bold !important;
}

/* 修复音乐按钮在移动端的定位问题 */
@media screen and (max-width: 414px) {
  html body #music-btn {
    position: absolute !important; /* 改为绝对定位，随页面滚动 */
    top: 20px !important;
    right: 15px !important;
    z-index: 999 !important;
  }
  
  html body .countdown-grid .countdown-item.work-countdown p.time,
  html body .countdown-grid #work-countdown-item p.time {
    font-size: 1.6rem !important; /* 大幅减小移动端字体大小 */
    line-height: 1.1 !important;
    font-weight: 600 !important;
    margin: 5px 0 !important;
    color: white !important; /* 设置为白色 */
    text-shadow: none !important;
  }
  
  /* 设置移动端"休息中"的样式 */
  html body .countdown-grid .countdown-item.work-countdown p.time.resting,
  html body .countdown-grid #work-countdown-item p.time.resting {
    color: #4BE8A4 !important; /* 薄荷绿，更柔和的色调 */
    text-shadow: 0 0 5px rgba(75, 232, 164, 0.4) !important; /* 调整发光效果 */
    font-weight: bold !important;
    font-size: 2.2rem !important; /* 略微增大字体 */
  }
  
  /* 单独调整秒数的字体大小和颜色 */
  html body .countdown-grid .countdown-item.work-countdown p.time .seconds-tens,
  html body .countdown-grid .countdown-item.work-countdown p.time .seconds-ones {
    font-size: 1.6rem !important; /* 与时间其他部分保持一致 */
    color: #ff0000 !important; /* 明确设置为红色 */
  }

  html body .countdown-grid .countdown-item.work-countdown {
    padding: 10px !important;
    min-height: 120px !important; /* 减小卡片高度 */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    background-color: transparent !important;
  }
} 