/* 确保卡片布局正确 */
#statsCard {
  display: flex;
  flex-direction: column;
}

.stats-container {
  display: flex;
  flex: 1;
}

/* 底部统计时间样式 */
.stat-footer {
  font-size: 12px; /* 较小的字体 */
  text-align: center; /* 居中显示 */
  padding: 8px 0; /* 适当的上下间距 */
  color: #666; /* 较浅的颜色，不会喧宾夺主 */
  border-top: 1px solid rgba(0,0,0,0.05); /* 轻微的分隔线 */
}
/* 优化版粉色主题统计卡片 - 移除图标方块 */
.stats-card-pink {
    display: flex;
    align-items: center;
    justify-content: space-around; /* 更好的空间分布 */
    background: linear-gradient(135deg, #fff0f3 0%, #ffe5eb 100%);
    border: 1px solid #ffd6e0;
    border-radius: 20px;
    padding: 20px 15px; /* 调整内边距 */
    margin: 25px auto;
    max-width: 480px;
    box-shadow: 
        0 12px 25px rgba(255, 150, 170, 0.18),
        inset 0 0 15px rgba(255, 230, 240, 0.5);
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.stats-card-pink:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 30px rgba(255, 140, 160, 0.22),
        inset 0 0 20px rgba(255, 240, 245, 0.7);
}

/* 移除了 .stat-icon 所有相关样式 */

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
    min-width: 120px;
}

.stat-content {
    text-align: center;
}

.stat-label {
    color: #ff5480;
    font-size: 15px; /* 稍增大文字 */
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px; /* 增加间距 */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.stat-value {
    color: #d81b60;
    font-size: 28px; /* 增大数字 */
    font-weight: 800;
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.divider {
    width: 1px;
    height: 50px; /* 缩短分割线 */
    background: linear-gradient(transparent, #ffccd5 30%, #ffccd5 70%, transparent);
    margin: 0 15px;
    position: relative;
}

/* 移除了分隔线的中心装饰点 */

@keyframes countUp {
    0% { 
        opacity: 0;
        transform: translateY(15px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-value.animated {
    animation: countUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.update-info {
    bottom: 12px;
    font-size: 11px;
    color: #e66791;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

@keyframes pulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(255, 150, 170, 0.18); 
    }
    50% { 
        transform: scale(1.02); 
        box-shadow: 0 8px 20px rgba(255, 105, 180, 0.3), 0 0 0 6px rgba(255, 105, 180, 0.15); 
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(255, 150, 170, 0.18); 
    }
}

.stats-card-pink.refresh-complete {
    animation: pulse 0.6s ease;
}


/* 粉色公告样式 */
.resource-announcement {
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    border-radius: 15px;
    padding: 20px 25px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 20px rgba(255, 107, 129, 0.25);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: fadeIn 0.6s ease-out;
}

.resource-announcement::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9a9e, #fad0c4, #ff9a9e);
    background-size: 200% auto;
    animation: shine 3s linear infinite;
}

.announcement-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
}

.announcement-icon svg {
    width: 32px;
    height: 32px;
    fill: #ff6b81;
}

.announcement-content {
    color: white;
    font-size: 1.2rem;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    padding-right: 10px;
    flex: 1;
}

.announcement-content strong {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 10px;
    border-radius: 6px;
    display: inline-block;
    animation: pulse 1.5s infinite;
    position: relative;
    margin: 0 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* 动画效果 */
@keyframes shine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.toggle-buttons {
  display: flex;
  gap: 15px;
  background: #fff5f7;
  padding: 10px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.15);
}

.toggle-btn {
  flex: 1;
  padding: 12px 25px;
  border: none;
  border-radius: 40px;
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(145deg, #ffd6e7, #ffb8d0);
  color: #ff477e;
  box-shadow: 
    0 3px 8px rgba(255, 105, 180, 0.2),
    0 -2px 5px rgba(255, 255, 255, 0.8) inset;
}

.toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 5px 15px rgba(255, 105, 180, 0.3),
    0 -2px 5px rgba(255, 255, 255, 0.8) inset;
}

.toggle-btn.active {
  background: linear-gradient(145deg, #ff477e, #ff2a63);
  color: white;
  box-shadow: 
    0 3px 8px rgba(255, 105, 180, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.9),
    0 0 20px 2px rgba(255, 0, 85, 0.4);
  animation: active-glow 1.5s infinite alternate;
}

@keyframes active-glow {
  0% {
    box-shadow: 
      0 3px 8px rgba(255, 105, 180, 0.4),
      0 0 0 2px rgba(255, 255, 255, 0.9),
      0 0 20px 2px rgba(255, 0, 85, 0.4);
  }
  100% {
    box-shadow: 
      0 3px 12px rgba(255, 105, 180, 0.6),
      0 0 0 2px rgba(255, 255, 255, 0.9),
      0 0 25px 5px rgba(255, 0, 85, 0.6);
  }
}

.toggle-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 80%);
  opacity: 0;
  transition: opacity 0.3s;
}

.toggle-btn:hover::after {
  opacity: 1;
}
