/* ============================================
   糖心宠物社区与萌宠日记 - 核心样式框架
   设计风格：暖橘+米白温馨宠物风
   ============================================ */

/* CSS 变量定义 */
:root {
  --x90: #FF8A65;
  --z13: #E64A19;
  --y34: #FFCCBC;
  --d34: #FFF9F5;
  --p10: #FFFFFF;
  --a13: #4CAF50;
  --z71: #C8E6C9;
  --b1: #4E342E;
  --t54: #795548;
  --w84: #A1887F;
  --m91: #FFCCBC;
  --h77: 20px;
  --n92: 12px;
  --d67: 8px;
  --a37: 0 4px 16px rgba(255,138,101,0.15);
  --v7: 0 8px 32px rgba(255,138,101,0.2);
  --z57: 0 2px 8px rgba(255,138,101,0.1);
  --m63: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  --u92: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --k76: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --t95: 1200px;
  --h95: 72px;
}

/* 全局重置 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--k76);
  background-color: var(--d34);
  color: var(--b1);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--x90);
  text-decoration: none;
  transition: var(--m63);
}

a:hover {
  color: var(--z13);
}

ul, ol {
  list-style: none;
}

/* 容器 */
.container {
  width: 100%;
  max-width: var(--t95);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   头部导航
   ============================================ */
.pn-chip {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 249, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--m91);
  height: var(--h95);
  display: flex;
  align-items: center;
}

.xz-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--t95);
  margin: 0 auto;
  padding: 0 1.5rem;
}

._75sny {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--x90);
}

._75sny .k8i5l5 {
  font-size: 1.8rem;
}

.q4p2h7 {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.q4p2h7 a {
  padding: 0.5rem 1rem;
  border-radius: var(--d67);
  color: var(--b1);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--m63);
}

.q4p2h7 a:hover,
.q4p2h7 a.active {
  background: var(--y34);
  color: var(--z13);
}

.f4w7f1 {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.f4w7f1 span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--b1);
  border-radius: 2px;
  transition: var(--m63);
}

/* ============================================
   首屏 Hero
   ============================================ */
._1ztt9 {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--y34) 0%, var(--d34) 100%);
}

._1ztt9 .r9h7g9 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.r3v2w9 {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 4rem 0;
}

.r3v2w9 h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--b1);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.r3v2w9 .z5u7m8 {
  font-size: 1.2rem;
  color: var(--t54);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.r3v2w9 ._o75vt {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   按钮系统
   ============================================ */
.hp-list {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--h77);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--m63);
  text-decoration: none;
}

.hp-list:active {
  transform: scale(0.97);
}

.r9q6l6 {
  background: var(--x90);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,138,101,0.3);
}

.r9q6l6:hover {
  background: var(--z13);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255,138,101,0.4);
  transform: translateY(-2px);
}

._s13sa {
  background: transparent;
  color: var(--x90);
  border: 2px solid var(--x90);
}

._s13sa:hover {
  background: var(--x90);
  color: #fff;
}

.pn-card {
  background: var(--a13);
  color: #fff;
}

.pn-card:hover {
  background: #388E3C;
  color: #fff;
}

/* ============================================
   区块标题
   ============================================ */
.tx-line {
  text-align: center;
  margin-bottom: 3rem;
}

.tx-line h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--b1);
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.tx-line h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--x90);
  border-radius: 2px;
}

.tx-line p {
  color: var(--w84);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0.75rem auto 0;
}

/* ============================================
   卡片系统
   ============================================ */
.i5d9n8 {
  background: var(--p10);
  border-radius: var(--h77);
  box-shadow: var(--z57);
  overflow: hidden;
  transition: var(--m63);
}

.i5d9n8:hover {
  box-shadow: var(--a37);
  transform: translateY(-4px);
}

.fn-line {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.lq-row {
  padding: 1.25rem;
}

.lq-row h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--b1);
  margin-bottom: 0.5rem;
}

.lq-row p {
  color: var(--t54);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* 宠物档案卡片 */
.gk-slot {
  background: var(--p10);
  border-radius: var(--h77);
  box-shadow: var(--z57);
  padding: 1.5rem;
  text-align: center;
  transition: var(--m63);
  position: relative;
  overflow: hidden;
}

.gk-slot:hover {
  box-shadow: var(--v7);
  transform: translateY(-6px) rotate(1deg);
}

.gk-slot .f9m9p3 {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--y34);
}

.gk-slot ._d0vlj {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--b1);
  margin-bottom: 0.25rem;
}

.gk-slot .w3k7f9 {
  color: var(--w84);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.gk-slot .jm-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

._x6lj3 {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--y34);
  color: var(--z13);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.hp-cell {
  background: var(--z71);
  color: #2E7D32;
}

/* ============================================
   网格布局
   ============================================ */
.rp-pill {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.gk-cell {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.m9b7o1 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ============================================
   内容区块
   ============================================ */
.tx-tag {
  padding: 4rem 0;
}

.qr-head {
  background: var(--p10);
}

/* 领养看板 */
._sjopy {
  background: linear-gradient(135deg, #FFF3E0 0%, var(--d34) 100%);
  border-radius: var(--h77);
  padding: 2rem;
}

.h3r6y1 {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--p10);
  border-radius: var(--n92);
  margin-bottom: 1rem;
  box-shadow: var(--z57);
  transition: var(--m63);
}

.h3r6y1:hover {
  box-shadow: var(--a37);
}

.h3r6y1 img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.h3r6y1 .f3i8c1 h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--b1);
  margin-bottom: 0.25rem;
}

.h3r6y1 .f3i8c1 p {
  font-size: 0.85rem;
  color: var(--w84);
}

/* ============================================
   FAQ 手风琴
   ============================================ */
._36oer {
  max-width: 800px;
  margin: 0 auto;
}

.mv-row {
  background: var(--p10);
  border-radius: var(--n92);
  margin-bottom: 0.75rem;
  box-shadow: var(--z57);
  overflow: hidden;
}

._rp84g {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--b1);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--m63);
}

._rp84g:hover {
  color: var(--x90);
}

._rp84g::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--x90);
  transition: var(--m63);
}

.mv-row.active ._rp84g::after {
  transform: rotate(45deg);
}

.h9b5w6 {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--t54);
  line-height: 1.8;
}

.mv-row.active .h9b5w6 {
  padding: 0 1.5rem 1.25rem;
  max-height: 500px;
}

/* ============================================
   页脚
   ============================================ */
.dk-foot {
  background: var(--b1);
  color: #fff;
  padding: 3rem 0 1.5rem;
}

.nf-zone {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

._vwyv1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--x90);
  margin-bottom: 0.75rem;
}

.rp-area {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

._c596q h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--y34);
}

._c596q a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: var(--m63);
}

._c596q a:hover {
  color: var(--x90);
  padding-left: 4px;
}

.v6m4d4 {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.v6m4d4 a {
  color: rgba(255,255,255,0.7);
}

/* ============================================
   面包屑
   ============================================ */
.r6s1u2 {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--w84);
}

.r6s1u2 a {
  color: var(--t54);
}

.r6s1u2 a:hover {
  color: var(--x90);
}

.r6s1u2 span {
  margin: 0 0.5rem;
  color: var(--w84);
}

/* ============================================
   内页通用
   ============================================ */
.xz-pill {
  background: linear-gradient(135deg, var(--y34) 0%, var(--d34) 100%);
  padding: 3rem 0;
  text-align: center;
}

.xz-pill h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--b1);
  margin-bottom: 0.75rem;
}

.xz-pill p {
  color: var(--t54);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.v3s1r7 {
  padding: 3rem 0;
}

.v3s1r7 p {
  margin-bottom: 1.25rem;
  line-height: 1.9;
}

.v3s1r7 h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--b1);
  margin: 2rem 0 1rem;
}

.v3s1r7 h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--b1);
  margin: 1.5rem 0 0.75rem;
}

/* ============================================
   搜索页
   ============================================ */
.qr-list {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  gap: 0;
}

.qr-list input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid var(--m91);
  border-right: none;
  border-radius: var(--h77) 0 0 var(--h77);
  font-size: 1rem;
  outline: none;
  transition: var(--m63);
}

.qr-list input:focus {
  border-color: var(--x90);
}

.qr-list button {
  padding: 1rem 2rem;
  background: var(--x90);
  color: #fff;
  border: none;
  border-radius: 0 var(--h77) var(--h77) 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--m63);
}

.qr-list button:hover {
  background: var(--z13);
}

.zt-line {
  max-width: 800px;
  margin: 0 auto;
}

.d4k5k1 {
  padding: 1.25rem;
  border-bottom: 1px solid var(--m91);
}

.d4k5k1 h3 a {
  color: var(--b1);
  font-weight: 600;
}

.d4k5k1 h3 a:hover {
  color: var(--x90);
}

.d4k5k1 p {
  color: var(--w84);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

/* ============================================
   404 页面
   ============================================ */
.dk-area {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.dk-area .dk-box {
  font-size: 8rem;
  font-weight: 800;
  color: var(--y34);
  line-height: 1;
}

.dk-area h1 {
  font-size: 1.8rem;
  color: var(--b1);
  margin: 1rem 0;
}

.dk-area p {
  color: var(--w84);
  margin-bottom: 2rem;
}

/* ============================================
   动画
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pawPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.m6w8s4 {
  animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  opacity: 0;
}

._eg5w0 { animation-delay: 0.1s; }
._6h7yp { animation-delay: 0.2s; }
.mv-line { animation-delay: 0.3s; }
.vw-list { animation-delay: 0.4s; }

/* 爪印装饰 */
.rp-box {
  position: absolute;
  font-size: 2rem;
  opacity: 0.1;
  color: var(--x90);
  pointer-events: none;
}

/* ============================================
   响应式断点
   ============================================ */
@media (max-width: 1024px) {
  .m9b7o1 {
    grid-template-columns: repeat(2, 1fr);
  }
  .nf-zone {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --h95: 60px;
  }

  .q4p2h7 {
    display: none;
    position: absolute;
    top: var(--h95);
    left: 0;
    right: 0;
    background: var(--d34);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--m91);
    box-shadow: var(--a37);
  }

  .q4p2h7.active {
    display: flex;
  }

  .f4w7f1 {
    display: flex;
  }

  .r3v2w9 h1 {
    font-size: 2rem;
  }

  .rp-pill, .gk-cell, .m9b7o1 {
    grid-template-columns: 1fr;
  }

  .nf-zone {
    grid-template-columns: 1fr;
  }

  .tx-tag {
    padding: 2.5rem 0;
  }

  .tx-line h2 {
    font-size: 1.6rem;
  }

  ._1ztt9 {
    min-height: 400px;
  }

  .h3r6y1 {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .r3v2w9 h1 {
    font-size: 1.6rem;
  }

  .hp-list {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
  }

  .xz-pill h1 {
    font-size: 1.6rem;
  }
}

/* ============================================
   工具类
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--x90); }
.text-accent { color: var(--a13); }
.text-muted { color: var(--w84); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p8s3i9 {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* 回到顶部 */
._tnxam {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--x90);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--a37);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--m63);
  z-index: 999;
  border: none;
}

._tnxam.visible {
  opacity: 1;
  visibility: visible;
}

._tnxam:hover {
  background: var(--z13);
  transform: translateY(-3px);
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
