
.uptime-dashboard {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  color: var(--font-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  

  
  .uptime-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    
    .uptime-title {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 600;
      font-size: 14px;
      
      i {
        font-size: 16px;
        color: rgba(255, 255, 255, 0.9);
      }
    }
    
    .uptime-summary {
      .summary-text {
        font-size: 12px;
        opacity: 0.9;
        font-weight: 500;
      }
    }
  }
  
  .uptime-services {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    
    .service-item {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      padding: 8px 10px;
      background: var(--card-bg);
      border-radius: 8px;
      border: 1px solid #e5e7eb;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      
      &:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        background: var(--hover-bg);
      }
      
      .service-name {
        font-size: 11px;
        font-weight: 500;
        color: var(--font-color);
        line-height: 1.2;
        word-break: break-word;
        flex: 1;
        margin-right: 8px;
      }
      
      .service-status {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
        
        .status-indicator {
          width: 8px;
          height: 8px;
          border-radius: 50%;
          position: relative;
          transition: all 0.3s ease;
          
          &::after {
            content: '';
            position: absolute;
            top: -1px;
            left: -1px;
            right: -1px;
            bottom: -1px;
            border-radius: 50%;
            background: inherit;
            opacity: 0.3;
            filter: blur(2px);
          }
          
          &.status-normal {
            background: #4ade80;
            box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.3);
          }
          
          &.status-warning {
            background: #fbbf24;
            box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.3);
          }
          
          &.status-error {
            background: #f87171;
            box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.3);
          }
          
          &.status-loading {
            background: #60a5fa;
            animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
          }
          
          &.status-unknown {
            background: #9ca3af;
            box-shadow: 0 0 0 1px rgba(156, 163, 175, 0.3);
          }
        }
        
        .status-text {
          font-size: 9px;
          font-weight: 600;
          color: var(--font-color);
          text-transform: uppercase;
          letter-spacing: 0.3px;
        }
      }
      
      /* 单数服务居中显示 */
      &:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 50%;
        justify-self: center;
      }
    }
  }
}

/* 深色模式适配 */
[data-theme="dark"] .uptime-dashboard {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  
  .uptime-services .service-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    
    &:hover {
      background: rgba(255, 255, 255, 0.1);
    }
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}