:root {
  --ink: #173b3f;
  --ink-soft: #446064;
  --cream: #f5f0e6;
  --paper: #fffdf8;
  --coral: #ee765c;
  --yellow: #f3c969;
  --mint: #c8ddd0;
  --line: rgba(23, 59, 63, .16);
  --shadow: 0 24px 60px rgba(23, 59, 63, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}
button, input { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: .65rem 1rem; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 40px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.14rem; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50% 50% 44% 44%; color: var(--coral); font-size: 1.8rem; line-height: 1; }
nav { display: flex; gap: clamp(18px, 3vw, 42px); font-size: .9rem; font-weight: 650; }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px; background: var(--coral); transition: right .2s; }
nav a:hover::after { right: 0; }

.hero { position: relative; min-height: 760px; overflow: hidden; padding: 160px max(24px, calc((100vw - 1180px) / 2)) 100px; background: linear-gradient(117deg, #e3eddf 0 56%, var(--yellow) 56% 100%); }
.hero::before { content: ""; position: absolute; width: 380px; height: 380px; border: 1px solid rgba(23,59,63,.16); border-radius: 50%; left: -180px; top: 230px; }
.hero-copy { position: relative; z-index: 2; width: 48%; max-width: 560px; }
.eyebrow { margin: 0 0 20px; font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--coral); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 26px; font-family: ui-serif, Georgia, "Songti SC", serif; font-size: clamp(3.7rem, 7vw, 6.7rem); font-weight: 500; line-height: .94; letter-spacing: -.075em; }
h1 em { color: var(--coral); font-style: normal; }
.hero-intro { max-width: 530px; margin-bottom: 35px; color: var(--ink-soft); font-size: 1.02rem; }
.primary-button { display: inline-flex; align-items: center; gap: 30px; padding: 14px 18px 14px 24px; border-radius: 999px; background: var(--ink); color: white; font-weight: 700; box-shadow: 0 12px 24px rgba(23,59,63,.2); transition: transform .2s, box-shadow .2s; }
.primary-button span { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: var(--coral); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(23,59,63,.27); }
.hero-visual { position: absolute; z-index: 1; top: 135px; right: max(24px, calc((100vw - 1180px) / 2)); width: min(42vw, 490px); height: 520px; border-radius: 48% 48% 8px 8px; overflow: hidden; box-shadow: var(--shadow); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17,49,52,.25), transparent 35%); pointer-events: none; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.floating-note { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 20px; padding: 17px 20px; border-radius: 8px; color: white; background: rgba(23,59,63,.82); backdrop-filter: blur(8px); }
.floating-note strong, .floating-note span { display: block; }
.floating-note strong { color: var(--yellow); font-size: .7rem; letter-spacing: .15em; }
.floating-note span { font-family: ui-serif, Georgia, "Songti SC", serif; font-size: 1.12rem; }
.hero-stats { position: absolute; z-index: 2; bottom: 48px; left: max(24px, calc((100vw - 1180px) / 2)); display: flex; gap: 44px; }
.hero-stats div { display: flex; align-items: baseline; gap: 9px; }
.hero-stats strong { font-family: ui-serif, Georgia, serif; font-size: 1.85rem; }
.hero-stats span { color: var(--ink-soft); font-size: .78rem; }

.catalog { max-width: 1180px; margin: 0 auto; padding: 110px 24px 120px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.section-heading h2, .care h2 { margin: 0; font-family: ui-serif, Georgia, "Songti SC", serif; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; line-height: 1.08; letter-spacing: -.05em; }
.section-heading > p { max-width: 290px; margin: 0 0 4px; color: var(--ink-soft); }
.filter-panel { display: flex; justify-content: space-between; gap: 18px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,253,248,.72); }
.search-box { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px; padding: 0 10px; }
.search-box svg { width: 20px; fill: none; stroke: var(--ink); stroke-width: 1.7; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box input::placeholder { color: #789095; }
.filter-group { display: flex; gap: 7px; }
.filter-button { border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; color: var(--ink); background: transparent; font-weight: 700; font-size: .88rem; }
.filter-button:hover { background: #e9e7dd; }
.filter-button.is-active { color: white; background: var(--ink); }
.result-line { display: flex; justify-content: space-between; padding: 24px 4px 16px; color: var(--ink-soft); font-size: .85rem; }
.result-line button { border: 0; color: var(--coral); background: none; cursor: pointer; }
.breed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.breed-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--paper); box-shadow: 0 10px 30px rgba(23,59,63,.04); transition: transform .25s, box-shadow .25s; }
.breed-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.breed-card:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.card-image { position: relative; height: 285px; overflow: hidden; background: var(--mint); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.breed-card:hover .card-image img { transform: scale(1.04); }
.type-pill { position: absolute; top: 15px; left: 15px; padding: 5px 11px; border-radius: 99px; color: var(--ink); background: rgba(255,253,248,.9); font-size: .72rem; font-weight: 800; backdrop-filter: blur(8px); }
.card-body { padding: 23px 24px 24px; }
.card-title { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.card-title h3 { margin-bottom: 3px; font-family: ui-serif, Georgia, "Songti SC", serif; font-size: 1.55rem; font-weight: 600; letter-spacing: -.03em; }
.card-title span { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; transition: background .2s, color .2s; }
.breed-card:hover .card-title span { color: white; background: var(--coral); border-color: var(--coral); }
.english-name { margin: 0 0 17px; color: #7b9093; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; }
.traits { display: flex; flex-wrap: wrap; gap: 7px; }
.traits span { padding: 5px 9px; border-radius: 4px; background: #eef1e9; color: var(--ink-soft); font-size: .76rem; }
.empty-state { padding: 70px 20px; text-align: center; color: var(--ink-soft); }
.empty-state span { font-size: 4rem; color: var(--coral); }
.empty-state h3 { margin: 5px 0; color: var(--ink); }

.care { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; padding: 110px max(24px, calc((100vw - 1180px) / 2)); color: white; background: var(--ink); }
.care-intro > p:last-child { max-width: 420px; margin-top: 28px; color: #bdd0d0; }
.care-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.2); }
.care-list li { display: grid; grid-template-columns: 60px 1fr; gap: 15px; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.care-list > li > span { color: var(--yellow); font-family: ui-serif, Georgia, serif; font-size: 1.15rem; }
.care-list h3 { margin: 0 0 5px; font-size: 1.1rem; }
.care-list p { margin: 0; color: #bdd0d0; }
.quote-band { padding: 100px 24px; text-align: center; background: var(--yellow); }
.quote-band p { margin-bottom: 20px; font-family: ui-serif, Georgia, "Songti SC", serif; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.25; letter-spacing: -.04em; }
.quote-band span { font-size: .9rem; font-weight: 700; }

footer { display: grid; grid-template-columns: auto 1fr; gap: 15px 60px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 60px 24px; color: var(--ink-soft); font-size: .82rem; }
footer p { margin: 0; }
.footer-brand { grid-row: span 2; color: var(--ink); }
.disclaimer { max-width: 660px; }
.copyright { grid-column: 2; }

.breed-dialog { width: min(920px, calc(100% - 32px)); max-height: min(820px, calc(100vh - 32px)); padding: 0; overflow: auto; border: 0; border-radius: 14px; color: var(--ink); background: var(--paper); box-shadow: 0 35px 100px rgba(11,37,39,.35); }
.breed-dialog::backdrop { background: rgba(14,43,45,.7); backdrop-filter: blur(5px); }
.dialog-close { position: fixed; z-index: 3; top: max(26px, calc((100vh - min(820px, calc(100vh - 32px))) / 2 + 12px)); right: max(26px, calc((100vw - min(920px, calc(100% - 32px))) / 2 + 12px)); width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer; color: var(--ink); background: rgba(255,253,248,.92); font-size: 1.7rem; line-height: 1; box-shadow: 0 7px 20px rgba(0,0,0,.15); }
.dialog-hero { position: relative; height: 380px; }
.dialog-hero img { width: 100%; height: 100%; object-fit: cover; }
.dialog-heading { position: absolute; inset: auto 0 0; padding: 70px 42px 30px; color: white; background: linear-gradient(transparent, rgba(9,34,36,.82)); }
.dialog-heading p { margin: 0 0 5px; color: var(--yellow); font-size: .74rem; font-weight: 800; letter-spacing: .14em; }
.dialog-heading h2 { margin: 0; font-family: ui-serif, Georgia, "Songti SC", serif; font-size: 2.8rem; line-height: 1; }
.dialog-body { padding: 36px 42px 44px; }
.dialog-summary { max-width: 720px; color: var(--ink-soft); font-size: 1.04rem; }
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 28px 0 36px; }
.fact { padding: 17px; border-radius: 8px; background: #edf1e9; }
.fact span, .detail-block > span { display: block; color: #718689; font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.fact strong { display: block; margin-top: 4px; font-size: .96rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.detail-block h3 { margin: 5px 0 7px; font-family: ui-serif, Georgia, "Songti SC", serif; font-size: 1.35rem; }
.detail-block p { margin: 0; color: var(--ink-soft); font-size: .91rem; }

@media (max-width: 900px) {
  .hero { min-height: 900px; padding-top: 140px; background: linear-gradient(160deg, #e3eddf 0 67%, var(--yellow) 67%); }
  .hero-copy { width: 62%; }
  .hero-visual { top: 310px; right: 24px; width: 48vw; height: 460px; }
  .hero-stats { bottom: 35px; }
  .breed-grid { grid-template-columns: repeat(2, 1fr); }
  .care { gap: 50px; }
}

@media (max-width: 680px) {
  .site-header { width: calc(100% - 32px); padding-top: 20px; }
  nav a:not(:first-child) { display: none; }
  .hero { min-height: auto; padding: 120px 18px 45px; background: #e3eddf; }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(3.2rem, 16vw, 5.1rem); }
  .hero-visual { position: relative; top: auto; right: auto; width: 100%; height: 420px; margin-top: 50px; border-radius: 46% 46% 8px 8px; }
  .hero-stats { position: relative; bottom: auto; left: auto; justify-content: space-between; gap: 10px; margin-top: 28px; }
  .hero-stats div { display: block; }
  .hero-stats strong, .hero-stats span { display: block; }
  .catalog { padding: 82px 16px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 15px; }
  .filter-panel { display: block; padding: 11px; }
  .search-box { min-height: 46px; }
  .filter-group { overflow-x: auto; padding-top: 8px; scrollbar-width: none; }
  .filter-button { white-space: nowrap; }
  .breed-grid { grid-template-columns: 1fr; }
  .card-image { height: 330px; }
  .care { grid-template-columns: 1fr; gap: 45px; padding: 80px 20px; }
  .quote-band { padding: 75px 20px; }
  footer { display: block; padding: 44px 20px; }
  footer p { margin-top: 12px; }
  .dialog-hero { height: 300px; }
  .dialog-heading { padding: 60px 23px 24px; }
  .dialog-heading h2 { font-size: 2.1rem; }
  .dialog-body { padding: 28px 23px 34px; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
