/* ============================================
   小鲍狗 PawPawGo - 主样式表
   CSS/ID前缀: xb-
   配色: 主色 #FFDAB9, 辅色 #FFFFFF, 点缀色 #F4A460, 文本色 #5D4037, 链接色 #FF7043
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

/* ---- CSS Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --xb-primary: #FFDAB9;
  --xb-white: #FFFFFF;
  --xb-accent: #F4A460;
  --xb-text: #5D4037;
  --xb-link: #FF7043;
  --xb-bg: #FFF8F0;
  --xb-card-shadow: 0 4px 15px rgba(93,64,55,0.1);
  --xb-radius: 16px;
  --xb-radius-sm: 10px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "Nunito", sans-serif;
  color: var(--xb-text);
  background-color: var(--xb-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Comic Sans MS", cursive, sans-serif;
  line-height: 1.3;
  color: var(--xb-text);
}

a {
  color: var(--xb-link);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: #E64A19; }

img { max-width: 100%; height: auto; display: block; }

.xb-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- Paw Loading Animation ---- */
.xb-paw-loader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--xb-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.xb-paw-loader.xb-hidden { opacity: 0; pointer-events: none; }
.xb-paw-prints {
  display: flex;
  gap: 12px;
}
.xb-paw-print {
  width: 30px; height: 30px;
  background: var(--xb-accent);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: xb-pawBounce 1.4s ease-in-out infinite;
}
.xb-paw-print:nth-child(2) { animation-delay: 0.2s; }
.xb-paw-print:nth-child(3) { animation-delay: 0.4s; }
.xb-paw-print:nth-child(4) { animation-delay: 0.6s; }

@keyframes xb-pawBounce {
  0%, 80%, 100% { transform: scale(0.6) translateY(0); opacity: 0.4; }
  40% { transform: scale(1) translateY(-20px); opacity: 1; }
}

/* ---- Navigation ---- */
#xb-header {
  background: var(--xb-primary);
  padding: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(93,64,55,0.1);
}

.xb-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.xb-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.xb-logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
.xb-logo-text {
  font-family: "Comic Sans MS", cursive, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--xb-text);
}

.xb-nav-links {
  display: none;
  list-style: none;
  gap: 4px;
}
.xb-nav-links a {
  display: block;
  padding: 8px 14px;
  color: var(--xb-text);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--xb-radius-sm);
  transition: all 0.3s ease;
  text-decoration: none;
}
.xb-nav-links a:hover, .xb-nav-links a.xb-active {
  background: rgba(255,255,255,0.5);
  transform: scale(1.05);
  color: var(--xb-link);
}

/* Hamburger (bone icon) */
.xb-hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
}
.xb-hamburger span {
  display: block;
  width: 26px;
  height: 4px;
  background: var(--xb-text);
  border-radius: 4px;
  transition: all 0.3s ease;
}
.xb-hamburger span:nth-child(1),
.xb-hamburger span:nth-child(3) {
  width: 18px;
}
.xb-hamburger span:nth-child(1) { margin-left: 4px; }
.xb-hamburger span:nth-child(3) { margin-left: 4px; }

/* Mobile menu */
.xb-mobile-menu {
  position: fixed;
  top: 0; right: -300px;
  width: 280px;
  height: 100vh;
  background: var(--xb-white);
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  z-index: 200;
  transition: right 0.35s ease;
  padding: 70px 20px 20px;
  overflow-y: auto;
}
.xb-mobile-menu.xb-open { right: 0; }
.xb-mobile-menu a {
  display: block;
  padding: 14px 16px;
  color: var(--xb-text);
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px dashed var(--xb-primary);
  text-decoration: none;
}
.xb-mobile-menu a:hover { color: var(--xb-link); background: #FFF3E8; }

.xb-menu-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--xb-text);
  cursor: pointer;
}

.xb-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 150;
  display: none;
}
.xb-overlay.xb-show { display: block; }

/* ---- Hero Section ---- */
.xb-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
}
.xb-hero-img {
  width: 100%;
  height: 50vh;
  min-height: 300px;
  max-height: 500px;
  object-fit: cover;
}
.xb-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(93,64,55,0.7));
  padding: 40px 20px 30px;
  color: var(--xb-white);
}
.xb-hero-overlay h1 {
  font-size: 1.6rem;
  color: var(--xb-white);
  margin-bottom: 8px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.xb-hero-overlay p {
  font-size: 1rem;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* ---- Section Titles ---- */
.xb-section {
  padding: 50px 0;
}
.xb-section-title {
  text-align: center;
  margin-bottom: 36px;
}
.xb-section-title h2 {
  font-size: 1.7rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}
.xb-section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--xb-accent);
  border-radius: 2px;
  margin: 10px auto 0;
}
.xb-section-title p {
  color: #8D6E63;
  font-size: 0.95rem;
}

/* ---- Cards ---- */
.xb-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.xb-card {
  background: var(--xb-white);
  border-radius: var(--xb-radius);
  overflow: hidden;
  box-shadow: var(--xb-card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px dashed transparent;
}
.xb-card:hover {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: 0 8px 25px rgba(93,64,55,0.15);
  border-color: var(--xb-primary);
}
.xb-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.xb-card:hover img { transform: scale(1.05); }
.xb-card-body {
  padding: 16px;
}
.xb-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.xb-card-body p {
  font-size: 0.9rem;
  color: #8D6E63;
  line-height: 1.6;
}

/* Heart animation on hover */
.xb-card-img-wrap {
  position: relative;
  overflow: hidden;
}
.xb-card-img-wrap::after {
  content: '\2665';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 3rem;
  color: #FF7043;
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(255,112,67,0.5);
}
.xb-card:hover .xb-card-img-wrap::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.8;
}

/* ---- Breed Cards (round) ---- */
.xb-breed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.xb-breed-card {
  text-align: center;
  transition: transform 0.3s ease;
}
.xb-breed-card:hover { transform: scale(1.08); }
.xb-breed-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 3px solid var(--xb-primary);
  box-shadow: 0 4px 12px rgba(93,64,55,0.1);
}
.xb-breed-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.xb-breed-card p {
  font-size: 0.8rem;
  color: #8D6E63;
}

/* ---- Video Cards ---- */
.xb-video-card {
  position: relative;
  border-radius: var(--xb-radius);
  overflow: hidden;
  box-shadow: var(--xb-card-shadow);
  cursor: pointer;
}
.xb-video-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.xb-video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
.xb-video-play::after {
  content: '';
  display: block;
  width: 0; height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--xb-link);
  margin-left: 4px;
}
.xb-video-card:hover .xb-video-play { transform: translate(-50%, -50%) scale(1.15); }

/* ---- Showcase Grid ---- */
.xb-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.xb-showcase-item {
  border-radius: var(--xb-radius-sm);
  overflow: hidden;
  box-shadow: var(--xb-card-shadow);
  transition: transform 0.3s ease;
}
.xb-showcase-item:hover { transform: rotate(2deg) scale(1.03); }
.xb-showcase-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* ---- Buttons ---- */
.xb-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--xb-link);
  color: var(--xb-white);
  border: none;
  border-radius: 50px;
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}
.xb-btn:hover {
  background: #E64A19;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,112,67,0.3);
  color: var(--xb-white);
}
.xb-btn:active { transform: translateY(0) scale(0.97); }

.xb-btn-outline {
  background: transparent;
  color: var(--xb-link);
  border: 2px solid var(--xb-link);
}
.xb-btn-outline:hover {
  background: var(--xb-link);
  color: var(--xb-white);
}

/* ---- VIP Section ---- */
.xb-vip-section {
  background: linear-gradient(135deg, #FFF3E0, #FFDAB9);
  border-radius: var(--xb-radius);
  padding: 30px 20px;
  text-align: center;
  margin: 0 16px;
}
.xb-vip-section img {
  width: 200px;
  margin: 0 auto 20px;
  border-radius: var(--xb-radius);
}
.xb-vip-perks {
  list-style: none;
  text-align: left;
  max-width: 400px;
  margin: 20px auto;
}
.xb-vip-perks li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  font-size: 0.95rem;
}
.xb-vip-perks li::before {
  content: '\1F43E';
  position: absolute;
  left: 0;
}

/* ---- Footer ---- */
#xb-footer {
  background: var(--xb-text);
  color: #D7CCC8;
  padding: 50px 0 0;
  margin-top: 60px;
}
.xb-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-bottom: 30px;
}
.xb-footer-col h4 {
  color: var(--xb-white);
  font-size: 1.1rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}
.xb-footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--xb-accent);
  border-radius: 2px;
}
.xb-footer-col a {
  display: block;
  color: #D7CCC8;
  padding: 5px 0;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  text-decoration: none;
}
.xb-footer-col a:hover { color: var(--xb-primary); }

.xb-footer-social {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.xb-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #D7CCC8;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.xb-footer-social a:hover {
  background: var(--xb-accent);
  color: var(--xb-white);
}

.xb-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
}
.xb-footer-bottom p {
  font-size: 0.8rem;
  color: #A1887F;
  margin-bottom: 6px;
}
.xb-footer-bottom a {
  color: #BCAAA4;
  font-size: 0.8rem;
}
.xb-footer-certs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}
.xb-footer-certs span {
  font-size: 0.75rem;
  color: #A1887F;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
}

/* ---- Page Banner (inner pages) ---- */
.xb-page-banner {
  background: linear-gradient(135deg, var(--xb-primary), #FFE0B2);
  padding: 40px 20px;
  text-align: center;
  border-radius: 0 0 30px 30px;
}
.xb-page-banner h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.xb-page-banner p {
  color: #8D6E63;
  font-size: 1rem;
}

/* ---- Adoption Cards ---- */
.xb-adoption-card {
  background: var(--xb-white);
  border-radius: var(--xb-radius);
  overflow: hidden;
  box-shadow: var(--xb-card-shadow);
  border: 2px dashed var(--xb-primary);
  transition: transform 0.3s ease;
}
.xb-adoption-card:hover { transform: translateY(-4px); }
.xb-adoption-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.xb-adoption-info {
  padding: 16px;
}
.xb-adoption-info h3 { font-size: 1.15rem; margin-bottom: 8px; }
.xb-adoption-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.xb-adoption-tag {
  display: inline-block;
  padding: 3px 10px;
  background: #FFF3E0;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--xb-text);
}
.xb-adoption-desc {
  font-size: 0.9rem;
  color: #8D6E63;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* ---- Filter Bar ---- */
.xb-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
}
.xb-filter-bar select {
  padding: 10px 16px;
  border: 2px solid var(--xb-primary);
  border-radius: 50px;
  background: var(--xb-white);
  color: var(--xb-text);
  font-family: "Nunito", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
}
.xb-filter-bar select:focus { border-color: var(--xb-accent); }

/* ---- Form ---- */
.xb-form {
  background: var(--xb-white);
  border-radius: var(--xb-radius);
  padding: 30px 20px;
  box-shadow: var(--xb-card-shadow);
  max-width: 600px;
  margin: 0 auto;
}
.xb-form h3 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.3rem;
}
.xb-form-group {
  margin-bottom: 18px;
}
.xb-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.xb-form-group input,
.xb-form-group select,
.xb-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px dashed var(--xb-primary);
  border-radius: var(--xb-radius-sm);
  font-family: "Nunito", sans-serif;
  font-size: 0.95rem;
  color: var(--xb-text);
  background: #FFFAF5;
  outline: none;
  transition: border-color 0.3s ease;
}
.xb-form-group input:focus,
.xb-form-group select:focus,
.xb-form-group textarea:focus {
  border-color: var(--xb-accent);
  border-style: solid;
}
.xb-form-group textarea { min-height: 100px; resize: vertical; }

/* ---- APP Download Page ---- */
.xb-app-section {
  text-align: center;
  padding: 50px 20px;
  background: repeating-conic-gradient(var(--xb-bg) 0% 25%, transparent 0% 50%) 0 0 / 40px 40px;
  position: relative;
}
.xb-app-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,248,240,0.85);
}
.xb-app-content {
  position: relative;
  z-index: 1;
}
.xb-app-mockup {
  max-width: 280px;
  margin: 0 auto 30px;
  border-radius: 30px;
  box-shadow: 0 10px 40px rgba(93,64,55,0.2);
}
.xb-app-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* ---- Article Content ---- */
.xb-article {
  background: var(--xb-white);
  border-radius: var(--xb-radius);
  padding: 24px 20px;
  box-shadow: var(--xb-card-shadow);
  margin-bottom: 30px;
}
.xb-article h2 { font-size: 1.4rem; margin: 24px 0 12px; }
.xb-article h3 { font-size: 1.15rem; margin: 20px 0 10px; }
.xb-article p { margin-bottom: 14px; font-size: 0.95rem; }
.xb-article img {
  border-radius: var(--xb-radius-sm);
  margin: 16px 0;
}

/* ---- Responsive Breakpoints ---- */

/* 360px+ (base mobile) - already styled above */

/* 768px+ Tablet */
@media (min-width: 768px) {
  .xb-card-grid { grid-template-columns: repeat(2, 1fr); }
  .xb-breed-grid { grid-template-columns: repeat(3, 1fr); }
  .xb-showcase-grid { grid-template-columns: repeat(3, 1fr); }
  .xb-footer-grid { grid-template-columns: repeat(3, 1fr); }
  .xb-hero-overlay h1 { font-size: 2rem; }
  .xb-hero-overlay p { font-size: 1.1rem; }
  .xb-section-title h2 { font-size: 2rem; }
  .xb-page-banner h1 { font-size: 2.2rem; }
  .xb-breed-card img { width: 140px; height: 140px; }
}

/* 1024px+ Desktop */
@media (min-width: 1024px) {
  .xb-nav-links {
    display: flex;
  }
  .xb-hamburger { display: none; }
  .xb-card-grid { grid-template-columns: repeat(3, 1fr); }
  .xb-breed-grid { grid-template-columns: repeat(4, 1fr); }
  .xb-showcase-grid { grid-template-columns: repeat(4, 1fr); }
  .xb-hero-img { height: 60vh; max-height: 550px; }
  .xb-hero-overlay h1 { font-size: 2.4rem; }
  .xb-hero-overlay p { font-size: 1.15rem; }
  .xb-container { padding: 0 24px; }
  .xb-breed-card img { width: 160px; height: 160px; }
}

/* 1440px+ Large Desktop */
@media (min-width: 1440px) {
  .xb-container { max-width: 1320px; }
  .xb-card-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .xb-breed-grid { grid-template-columns: repeat(6, 1fr); }
  .xb-section { padding: 70px 0; }
}

/* ---- Utility ---- */
.xb-text-center { text-align: center; }
.xb-mt-20 { margin-top: 20px; }
.xb-mt-30 { margin-top: 30px; }
.xb-mb-20 { margin-bottom: 20px; }

/* ---- Jammer blocks ---- */
.paw-jammer-block { display: none !important; }
