/* keepawstory.com — 猫狗家庭护理科普站 */
:root {
  --ink: #2f241f;
  --muted: #6a534a;
  --faint: #9a7f72;
  --coral: #e07a4f;
  --coral-deep: #c45c2e;
  --cream: #fff8f2;
  --peach: #ffe4d4;
  --card: #ffffff;
  --line: rgba(47, 36, 31, 0.08);
  --radius: 18px;
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --max: 760px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(255, 196, 160, 0.55) 0%, transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(255, 220, 190, 0.45) 0%, transparent 50%),
    linear-gradient(180deg, #fff5ec 0%, var(--cream) 28%, #fff 72%);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--coral-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 0;
  background: rgba(255, 248, 242, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(47, 36, 31, 0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 22%;
  object-fit: cover;
  background: #fedeC4;
  display: block;
  box-shadow: 0 4px 14px rgba(196, 92, 46, 0.18);
}

.logo:hover {
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 13px;
  font-weight: 600;
}

.nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--coral-deep);
  background: rgba(224, 122, 79, 0.1);
  text-decoration: none;
}

/* —— Hero —— */
.hero {
  padding: 40px 0 28px;
  text-align: center;
}

.hero-panel {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 241, 230, 0.88) 100%);
  border: 1px solid rgba(224, 122, 79, 0.16);
  border-radius: 28px;
  padding: 36px 28px 32px;
  box-shadow: 0 18px 48px rgba(196, 92, 46, 0.08);
}

.hero-mark {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 22%;
  object-fit: cover;
  background: #fedeC4;
  box-shadow: 0 10px 28px rgba(196, 92, 46, 0.2);
}

.hero-brand {
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}

.hero-tag {
  margin: 16px auto 0;
  max-width: 28em;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.hero-job {
  margin: 10px auto 0;
  max-width: 34em;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.hero-badges span {
  font-size: 12px;
  font-weight: 600;
  color: var(--coral-deep);
  background: rgba(224, 122, 79, 0.1);
  border: 1px solid rgba(224, 122, 79, 0.16);
  padding: 6px 12px;
  border-radius: 999px;
}

/* —— Sections —— */
.section {
  padding: 12px 0 36px;
}

.section-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
  margin: 0 0 14px;
}

.chapter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .chapter-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.chapter-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 14px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
  min-height: 108px;
}

.chapter-card:hover {
  text-decoration: none;
  border-color: rgba(224, 122, 79, 0.35);
  box-shadow: 0 12px 28px rgba(196, 92, 46, 0.1);
  transform: translateY(-2px);
}

.chapter-card .count {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--coral-deep);
  background: var(--peach);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.chapter-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.chapter-card p {
  margin: 0;
  font-size: 12px;
  color: var(--faint);
  line-height: 1.45;
}

.panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 20px;
  box-shadow: 0 10px 30px rgba(47, 36, 31, 0.04);
}

.catalog-group {
  margin-bottom: 26px;
}

.catalog-group:last-child {
  margin-bottom: 0;
}

.catalog-group h2 {
  margin: 0 0 12px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-group h2::before {
  content: "";
  width: 6px;
  height: 16px;
  border-radius: 999px;
  background: var(--coral);
}

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

.catalog-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.catalog-list a:hover {
  border-color: rgba(224, 122, 79, 0.35);
  box-shadow: 0 8px 20px rgba(196, 92, 46, 0.08);
}

.catalog-list a::after {
  content: "→";
  color: var(--coral);
  font-weight: 700;
  flex-shrink: 0;
}

.notice-box {
  margin: 0;
  padding: 16px 18px;
  background: linear-gradient(135deg, #fff4ec 0%, #fff 100%);
  border-radius: 16px;
  border: 1px solid rgba(224, 122, 79, 0.2);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* —— Knowledge list —— */
.page-head {
  padding: 28px 0 12px;
}

.page-head .back {
  font-size: 13px;
  font-weight: 600;
}

.page-head h1 {
  margin: 10px 0 8px;
  font-size: clamp(26px, 6vw, 34px);
  letter-spacing: -0.02em;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 38em;
}

.dim-group {
  padding: 18px 0 6px;
}

.dim-group h2 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--faint);
  font-weight: 700;
}

.card-list {
  display: grid;
  gap: 8px;
}

.k-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.k-card:hover {
  border-color: rgba(224, 122, 79, 0.35);
  box-shadow: 0 10px 26px rgba(196, 92, 46, 0.1);
  text-decoration: none;
  transform: translateY(-1px);
}

.k-card .meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--peach);
  color: var(--coral-deep);
}

.chip.dog {
  background: #eaf1ff;
  color: #4a6fb5;
}

.chip.cat {
  background: #f5ecff;
  color: #7a5aad;
}

.k-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.k-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* —— Knowledge detail —— */
.article {
  padding: 8px 0 40px;
}

.article-title {
  font-size: clamp(24px, 5vw, 32px);
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
  line-height: 1.25;
}

.stakes {
  background: #fff0ea;
  border-left: 3px solid var(--coral);
  border-radius: 0 12px 12px 0;
  padding: 12px 14px;
  font-size: 14px;
  margin: 0 0 20px;
}

.block {
  margin: 0 0 22px;
}

.block h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.block p,
.block li {
  font-size: 14px;
  color: var(--muted);
}

.block ul,
.block ol {
  margin: 0;
  padding-left: 1.2em;
}

.block li + li {
  margin-top: 6px;
}

.boundary {
  display: grid;
  gap: 8px;
}

.boundary-item {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
}

.boundary-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.boundary-item.green {
  background: #eaf7ee;
}

.boundary-item.yellow {
  background: #fff7e6;
}

.boundary-item.red {
  background: #ffecec;
}

.disclaimer {
  margin-top: 28px;
  padding: 14px 16px;
  background: #f7f2ee;
  border-radius: 12px;
  font-size: 12px;
  color: var(--faint);
  line-height: 1.6;
}

/* —— Footer —— */
.site-footer {
  margin-top: 16px;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
  color: var(--faint);
  line-height: 1.7;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 244, 236, 0.65) 100%);
}

.site-footer a {
  color: var(--faint);
}

.site-footer a:hover {
  color: var(--coral-deep);
}

.footer-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.beian-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.beian {
  margin: 0;
  font-size: 13px;
}

.beian a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.prose {
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--muted);
}

.prose.panel {
  padding: 24px 22px 28px;
}

.prose h2 {
  margin: 22px 0 8px;
  font-size: 16px;
  color: var(--ink);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 6px;
}

@media (max-width: 480px) {
  .hero-panel {
    padding: 28px 18px 24px;
  }

  .nav a {
    padding: 6px 8px;
    font-size: 12px;
  }

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