﻿.timer_floatPanel{
  width:320px;
  background:#fff;
  border-radius:12px;
  box-shadow:0 8px 30px rgba(0,0,0,0.2);
  position:fixed;
  top:10%; left:10%;
  user-select:none;
  overflow:hidden;
  display:none;
  transition: height 0.3s ease;
  z-index:999;
}
.timer_floatPanel.show{display:block;}

.timer_floatPanel.minimized {
  height: 32px !important;
  width: auto !important;
  min-width: unset !important;
  max-width: 320px;
}
.timer_floatPanel.expanding {
  animation: timer_expandPanel 0.3s ease forwards;
}
.timer_floatPanel.folding {
  animation: timer_foldPanel 0.3s ease forwards;
}
@keyframes timer_expandPanel {
  from { height:32px; }
  to { height:500px; }
}
@keyframes timer_foldPanel {
  from { height:500px; }
  to { height:32px; }
}

.timer_floatHead{
  padding:6px 10px;
  background:#007bff;
  color:#fff;
  font-size:12px;
  cursor:move;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  transition:all 0.3s;
  height:32px;
  white-space: nowrap;
}
#timer_countText {
  flex:1;
  padding:2px 4px;
  display: flex;
  align-items:center;
  gap:4px;
}
.timer_headRight{
  display:flex;
  align-items:center;
  gap:6px;
}
.timer_toggleBtn{
  font-size:12px;
  cursor:pointer;
  padding:0 2px;
  user-select:none;
}
.timer_headerAdd{
  font-size:12px;
  font-weight:bold;
  cursor:pointer;
  padding:0 2px;
}

.timer_floatBody{
  max-height:400px;
  overflow-y:auto;
  padding:10px;
}
.timer_floatPanel.minimized .timer_floatBody{
  display:none !important;
}

@keyframes timer_expireFlash {
  0%,100% { background:#fff; box-shadow:none; }
  10% { background:#FFFF00; box-shadow:0 0 12px #FFFF99; }
  20% { background:#fff; box-shadow:none; }
  30% { background:#FFFF00; box-shadow:0 0 12px #FFFF99; }
  50% { background:#FFFF00; box-shadow:0 0 18px #FFFF99; }
  70% { background:#fff; box-shadow:none; }
}
.timer_item.expired {
  animation:timer_expireFlash 1.8s infinite ease-in-out;
}

.timer_item{
  padding:10px;
  border-bottom:1px solid #eee;
  font-size:12px;
  transition:all 0.3s;
}
.timer_itemTitle{font-weight:bold;margin-bottom:4px;font-size:12px;}
.timer_itemTime{color:#c00;font-size:12px;margin:4px 0;}

.timer_row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:4px;
  font-size:12px;
  color:#666;
}
.timer_cloudTag{font-size:12px;}
.timer_btnGroup{display:flex;gap:8px;}
.timer_editBtn,.timer_delBtn{cursor:pointer;font-size:12px;}
.timer_editBtn{color:#007bff;}
.timer_delBtn{color:#ff4444;}

.timer_popup{
  display:none;
  width:330px;
  background:#fff;
  border-radius:10px;
  padding:18px;
  box-shadow:0 6px 20px rgba(0,0,0,0.3);
  position:fixed;
  left:50%; top:50%;
  transform:translate(-50%,-50%);
  z-index:999;
}
.timer_popup.show{display:block;}
.timer_popupTitle{font-size:12px;text-align:center;margin-bottom:14px;}
.timer_input{width:100%;padding:7px;margin-bottom:10px;border:1px solid #ddd;border-radius:6px;font-size:12px;}
.timer_weekRow{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:10px;}
.timer_weekRow label{font-size:12px;padding:3px 5px;border:1px solid #ddd;border-radius:4px;cursor:pointer;}
.timer_weekRow input{display:none;}
.timer_weekRow input:checked+label{background:#007bff;color:#fff;border-color:#007bff;}

.timer_cdGroup{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:10px;
}
.timer_cdInput{
  flex:1;
  padding:8px;
  text-align:center;
  border:1px solid #ddd;
  border-radius:6px;
  font-size:12px;
}
.timer_cdSplit{font-size:12px;font-weight:bold;color:#666;}

.timer_autoTip{font-size:12px;color:#666;margin-bottom:10px;}
.timer_btnRow{display:flex;gap:8px;}
.timer_btn{flex:1;padding:8px;border:none;border-radius:6px;font-size:12px;cursor:pointer;}
.timer_btnBlue{background:#007bff;color:#fff;}
.timer_btnGray{background:#6c757d;color:#fff;}
.timer_hide{display:none!important;}

.timer_confirmOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  backdrop-filter: blur(2px);
}
.timer_confirmBox {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 280px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 9999;
  text-align: center;
  opacity: 0;
  transition: all 0.25s ease;
}
.timer_confirmBox.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.timer_confirmTitle {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #333;
}
.timer_confirmText {
  font-size: 12px;
  color: #666;
  margin-bottom: 20px;
}
.timer_confirmBtns {
  display: flex;
  gap: 10px;
}
.timer_confirmBtn {
  flex: 1;
  padding: 8px 0;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  border: none;
  transition: 0.2s;
}
.timer_confirmBtn.red {
  background: #ff4444;
  color: #fff;
}
.timer_confirmBtn.gray {
  background: #f1f1f1;
  color: #666;
}

.timer_msgOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  backdrop-filter: blur(2px);
}
.timer_msgBox {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 260px;
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 9999;
  text-align: center;
  opacity: 0;
  transition: all 0.25s ease;
}
.timer_msgBox.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.timer_msgTitle {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}
.timer_msgContent {
  font-size: 12px;
  color: #666;
  margin-bottom: 18px;
}
.timer_msgBtn {
  width: 100%;
  padding: 8px 0;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  border: none;
  background: #007bff;
  color: #fff;
}


/* 添加到 timer.css 文件中 */
.timer_item.blinking {
    animation: timer_blink 0.5s ease-in-out infinite;
}

.timer_item.alerting {
    background-color: #fff3cd;
    border-left: 4px solid #FF000;
}

@keyframes timer_blink {
    0%, 100% { background-color: #fff3cd; }
    50% { background-color: #FFFF00; }
}

.timer_alertMsg {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff6b6b;
    font-weight: bold;
    font-size: 14px;
    animation: timer_pulse 1s ease-in-out infinite;
}

@keyframes timer_pulse {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateY(-50%) scale(1.05); }
}