/* 画师列表页面样式 */
.main-content {
  min-height: 100vh;
  background: linear-gradient(180deg, #A7E8BD 0%, #89CFF0 100%);
}

/* 页面头部 */
.page-header {
  background: linear-gradient(135deg, #A7E8BD 0%, #89CFF0 100%);
  padding: 30px 20px 25px;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: headerShimmer 6s ease-in-out infinite;
}

@keyframes headerShimmer {
  0%, 100% { transform: rotate(0deg); opacity: 0.3; }
  50% { transform: rotate(180deg); opacity: 0.6; }
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.back-btn {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-right: auto;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-2px);
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 0;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.share-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.help-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.help-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 搜索容器 */
.search-container {
  position: relative;
  z-index: 1;
}

.search-box {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 25px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.search-box:focus-within {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.search-icon {
  font-size: 18px;
  color: #8A8A8A;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #2D2D3A;
  background: transparent;
}

.search-input::placeholder {
  color: #AAAAAA;
}

.clear-icon {
  font-size: 14px;
  color: #CCCCCC;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-icon:hover {
  background: #F0F0F0;
  color: #666666;
}

/* 筛选和排序 */
.filter-section {
  background: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.filter-tabs {
  display: flex;
  gap: 10px;
}

.filter-tab {
  background: transparent;
  border: 2px solid #E0E0E0;
  color: #666666;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--primary-mint);
  border-color: var(--primary-mint);
  color: white;
}

.sort-dropdown select {
  background: white;
  border: 2px solid #E0E0E0;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  color: #666666;
  cursor: pointer;
  outline: none;
}

.sort-dropdown select:focus {
  border-color: var(--primary-mint);
}

/* 画师容器 */
.artists-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.artists-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

/* 画师卡片 */
.artist-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.artist-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.artist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.artist-card:hover::before {
  left: 100%;
}

/* 画师头部信息 */
.artist-header {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  align-items: flex-start;
}

.avatar-container {
  position: relative;
  flex-shrink: 0;
}

.artist-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #F5F5F5;
  object-fit: cover;
}

.artist-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.artist-name {
  font-size: 18px;
  font-weight: 700;
  color: #2D2D3A;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 10px;
}

.rating-container {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 193, 7, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
}

.rating-icon {
  font-size: 12px;
}

.rating-text {
  font-size: 14px;
  font-weight: 600;
  color: #FF9800;
}

.artist-specialty {
  font-size: 14px;
  color: #666666;
  margin-bottom: 6px;
}

.stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-item {
  font-size: 12px;
  color: #8A8A8A;
}

.stat-divider {
  color: #E0E0E0;
  font-size: 12px;
}

/* 右侧价格和状态信息 */
.right-info-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.price-range {
  font-size: 14px;
  font-weight: 700;
  color: #FF6B6B;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: 80px;
}

.status-text {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
  min-width: 80px;
}

.status-text.accepting {
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-text.closed {
  color: #999999;
  background: rgba(153, 153, 153, 0.1);
  border: 1px solid rgba(153, 153, 153, 0.3);
}

/* 作品展示 */
.works-container {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.work-item {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
}

.work-image {
  width: 100%;
  height: 100%;
  background: #F5F5F5;
  object-fit: cover;
}

/* 画师底部信息 */
.artist-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.tags-container {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  overflow: hidden;
}

.tag {
  background: rgba(137, 207, 240, 0.15);
  color: #89CFF0;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(137, 207, 240, 0.3);
  white-space: nowrap;
}

/* 加载状态 */
.loading-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 200px;
  gap: 15px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-mint);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 16px;
  color: #8A8A8A;
}

/* 空状态 */
.empty-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 200px;
  gap: 15px;
}

.empty-icon {
  font-size: 48px;
  opacity: 0.5;
}

.empty-text {
  font-size: 16px;
  color: #8A8A8A;
  text-align: center;
}

/* 加载更多 */
.load-more-container {
  text-align: center;
  padding: 20px;
}

.load-more-btn {
  background: var(--primary-mint);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: var(--primary-mint-dark);
  transform: translateY(-2px);
}

.load-more-btn:disabled {
  background: #CCCCCC;
  cursor: not-allowed;
  transform: none;
}

/* 画师详情模态框 */
.artist-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #E0E0E0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #2D2D3A;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999999;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #F0F0F0;
  color: #666666;
}

.modal-body {
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid #E0E0E0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .artists-list {
    grid-template-columns: 1fr;
  }
  
  .filter-section {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .filter-tabs {
    justify-content: center;
  }
  
  .artist-card {
    padding: 16px;
  }
  
  .artist-header {
    gap: 12px;
  }
  
  .artist-avatar {
    width: 50px;
    height: 50px;
  }
  
  .artist-name {
    font-size: 16px;
  }
  
  .modal-content {
    width: 95%;
    margin: 20px;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 20px 15px;
  }
  
  .header-nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  
  .page-title {
    position: static;
    transform: none;
    font-size: 20px;
    flex: 1;
    text-align: center;
  }
  
  .back-btn {
    margin-right: 0;
    flex: 0 0 auto;
  }
  
  .header-actions {
    margin-left: 0;
    flex: 0 0 auto;
  }
  
  .artists-container {
    padding: 15px;
  }
  
  .filter-tabs {
    flex-wrap: wrap;
  }
  
  .filter-tab {
    font-size: 12px;
    padding: 6px 12px;
  }
}
