
.sign-trigger-btn {
    background: linear-gradient(135deg, #FF9A8B 0%, #FF6A88 100%);
    color: white;
    border: none;
    padding: 0px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(255, 106, 136, 0.3);
    transition: all 0.3s ease;height:38px; transform: translateY(6px);position:relative;
}
.sign-popup-container {
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: popupSlideIn 0.4s ease-out; 
}

.sign-red-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 14px;
    height: 14px;
    background: #ff4757;
    border-radius: 50%;
    border: 2px solid white;
 animation: blowing2 1.6s ease-in-out infinite;
    /* 添加这行，防止transform冲突 */
    transform: translateZ(0);display:none
}

@keyframes blowing2 {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}
  .gold-coin {
      font-size: 48px; /* 图标大小 */
      background: linear-gradient(135deg, #ffd700 0%, #f0c800 50%, #e6b800 100%); /* 金色渐变 */
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent; /* 透明文字，显示渐变背景 */
      text-shadow: 0 2px 4px rgba(200, 150, 0, 0.3); /* 阴影增强质感 */
    }
@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* 金币动画 */
.coin-animation {
    position: fixed;
    z-index: 10000;
    font-size: 40px;
    color: #FFD700;
    pointer-events: none;
    animation: coinFloat 1.5s ease-out forwards;
}

@keyframes coinFloat {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -100px) scale(1.5);
        opacity: 0;
    }
}
.sign-trigger-btn:hover {
    transform: translateY(4px);
    box-shadow: 0 6px 16px rgba(255, 106, 136, 0.4);
}
@media (max-width: 576px) {
    .sign-popup-container {
        width: 95%;
        max-width: 95%;
        border-radius: 15px;
    }
    
    .calendar-grid {
        gap: 10px;
    }
    
    .calendar-day {
        padding: 12px 5px;
    }
    
    .sign-user-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .continuous-days {
        justify-content: center;
    }
}
.sign-trigger-btn i {
    margin-right: 8px;
}
    /* 弹窗容器 */
     #signInModal  {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 722px;
      background: white;
      border-radius: 12px;
      box-shadow: 0 6px 20px rgba(0,0,0,0.15);
     
      z-index: 99999;
    }

      #signInModal .modal-headers {
      background: linear-gradient(to right, #e94a4a, #ff6b6b);
      color: white;
      padding: 12px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;border-radius:12px 12px 0 0 
    }

    #signInModal .modal-headers h3 { font-size: 18px; font-weight:bold}
    #signInModal .modal-headers a { color: white; text-decoration: underline; font-size: 14px; }

    #signInModal .modal-body {
      padding: 25px;
      text-align: center;
    }
#signInModal .close-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #999;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: white;
    border: none;
}

#signInModal  .close-btn:hover {
      background: #999;
      transform: rotate(90deg);
    }
	
	
    #signInModal .title { font-size: 20px; margin-bottom: 10px; }
   #signInModal  .desc { color: #999; font-size: 14px; margin-bottom: 20px; }
.day-box.today {
  border-color: #ff9800;
  box-shadow: 0 0 6px rgba(255, 152, 0, 0.5);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
    /* 签到天数展示 */
    .sign-days {
      display: flex;
      justify-content: space-around;
      margin-bottom: 30px;
    }

    .day-item {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .day-box {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: #f8f9fa;
      border: 2px solid #e9ecef;
      position: relative;
      font-size: 14px;
      transition: all 0.3s;
      margin-bottom: 8px;
    }

    .day-box.signed {
      background: #fff;
      border-color: #e94a4a;
      color: #e94a4a;
      font-weight: bold;
    }

    .day-box.signed::after {
      content: '✓';
      position: absolute;
      top: -8px;
      right: -8px;
      width: 20px;
      height: 20px;
      background: #e94a4a;
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: bold;
    }

    .day-label {
      font-size: 13px;
      color: #6c757d;
      white-space: nowrap;
    }

    .btn-sign {
      width: 100%;
      padding: 18px;
      background: #e94a4a;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
	  font-weight:bold;
      cursor: pointer;
      transition: background 0.3s;  transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 106, 136, 0.3);
    }
	.btn-sign:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 106, 136, 0.5);
}

    .btn-sign:disabled {
      background: #ccc;
      cursor: not-allowed;
    }

   #signInModal .countdown {
      margin-top: 12px;
      font-size: 13px;
    color: #666;
    }
	/* 用户信息区域 */
.sign-user-info {
    display: flex;
    justify-content: space-between;
    padding: 15px 25px;
    background: #f8f9ff;
    border-bottom: 1px solid #eee;
}

.user-coins {
    display: flex;
    align-items: center;
}

.coins-icon {
    background: #FFD700;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.coins-icon i {
    color: #333;
    font-size: 18px;
}

.coins-text {
    font-size: 16px;
    color: #333;
}

.coins-text strong {
    color: #FF6A88;
    font-size: 20px;
}

.continuous-days {
    font-size: 15px;
    color: #666;
    display: flex;
    align-items: center;
}

.days-count {
    color: #2575FC;
    font-weight: bold;
    font-size: 20px;
    margin: 0 5px;
}
/* 规则说明区域 */
.sign-rules-section {
    background: #f8f9ff;
    padding: 20px 25px;
    border-top: 1px solid #eee;
	border-radius:0 0 12px 12px
}

.rules-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.rules-title i {
    color: #6A11CB;
    margin-right: 8px;
}

.rules-list {
    list-style: none;
    padding: 0;
}

.rules-list li {
    padding: 6px 0;
    color: #666;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
}

.rules-list li i {
    color: #4CAF50;
    margin-right: 10px;
    margin-top: 2px;
    font-size: 12px;
}