/* 社区页面样式 */

/* 页面头部 */
.page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 60px;
}

.header-left {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #F8F9FA;
  color: #666;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid #E0E0E0;
}

.back-home-btn:hover {
  background: #E9ECEF;
  color: #495057;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: #2D2D3A;
  margin: 0;
  text-align: center;
}

.page-header .btn-publish {
  background: linear-gradient(135deg, #FF6B9D 0%, #4ECDC4 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 20px !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3) !important;
  flex-shrink: 0;
  display: inline-block !important;
  min-width: 80px;
  text-align: center;
}

.page-header .btn-publish:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 157, 0.4) !important;
}

.page-header .btn-publish:active {
  transform: translateY(0);
}


/* 通用区域标题 */
.section-title {
  font-size: 18px;
  font-weight: bold;
  color: #2D1B69;
  margin: 60px 30px 20px;
  position: relative;
  padding-left: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, #FF6B9D 0%, #4ECDC4 100%);
  border-radius: 2px;
}

/* 求稿卡片区的标题保持原样 */
.demand-section .section-title {
  margin: 40px 30px 20px;
  position: relative;
  padding-left: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* 反馈留言区 */
.feedback-section {
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}



/* 输入框区域 */
.input-area {
  display: flex;
  align-items: flex-end;
  padding: 0 30px;
  margin-bottom: 30px;
  gap: 20px;
}

.feedback-input {
  flex: 1;
  min-height: 40px;
  height: 40px;
  padding: 20px;
  background: white;
  border-radius: 16px;
  font-size: 14px;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  line-height: 1.5;
  border: none;
  resize: vertical;
  font-family: inherit;
}

.feedback-input:focus {
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.send-btn {
  width: 60px;
  height: 40px;
  background: linear-gradient(135deg, #FF6B9D 0%, #4ECDC4 100%);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 107, 157, 0.4);
}

.send-btn:active {
  transform: scale(0.98);
}

/* 留言列表 */
.feedback-list {
  padding: 0 30px;
}

.feedback-item {
  background: white;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feedback-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feedback-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.nickname {
  font-size: 14px;
  font-weight: bold;
  color: #2D1B69;
  margin-right: 10px;
}

.time {
  font-size: 12px;
  color: #999;
}

.feedback-content {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
}

.admin-reply {
  font-size: 13px;
  color: #4ECDC4;
  line-height: 1.5;
  padding-left: 30px;
  margin-top: 15px;
  border-left: 4px solid #E5F3FF;
  background: #F8FBFF;
  padding: 15px 20px 15px 30px;
  border-radius: 8px;
}

/* 求稿卡片区 */
.demand-section {
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.demand-list {
  padding: 0 30px;
}

.demand-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demand-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.demand-header {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.demand-label {
  font-size: 12px;
  color: #FF6B9D;
  background: #FFE5F1;
  padding: 8px 16px;
  border-radius: 8px;
}

.demand-title {
  font-size: 14px;
  font-weight: bold;
  color: #2D1B69;
}

.demand-budget {
  font-size: 13px;
  color: #FF6B9D;
  font-weight: bold;
}

.demand-info {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}

.demand-deadline,
.demand-tags {
  font-size: 13px;
  color: #666;
}

.detail-btn {
  background: #F0F7FF;
  color: #4ECDC4;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 13px;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.detail-btn:hover {
  background: #E0F2FF;
  transform: translateY(-1px);
}

/* 通用按钮样式 */
.load-more-btn {
  background: #F0F0F0;
  color: #666;
  border: none;
  border-radius: 25px;
  padding: 20px 40px;
  font-size: 13px;
  margin: 30px auto 20px;
  display: block;
  width: fit-content;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: #E0E0E0;
  transform: translateY(-1px);
}

.publish-btn {
  background: linear-gradient(135deg, #FF6B9D 0%, #4ECDC4 100%);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 25px 80px;
  font-size: 16px;
  font-weight: bold;
  margin: 30px auto;
  display: block;
  box-shadow: 0 8px 24px rgba(255, 107, 157, 0.3);
  width: 80%;
  max-width: 500px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.publish-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(255, 107, 157, 0.4);
}

.publish-btn:active {
  transform: scale(0.98);
}

/* 分页器样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 40px 0;
  padding: 0 30px;
}

.page-btn, .page-number {
  padding: 8px 16px;
  border: 1px solid #E0E0E0;
  background: white;
  color: #666;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.page-btn:hover, .page-number:hover {
  background: #F8F9FA;
  border-color: #4ECDC4;
}

.page-btn.disabled {
  background: #F5F5F5;
  color: #CCC;
  cursor: not-allowed;
}

.page-number.active {
  background: linear-gradient(135deg, #FF6B9D 0%, #4ECDC4 100%);
  color: white;
  border-color: transparent;
}

.page-numbers {
  display: flex;
  gap: 5px;
}

/* 状态徽章样式 */
.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.status-pending {
  background: #FFF3CD;
  color: #856404;
}

.status-progress {
  background: #D1ECF1;
  color: #0C5460;
}

.status-completed {
  background: #D4EDDA;
  color: #155724;
}

/* 交易信息样式 */
.trade-info {
  background: #F8F9FA;
  border-radius: 8px;
  padding: 12px;
  margin: 15px 0;
}

.trade-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.trade-row:last-child {
  margin-bottom: 0;
}

.trade-label {
  font-size: 13px;
  color: #666;
}

.trade-value {
  font-size: 13px;
  font-weight: 600;
  color: #2D1B69;
}

.trade-progress {
  font-size: 12px;
  color: #4ECDC4;
}

.deposit-status {
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}

.status-paid {
  background: #D4EDDA;
  color: #155724;
}

.status-pending {
  background: #FFF3CD;
  color: #856404;
}

.status-refunded {
  background: #F8D7DA;
  color: #721C24;
}

/* 需求卡片操作按钮 */
.demand-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.detail-btn, .apply-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.detail-btn {
  background: #F0F7FF;
  color: #4ECDC4;
}

.detail-btn:hover {
  background: #E0F2FF;
}

.apply-btn {
  background: linear-gradient(135deg, #FF6B9D 0%, #4ECDC4 100%);
  color: white;
}

.apply-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

/* 需求卡片内容布局 */
.demand-content {
  margin: 15px 0;
}

.demand-title {
  font-size: 16px;
  font-weight: 600;
  color: #2D1B69;
  margin-bottom: 10px;
}

.demand-info {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

.demand-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.publish-time {
  font-size: 12px;
  color: #999;
}

/* 反馈列表页面样式 */
.feedback-list-section {
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-header {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .back-home-btn {
    left: 15px;
    padding: 6px 12px;
    font-size: 14px;
  }
  
  .page-title {
    font-size: 20px;
  }
  
  .announcement-section {
    margin: 20px 15px 15px;
    padding: 15px 20px;
  }
  
  .page-header {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  
  .header-left,
  .header-center,
  .header-right {
    flex: none;
    justify-content: center;
  }
  
  .header-left {
    order: 2;
  }
  
  .header-center {
    order: 1;
  }
  
  .header-right {
    order: 3;
  }
  
  .section-title {
    margin: 30px 15px 15px;
    font-size: 16px;
  }
  
  .btn-publish {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .input-area {
    padding: 0 15px;
    margin-bottom: 20px;
  }
  
  .feedback-list,
  .demand-list {
    padding: 0 15px;
  }
  
  .feedback-item,
  .demand-card {
    padding: 20px;
  }
  
  .demand-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .demand-info {
    flex-direction: column;
    gap: 10px;
  }
  
  .publish-btn {
    width: 90%;
    padding: 20px 40px;
    font-size: 14px;
  }
}
