:root {
  --ink: #173f3a;
  --ink-deep: #102f2c;
  --muted: #71817c;
  --paper: #f6f1e8;
  --white: #fffdf9;
  --line: #e3ddd1;
  --coral: #e78366;
  --coral-soft: #f9ded2;
  --yellow: #f1c56b;
  --green-soft: #dce9d8;
  --shadow: 0 20px 55px rgba(23, 63, 58, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.app-frame { min-height: 100vh; }
.gate-screen {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 46px 22px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
}
.gate-mark {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  color: var(--white);
  background: var(--coral);
  border-radius: 22px 22px 22px 8px;
  box-shadow: 10px 12px 0 var(--coral-soft);
}
.gate-mark svg { width: 43px; height: 43px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.gate-copy h1, .hero-copy h1, .section-heading h2, .care-section h2 {
  margin: 0;
  color: var(--ink-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}
.gate-copy h1 { font-size: clamp(42px, 12vw, 64px); line-height: 1.05; }
.gate-description {
  max-width: 390px;
  margin: 17px 0 28px;
  color: var(--muted);
  font-size: 15px;
}
.gate-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, .78);
  box-shadow: var(--shadow);
}
.panel-heading {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.panel-heading h2 { margin: 0 0 3px; font-size: 19px; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.step-badge {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}
.step-badge-coral { color: var(--white); background: var(--coral); }
.field {
  display: block;
  margin-bottom: 14px;
}
.field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.field input, .field select, .field textarea, .search-box {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field input, .field select, .field textarea { padding: 12px 13px; }
.field textarea { resize: vertical; min-height: 78px; }
.field input:focus, .field select:focus, .field textarea:focus, .search-box:focus-within {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-soft);
}
.field input::placeholder, .field textarea::placeholder { color: #a4aea8; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: wait; opacity: .55; transform: none; }
.button-wide { width: 100%; }
.button-primary { color: var(--white); background: var(--ink); box-shadow: 0 8px 16px rgba(23, 63, 58, .16); }
.button-primary:hover { background: var(--ink-deep); }
.button-dark { color: var(--white); background: var(--ink-deep); }
.button-dark:hover { background: #28554f; }
.form-feedback { min-height: 20px; margin: 9px 0 0; color: var(--coral); font-size: 12px; }
.form-feedback.is-success { color: #3d7859; }
.text-button {
  display: block;
  margin: 17px auto 0;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}
.text-button:hover { color: var(--ink); text-decoration: underline; }
.gate-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: #5aaf78;
  box-shadow: 0 0 0 4px rgba(90, 175, 120, .15);
}

.adoption-site { min-height: 100vh; background: var(--paper); }
.site-header {
  width: min(100% - 36px, 1180px);
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .02em;
}
.brand-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--coral);
  border-radius: 9px 9px 9px 3px;
  font-size: 24px;
  line-height: 1;
}
.header-actions { display: flex; gap: 10px; align-items: center; }
.language-picker { display: inline-flex; align-items: center; }
.language-picker select {
  min-height: 34px;
  padding: 6px 26px 6px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-size: 11px;
  outline: 0;
}
.language-picker select:focus { border-color: var(--coral); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.account-chip {
  max-width: 150px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.icon-button:hover { border-color: var(--coral); color: var(--coral); }
.hero-section, .content-section, .care-section {
  width: min(100% - 36px, 1180px);
  margin: 0 auto;
}
.hero-section {
  display: grid;
  gap: 34px;
  padding: 42px 0 48px;
}
.hero-copy { align-self: center; }
.hero-copy h1 { font-size: clamp(48px, 12vw, 86px); line-height: .98; }
.hero-copy h1 em { color: var(--coral); font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 460px; margin: 24px 0 26px; color: var(--muted); font-size: 16px; }
.hero-photo { position: relative; max-width: 560px; margin-left: auto; }
.hero-photo::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 18px;
  left: -14px;
  width: 45%;
  height: 42%;
  background: var(--yellow);
  border-radius: 8px;
}
.hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / .88;
  object-fit: cover;
  border-radius: 8px 8px 8px 36px;
}
.hero-note {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: -15px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(23, 63, 58, .16);
}
.hero-note strong, .hero-note small { display: block; }
.hero-note strong { font-size: 13px; }
.hero-note small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: min(100% - 36px, 1180px);
  margin: 0 auto;
  padding: 17px 0 38px;
  border-bottom: 1px solid var(--line);
}
.trust-strip div { padding-right: 9px; border-right: 1px solid var(--line); }
.trust-strip div:last-child { border-right: 0; }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong { color: var(--coral); font-family: Georgia, serif; font-size: 25px; }
.trust-strip span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.content-section { padding: 62px 0 74px; }
.section-heading { display: flex; gap: 20px; align-items: end; justify-content: space-between; margin-bottom: 25px; }
.section-heading h2, .care-section h2 { font-size: clamp(32px, 8vw, 48px); line-height: 1.04; }
.section-caption { margin: 0 0 5px; color: var(--muted); font-size: 13px; }
.trust-section {
  width: min(100% - 36px, 1180px);
  margin: 0 auto;
  padding: 58px 0 72px;
  border-top: 1px solid var(--line);
}
.trust-heading { max-width: 720px; }
.trust-heading h2 { margin: 0; font-size: clamp(34px, 7vw, 58px); line-height: 1.02; }
.trust-heading > p:last-child { max-width: 570px; margin: 20px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.trust-grid { display: grid; gap: 12px; margin-top: 38px; }
.trust-card { min-height: 190px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.trust-number { display: block; color: var(--coral); font-family: Georgia, serif; font-size: 18px; }
.trust-card h3 { margin: 28px 0 8px; font-family: Georgia, serif; font-size: 22px; line-height: 1.08; }
.trust-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.trust-card small { display: block; margin-top: 20px; color: var(--ink); font-size: 11px; font-weight: 800; }
.trust-proof { display: flex; gap: 9px; align-items: baseline; flex-wrap: wrap; margin-top: 16px; padding: 17px 19px; border: 1px solid var(--line); background: var(--green-soft); }
.trust-proof strong { font-size: 13px; }
.trust-proof > span:last-child { color: var(--muted); font-size: 12px; line-height: 1.5; }
.cat-toolbar { display: grid; gap: 14px; margin-bottom: 25px; }
.search-box { min-height: 45px; display: flex; align-items: center; gap: 8px; padding: 0 13px; }
.search-box span { color: var(--coral); font-size: 24px; line-height: 1; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.search-box input::placeholder { color: #9ca8a2; }
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-button {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  transition: .2s;
}
.filter-button:hover, .filter-button.is-active { border-color: var(--ink); color: var(--white); background: var(--ink); }
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.cat-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .2s, box-shadow .2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(23, 63, 58, .1); }
.cat-image-wrap { position: relative; }
.cat-image { width: 100%; aspect-ratio: 1.12 / 1; object-fit: cover; background: var(--green-soft); }
.cat-status {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  border-radius: 4px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 11px;
  font-weight: 800;
}
.cat-card-body { padding: 15px; }
.cat-card-top { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.cat-card h3 { margin: 0; font-family: Georgia, serif; font-size: 24px; }
.cat-location { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.cat-facts { display: flex; gap: 7px; margin: 15px 0; color: var(--ink); font-size: 11px; }
.cat-facts span { padding: 5px 7px; border-radius: 4px; background: var(--green-soft); }
.cat-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.small-button {
  min-height: 38px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.small-button:hover { border-color: var(--coral); color: var(--coral); }
.small-button-primary { color: var(--white); border-color: var(--ink); background: var(--ink); }
.small-button-primary:hover { color: var(--white); border-color: var(--coral); background: var(--coral); }
.empty-state { padding: 58px 20px; text-align: center; }
.empty-icon { color: var(--coral); font-size: 35px; }
.empty-state h3 { margin: 8px 0 3px; font-size: 18px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 13px; }
.care-section {
  display: grid;
  gap: 28px;
  padding: 42px 0 64px;
  border-top: 1px solid var(--line);
}
.care-list { display: grid; gap: 15px; }
.care-list div { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.care-list div:last-child { padding-bottom: 0; border-bottom: 0; }
.care-list span { color: var(--coral); font-family: Georgia, serif; font-size: 18px; }
.care-list p { margin: 0; color: var(--muted); font-size: 13px; }
.site-footer {
  width: min(100% - 36px, 1180px);
  margin: 0 auto;
  padding: 20px 0 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.dialog {
  width: min(92vw, 570px);
  max-height: 90vh;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 22px 80px rgba(16, 47, 44, .24);
}
.dialog::backdrop { background: rgba(16, 47, 44, .55); }
.dialog-image-wrap img { width: 100%; aspect-ratio: 1.45 / 1; object-fit: cover; }
.dialog-body { position: relative; padding: 22px; }
.dialog-close { position: absolute; z-index: 2; top: 12px; right: 12px; border: 0; color: var(--ink); background: rgba(255, 253, 249, .9); }
.dialog-title-row { display: flex; gap: 14px; align-items: start; justify-content: space-between; }
.dialog-title-row h2 { margin: 0; font-family: Georgia, serif; font-size: 34px; line-height: 1; }
.availability { padding: 5px 8px; color: #3d7859; background: var(--green-soft); border-radius: 4px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.detail-facts { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.detail-facts span, .tag-list span { padding: 6px 8px; border-radius: 4px; color: var(--ink); background: var(--paper); font-size: 11px; }
.dialog-story { margin: 0 0 15px; color: var(--muted); font-size: 14px; }
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 21px; }
.tag-list span { color: var(--coral); background: var(--coral-soft); }
.dialog-intro { margin: -8px 0 20px; color: var(--muted); font-size: 13px; }
.check-field { display: flex; gap: 9px; align-items: flex-start; margin: 15px 0; color: var(--muted); font-size: 12px; }
.check-field input { flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--coral); }
.toast {
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 12px 15px;
  border-radius: 6px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: .25s;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.is-shaking { animation: shake .35s ease-in-out; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}

@media (min-width: 650px) {
  .gate-screen { padding: 56px 30px; }
  .gate-panel { padding: 28px; }
  .hero-section { grid-template-columns: minmax(0, .88fr) minmax(320px, 1fr); align-items: center; padding-top: 70px; }
  .hero-copy { padding-right: 16px; }
  .cat-toolbar { grid-template-columns: minmax(240px, 1fr) auto; align-items: center; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .care-section { grid-template-columns: .9fr 1.1fr; align-items: start; }
}
@media (min-width: 980px) {
  .site-header { min-height: 84px; }
  .hero-section { gap: 80px; padding-bottom: 82px; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .care-section { gap: 130px; padding-top: 74px; padding-bottom: 92px; }
}
