:root {
  --bg: #fffaf3;
  --paper: #ffffff;
  --ink: #2f2924;
  --muted: #6e6258;
  --line: #eadfd1;
  --accent: #e96f45;
  --accent-2: #2f8c84;
  --accent-3: #f4b340;
  --shadow: 0 18px 48px rgba(72, 49, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(255, 255, 255, 0.96)),
    var(--bg);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(234, 223, 209, 0.9);
  background: rgba(255, 250, 243, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-logo {
  width: auto;
  /* height: 46px;
  max-width: min(240px, 52vw); */
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--muted);
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 24px rgba(72, 49, 32, 0.08);
}

.hero {
  padding: 32px 0 42px;
}

.hero-panel {
  min-height: clamp(430px, 58vh, 620px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background-image:
    linear-gradient(90deg, rgba(34, 27, 22, 0.62), rgba(34, 27, 22, 0.2) 48%, rgba(34, 27, 22, 0.04)),
    url("../images/hero-cat-dog.jpg");
  background-position: center;
  background-size: cover;
}

.hero-copy {
  width: min(620px, 100%);
  padding: clamp(28px, 5vw, 58px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.25rem, 7vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 34rem;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions,
.page-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  background: #fff;
  color: var(--ink);
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.section {
  padding: 36px 0;
}

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

.section-title h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: 0;
}

.section-title p {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.category-card,
.gallery-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(72, 49, 32, 0.08);
}

.category-card img,
.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.category-card:nth-child(2) img {
  object-position: 35% center;
}

.category-card:nth-child(3) img {
  object-position: 65% center;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.card-body p {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.text-link {
  color: var(--accent-2);
  font-weight: 800;
}

.breadcrumb {
  width: min(1120px, calc(100% - 32px));
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--accent-2);
  font-weight: 800;
}

.breadcrumb span {
  margin-left: 8px;
}

.feature-band {
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  padding-left: 14px;
  border-left: 4px solid var(--accent-3);
  color: var(--muted);
  line-height: 1.7;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.spotlight {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(72, 49, 32, 0.08);
}

.spotlight img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.spotlight .card-body {
  padding: 20px;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.compact-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.compact-item img {
  width: 112px;
  height: 86px;
  object-fit: cover;
  border-radius: 8px;
}

.compact-item h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.compact-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.content-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.content-panel h2,
.content-panel h3 {
  margin-bottom: 12px;
}

.content-panel p {
  color: var(--muted);
  line-height: 1.85;
}

.content-panel p:last-child {
  margin-bottom: 0;
}

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

.keyword-list li {
  padding: 12px 14px;
  border-radius: 8px;
  background: #fffaf3;
  color: var(--muted);
  line-height: 1.7;
}

.page-hero {
  padding: 44px 0 22px;
}

.page-hero .section-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  align-items: center;
  gap: 34px;
}

.page-copy h1 {
  margin-bottom: 14px;
  color: var(--ink);
}

.page-copy .eyebrow {
  color: var(--accent-2);
}

.page-copy p {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
}

.page-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.page-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
}

.site-footer {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner a {
  color: var(--muted);
}

@media (max-width: 820px) {
  .header-inner,
  .section-title,
  .page-hero .section-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-inner {
    padding: 14px 0;
    gap: 12px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-panel {
    min-height: 520px;
    background-position: 56% center;
  }

  .category-grid,
  .gallery-grid,
  .feature-list,
  .spotlight-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .page-hero .section-inner {
    display: flex;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 22px, 1120px);
  }

  .site-nav a {
    padding: 0 10px;
    font-size: 0.95rem;
  }

  .brand-logo {
    height: 42px;
    max-width: min(220px, 72vw);
  }

  .hero {
    padding-top: 18px;
  }

  .hero-panel {
    min-height: 500px;
  }

  .hero-copy {
    padding: 24px;
  }

  .section {
    padding: 26px 0;
  }
}
