:root {
  --primary: #e87a5d;
  --primary-dark: #d16a4e;
  --primary-light: #f5e0d8;
  --bg-warm: #f8f7f5;
  --bg-card: #ffffff;
  --text-dark: #1a1a1a;
  --text-muted: #666666;
  --text-light: #999999;
  --border-color: #e5e0d8;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: auto !important;
  min-height: 100vh;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background: var(--bg-warm);
  color: var(--text-dark);
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.quick-summary-box {
  background-color: #fff8f0;
  border: 1px solid #ffe3cb;
  border-left: 4px solid #e06d53;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.7;
}
.quick-summary-box strong {
  color: var(--primary-dark);
}

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 20px;
  margin-bottom: 30px;
}
.sticky-nav .nav-scroll {
  position: relative;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.sticky-nav .nav-scroll::-webkit-scrollbar {
  display: none;
}
.sticky-nav .nav-scroll a {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 3px solid transparent;
  transition: color var(--transition);
}
.sticky-nav .nav-scroll a:hover,
.sticky-nav .nav-scroll a.active {
  color: var(--primary);
}

.sticky-nav .nav-indicator {
  position: absolute;
  bottom: 0;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.breed-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  grid-template-areas:
    "header   sidebar"
    "content  sidebar";
  gap: 0 36px;
  align-items: start;
  margin-bottom: 40px;
}

#section-intro {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 0 16px 0;
  margin-bottom: 25px;
}

.breed-lead-text {
  margin-bottom: 16px;
}

.rich-content-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark, #1a1a1a);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light, #f5e0d8);
  letter-spacing: -0.3px;
}

.rich-content-body h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 18px;
  background-color: var(--primary, #e87a5d);
  margin-right: 10px;
  border-radius: 3px;
  vertical-align: middle;
}

.rich-content-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark, #2d3748);
  margin-top: 24px;
  margin-bottom: 10px;
}

.rich-content-body p {
  margin-bottom: 0;
}

.rich-content-body strong,
.rich-content-body b {
  color: var(--primary-dark, #d16a4e);
  font-weight: 600;
}

.rich-content-body p + ul,
.rich-content-body p + ol {
  margin-top: 0.5rem;
}

.page-header {
  grid-area: header;
  margin-bottom: 24px;
}
.page-header h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}
.page-header .scientific-name {
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 12px;
}
.page-header .tagline {
  border-left: none;
  padding-left: 0;
  font-weight: 600;
  color: #4a4a4a;
  margin-bottom: 20px;
}

.pet-infobox {
  grid-area: sidebar;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: sticky;
  top: 70px;
}

.pet-infobox .infobox-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #e8e4de;
}
.pet-infobox .infobox-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pet-infobox .infobox-image .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.pet-infobox .infobox-title {
  background: var(--primary-light);
  color: var(--primary-dark);
  text-align: center;
  padding: 10px;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid var(--border-color);
}

.pet-infobox .infobox-table {
  width: 100%;
  border-collapse: collapse;
}
.pet-infobox .infobox-table tr {
  border-bottom: 1px solid #f0f0f0;
}
.pet-infobox .infobox-table tr:last-child {
  border-bottom: none;
}
.pet-infobox .infobox-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  width: 32%;
  background: #faf8f5;
}
.pet-infobox .infobox-table td {
  padding: 10px 16px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}
.pet-infobox .infobox-table td .tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.breed-main-content {
  grid-area: content;
  min-width: 0;
}

.section-block,
#section-intro {
  scroll-margin-top: 80px;
}

.section-block {
  margin-bottom: 40px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f0eee9;
}
@media (max-width: 768px) {
  .section-block {
    padding: 20px 16px;
    margin-bottom: 24px;
  }
}
.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title .sub {
  font-size: 14px;
  color: #999;
  font-weight: 400;
}

.traits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 768px) {
  .traits-grid {
    grid-template-columns: 1fr;
  }
}

.traits-summary-card {
  background: #faf8f5;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.traits-summary-card .summary-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 12px;
  width: fit-content;
}
.traits-summary-card .summary-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 4px;
}
.traits-summary-card .summary-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.traits-summary-card .summary-tips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.traits-summary-card .tip-tag {
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 3px 10px;
  border-radius: 6px;
  color: var(--text-muted);
}

.traits-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
}
.traits-list .trait-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  gap: 12px;
  margin: 0;
}
.traits-list dt {
  font-weight: 600;
  width: 100px;
  color: var(--text-dark);
}
.traits-list dd {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.traits-list dd progress {
  display: none;
}
.traits-list dd .bar {
  flex: 1;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}
.traits-list dd .bar .fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), #f5a623);
}
.traits-list dd .trait-value {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 13px;
  min-width: 38px;
  text-align: right;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery-grid .gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  margin: 0;
  cursor: pointer;
  position: relative;
}
.gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid .gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
}

.faq-item {
  border: none;
  border-bottom: 1px solid #f0eee9;
}
.faq-item:last-child {
  border-bottom: none;
}

.faq-item .question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.2s ease;
  user-select: none;
}

.faq-item .question .q-title {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}

.faq-item .question .q-icon {
  font-weight: 800;
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}

.faq-item .question .icon-arrow {
  font-size: 11px;
  color: var(--text-light);
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.2s ease;
  margin-left: 12px;
  flex-shrink: 0;
}

.faq-item:hover .question {
  color: var(--primary);
}
.faq-item:hover .question .icon-arrow {
  color: var(--primary);
}

.faq-item.active .question .icon-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-item .answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .answer-wrapper {
  grid-template-rows: 1fr;
}

.faq-item .answer-content {
  overflow: hidden;
}

.faq-item .answer-inner {
  background: var(--bg-warm);
  padding: 14px 18px;
  border-left: 3px solid var(--primary);
  margin: 0 8px 18px 8px;
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #eae6df;
  text-decoration: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  height: 100%;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-card img {
  width: 100%;
  aspect-ratio: 1.618 / 1;
  object-fit: cover;
  background: #e5e0d8;
  display: block;
  height: auto;
}

.article-card .info {
  padding: 16px;
  flex: 1;
  display: flex;
  align-items: center;
}

.article-card .info h3 {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  color: var(--text-dark) !important;
  margin: 0 !important;
  padding: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 992px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.similar-card .info {
  padding: 12px 8px;
  text-align: center;
}

.similar-card .info h3 {
  font-size: 14px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: var(--text-dark) !important;
  line-height: 1.4 !important;
}

.similar-card .pet_card_img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #e5e0d8;
  display: block;
  height: auto;
  border-radius: 50%;
}

.pet_card_btn {
  white-space: nowrap;
}

.pet_card .pet_card_img_box {
  margin-bottom: 15px;
}

.similar-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  gap: 12px;
  scrollbar-width: none;
}

.similar-grid::-webkit-scrollbar {
  display: none;
}

.similar-card {
  flex: 0 0 150px;
  scroll-snap-align: start;
}

@media (max-width: 575px) {
  .similar-card .pet_card_img_box {
    width: 95px;
    margin-top: 20px;
  }
}

@media (max-width: 992px) {
  .breed-layout {
    display: flex;
    flex-direction: column;
  }
  .page-header {
    order: 1;
    width: 100%;
    margin-bottom: 20px;
  }
  .pet-infobox {
    order: 2;
    width: 100%;
    margin-bottom: 28px;
    position: static;
  }
  .breed-main-content {
    order: 3;
    width: 100%;
  }
}

.side_tltle {
  font-weight: 500;
  font-size: 18px;
}

.view-more-articles {
  margin-top: 24px;
  text-align: center;
}

.btn-view-more {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-view-more:hover {
  background-color: var(--primary-dark);
  color: #fff;
}
