/* 猫知人 · 视觉系统
   暖纸、墨色、琥珀；无外部字体与图片依赖（除站点 SVG）。
   移动优先，断点 1024 / 860 / 640 / 520。 */

:root {
  --paper: #fbf7ef;
  --paper-2: #f4ecdf;
  --card: #fffdf8;
  --ink: #2c2620;
  --ink-2: #5c5247;
  --ink-3: #74685b;
  --line: #e2d6c4;
  --line-strong: #cbbaa2;
  --amber: #e9a23b;
  --amber-strong: #b8791d;
  --terra: #a9502f;
  --sage: #5d6f52;
  --red: #a9413a;
  --red-paper: #fbeeec;
  --red-line: #e2b6b0;
  --shadow: 4px 4px 0 rgba(44, 38, 32, 0.07);
  --shadow-lift: 6px 8px 0 rgba(44, 38, 32, 0.09);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --header-h: 68px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --paper: #171310;
  --paper-2: #1f1915;
  --card: #221b16;
  --ink: #f4ecdf;
  --ink-2: #cdbfab;
  --ink-3: #9d8d79;
  --line: #3a2f26;
  --line-strong: #57473a;
  --amber: #e9a23b;
  --amber-strong: #f0b95f;
  --terra: #e08a63;
  --sage: #a3b394;
  --red: #e08d83;
  --red-paper: #2a1a17;
  --red-line: #5c3430;
  --shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  --shadow-lift: 6px 8px 0 rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(circle at 10% 4%, rgba(233, 162, 59, 0.1), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(184, 95, 60, 0.07), transparent 26%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[data-theme="dark"] body {
  background-image: radial-gradient(circle at 10% 4%, rgba(233, 162, 59, 0.07), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(184, 95, 60, 0.05), transparent 26%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

code,
pre {
  font-family: var(--mono);
}

::selection {
  background: var(--amber);
  color: #2c2620;
}

:focus-visible {
  outline: 3px solid rgba(233, 162, 59, 0.55);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
}

.skip-link:focus {
  transform: translateY(0);
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

.icon-inline {
  width: 15px;
  height: 15px;
  margin-left: 4px;
}

.eyebrow {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--terra);
}

.eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--amber);
  vertical-align: 2px;
}

/* ---------------- 头部 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.06em;
}

.brand-text small {
  margin-top: 5px;
  font-size: 8.5px;
  letter-spacing: 0.24em;
  color: var(--ink-3);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--amber);
  transition: right 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink-2);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.theme-icon,
.nav-open-icon,
.nav-close-icon {
  display: inline-flex;
}

.theme-icon-sun,
.nav-close-icon {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: inline-flex;
}

.nav-toggle {
  display: none;
}

body.nav-open .nav-open-icon {
  display: none;
}

body.nav-open .nav-close-icon {
  display: inline-flex;
}

/* ---------------- 首页 Hero ---------------- */
.hero {
  padding: 54px 0 26px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 42px;
  align-items: center;
  min-height: 500px;
}

.hero-copy h1 {
  margin: 14px 0 18px;
  font-family: var(--serif);
  font-size: clamp(46px, 6.2vw, 82px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

.hero-copy h1 em {
  position: relative;
  isolation: isolate;
  font-style: normal;
  color: var(--terra);
  white-space: nowrap;
}

.hero-copy h1 em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 0;
  bottom: 2px;
  height: 10px;
  border-radius: 50%;
  background: rgba(233, 162, 59, 0.32);
  transform: rotate(-1.2deg);
  z-index: -1;
}

.lede {
  margin: 0;
  max-width: 620px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.85;
}

.hero .lede {
  max-width: 530px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  margin: 26px 0 14px;
  padding: 6px 6px 6px 17px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.search .icon {
  color: var(--ink-3);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 9px 0;
  font-size: 15px;
  color: var(--ink);
}

.search input::placeholder {
  color: var(--ink-3);
}

.search input::-webkit-search-cancel-button {
  filter: grayscale(1);
}

.search button {
  flex: none;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.16s ease;
}

.search button:hover {
  opacity: 0.86;
}

.search:focus-within {
  outline: 3px solid rgba(233, 162, 59, 0.32);
  outline-offset: 2px;
}

.hot {
  display: flex;
  align-items: center;
  gap: 9px 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-3);
}

.hot span {
  letter-spacing: 0.08em;
}

.hot a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 1px;
}

.hot a:hover {
  color: var(--terra);
  border-color: var(--terra);
}

.stats {
  display: flex;
  gap: 38px;
  margin: 34px 0 0;
  padding: 19px 0 0;
  border-top: 1px solid var(--line);
}

.stats dt {
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1;
  font-weight: 700;
  color: var(--ink);
}

.stats dd {
  margin: 6px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.hero-art {
  position: relative;
}

.hero-art img {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  animation: drift 9s ease-in-out infinite;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ---------------- 区块 ---------------- */
.section {
  padding: 62px 0;
}

.section-alt {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head h2 {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.section-head-tight {
  margin-bottom: 18px;
}

.section-note {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.more {
  flex: none;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  white-space: nowrap;
}

.more:hover {
  color: var(--terra);
  border-color: var(--terra);
}

/* ---------------- 问答卡片 ---------------- */
.q-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

.q-card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 17px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.q-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.q-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.cat-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--cat, var(--terra));
}

.q-time {
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
}

.q-card h3 {
  margin: 12px 0 8px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  font-weight: 700;
}

.q-card h3 a {
  text-decoration: none;
}

.q-card h3 a:hover {
  color: var(--terra);
}

.q-card > p {
  flex: 1;
  margin: 0 0 15px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.q-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.tags span {
  font-size: 10.5px;
  color: var(--ink-3);
  white-space: nowrap;
}

.tags-row {
  margin: 20px 0 0;
}

.bookmark {
  width: 32px;
  height: 32px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.bookmark .icon {
  width: 15px;
  height: 15px;
}

.bookmark:hover {
  color: var(--terra);
  border-color: var(--terra);
}

.bookmark[aria-pressed="true"] {
  color: var(--terra);
  border-color: var(--terra);
  background: rgba(233, 162, 59, 0.13);
}

.bookmark[aria-pressed="true"] .icon {
  fill: currentColor;
}

/* ---------------- 分类 ---------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 21px 21px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cat, var(--amber));
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  border-top-color: var(--cat, var(--amber));
}

.cat-icon {
  font-size: 25px;
  line-height: 1.2;
}

.cat-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.cat-desc {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.cat-count {
  margin-top: 3px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* ---------------- 长文卡片 ---------------- */
.a-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
}

.a-card {
  min-width: 0;
}

.a-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 23px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.a-card-link:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.a-card h3 {
  margin: 13px 0 7px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
}

.a-card p {
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.8;
}

.a-card-large {
  grid-row: span 2;
}

.a-card-large .a-card-link {
  justify-content: center;
  padding: 30px;
  background: #2c2620;
  color: #fbf7ef;
  border-color: #2c2620;
}

.a-card-large h3 {
  font-size: 31px;
  line-height: 1.35;
  margin: 16px 0 10px;
}

.a-card-large p {
  color: #b8a894;
  font-size: 14.5px;
}

.a-card-large .cat-tag {
  align-self: flex-start;
  background: transparent;
  border-color: rgba(251, 247, 239, 0.28);
  color: #f0c479;
}

.a-card-large .cat-dot {
  background: #f0c479;
}

.a-card-large .a-meta {
  color: #b8a894;
}

.a-meta {
  margin-top: auto;
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

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

.a-list .a-card-large {
  grid-column: 1 / -1;
  grid-row: auto;
}

/* ---------------- 信任区 ---------------- */
.trust {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 52px;
  align-items: start;
}

.trust-intro h2 {
  margin: 8px 0 14px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
}

.trust-intro > p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.85;
}

.trust-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.trust-points li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-left: 2px solid var(--amber);
  padding-left: 12px;
  font-size: 13px;
  color: var(--ink-2);
}

.trust-points strong {
  color: var(--ink);
  flex: none;
}

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.principles li {
  display: flex;
  gap: 18px;
  padding: 17px 19px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.principle-n {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.1;
  color: var(--amber-strong);
  flex: none;
}

.principles h3 {
  margin: 0 0 3px;
  font-size: 15px;
}

.principles p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ---------------- CTA ---------------- */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 16px 0 78px;
  padding: 34px 38px;
  border: 1.5px solid #2c2620;
  border-radius: 22px;
  background: var(--amber);
  color: #2c2620;
  box-shadow: 7px 7px 0 rgba(44, 38, 32, 0.14);
}

.cta .eyebrow {
  color: #5f3d10;
}

.cta h2 {
  margin: 6px 0 8px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 31px);
  line-height: 1.3;
}

.cta p {
  margin: 0;
  max-width: 640px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #4c3414;
}

.cta .btn-primary {
  background: #2c2620;
  color: #fbf7ef;
  flex: none;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-small {
  padding: 7px 13px;
  font-size: 12px;
}

.btn-small .icon {
  width: 14px;
  height: 14px;
}

/* ---------------- 内页头 ---------------- */
.page-hero {
  padding: 38px 0 30px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.page-hero h1 {
  margin: 9px 0 12px;
  font-family: var(--serif);
  font-size: clamp(40px, 5.2vw, 62px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page-hero .lede {
  max-width: 720px;
  font-size: 15px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 21px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.breadcrumb a {
  color: var(--ink-2);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--terra);
}

.breadcrumb span[aria-hidden="true"] {
  color: var(--line-strong);
}

/* ---------------- 问答库 ---------------- */
.q-index {
  padding: 28px 0 80px;
}

.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  margin-bottom: 22px;
  padding: 12px 0 13px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.search-small {
  max-width: 620px;
  margin: 0 0 12px;
  padding: 4px 4px 4px 14px;
  box-shadow: none;
}

.search-small .icon {
  width: 17px;
  height: 17px;
}

.search-small input {
  padding: 7px 0;
  font-size: 14px;
}

.search-small button {
  padding: 8px 16px;
  font-size: 13px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.chip span {
  font-size: 10.5px;
  color: var(--ink-3);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip.is-active span {
  color: var(--paper);
}

.chip-saved .icon {
  width: 13px;
  height: 13px;
}

.chip-saved[aria-pressed="true"] {
  border-color: var(--terra);
  color: var(--terra);
}

.chip-saved.is-active,
.chip-saved.is-active[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip-saved.is-active .icon {
  fill: currentColor;
}

.result-line {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--ink-3);
}

.q-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.q-list .q-card {
  padding: 20px 21px 16px;
}

.q-list .q-card h3 {
  font-size: 20px;
}

.q-card[hidden] {
  display: none !important;
}

.empty {
  margin-top: 22px;
  padding: 52px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  text-align: center;
}

.empty-icon {
  font-size: 38px;
  line-height: 1.2;
}

.empty h2 {
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-size: 26px;
}

.empty p {
  max-width: 520px;
  margin: 0 auto 20px;
  color: var(--ink-2);
  font-size: 14px;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.notice {
  margin: 20px 0 0;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------------- 详情页布局 ---------------- */
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 46px;
  align-items: start;
  padding: 36px 0 78px;
}

.q-head h1,
.article-head h1 {
  margin: 11px 0 14px;
  font-family: var(--serif);
  font-size: clamp(33px, 4.2vw, 50px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.q-head .lede,
.article-head .lede {
  font-size: 15.5px;
  line-height: 1.85;
}

.q-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.q-aside,
.toc-wrap,
.ask-aside,
.about-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 15px;
}

.aside-card {
  padding: 19px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.aside-card h2 {
  margin: 6px 0 9px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.4;
}

.aside-card p {
  margin: 0 0 9px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.aside-card .toc ol,
.toc ol {
  margin: 0;
  padding-left: 17px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-2);
}

.aside-card .toc a,
.toc a {
  color: var(--ink-2);
  text-decoration: none;
}

.aside-card .toc a:hover,
.toc a:hover,
.toc a.is-active {
  color: var(--terra);
}

.toc a.is-active {
  font-weight: 600;
}

.q-actions .btn[aria-pressed="true"] {
  border-color: var(--terra);
  color: var(--terra);
}

.q-actions .btn[aria-pressed="true"] .icon {
  fill: currentColor;
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.aside-emergency {
  border-left: 3px solid var(--red);
}

.aside-quiet {
  background: var(--paper-2);
}

.mini-list {
  margin: 0 0 12px;
  padding-left: 17px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.mini-list li {
  margin: 4px 0;
}

.mini-list strong {
  color: var(--ink);
}

.text-link {
  display: inline-block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--terra);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.text-link:hover {
  border-color: var(--terra);
}

/* ---------------- 答案与正文 ---------------- */
.answer-box {
  margin: 24px 0 8px;
  padding: 19px 21px;
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.answer-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--terra);
}

.answer-label .icon {
  width: 14px;
  height: 14px;
}

.answer-box p {
  margin: 7px 0 0;
  font-size: 15.5px;
  line-height: 1.82;
}

.prose {
  padding-top: 5px;
}

.prose-section {
  padding: 17px 0 9px;
  border-bottom: 1px solid var(--line);
}

.prose-section:last-child {
  border-bottom: 0;
}

.prose h2 {
  margin: 16px 0 10px;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.45;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.prose p {
  margin: 0 0 13px;
  font-size: 15px;
  line-height: 1.92;
}

.prose ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.prose li {
  margin: 5px 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.prose li::marker {
  color: var(--amber-strong);
}

.alert {
  margin: 26px 0;
  padding: 20px 22px;
  background: var(--red-paper);
  border: 1px solid var(--red-line);
  border-radius: 15px;
}

.alert h2 {
  margin: 0 0 9px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--red);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.alert ul {
  margin: 0;
  padding-left: 18px;
}

.alert li {
  margin: 5px 0;
  font-size: 14px;
  line-height: 1.75;
}

.alert-note {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: var(--ink-2);
}

.feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 13px;
  margin: 22px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feedback > p {
  margin: 0;
  font-size: 13px;
}

.feedback-btns {
  display: flex;
  gap: 8px;
}

.feedback-thanks {
  flex-basis: 100%;
  color: var(--sage) !important;
  font-size: 12px !important;
}

.related {
  margin-top: 34px;
}

.related-articles {
  margin-top: 34px;
}

.rel-art-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rel-art-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 17px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.rel-art-list a:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.rel-art-list strong {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
}

.rel-art-list span {
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

.disclaimer {
  margin: 30px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--ink-3);
}

/* ---------------- 长文详情 ---------------- */
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 262px;
  gap: 52px;
  align-items: start;
  padding: 36px 0 78px;
}

.article-cover {
  margin: 24px 0 6px;
}

.article-cover .breed-figure img {
  aspect-ratio: 16 / 9;
}

.takeaways {
  margin: 24px 0;
  padding: 19px 23px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 13px;
}

.takeaways h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 19px;
}

.takeaways ul {
  margin: 0;
  padding-left: 20px;
}

.takeaways li {
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}

.refs {
  margin: 30px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.refs h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 19px;
}

.refs ul {
  margin: 0;
  padding-left: 19px;
}

.refs li {
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.8;
}

.refs a {
  color: var(--ink-2);
}

.refs-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--ink-3);
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 3px;
  pointer-events: none;
}

#read-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--amber);
}

/* ---------------- 知识库列表 ---------------- */
.section-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
  padding: 36px 0 80px;
}

.knowledge-aside {
  display: grid;
  gap: 15px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

/* ---------------- 提问 ---------------- */
.ask-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: start;
  padding: 36px 0 30px;
}

.ask-form {
  padding: 27px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.field {
  margin: 0 0 19px;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}

.field .req {
  margin-left: 5px;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--terra);
  font-size: 9.5px;
  font-weight: 500;
  vertical-align: 1px;
}

.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(233, 162, 59, 0.2);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-3);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

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

.check {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
  cursor: pointer;
}

.check input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--terra);
}

.hint {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--ink-3);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px;
}

.form-error {
  margin: 10px 0 0;
  color: var(--red);
  font-size: 12.5px;
}

.form-note {
  margin: 13px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.75;
  color: var(--ink-3);
}

.drafts-section {
  padding: 20px 0 80px;
}

.draft-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.drafts-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}

.draft-card {
  padding: 17px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.draft-card h3 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
}

.draft-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
  font-size: 10.5px;
  color: var(--ink-3);
}

.draft-meta span {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.draft-body {
  max-height: 92px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
  white-space: pre-wrap;
  -webkit-mask-image: linear-gradient(#000 68%, transparent);
  mask-image: linear-gradient(#000 68%, transparent);
}

.draft-actions {
  display: flex;
  gap: 7px;
  margin-top: 11px;
}

/* ---------------- 关于 ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 46px;
  align-items: start;
  padding: 36px 0 80px;
}

.about-prose h2 {
  margin: 28px 0 10px;
  font-family: var(--serif);
  font-size: 25px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.about-prose > h2:first-child {
  margin-top: 4px;
}

.about-prose p,
.about-prose li {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

.about-prose ul {
  padding-left: 20px;
}

.about-prose li {
  margin: 5px 0;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.steps li {
  display: flex;
  gap: 14px;
  padding: 13px 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 13.5px;
  line-height: 1.7;
}

.steps strong {
  flex: none;
  min-width: 38px;
  color: var(--terra);
}

.meta-line {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11.5px !important;
  color: var(--ink-3) !important;
}

.ref-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.ref-list li {
  font-size: 12px;
  line-height: 1.7;
}

.ref-list a {
  color: var(--ink-2);
  text-decoration: none;
}

.ref-list a:hover {
  color: var(--terra);
}

/* ---------------- 404 ---------------- */
.notfound {
  padding: 52px 24px 90px;
  text-align: center;
}

.notfound-art {
  max-width: 320px;
  margin: 0 auto 14px;
}

.notfound h1 {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 64px);
}

.notfound .lede {
  max-width: 520px;
  margin: 0 auto 22px;
}

.notfound .empty-actions {
  justify-content: center;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  margin-top: 20px;
  padding: 46px 0 18px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr 0.85fr 1.35fr;
  gap: 30px;
}

.footer-brand .brand {
  margin-bottom: 13px;
}

.footer-brand > p {
  max-width: 350px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px !important;
}

.footer-tags span {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  color: var(--ink-3);
}

.footer-h {
  margin: 5px 0 11px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.footer-links a {
  font-size: 12.5px;
  color: var(--ink-2);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--terra);
}

.footer-note p {
  margin: 0 0 8px;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--ink-3);
}

.footer-note a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  margin-top: 34px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--ink-3);
}

/* ---------------- 轻提示 ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 180;
  max-width: min(88vw, 420px);
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 28px;
  }

  .page-grid {
    grid-template-columns: minmax(0, 1fr) 252px;
    gap: 32px;
  }

  .article-grid {
    grid-template-columns: minmax(0, 1fr) 232px;
    gap: 34px;
  }

  .ask-layout,
  .about-grid {
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 30px;
  }

  .section-list {
    grid-template-columns: minmax(0, 1fr) 268px;
    gap: 30px;
  }
}

/* ---------------- 认猫谱 ---------------- */
.breed-index {
  padding: 28px 0 80px;
}

.breed-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 4px 0 16px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.filter-label {
  margin-right: 2px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.breed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.breed-group {
  margin: 0 0 48px;
}

.breed-group[hidden] {
  display: none;
}

.breed-group:last-of-type {
  margin-bottom: 0;
}

.breed-group-head {
  align-items: flex-start;
}

.breed-group-head h2 {
  font-size: clamp(24px, 2.6vw, 32px);
}

.breed-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  margin-left: 4px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans, sans-serif);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
  vertical-align: 3px;
}

.breed-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(35, 31, 27, 0.82);
  color: #fbf7ef;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.breed-card.is-historical {
  border-style: dashed;
}

.breed-card.is-historical .breed-card-media img {
  filter: sepia(0.12) saturate(0.82);
}

.breed-status-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--sans, sans-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  vertical-align: 8px;
}

.breed-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.breed-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.breed-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.breed-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin: 0;
  background: var(--paper-2);
}

.breed-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.breed-card:hover .breed-card-media img {
  transform: scale(1.04);
}

.breed-photo-hint {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(35, 31, 27, 0.82);
  color: #fbf7ef;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.breed-card:hover .breed-photo-hint,
.breed-card:focus-within .breed-photo-hint {
  opacity: 1;
  transform: translateY(0);
}

.breed-hover-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 2px;
  height: 54px;
  padding: 2px;
  background: rgba(35, 31, 27, 0.72);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.breed-hover-strip img {
  flex: 1;
  min-width: 0;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.breed-card:hover .breed-hover-strip,
.breed-card:focus-within .breed-hover-strip {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .breed-hover-strip {
    display: none;
  }
}

.breed-gallery {
  margin: 30px 0 6px;
  padding: 20px 0 4px;
  border-top: 1px solid var(--line);
}

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

.breed-shot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-2);
  cursor: zoom-in;
}

.breed-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.breed-shot:hover img,
.breed-shot:focus-visible img {
  transform: scale(1.05);
}

.breed-shot span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(35, 31, 27, 0.78);
  color: #fbf7ef;
  font-size: 10px;
}

.breed-gallery-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

.breed-gallery-link {
  margin: 12px 0 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: rgba(20, 18, 16, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  max-width: min(900px, 82vw);
  max-height: 86vh;
}

.lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  object-fit: contain;
}

.lightbox-figure figcaption {
  margin-top: 8px;
  color: #e9e1d4;
  font-size: 11.5px;
  line-height: 1.6;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.lightbox-nav:hover,
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

body.lightbox-open {
  overflow: hidden;
}

.breed-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px 16px 17px;
}

.breed-origin {
  margin: 0 0 4px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.breed-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.breed-card h3 a {
  color: inherit;
  text-decoration: none;
}

.breed-en {
  margin: 3px 0 0;
  font-size: 11.5px;
  color: var(--ink-3);
}

.breed-traits {
  margin: 7px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

.breed-mini-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 13px;
}

.breed-mini-facts span {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--ink-3);
  background: var(--paper);
}

.breed-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 2px solid var(--amber-strong);
  background: var(--paper-2);
  border-radius: 0 10px 10px 0;
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-2);
}

.breed-method {
  margin: 26px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
}

.breed-method h2 {
  margin: 5px 0 10px;
  font-family: var(--serif);
  font-size: 24px;
}

.breed-method p {
  margin: 0 0 9px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
}

.breed-method p:last-child {
  margin-bottom: 0;
}

.breed-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 30px;
  align-items: start;
  margin: 24px 0 10px;
}

.breed-hero-copy h1 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.breed-en-lg {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.breed-also {
  margin: 7px 0 0;
  font-size: 11.5px;
  color: var(--ink-3);
}

.breed-figure {
  margin: 0;
}

.breed-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.breed-figure figcaption {
  margin-top: 8px;
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--ink-3);
}

.breed-figure figcaption a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
}

.breed-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 22px 0 0;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.breed-facts > div {
  min-width: 0;
  padding: 5px 12px;
  border-left: 1px solid var(--line);
}

.breed-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.breed-facts dt {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.breed-facts dd {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}

.breed-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  padding: 26px 0 80px;
  align-items: start;
}

.breed-section {
  margin: 0 0 30px;
}

.breed-section h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.35;
}

.breed-section p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.breed-section ul {
  margin: 8px 0 0;
  padding-left: 19px;
}

.breed-section li {
  margin: 5px 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}

.breed-health {
  margin: 4px 0 28px;
  padding: 18px 20px;
  background: var(--red-paper);
  border: 1px solid var(--red-line);
  border-radius: 14px;
}

.breed-health h2 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--red);
}

.breed-health p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
}

.breed-fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 26px;
}

.breed-fit section {
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.breed-fit h2 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 17px;
}

.breed-fit ul {
  margin: 0;
  padding-left: 17px;
}

.breed-fit li {
  margin: 5px 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.breed-fit .not {
  background: var(--paper-2);
}

.breed-fit .not h2 {
  color: var(--ink-3);
}

.breed-note-box {
  margin: 0 0 26px;
  padding: 15px 17px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
  background: var(--paper-2);
}

.breed-aside {
  position: sticky;
  top: calc(var(--header-h) + 18px);
}

.breed-aside .aside-card {
  margin-bottom: 14px;
}

.breed-aside .ref-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.breed-aside .ref-list li {
  margin: 7px 0;
  font-size: 12px;
  line-height: 1.65;
}

.breed-aside .ref-list a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px dashed var(--line-strong);
}

.breed-aside .ref-list a:hover {
  color: var(--terra);
}

.breed-related {
  margin-top: 34px;
}

.breed-related .breed-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.breed-home .breed-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.breed-home-note {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--ink-3);
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 18px 16px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(44, 38, 32, 0.12);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav a::after {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 10.5vw, 62px);
  }

  .hero-art {
    order: -1;
  }

  .hero-art img {
    max-width: 330px;
  }

  .stats {
    gap: 28px;
  }

  .section {
    padding: 48px 0;
  }

  .q-grid,
  .q-grid-3,
  .q-list,
  .cat-grid,
  .a-grid,
  .a-list {
    grid-template-columns: 1fr;
  }

  .a-card-large {
    grid-row: auto;
  }

  .a-card-large .a-card-link {
    padding: 26px;
  }

  .a-card-large h3 {
    font-size: 26px;
  }

  .breed-hero,
  .breed-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .breed-aside {
    position: static;
  }

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

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

  .breed-facts > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .breed-facts > div:nth-child(n + 3) {
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .breed-fit {
    grid-template-columns: 1fr;
  }

  .breed-related .breed-grid,
  .breed-home .breed-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust,
  .section-list,
  .page-grid,
  .article-grid,
  .ask-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .q-aside,
  .toc-wrap,
  .ask-aside,
  .about-aside,
  .knowledge-aside {
    position: static;
  }

  .toc-wrap {
    order: -1;
  }

  .article-grid .toc-wrap,
  .page-grid .q-aside {
    display: none;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-note {
    grid-column: 1 / -1;
  }

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

  .draft-list {
    grid-template-columns: 1fr;
  }

  .rel-art-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 17px;
  }

  .breed-grid,
  .breed-related .breed-grid,
  .breed-home .breed-grid {
    grid-template-columns: 1fr;
  }

  .breed-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .breed-group-head {
    flex-direction: column;
    gap: 4px;
  }

  .breed-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .lightbox {
    gap: 6px;
    padding: 14px;
  }

  .lightbox-figure {
    max-width: 88vw;
  }

  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .breed-group-head .section-note {
    margin: 0;
  }

  .breed-hero-copy h1 {
    font-size: 40px;
  }

  .header-inner {
    gap: 12px;
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .header-actions {
    gap: 6px;
    margin-left: auto;
  }

  .header-actions > .icon-btn:first-child {
    display: none;
  }

  .icon-btn {
    width: 37px;
    height: 37px;
  }

  .hero {
    padding-top: 30px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero .lede {
    font-size: 14.5px;
  }

  .search {
    margin-top: 22px;
    padding-left: 13px;
  }

  .search input {
    font-size: 14px;
  }

  .search button {
    padding: 10px 15px;
  }

  .stats {
    gap: 23px;
    margin-top: 26px;
  }

  .stats dt {
    font-size: 26px;
  }

  .section {
    padding: 40px 0;
  }

  .section-head {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }

  .section-head h2 {
    font-size: 27px;
  }

  .q-card {
    padding: 19px 18px 15px;
  }

  .q-card h3 {
    font-size: 20px;
  }

  .q-card > p {
    -webkit-line-clamp: 4;
  }

  .page-hero {
    padding: 28px 0 24px;
  }

  .page-hero h1 {
    font-size: 39px;
  }

  .toolbar {
    position: static;
    padding-top: 0;
    border-bottom: 0;
  }

  .chips {
    gap: 6px;
  }

  .chip {
    padding: 5px 10px;
    font-size: 11.5px;
  }

  .q-head h1,
  .article-head h1 {
    font-size: 31px;
  }

  .prose h2 {
    font-size: 22px;
  }

  .prose p {
    font-size: 14.5px;
  }

  .prose li {
    font-size: 14px;
  }

  .answer-box {
    padding: 16px 17px;
  }

  .answer-box p {
    font-size: 14.5px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ask-form {
    padding: 20px 17px;
  }

  .cta {
    margin-bottom: 56px;
    padding: 24px 21px;
  }

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

  .footer-brand,
  .footer-note {
    grid-column: auto;
  }

  .notfound {
    padding: 38px 17px 70px;
  }
}

@media (max-width: 380px) {
  .hero-copy h1 {
    font-size: 39px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .search button {
    padding: 9px 12px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero-art img {
    animation: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .q-aside,
  .toc-wrap,
  .ask-aside,
  .about-aside,
  .related,
  .feedback,
  .read-progress,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .wrap {
    max-width: none;
    padding: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
