:root {
  color-scheme: light;
  --ink: #202724;
  --muted: #626d68;
  --paper: #f5f7f4;
  --surface: #ffffff;
  --surface-soft: #edf2ee;
  --line: #d8dfda;
  --forest: #1f5d50;
  --forest-dark: #173d35;
  --coral: #c55345;
  --amber: #d89c35;
  --shadow: 0 16px 44px rgba(24, 53, 45, 0.1);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(197, 83, 69, 0.35);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0;
  border-bottom: 1px solid rgba(216, 223, 218, 0.8);
  background: rgba(245, 247, 244, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 8px;
  place-items: center;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.top-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.top-nav a:hover {
  border-color: var(--coral);
  color: var(--ink);
}

main {
  overflow: clip;
}

.hero,
.triage-strip,
.section-block,
.utility-band,
.trust-section,
.site-footer {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
  gap: 60px;
  align-items: center;
  padding: 58px 0 64px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 10px;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  color: var(--forest);
}

.hero-promise {
  margin-bottom: 16px;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.45;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.search-panel {
  max-width: 660px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-panel label {
  display: block;
  margin-bottom: 9px;
  color: var(--forest-dark);
  font-size: 13px;
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.search-row input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

.search-row input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(31, 93, 80, 0.14);
}

.search-row button {
  min-width: 96px;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--forest);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.search-row button:hover {
  background: var(--forest-dark);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-chips a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--forest-dark);
  font-size: 13px;
  font-weight: 700;
}

.hero-chips a:hover {
  border-color: var(--forest);
  background: var(--surface);
}

.search-results {
  max-width: 660px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-results[hidden] {
  display: none;
}

.result-count,
.no-result {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.no-result strong,
.no-result span {
  display: block;
}

.no-result strong {
  margin-bottom: 4px;
  color: var(--ink);
}

.result-list {
  border-top: 1px solid var(--line);
}

.result-list a {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
}

.result-list span {
  color: var(--coral);
  font-size: 11px;
  font-weight: 800;
}

.result-list strong {
  font-size: 14px;
  line-height: 1.5;
}

.result-list a:hover strong,
.all-results-link:hover {
  color: var(--forest);
}

.all-results-link {
  color: var(--forest-dark);
  font-size: 14px;
  font-weight: 800;
}

.hero-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-media::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 7px;
  height: 100%;
  background: var(--amber);
  content: "";
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media figcaption {
  margin: 0;
  padding: 13px 18px 14px 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.triage-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 8px;
  background: #222b27;
  color: #ffffff;
}

.triage-strip div {
  min-height: 142px;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.triage-strip div:last-child {
  border-right: 0;
}

.triage-strip span,
.triage-strip strong {
  display: block;
}

.triage-strip span {
  margin-bottom: 16px;
  color: #f1b04b;
  font-size: 12px;
  font-weight: 900;
}

.triage-strip strong {
  margin-bottom: 7px;
  font-size: 16px;
}

.triage-strip p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

.section-block {
  padding: 104px 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -42px;
}

.section-heading h2,
.utility-intro h2,
.trust-section h2 {
  margin-bottom: 0;
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading > p:not(.eyebrow) {
  margin-bottom: 2px;
  color: var(--muted);
  line-height: 1.75;
}

.keyword-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.keyword-grid a {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  min-height: 104px;
  align-items: center;
  padding: 20px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
}

.keyword-grid a:nth-child(2n) {
  border-right: 0;
}

.keyword-grid a:hover {
  background: var(--surface);
  box-shadow: inset 4px 0 0 var(--coral);
}

.keyword-grid strong {
  font-size: 16px;
  line-height: 1.45;
}

.keyword-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.compact-heading {
  display: block;
}

.compact-heading .eyebrow {
  margin-bottom: 12px;
}

.pet-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pet-lane {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.pet-lane header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.pet-lane header > span {
  color: var(--coral);
  font-size: 11px;
  font-weight: 900;
}

.dog-lane header > span {
  color: var(--forest);
}

.pet-lane h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.pet-lane header a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pet-lane nav a {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: center;
  min-height: 78px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
}

.pet-lane nav a:last-child {
  border-bottom: 0;
}

.pet-lane nav a:hover {
  background: var(--surface-soft);
}

.pet-lane nav strong {
  font-size: 15px;
}

.pet-lane nav span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.utility-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(480px, 1.2fr);
  gap: 70px;
  align-items: center;
  margin-top: 104px;
  padding: 58px;
  border-radius: 8px;
  background: var(--forest-dark);
  color: #ffffff;
}

.utility-intro .eyebrow {
  color: #f1b04b;
}

.utility-intro > p:not(.eyebrow) {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
}

.primary-link {
  display: inline-flex;
  margin-top: 24px;
  padding: 12px 15px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--forest-dark);
  font-size: 14px;
  font-weight: 900;
}

.utility-links {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.utility-links a {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 76px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.utility-links a:hover strong {
  color: #f1b04b;
}

.utility-links span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.utility-links strong {
  line-height: 1.5;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.signal-grid a {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.signal-grid a:hover {
  border-color: var(--forest);
  transform: translateY(-2px);
}

.signal-grid span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
}

.signal-grid strong {
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 900;
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: 70px;
  align-items: start;
  margin-top: 104px;
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.trust-grid article {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.trust-grid article:first-child {
  padding-top: 0;
}

.trust-grid article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.trust-grid span {
  color: var(--forest-dark);
  font-size: 14px;
  font-weight: 900;
}

.trust-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 104px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  margin-bottom: 7px;
}

.site-footer span {
  max-width: 660px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr);
    gap: 34px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .keyword-grid a,
  .pet-lane nav a {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .utility-band,
  .trust-section {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    display: grid;
    gap: 8px;
    width: calc(100% - 28px);
    padding: 10px 0 0;
  }

  .top-nav {
    width: 100%;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 8px;
    font-size: 13px;
    scrollbar-width: none;
  }

  .hero,
  .triage-strip,
  .section-block,
  .utility-band,
  .trust-section,
  .site-footer {
    width: calc(100% - 28px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 38px 0 34px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-promise {
    font-size: 19px;
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-media {
    display: none;
  }

  .triage-strip,
  .section-heading,
  .keyword-grid,
  .pet-lanes {
    grid-template-columns: 1fr;
  }

  .triage-strip div {
    min-height: 0;
    padding: 19px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .triage-strip div:last-child {
    border-bottom: 0;
  }

  .triage-strip span {
    float: left;
    margin: 2px 12px 24px 0;
  }

  .section-block {
    padding-top: 76px;
  }

  .section-heading {
    gap: 12px;
    align-items: start;
  }

  .section-heading .eyebrow {
    grid-column: auto;
    margin-bottom: 0;
  }

  .section-heading h2,
  .utility-intro h2,
  .trust-section h2 {
    font-size: 29px;
  }

  .keyword-grid a {
    min-height: 0;
    padding: 18px 2px;
    border-right: 0;
    background: transparent;
  }

  .pet-lane header,
  .pet-lane nav a {
    padding-inline: 18px;
  }

  .utility-band,
  .trust-section {
    margin-top: 76px;
    padding: 30px 24px;
  }

  .utility-band {
    grid-template-columns: 1fr;
  }

  .utility-links a {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
  }

  .trust-section {
    grid-template-columns: 1fr;
  }

  .trust-grid article {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .site-footer {
    display: grid;
    margin-top: 76px;
  }
}

@media (max-width: 480px) {
  .search-row {
    grid-template-columns: 1fr;
  }

  .search-row button {
    width: 100%;
  }

  .hero-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-chips a {
    min-width: 0;
    text-align: center;
  }

  .result-list a {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .signal-grid a {
    min-height: 118px;
  }

  .pet-lane header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pet-lane header a {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
