@charset "UTF-8";

:root {
  --pet-primary: #39b39a;
  --pet-primary-dark: #24917b;
  --pet-mint: #eefcf8;
  --pet-blue-soft: #eef6ff;
  --pet-text: #24323d;
  --pet-muted: #73808c;
  --pet-line: #e6edf2;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--pet-text);
  background: #fbfffe;
}

.pet-section {
  padding: 8px 0;
}

.pet-section-alt {
  padding: 8px 0;
  background: linear-gradient(180deg, #fbfffe 0%, #fdfefe 100%);
}

/* 首页整体再压缩一档：将常用上下间距减半 */
.pet-section .mt-3,
.pet-section-alt .mt-3 {
  margin-top: 0.25rem !important;
}

.pet-section .mb-3,
.pet-section-alt .mb-3 {
  margin-bottom: 0.25rem !important;
}

/* 右侧今日快讯/热门排行恢复到上一版间距 */
.pet-hero .col-lg-4 .mb-3 {
  margin-bottom: 0.5rem !important;
}

.rounded-lg {
  border-radius: 14px !important;
}

.pet-banner .carousel-item {
  height: 360px;
  border-radius: 14px;
  overflow: hidden;
}

.pet-banner .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pet-banner .carousel-caption {
  left: 0;
  right: 0;
  bottom: 0;
  text-align: left;
  padding: 34px 22px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0));
}

.pet-banner .carousel-caption h5 {
  font-size: 22px;
  font-weight: 600;
}

.pet-home-ad {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--pet-line);
  background: #fff;
}

.pet-middle-ad {
  margin-top: auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--pet-line);
  background: #fff;
}

.pet-middle-ad-wide {
  margin-top: 0;
}

.pet-life-list-wrap {
  flex: 1;
}

.pet-home-ad img {
  width: 100%;
  height: 139px;
  object-fit: cover;
  display: block;
}

.pet-ad-script {
  min-height: 139px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.pet-ad-placeholder {
  height: 139px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e45a5a;
  font-size: 34px;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #f8fbff 0%, #f6fffd 100%);
}

.pet-middle-ad img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.pet-middle-ad .pet-ad-script {
  min-height: 190px;
}

.pet-middle-ad .pet-ad-placeholder {
  height: 190px;
}

.pet-side-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(36, 78, 67, 0.08);
  padding: 14px 14px 6px;
  height: auto;
}

.pet-side-title {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--pet-primary-dark);
}

.pet-side-line {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.pet-side-line .text-truncate {
  flex: 1;
  min-width: 0;
  display: block;
}

.pet-side-rank {
  width: 24px;
  height: 24px;
  line-height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  text-align: center;
  margin-right: 8px;
  color: #fff;
  font-size: 12px;
  background: var(--pet-primary);
}

.pet-side-rank-hot {
  background: #ff8c5b;
}

.pet-section-title {
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  margin-bottom: 2px;
}

.pet-title-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  min-height: 36px;
  gap: 12px;
}

.pet-news-search {
  width: 415px;
  height: 34px;
  display: flex;
  align-items: center;
  border: 1px solid #dfe9e5;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.pet-news-search .form-control {
  border: 0;
  box-shadow: none;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.pet-news-search .form-control::placeholder {
  color: #9fb0aa;
}

.pet-news-search .btn {
  border: 0;
  height: 34px;
  width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4e8e80;
  background: transparent;
  border-left: 1px solid #e6efeb;
  padding: 0;
}

.pet-news-search .btn:hover {
  color: #2e7565;
  background: #f4fbf8;
}

.pet-title-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #58c9b3, #7cc7ff);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-right: 10px;
}

.pet-more {
  margin-left: auto;
  color: var(--pet-muted);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
}

.pet-title-actions .pet-more {
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  height: 34px;
  line-height: 1;
}

.pet-more:hover {
  color: var(--pet-primary-dark);
}

.pet-title-link {
  color: inherit;
  text-decoration: none;
}

.pet-title-link:hover {
  color: var(--pet-primary-dark);
  text-decoration: none;
}

.pet-channel-card {
  height: 100%;
  background: #fff;
  border: 1px solid #e7f4ef;
  border-radius: 12px;
  padding: 15px;
  transition: all 0.2s ease;
}

.pet-channel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(73, 145, 126, 0.12);
}

.pet-channel-card h6 {
  margin-bottom: 7px;
  color: var(--pet-primary-dark);
  font-weight: 600;
}

.pet-channel-card p {
  margin: 0;
  font-size: 13px;
  color: var(--pet-muted);
  line-height: 1.55;
}

.pet-lead-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--pet-line);
}

.pet-lead-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.pet-lead-body {
  padding: 15px 16px;
}

.pet-lead-body h4 {
  font-size: 20px;
  margin-bottom: 8px;
}

.pet-lead-body p {
  margin-bottom: 10px;
  color: var(--pet-muted);
  line-height: 1.6;
}

.pet-lead-body span {
  color: #8a99a5;
  font-size: 13px;
}

.pet-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed var(--pet-line);
  padding: 6px 0;
  gap: 8px;
}

.pet-list-item span {
  flex-shrink: 0;
  color: #9aa8b4;
  font-size: 13px;
}

.pet-thumb-list-item {
  border-bottom: 1px dashed var(--pet-line);
  padding: 8px 0;
}

.pet-thumb-list-item:last-child {
  border-bottom: none;
}

.pet-thumb-list-link {
  gap: 10px;
  min-height: 36px;
}

.pet-thumb-list-media {
  display: block;
  width: 72px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f4f7;
}

.pet-thumb-list-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

.pet-thumb-list-title {
  font-size: 14px;
  line-height: 1.45;
  color: var(--pet-text);
}

.pet-thumb-list-link:hover .pet-thumb-list-title {
  color: var(--pet-primary-dark);
}

.pet-image-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.pet-image-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.pet-image-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0));
  padding: 22px 12px 10px;
}

.pet-image-mask span {
  color: #fff;
  font-size: 15px;
  display: block;
}

.pet-video-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--pet-line);
}

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

.pet-video-title {
  padding: 8px 10px;
  font-size: 14px;
  color: var(--pet-text);
}

.pet-video-card.pet-video-wide img {
  height: 112px;
}

.pet-video-card.pet-video-wide .pet-video-title {
  padding: 6px 8px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pet-life-video-row .pet-ai-video-grid {
  margin-bottom: 0.25rem;
}

.pet-ai-video-card img {
  height: 118px;
}

.pet-ai-video-card .pet-video-title {
  padding: 6px 8px;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pet-topic-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--pet-line);
  padding: 14px 14px 2px;
  height: 100%;
}

.pet-topic-card h5 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--pet-primary-dark);
}

.pet-topic-card p {
  margin-bottom: 5px;
  border-bottom: 1px dashed var(--pet-line);
  padding-bottom: 5px;
}

.pet-topic-card p a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .pet-topic-card-wide .pet-topic-card-columns {
    columns: 2;
    column-gap: 1.25rem;
  }
  .pet-topic-card-wide .pet-topic-card-columns p {
    break-inside: avoid;
  }
}

.pet-academy-columns p {
  margin-bottom: 5px;
  border-bottom: 1px dashed var(--pet-line);
  padding-bottom: 5px;
}

.pet-academy-columns p a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .pet-academy-columns {
    columns: 2;
    column-gap: 1.25rem;
  }

  .pet-academy-columns p {
    break-inside: avoid;
  }
}

.pet-copyright {
  background: linear-gradient(135deg, #f0fbf7 0%, #f0f6ff 100%);
  border-top: 1px solid #e1efe8;
  color: #60707d;
}

.pet-copyright a {
  color: #4f6370;
}

.pet-copyright a:hover {
  color: var(--pet-primary-dark);
}

@media (max-width: 991.98px) {
  .pet-banner .carousel-item {
    height: 280px;
  }
}

@media (max-width: 575.98px) {
  .pet-banner .carousel-item {
    height: 190px;
  }

  .pet-news-title {
    flex-wrap: wrap;
    gap: 8px;
  }

  .pet-title-actions {
    width: 100%;
    margin-left: 0;
  }

  .pet-news-search {
    width: 100%;
  }
}
