// SDK 下载中心样式
.sdk-center {
  min-height: 100vh;
  background: #f5f5f5;
  padding-bottom: env(safe-area-inset-bottom);
}

// 搜索栏
.search-bar {
  display: flex;
  align-items: center;
  padding: 24px;
  background: #fff;
  
  .search-input {
    flex: 1;
    height: 72px;
    padding: 0 24px;
    background: #f5f5f5;
    border-radius: 36px;
    font-size: 28px;
  }
  
  .search-btn {
    margin-left: 20px;
    padding: 0 32px;
    height: 72px;
    line-height: 72px;
    background: #007aff;
    color: #fff;
    border-radius: 36px;
    font-size: 28px;
    
    &::after { border: none; }
  }
}

// 分类滚动
.category-scroll {
  background: #fff;
  white-space: nowrap;
  
  .category-tabs {
    display: inline-flex;
    padding: 0 16px 24px;
  }
  
  .category-tab {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    margin-right: 16px;
    background: #f5f5f5;
    border-radius: 32px;
    font-size: 26px;
    color: #666;
    white-space: nowrap;
    
    &.active {
      background: #007aff;
      color: #fff;
    }
  }
}

// 统计栏
.stats-bar {
  padding: 24px;
  background: #fff;
  
  .stats-text {
    font-size: 26px;
    color: #999;
  }
}

// SDK 列表
.sdk-list {
  height: calc(100vh - 400px);
  padding: 24px;
  
  .loading, .empty {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    color: #999;
    font-size: 28px;
  }
}

.sdk-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  
  .sdk-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .sdk-icon-wrap {
    width: 88px;
    height: 88px;
    background: #f5f5f5;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    .sdk-icon {
      font-size: 48px;
    }
  }
  
  .sdk-info {
    flex: 1;
    margin-left: 24px;
    
    .sdk-name {
      font-size: 32px;
      font-weight: 600;
      color: #333;
      display: block;
    }
    
    .sdk-version {
      font-size: 24px;
      color: #999;
      margin-top: 8px;
      display: block;
    }
  }
  
  .sdk-actions {
    .action-btn {
      padding: 16px 32px;
      font-size: 26px;
      border-radius: 24px;
      background: #f5f5f5;
      color: #333;
      
      &.primary {
        background: #007aff;
        color: #fff;
      }
      
      &::after { border: none; }
    }
  }
  
  .sdk-desc {
    font-size: 26px;
    color: #666;
    line-height: 1.6;
    display: block;
    margin-bottom: 20px;
  }
  
  .sdk-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    .sdk-tags {
      display: flex;
      
      .tag {
        padding: 8px 16px;
        background: #f0f7ff;
        color: #007aff;
        border-radius: 8px;
        font-size: 22px;
        margin-right: 12px;
      }
    }
    
    .sdk-stats {
      display: flex;
      
      .stat {
        font-size: 24px;
        color: #999;
        margin-left: 20px;
      }
    }
  }
}

// SDK 详情弹窗
.sdk-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  z-index: 1000;
  
  .sdk-modal-content {
    width: 100%;
    max-height: 85vh;
    background: #fff;
    border-radius: 32px 32px 0 0;
    display: flex;
    flex-direction: column;
  }
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px;
    border-bottom: 1px solid #eee;
    
    .modal-title {
      font-size: 36px;
      font-weight: 600;
    }
    
    .modal-close {
      width: 64px;
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 36px;
      color: #999;
    }
  }
  
  .modal-body {
    flex: 1;
    padding: 32px;
    max-height: calc(85vh - 200px);
  }
  
  .modal-section {
    margin-bottom: 40px;
    
    .section-title {
      font-size: 30px;
      font-weight: 600;
      color: #333;
      margin-bottom: 20px;
      display: block;
    }
    
    .section-content {
      font-size: 28px;
      color: #666;
      line-height: 1.6;
      
      &.changelog {
        white-space: pre-wrap;
        background: #f5f5f5;
        padding: 24px;
        border-radius: 16px;
      }
    }
  }
  
  .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    
    .info-item {
      .info-label {
        font-size: 24px;
        color: #999;
        display: block;
        margin-bottom: 8px;
      }
      
      .info-value {
        font-size: 28px;
        color: #333;
        font-weight: 500;
      }
    }
  }
  
  .code-block {
    background: #1e1e1e;
    padding: 24px;
    border-radius: 16px;
    
    .code-text {
      color: #a5d6ff;
      font-size: 26px;
      font-family: monospace;
    }
  }
  
  .deps-list {
    display: flex;
    flex-wrap: wrap;
    
    .dep-tag {
      padding: 8px 16px;
      background: #f0f7ff;
      color: #007aff;
      border-radius: 8px;
      font-size: 24px;
      margin-right: 12px;
      margin-bottom: 12px;
    }
  }
  
  .modal-footer {
    display: flex;
    padding: 32px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    border-top: 1px solid #eee;
    
    .modal-btn {
      flex: 1;
      height: 88px;
      line-height: 88px;
      font-size: 32px;
      border-radius: 44px;
      margin: 0 12px;
      background: #f5f5f5;
      color: #333;
      
      &.primary {
        background: #007aff;
        color: #fff;
      }
      
      &:first-child { margin-left: 0; }
      &:last-child { margin-right: 0; }
      &::after { border: none; }
    }
  }
}
