:root {
  --bg: #f3f8f4;
  --card: #ffffff;
  --card-soft: #fbfdfb;
  --line: #d7e6da;
  --text: #223127;
  --muted: #5d7061;
  --accent: #4d6a53;
  --accent-soft: #eef6f0;
  --shadow: 0 18px 38px rgba(77, 106, 83, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(148, 184, 156, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(148, 184, 156, 0.14), transparent 26%),
    linear-gradient(180deg, #f6fbf7, var(--bg));
}

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

img {
  max-width: 100%;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}

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

.breadcrumb span[aria-hidden="true"] {
  color: #9ab09d;
}

.page-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--card), var(--card-soft));
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 14px 0 0;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

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

.hero-actions a,
.hero-actions button {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 46px;
  padding: 0 18px;
  background: #fff;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.hero-actions .btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.hero-meta {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfefb, #f2f8f4);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.hero-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(149, 185, 157, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff, #f5faf6);
  overflow: hidden;
}

.hero-media picture {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  margin-top: 18px;
}

.stack {
  display: grid;
  gap: 18px;
}

.section-card {
  padding: 22px;
}

.section-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.section-card p {
  margin: 0;
  color: #314138;
  font-size: 15px;
  line-height: 1.95;
}

.section-card p + p {
  margin-top: 12px;
}

.section-card ul {
  margin: 0;
  padding-left: 18px;
  color: #314138;
  font-size: 14px;
  line-height: 1.9;
}

.section-card li + li {
  margin-top: 8px;
}

.related-grid,
.library-grid {
  display: grid;
  gap: 14px;
}

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

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

.type-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #fbfdfb);
  box-shadow: 0 12px 26px rgba(77, 106, 83, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.type-card:hover {
  transform: translateY(-2px);
  border-color: #a8c0ac;
  box-shadow: 0 16px 28px rgba(77, 106, 83, 0.1);
}

.type-card-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(149, 185, 157, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff, #f5faf6);
  overflow: hidden;
}

.type-card-thumb picture {
  width: 100%;
  height: 100%;
  display: block;
}

.type-card-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.type-card .kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.type-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.type-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.aside-card .meta-row {
  display: grid;
  gap: 10px;
}

.aside-card .meta-row strong {
  color: var(--accent);
  font-size: 13px;
}

.aside-card .meta-row span,
.aside-card .meta-row a {
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
}

.related-grid a {
  padding: 16px;
}

.site-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.site-note a {
  color: var(--accent);
}

@media (max-width: 960px) {
  .hero-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, 100%);
    padding: 16px 0 36px;
  }

  .hero-card,
  .section-card {
    padding: 18px;
  }

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

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions a,
  .hero-actions button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

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