.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f8f9fa;
  min-height: 100vh;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
  flex-wrap: wrap;
  gap: 20px;
  
  @media (max-width: 768px) {
    flex-direction: column;
    text-align: center;
  }
}

.title {
  font-size: 32px;
  font-weight: bold;
  color: #e60023;
  margin: 0;
  
  @media (max-width: 768px) {
    font-size: 28px;
  }
}

.actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  
  @media (max-width: 768px) {
    justify-content: center;
    width: 100%;
  }
}

.tabs {
  margin-bottom: 30px;
  
  :global(.ant-tabs-nav) {
    margin-bottom: 24px;
  }
}

.content {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  
  @media (max-width: 768px) {
    padding: 15px;
  }
}

.statsCard {
  margin-bottom: 24px;
  
  :global(.ant-card-body) {
    padding: 24px;
  }
  
  :global(.ant-statistic-title) {
    color: rgba(0, 0, 0, 0.65);
    font-size: 14px;
    margin-bottom: 4px;
  }
  
  :global(.ant-statistic-content) {
    color: rgba(0, 0, 0, 0.85);
    font-size: 24px;
    font-weight: 600;
  }
}

.filterSection {
  display: flex;
  gap: 15px;
  margin-bottom: 24px;
  align-items: center;
  flex-wrap: wrap;
  
  @media (max-width: 768px) {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

.searchBox {
  min-width: 200px;
  max-width: 320px;
  flex: 1;
  
  @media (max-width: 768px) {
    min-width: unset;
    max-width: unset;
  }
}

.refreshButton {
  white-space: nowrap;
}

// Board网格布局优化
.boardGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
  
  @media (max-width: 1200px) {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  
  @media (max-width: 768px) {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }
  
  @media (max-width: 480px) {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.boardCard {
  height: 100%; // 确保所有卡片高度一致
  display: flex;
  flex-direction: column;
  
  :global(.ant-card-body) {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  :global(.ant-card-actions) {
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    
    li {
      margin: 8px 0;
      
      button {
        height: auto;
        padding: 4px 8px;
      }
    }
  }
  
  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  }
}

.boardImage {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  font-size: 48px;
  color: #bbb;
  overflow: hidden;
  
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

// Board卡片内容区域
.boardCardMeta {
  flex: 1;
  display: flex;
  flex-direction: column;
  
  :global(.ant-card-meta-title) {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  :global(.ant-card-meta-description) {
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.65);
    line-height: 1.5;
    margin-bottom: 12px;
  }
}

// 修复徽章位置
.boardBadges {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: auto;
  
  :global(.ant-badge) {
    display: inline-flex;
    align-items: center;
    
    :global(.ant-badge-count) {
      position: relative;
      transform: none;
      right: auto;
      top: auto;
      margin-left: 8px;
      background: #e60023;
      font-size: 12px;
      min-width: 20px;
      height: 20px;
      line-height: 18px;
      border-radius: 10px;
    }
  }
  
  .badgeText {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.65);
    font-weight: 500;
  }
}

// Pin网格布局优化
.pinGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 20px;
  
  @media (max-width: 1200px) {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
  
  @media (max-width: 768px) {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
  }
  
  @media (max-width: 480px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.pinCard {
  height: 100%;
  display: flex;
  flex-direction: column;
  
  :global(.ant-card-body) {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  :global(.ant-card-actions) {
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    
    li {
      margin: 6px 0;
      
      button {
        height: auto;
        padding: 4px 8px;
        font-size: 12px;
      }
    }
  }
  
  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  }
}

.pinImage {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  font-size: 36px;
  color: #bbb;
  overflow: hidden;
  
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.pinCardMeta {
  flex: 1;
  
  :global(.ant-card-meta-title) {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  :global(.ant-card-meta-description) {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.65);
    line-height: 1.4;
    margin-bottom: 8px;
  }
}

.pinMetadata {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  
  :global(.ant-badge) {
    font-size: 11px;
    
    :global(.ant-badge-status-text) {
      font-size: 11px;
      color: rgba(0, 0, 0, 0.65);
    }
  }
}

.loading {
  text-align: center;
  padding: 60px 20px;
  
  :global(.ant-spin-lg .ant-spin-dot) {
    font-size: 32px;
  }
  
  @media (max-width: 768px) {
    padding: 40px 20px;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
  
  :global(.ant-pagination) {
    @media (max-width: 768px) {
      :global(.ant-pagination-options) {
        display: none;
      }
    }
  }
}

// 模态框样式
.modal {
  :global(.ant-modal-content) {
    border-radius: 12px;
  }
  
  :global(.ant-modal-header) {
    border-radius: 12px 12px 0 0;
  }
}

.uploadArea {
  border: 2px dashed #d9d9d9;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: #fafafa;
  position: relative;
  
  &:hover {
    border-color: #e60023;
    background: #fff2f0;
  }
}

.uploadIcon {
  font-size: 48px;
  color: #bfbfbf;
  margin-bottom: 16px;
  display: block;
}

.uploadText {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 8px;
}

.uploadHint {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.45);
}

.previewImage {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  object-fit: contain;
}

.uploadLoading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.uploadSuccess {
  position: relative;
}

.uploadStatus {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.successText {
  color: #52c41a;
  font-size: 12px;
  font-weight: 600;
}

.urlDisplay {
  margin-top: 8px;
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  font-size: 12px;
}

.colorPicker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.colorInput {
  width: 50px;
  height: 32px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  
  &:focus {
    border-color: #e60023;
    box-shadow: 0 0 0 2px rgba(230, 0, 35, 0.2);
  }
}

// 颜色选择器样式
.colorPickerContainer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.colorPicker {
  width: 60px;
  height: 32px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  background: none;
  
  &::-webkit-color-swatch-wrapper {
    padding: 0;
    border: none;
    border-radius: 5px;
  }
  
  &::-webkit-color-swatch {
    border: none;
    border-radius: 5px;
  }
  
  &::-moz-color-swatch {
    border: none;
    border-radius: 5px;
  }
  
  &:focus {
    border-color: #e60023;
    box-shadow: 0 0 0 2px rgba(230, 0, 35, 0.2);
  }
  
  &:hover {
    border-color: #e60023;
  }
}

.colorPickerTip {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.65);
}

// 过渡动画
.tabContent {
  animation: fadeInUp 0.4s ease-out;
}

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