/* ===========================================================================
   贝灵顿梗犬百科 · 首页样式
   视觉基线：03-ui/home-ui-desktop.png（1024×1536 → 1440 设计宽 ×1.40625）
   =========================================================================== */

/* 设计变量见 css/tokens.css（:root 已抽出，勿在此重复定义） */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  z-index: 99;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent-mid);
  outline-offset: 3px;
  border-radius: 6px;
}

.kicker {
  font-family: var(--font-serif);
  font-size: 0.72em;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-left: 0.6em;
  vertical-align: 0.12em;
  white-space: nowrap;
}

.paw { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ------------------------------------------------------------------ header */
.site-header {
  background: var(--header);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.01em;
  flex: none;
}
.brand .paw { color: var(--accent); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}
.main-nav a {
  position: relative;
  padding: 6px 15px;
  font-size: 15px;
  color: var(--ink-2);
  white-space: nowrap;
}
.main-nav a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 12px;
  border-left: 1px solid var(--line);
}
.main-nav a:hover { color: var(--accent); }
.main-nav .nav-facts {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.main-nav .nav-facts::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.18;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; }

/* -------------------------------------------------------------------- hero */
.hero {
  background: var(--band);
  display: flex;
  justify-content: center;
}
.hero-inner {
  width: 100%;
  max-width: 1440px;
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: stretch;
}
.hero-copy {
  padding: 28px 40px 22px var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.hero-copy > * { max-width: 560px; }

.eyebrow {
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.25;
}
.eyebrow-en { display: block; }
.eyebrow-cn {
  display: block;
  font-size: 22px;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}

.hero h1 {
  font-size: clamp(46px, 4.6vw, 66px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  font-weight: 800;
  margin: 6px 0 10px;
}

.hero-sub {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.hero-lead {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-2);
  max-width: 470px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 22px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-solid:hover { background: #2f4436; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(47, 51, 48, 0.28);
  color: var(--ink);
}
.btn-ghost:hover { background: #fff; }
.btn-pill { background: var(--accent); color: var(--on-accent); padding: 9px 18px; font-size: 15px; }
.btn-pill:hover { background: #2f4436; }
.btn-light { background: #f7f5ef; color: var(--accent); padding: 10px 20px; }
.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(247, 245, 239, 0.6);
  color: var(--on-accent);
  padding: 10px 20px;
}

.hero-stats {
  display: flex;
  align-items: flex-start;
  gap: 34px;
  margin-top: auto;
  padding-top: 16px;
}
.hero-stats li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
}
.hero-stats svg {
  grid-row: 1 / span 2;
  width: 26px;
  height: 26px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
}
.hero-stats b { font-size: 16px; font-weight: 700; line-height: 1.2; }
.hero-stats span { font-size: 12px; color: var(--ink-3); line-height: 1.3; }

.hero-media { min-height: 100%; }
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 348px;
  object-fit: cover;
  object-position: 45% center;
}

/* -------------------------------------------------------------- facts band */
.facts-band { margin-top: 8px; }

.band-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 26px 32px 24px;
  overflow: hidden;
}

.facts-head,
.section-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.facts-head h2,
.section-head h2 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.facts-head { color: var(--ink); }
.facts-head .paw { color: var(--accent); }

.facts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: 40px;
  row-gap: 12px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
.fact {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 15px;
  line-height: 1.5;
}
.fact-k {
  flex: none;
  width: 74px;
  color: var(--ink-3);
  font-weight: 600;
}
.fact-v { color: var(--ink-2); }

.facts-note {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.6;
  align-self: end;
  max-width: 420px;
}

.facts-silhouette {
  position: absolute;
  right: 26px;
  bottom: -6px;
  width: 250px;
  height: auto;
  fill: rgba(47, 51, 48, 0.07);
  pointer-events: none;
}

/* ---------------------------------------------------------- category index */
.category-index { margin-top: 18px; }

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.section-head .kicker { margin-left: 4px; }
.section-sub {
  margin-top: 4px;
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 600;
}
.section-desc {
  margin-top: 2px;
  font-size: 12.2px;
  color: var(--ink-3);
  max-width: 640px;
}
.section-head .btn-pill { margin-top: 6px; flex: none; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  background: #fcf9f3;
  border-radius: 14px;
  padding: 7px 9px 11px;
  height: 100%;
  transition: transform .18s, box-shadow .18s;
  box-shadow: var(--shadow-card);
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(47, 51, 48, 0.09); }
.cat-card .thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 5 / 2;
  background: var(--accent-soft);
}
.cat-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 9px;
  font-size: 15px;
  font-weight: 700;
}
.cat-title i {
  font-style: normal;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}
.cat-desc {
  margin-top: 3px;
  font-size: 11.6px;
  color: var(--ink-2);
  line-height: 1.5;
}
.cat-tags {
  margin-top: 5px;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.01em;
}

/* ------------------------------------------------------------------ bento */
.bento {
  display: grid;
  gap: 11px;
  margin-top: 11px;
}
.bento-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 11px;
}
.bento-row.last { grid-template-columns: minmax(0, 1.94fr) minmax(0, 1fr); }

.card {
  background: var(--card);
  border-radius: var(--radius-card);
  display: grid;
  overflow: hidden;
}
.card-body {
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
}
.card h2 {
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
}
.card-lead {
  margin-top: 4px;
  font-size: 14.6px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}
.card p { font-size: 11.8px; color: var(--ink-2); margin-top: 5px; line-height: 1.48; }
.card-note {
  margin-top: 6px;
  padding-top: 5px;
  font-size: 10.8px !important;
  color: var(--ink-3) !important;
  border-top: 1px solid var(--line);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.appearance { grid-template-columns: 33% minmax(0, 1fr); }
.appearance .card-media { min-height: 100%; }
.appearance .card-body { padding-bottom: 18px; }

.coats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.coats li { display: flex; flex-direction: column; }
.coats img {
  width: 100%;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}
.coats b { margin-top: 4px; font-size: 12px; }
.coats span { font-size: 10.2px; color: var(--ink-3); line-height: 1.34; }

.temperament { grid-template-columns: minmax(0, 1fr) 34%; }
.ticks { margin-top: 6px; display: grid; gap: 3px; }
.ticks li {
  position: relative;
  padding-left: 14px;
  font-size: 10.6px;
  color: var(--ink-2);
  line-height: 1.33;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-mid);
}
.ticks strong { color: var(--ink); font-weight: 700; }

.grooming { grid-template-columns: minmax(0, 1fr) 20%; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}
.steps li {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 5px 6px 6px;
  background: rgba(255, 255, 255, 0.35);
}
.steps .when {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.steps h3 { font-size: 11px; margin-top: 2px; line-height: 1.3; }
.steps p { font-size: 9.6px !important; margin-top: 3px; line-height: 1.38; }

.health { grid-template-columns: minmax(0, 1fr) 24%; }
.health-list { margin-top: 7px; display: grid; gap: 4px; }
.health-list li {
  position: relative;
  padding-left: 22px;
  font-size: 10.6px;
  color: var(--ink-2);
  line-height: 1.42;
}
.health-list strong { color: var(--ink); font-weight: 700; }
.health-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 8px;
  height: 4px;
  border-left: 1.6px solid var(--accent-mid);
  border-bottom: 1.6px solid var(--accent-mid);
  transform: rotate(-45deg);
}
.health-list li::before { top: 2px; }

/* --------------------------------------------------------------- featured */
.featured { display: flex; flex-direction: column; }
.section-head.tight { margin-bottom: 8px; }
.section-head.tight .section-desc { font-size: 11px; }
.section-head.tight .section-sub { margin-top: 1px; }
.section-desc-inline { margin-left: 10px; font-size: 11px; font-weight: 400; color: var(--ink-3); }
.section-head.tight .section-sub { font-size: 14px; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.article-card { background: var(--card); border-radius: 14px; overflow: hidden; }
.article-card a { display: flex; flex-direction: column; height: 100%; padding: 6px 8px 8px; }
.article-card .thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  height: 58px;
  background: var(--accent-soft);
}
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card .tag {
  margin-top: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.article-card h3 {
  margin-top: 2px;
  font-size: 11.6px;
  line-height: 1.3;
  font-weight: 700;
}
.article-card p {
  margin-top: 3px;
  font-size: 10px;
  color: var(--ink-3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .more {
  margin-top: auto;
  padding-top: 8px;
  color: var(--accent);
}
.article-card .more svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }

.text-link {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}
.text-link svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }
.text-link:hover { text-decoration: underline; }

/* -------------------------------------------------------------------- faq */
.faq { display: block; padding: 18px 20px 14px; }
.faq h2 { font-size: 18px; }
.faq-list { margin-top: 7px; display: grid; gap: 4px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
}
.faq details:last-child { border-bottom: 0; padding-bottom: 0; }
.faq summary {
  position: relative;
  padding-left: 15px;
  font-size: 11.6px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-mid);
}
.faq details[open] summary::before { background: var(--warm); }
.faq summary:hover { color: var(--accent); }
.faq details p {
  margin: 4px 0 0 15px;
  font-size: 10.6px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* --------------------------------------------------------------- cta band */
.cta-band { margin-top: 14px; }
.cta-inner {
  position: relative;
  background: var(--accent-mid);
  border-radius: 20px;
  color: var(--on-accent);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 330px;
  align-items: center;
  gap: 24px;
  padding: 11px 26px;
  overflow: hidden;
}
.cta-mark { position: relative; z-index: 2; }
.cta-mark .paw { color: rgba(247, 245, 239, 0.9); width: 26px; height: 26px; }
.cta-mark h2 { font-size: 27px; font-weight: 800; line-height: 1.15; margin-top: 4px; }
.cta-mark .kicker { display: block; margin: 2px 0 0; font-size: 11px; color: rgba(247, 245, 239, 0.72); }
.cta-copy { position: relative; z-index: 2; border-left: 1px solid rgba(247, 245, 239, 0.28); padding-left: 24px; }
.cta-lead { font-size: 19px; font-weight: 700; }
.cta-copy p:last-child { font-size: 12.5px; color: rgba(247, 245, 239, 0.8); margin-top: 6px; max-width: 460px; }
.cta-actions { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; align-items: stretch; justify-self: end; }
.cta-actions .btn { justify-content: center; font-size: 14px; }
.cta-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 300px;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  mask-image: linear-gradient(to right, transparent, #000 55%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 55%);
  pointer-events: none;
}

/* ----------------------------------------------------------------- footer */
.site-footer {
  margin-top: 16px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 15px 0 10px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 290px;
  gap: 10px 30px;
  align-items: start;
}
.footer-brand .brand { color: var(--on-accent); font-size: 19px; }
.footer-brand .paw { color: var(--on-accent); }
.footer-tagline {
  margin-top: 8px;
  font-size: 12.5px;
  color: rgba(246, 243, 234, 0.66);
  line-height: 1.6;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding-top: 4px;
}
.footer-nav a {
  position: relative;
  padding: 4px 14px;
  font-size: 14px;
  color: rgba(246, 243, 234, 0.9);
}
.footer-nav a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 11px;
  border-left: 1px solid rgba(246, 243, 234, 0.24);
}
.footer-nav a:hover { color: #fff; }
.footer-note {
  font-size: 12px;
  color: rgba(246, 243, 234, 0.6);
  line-height: 1.7;
  border-left: 1px solid rgba(246, 243, 234, 0.24);
  padding-left: 20px;
}
.footer-copy {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(246, 243, 234, 0.16);
  font-size: 12px;
  color: rgba(246, 243, 234, 0.62);
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: 50% 50%; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grooming, .health { grid-template-columns: minmax(0, 1fr); }
  .grooming .card-media, .health .card-media { display: none; }
  .cta-inner { grid-template-columns: 200px minmax(0, 1fr) 260px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 24px; }
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    left: 0;
    right: 0;
    top: 62px;
    background: var(--header);
    padding: 10px 24px 18px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(47, 51, 48, 0.08);
  }
  .main-nav.open a { padding: 8px 0; font-size: 16px; }
  .main-nav.open a + a::before { display: none; }
  .header-inner { position: relative; }

  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 26px var(--gutter) 22px; order: 1; }
  .hero-copy > * { max-width: none; }
  .hero-media { order: 0; }
  .hero-media img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }

  .bento-row, .bento-row.last { grid-template-columns: minmax(0, 1fr); }
  .featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta-inner { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cta-copy { border-left: 0; padding-left: 0; }
  .cta-actions { flex-direction: row; justify-self: start; flex-wrap: wrap; }
  .cta-photo { display: none; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-note { border-left: 0; padding-left: 0; }
  .facts-grid { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
  .facts-silhouette { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appearance, .temperament { grid-template-columns: minmax(0, 1fr); }
  .appearance .card-media img { aspect-ratio: 16 / 10; }
  .temperament .card-media { order: -1; }
  .temperament .card-media img { aspect-ratio: 16 / 10; }
  .coats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured-grid { grid-template-columns: minmax(0, 1fr); }
  .article-card p { -webkit-line-clamp: 3; }
  .hero h1 { font-size: 44px; }
  .eyebrow { font-size: 20px; }
  .eyebrow-cn { font-size: 17px; }
  .hero-sub { font-size: 17px; }
  .hero-lead { font-size: 14.5px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .cta-mark h2 { font-size: 24px; }
  .cta-lead { font-size: 17px; }
  .footer-nav a { padding: 4px 10px; }
}

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

