/* 详情页面专用样式 */

/* 覆盖main-content样式 */
.main-content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px;
}

.detail-container {
  display: flex !important;
  gap: 30px;
  width: 100% !important;
  flex-wrap: nowrap;
}

.detail-main {
  flex: 7 1 0% !important;
  width: 70% !important;
  min-width: 0;
  box-sizing: border-box;
}

.recommendations-sidebar {
  flex: 3 1 0% !important;
  width: 80% !important;
  min-width: 0;
  box-sizing: border-box;
}

/* 个人资料区域样式 */
.profile-section {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 25px;
  margin-bottom: 25px;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.profile-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0;
  line-height: 1.3;
}

.profile-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.collect-btn {
  background-color: #4CAF50;
  color: white;
}

.collect-btn:hover {
  background-color: #45a049;
}

.delete-btn {
  background-color: #f44336;
  color: white;
}

.delete-btn:hover {
  background-color: #da190b;
}

.profile-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-label {
  font-weight: 500;
  color: #666;
  min-width: 80px;
}

.info-value {
  color: #333;
  font-weight: 500;
}

/* 联系方式区域样式 */
.contact-section {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 25px;
  margin-bottom: 25px;
}

.section-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-guide {
  margin-bottom: 20px;
}

.guide-link {
  color: #2196F3;
  text-decoration: none;
  font-size: 14px;
}

.guide-link:hover {
  text-decoration: underline;
}

.warning-notice {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #495057;
}

.contact-methods {
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-label {
  font-weight: 500;
  color: #333;
  min-width: 80px;
}

.contact-value {
  color: #666;
  font-size: 14px;
}

.scam-warning {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
}

.scam-warning strong {
  color: #856404;
  font-size: 16px;
}

.guide-buttons {
  display: flex;
  gap: 15px;
}

.guide-btn {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.guide-btn:hover {
  background-color: #5a6268;
}

/* 详细介绍区域样式 */
.introduction-section {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 25px;
  margin-bottom: 25px;
}

.introduction-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.image-placeholder {
  height: auto;
  min-height: 250px;
  background-color: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background-color: #f8f9fa;
}

/* 推荐侧边栏容器样式 - 只定义布局，具体样式由组件CSS控制 */

/* 响应式设计 */
@media (max-width: 1024px) {
  .detail-container {
    flex-direction: column !important;
    gap: 20px;
  }
  
  .detail-main {
    flex: none !important;
    width: 100% !important;
  }
  
  .recommendations-sidebar {
    flex: none !important;
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 10px;
  }
  
  .detail-container {
    gap: 15px;
  }
  
  .profile-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .profile-actions {
    justify-content: center;
  }
  
  .profile-info {
    grid-template-columns: 1fr;
  }
  
  .introduction-images {
    grid-template-columns: 1fr;
  }
  
  .image-placeholder {
    min-height: 300px;
  }
  
  .recommendation-list {
    grid-template-columns: 1fr;
  }
  
  .guide-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 5px;
  }
  
  .detail-container {
    gap: 10px;
  }
  
  .profile-section,
  .introduction-section,
  .recommendations-sidebar {
    padding: 15px;
  }
  
  .profile-title {
    font-size: 18px;
  }
  
  .section-title {
    font-size: 16px;
  }
  
  .image-placeholder {
    min-height: 250px;
  }
}
