/* 基础样式 */
.pet-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Arial', sans-serif;
  color: #333;
}

/* 头部信息 */
.pet-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.pet-name {
  font-size: 32px;
  margin-bottom: 10px;
  color: #333;
}

.pet-gender {
  font-size: 24px;
  margin-left: 8px;
}

.pet-gender.female {
  color: #ff6b8b;
}

.pet-gender.male {
  color: #6b8cff;
}

.pet-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: #666;
  font-size: 16px;
}

/* 主要内容区布局 */
.pet-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .pet-content {
    grid-template-columns: 1fr;
  }
}

/* 图片展示区 */
.pet-gallery {
  position: sticky;
  top: 20px;
}

.main-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.image-badges {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  color: white;
}

.badge.urgent {
  background-color: #ff4757;
}

.badge.vaccinated {
  background-color: #2ed573;
}

.thumbnail-container {
  display: flex;
  gap: 10px;
}

.thumbnail {
  width: 70px;
  height: 70px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.thumbnail.active {
  border-color: #ff6b6b;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 关键信息卡片 */
.key-info-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

.info-item .icon {
  font-size: 24px;
}

.info-item h4 {
  margin: 0 0 5px;
  font-size: 16px;
  color: #666;
}

.info-item p {
  margin: 0;
  font-size: 15px;
  color: #333;
}

.adopt-button {
  width: 100%;
  padding: 12px;
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 10px;
}

.adopt-button:hover {
  background: #ff5252;
}

/* 标签页样式 */
.info-tabs {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
}

.tab-header {
  display: flex;
  border-bottom: 1px solid #eee;
}

.tab-btn {
  flex: 1;
  padding: 15px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}

.tab-btn.active {
  border-bottom-color: #ff6b6b;
  color: #ff6b6b;
  font-weight: bold;
}

.tab-content {
  padding: 20px;
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content h3 {
  margin-top: 0;
  color: #333;
}

.tab-content p {
  line-height: 1.6;
  color: #555;
}

.special-needs {
  padding-left: 20px;
}

.special-needs li {
  margin-bottom: 8px;
  color: #555;
}

/* 时间线样式 */
.timeline {
  position: relative;
  padding-left: 30px;
  margin-top: 20px;
}

.timeline:before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ff6b6b;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-date {
  font-weight: bold;
  color: #ff6b6b;
  margin-bottom: 5px;
}

.timeline-content {
  background: #fff5f5;
  padding: 10px 15px;
  border-radius: 6px;
  position: relative;
}

.timeline-content:before {
  content: '';
  position: absolute;
  left: -18px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b6b;
  border: 3px solid white;
}

/* 相关宠物推荐 */
.related-pets {
  margin-top: 60px;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  position: relative;
  padding-bottom: 15px;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #ff6b6b;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.related-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  text-align: center;
}

.related-card:hover {
  transform: translateY(-5px);
}

.related-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.related-card h3 {
  margin: 15px 0 5px;
  font-size: 18px;
}

.related-card p {
  color: #666;
  margin-bottom: 15px;
  font-size: 14px;
}

.view-btn {
  display: inline-block;
  padding: 8px 15px;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  margin-bottom: 15px;
  transition: all 0.3s;
}

.view-btn:hover {
  background: #ff6b6b;
  color: white;
}