/* ============================================================
   暖爪领养中心 · 全站共享样式
   ============================================================ */

/* ---------- 字体（本地化：可变字重 100-900） ---------- */
@font-face {
  font-family: 'Noto Sans SC';
  src: url('../fonts/NotoSansSC-VF.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 设计变量 ---------- */
:root {
  --brand: #E26D3D;
  --brand-deep: #C7512A;
  --brand-soft: #FBEBDF;
  --ink: #33241B;
  --text: #5C4638;
  --muted: #8E7868;
  --bg: #FBF6EF;
  --card: #FFFFFF;
  --line: #EFE1D3;
  --green: #4E8A5F;
  --green-deep: #3A6D4B;
  --green-soft: #E8F1EA;
  --gold: #D99A2B;
  --gold-soft: #F7ECD7;
  --danger: #C0563F;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(76, 45, 25, .06);
  --shadow-md: 0 10px 30px rgba(76, 45, 25, .10);
  --shadow-lg: 0 24px 60px rgba(76, 45, 25, .16);
  --font: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --container: 1200px;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
button { font-family: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 88px 0; }
.section-tint { background: #F7EFE4; }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: .5px; }
.section-head .lead { font-size: 16.5px; color: var(--muted); margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 2px;
  color: var(--brand-deep); text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px;
}
.section-head.center .eyebrow::after {
  content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  font-size: 15.5px; font-weight: 600; line-height: 1.2;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 15px 34px; font-size: 16.5px; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(226, 109, 61, .32); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; box-shadow: 0 12px 28px rgba(199, 81, 42, .38); }

.btn-outline { border-color: var(--brand); color: var(--brand-deep); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.btn-soft { background: var(--brand-soft); color: var(--brand-deep); }
.btn-soft:hover { background: var(--brand); color: #fff; }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #4A3427; color: #fff; }

.btn .ico { width: 16px; height: 16px; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(76, 45, 25, .07); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { width: 42px; height: 42px; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 21px; font-weight: 800; letter-spacing: 2px; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative; padding: 9px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--text);
  transition: color .18s ease, background .18s ease;
}
.nav-link:hover { color: var(--brand-deep); background: var(--brand-soft); }
.nav-link.active { color: var(--brand-deep); font-weight: 700; background: var(--brand-soft); }
.nav-cta { margin-left: 12px; padding: 10px 22px; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink);
}
.nav-toggle .ico { width: 22px; height: 22px; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-menu { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 96px;
  background:
    radial-gradient(720px 420px at 88% 12%, rgba(232, 163, 61, .16), transparent 62%),
    radial-gradient(640px 420px at 4% 88%, rgba(226, 109, 61, .13), transparent 60%),
    var(--bg);
}
.hero-inner {
  display: grid; grid-template-columns: 1.04fr .96fr; gap: 64px; align-items: center;
}
.hero-copy h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 900; line-height: 1.22; letter-spacing: 1px; margin-bottom: 22px;
}
.hero-copy h1 em { font-style: normal; color: var(--brand); position: relative; }
.hero-lead { font-size: 17px; color: var(--text); max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin: 0; padding: 26px 0 0; border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats dt { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; color: var(--ink); line-height: 1.1; }
.hero-stats dd { margin: 0; font-size: 13.5px; color: var(--muted); }

.hero-figure { position: relative; margin: 0; }
.hero-figure img {
  width: 100%; aspect-ratio: 16 / 11; object-fit: cover;
  border-radius: 28px; box-shadow: var(--shadow-lg);
}
.hero-float-card {
  position: absolute; left: -26px; bottom: 34px; margin: 0;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 16px; padding: 14px 20px;
  box-shadow: var(--shadow-md); font-size: 13.5px; color: var(--text);
}
.hero-float-card strong { font-size: 22px; color: var(--brand-deep); font-weight: 800; }
.hero-float-card .ico { width: 30px; height: 30px; color: var(--brand); }

/* ---------- 首页特色 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: var(--card); border-radius: var(--radius); padding: 30px 26px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-ico {
  width: 52px; height: 52px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-deep); margin-bottom: 18px;
}
.feature-ico .ico { width: 26px; height: 26px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 0; }

/* ---------- 宠物卡片 ---------- */
.pet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pet-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pet-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pet-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pet-card[hidden] { display: none; }

.pet-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.pet-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pet-card:hover .pet-media img { transform: scale(1.05); }

.pet-status {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 1px;
  background: rgba(255, 255, 255, .94);
}
.pet-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pet-status.is-open { color: var(--green-deep); }
.pet-status.is-booked { color: var(--gold); }
.pet-status.is-soon { color: var(--brand-deep); }

.pet-sex {
  position: absolute; top: 14px; right: 14px;
  background: rgba(51, 36, 27, .66); color: #fff;
  font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  backdrop-filter: blur(4px);
}

.pet-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.pet-name { font-size: 20px; font-weight: 800; margin-bottom: 2px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pet-breed { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.pet-meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.pet-bio {
  font-size: 14.5px; color: var(--text); margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pet-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pet-tags span {
  font-size: 12.5px; font-weight: 500; color: var(--brand-deep);
  background: var(--brand-soft); border-radius: 999px; padding: 3px 11px;
}
.pet-card .btn { margin-top: auto; }

.pets-toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px; margin-bottom: 32px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-sm);
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill {
  border: 1px solid var(--line); background: #fff; color: var(--text);
  border-radius: 999px; padding: 9px 20px; font-size: 14.5px; font-weight: 600;
  transition: all .18s ease;
}
.filter-pill:hover { border-color: var(--brand); color: var(--brand-deep); }
.filter-pill.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-pill small { font-weight: 500; opacity: .75; margin-left: 2px; }

.search-box {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0 6px 0 16px; background: #fff; min-width: 260px;
}
.search-box .ico { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search-box input {
  border: 0; outline: 0; background: transparent; padding: 11px 4px;
  font-size: 14.5px; font-family: inherit; color: var(--ink); width: 100%;
}
.search-box input::placeholder { color: var(--muted); }

.pet-empty {
  text-align: center; padding: 60px 20px; color: var(--muted); font-size: 16px;
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
}

/* ---------- 内页页头 ---------- */
.page-hero {
  padding: 64px 0 40px;
  background:
    radial-gradient(560px 300px at 90% 0%, rgba(232, 163, 61, .15), transparent 60%),
    radial-gradient(560px 320px at 0% 100%, rgba(226, 109, 61, .12), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; margin-bottom: 12px; }
.page-hero .lead { max-width: 640px; font-size: 16.5px; color: var(--muted); margin-bottom: 0; }
.breadcrumb { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-deep); }
.breadcrumb .sep { color: var(--line); }

/* ---------- 流程时间轴 ---------- */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 860px; }
.timeline-item {
  display: grid;
  grid-template-columns: 84px 24px 1fr;
  gap: 20px;
  padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-num {
  justify-self: end; align-self: start;
  width: 58px; height: 58px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: 19px; font-weight: 800;
}

.timeline-axis { position: relative; }
.timeline-axis::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; transform: translateX(-50%);
  background: var(--brand-soft);
}
.timeline-item:first-child .timeline-axis::before { top: 50%; }
.timeline-item:last-child .timeline-axis::before { bottom: 50%; }

.timeline-dot {
  position: relative; justify-self: center; align-self: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand); border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--brand);
}

.timeline-content { padding-top: 4px; }
.timeline-content h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.timeline-content p { font-size: 15px; color: var(--text); margin-bottom: 0; }
.timeline-content .step-hint {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; font-size: 13px; color: var(--brand-deep); background: var(--brand-soft);
  padding: 4px 12px; border-radius: 999px;
}

/* ---------- 须知 / 清单卡片 ---------- */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.check-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.check-card h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 16px; }
.check-card h3 .ico { width: 22px; height: 22px; color: var(--brand); }
.check-card ul { list-style: none; padding: 0; margin: 0; }
.check-card li {
  position: relative; padding: 7px 0 7px 30px; font-size: 15px;
  border-bottom: 1px dashed var(--line);
}
.check-card li:last-child { border-bottom: 0; }
.check-card li::before {
  content: ""; position: absolute; left: 2px; top: 13px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E8A5F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E8A5F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.fee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 22px; }
.fee-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; text-align: center; box-shadow: var(--shadow-sm);
}
.fee-card .fee { font-size: 30px; font-weight: 800; color: var(--brand-deep); line-height: 1.2; }
.fee-card .fee small { font-size: 14px; font-weight: 500; color: var(--muted); }
.fee-card h4 { font-size: 15.5px; margin: 10px 0 6px; }
.fee-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 0; }

/* ---------- 联系卡片 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card .feature-ico { margin: 0 auto 14px; }
.contact-card h3 { font-size: 16px; margin-bottom: 6px; }
.contact-card p { font-size: 14px; color: var(--muted); margin: 0; word-break: break-all; }
.contact-card p strong { color: var(--ink); font-weight: 600; }

/* ---------- 领养故事 ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.story-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: grid; grid-template-columns: 1fr 1.15fr; min-height: 300px;
  box-shadow: var(--shadow-sm);
}
.story-card img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.story-body { padding: 30px 28px; display: flex; flex-direction: column; }
.story-body .story-tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--brand-deep); background: var(--brand-soft);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.story-body h3 { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.story-body p { font-size: 14.5px; color: var(--text); margin-bottom: 0; }

/* ---------- 团队 ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.team-body { padding: 22px 20px 26px; }
.team-body h3 { font-size: 18px; margin-bottom: 2px; }
.team-body .team-role { font-size: 13px; color: var(--brand-deep); font-weight: 600; margin-bottom: 10px; }
.team-body p { font-size: 14px; color: var(--muted); margin-bottom: 0; }

/* ---------- 合作伙伴 ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.partner-card {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 14px; font-size: 15px; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.partner-card .ico { width: 22px; height: 22px; color: var(--brand); flex: none; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: transparent; border: 0; text-align: left;
  padding: 20px 24px; font-size: 16.5px; font-weight: 700; color: var(--ink);
}
.faq-q .faq-no {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.faq-q .faq-text { flex: 1; }
.faq-q .ico { width: 18px; height: 18px; color: var(--muted); transition: transform .3s ease; flex: none; }
.faq-item.open .faq-q .ico { transform: rotate(180deg); color: var(--brand); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { padding: 0 24px 22px 58px; font-size: 15px; color: var(--text); margin: 0; }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  background:
    radial-gradient(600px 320px at 12% 20%, rgba(255, 255, 255, .14), transparent 60%),
    var(--brand);
  color: #fff; border-radius: 28px;
  padding: 56px 48px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .92); margin-bottom: 0; max-width: 560px; }
.cta-band .btn { background: #fff; color: var(--brand-deep); }
.cta-band .btn:hover { background: var(--brand-soft); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 模态框 ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(38, 24, 14, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s ease; }
.modal.is-open .modal-backdrop { opacity: 1; }
.modal-panel {
  position: relative; width: min(880px, 100%); max-height: 88vh; overflow: auto;
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(.98); opacity: 0; transition: transform .28s ease, opacity .28s ease;
}
.modal.is-open .modal-panel { transform: none; opacity: 1; }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--brand-soft); color: var(--brand-deep); }
.modal-close .ico { width: 18px; height: 18px; }
.modal-pet { display: grid; grid-template-columns: 1fr 1.1fr; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.modal-info { padding: 34px 34px 30px; }
.modal-info .pet-status { position: static; margin-bottom: 12px; background: var(--green-soft); }
.modal-info h2 { font-size: 28px; font-weight: 900; margin-bottom: 2px; }
.modal-info .pet-breed { color: var(--muted); margin-bottom: 16px; font-size: 15px; }
.modal-facts {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.modal-facts li {
  font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px;
}
.modal-info h3 { font-size: 16px; font-weight: 700; margin: 18px 0 8px; }
.modal-info p, .modal-info ul { font-size: 14.5px; }
.modal-info ul { padding-left: 1.3em; margin-bottom: 0; }
.modal-contact { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
body.no-scroll { overflow: hidden; }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 120;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--ink); color: #fff; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--brand-deep); }
.back-top .ico { width: 20px; height: 20px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #2C1E14; color: #C9B8A8; margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px;
  padding: 64px 24px 44px;
}
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand .brand small { color: #B39E8B; }
.footer-brand p { font-size: 14px; color: #C9B8A8; margin-bottom: 0; max-width: 30em; }
.site-footer h4 { color: #fff; font-size: 15.5px; font-weight: 700; margin-bottom: 18px; letter-spacing: 1px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #C9B8A8; font-size: 14.5px; transition: color .15s ease; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 14px; }
.footer-contact .ico { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom .container {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 20px; padding-bottom: 20px; font-size: 13px; color: #9C8874;
}

/* ---------- 滚动显现 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .pet-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-figure img { aspect-ratio: 16 / 10; }
  .hero-float-card { left: 16px; bottom: 20px; }
  .story-card { grid-template-columns: 1fr; }
  .story-card img { min-height: 240px; aspect-ratio: 16 / 9; }
  .check-grid { grid-template-columns: 1fr; }
  .fee-grid { grid-template-columns: 1fr; }
  .modal-pet { grid-template-columns: 1fr; }
  .modal-media img { min-height: 0; aspect-ratio: 16 / 9; }

  /* 导航抽屉 */
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 16px 24px 22px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s ease;
  }
  .header-inner.is-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-link { padding: 13px 16px; font-size: 16px; }
  .nav-cta { margin: 10px 0 0; justify-content: center; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .pet-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .team-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 26px; }
  .pets-toolbar { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 0; }
  .timeline-item { grid-template-columns: 60px 20px 1fr; gap: 14px; }
  .timeline-num { width: 48px; height: 48px; font-size: 16px; border-radius: 13px; }
}

@media (max-width: 520px) {
  .pet-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .hero-actions .btn { width: 100%; }
  .faq-a-inner p { padding-left: 24px; }
}
