:root {
  font-family: ui-sans-serif,system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  color: #263b34;
  background: #f7f9f5;
  line-height: 1.75;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #226751;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible {
  outline: 3px solid #d58b13;
  outline-offset: 5px;
}
img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}
h1,h2,h3,p {
  margin: 0 0 18px;
}
h1 {
  font-size: clamp(30px,4vw,48px);
  line-height: 1.3;
  letter-spacing: -.025em;
}
h2 {
  font-size: 22px;
  line-height: 1.4;
}
h3 {
  font-size: 17px;
}
main {
  max-width: 1160px;
  margin: auto;
  padding: 0 28px 50px;
}
.site-header {
  max-width: 1160px;
  margin: auto;
  padding: 22px 28px;
  border-bottom: 1px solid #dfe7dc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 750;
  color: #25392f;
  white-space: nowrap;
}
.brand img {
  object-fit: contain;
}
.brand small {
  font-size: 16px;
  font-weight: 450;
  color: #66766b;
}
.site-header nav,footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
}
.button {
  display: inline-block;
  padding: 13px 24px;
  background: #226751;
  color: #fff;
  border-radius: 14px;
  font-weight: 650;
}
.button:hover {
  background: #194f3d;
  text-decoration: none;
}
.button.compact {
  padding: 8px 14px;
  border-radius: 10px;
}
.intro {
  padding: 68px 0 36px;
  max-width: 850px;
}
.intro.creation {
  padding-bottom: 58px;
}
.eyebrow {
  color: #5e7b65;
  font-size: 12px;
  letter-spacing: .15em;
  font-weight: 700;
  margin-bottom: 14px;
}
.lead {
  color: #5b6b60;
  font-size: 18px;
  max-width: 730px;
}
.muted {
  color: #657468;
}
.small {
  font-size: 13px;
  margin-top: 14px;
}
.secondary {
  display: inline-block;
  margin: 14px 20px;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 26px;
}
.book-card {
  background: #fff;
  border: 1px solid #e1e7de;
  border-radius: 20px;
  overflow: hidden;
  transition: transform .15s;
}
.book-card:hover {
  transform: translateY(-3px);
}
.book-card>a {
  display: block;
  height: 100%;
  color: inherit;
}
.book-card>a:hover {
  text-decoration: none;
}
.book-card img,.cover-placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #eef3e7;
}
.cover-placeholder {
  display: grid;
  place-items: center;
  background: #e5eddc;
  color: #728164;
}
.card-copy {
  padding: 22px;
}
.card-copy h2 {
  font-size: 20px;
  margin-bottom: 8px;
}
.card-copy p {
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-copy .english {
  font-size: 16px;
}
.english {
  color: #647568;
  font-size: 21px;
}
.text-link {
  font-size: 14px;
  font-weight: 650;
  color: #226751;
}
.pagination {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
  padding: 38px 0;
}
.note {
  margin: 36px 0 0;
  background: #ecf1e5;
  border: 1px solid #dde6d4;
  border-radius: 22px;
  padding: 32px;
}
.note p {
  max-width: 830px;
  color: #556b5b;
}
.note h3 {
  margin-top: 24px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #667766;
  padding: 30px 0;
}
.breadcrumb>span:last-child {
  overflow-wrap: anywhere;
}
.book-detail {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.1fr);
  gap: 42px;
  padding: 20px 0 32px;
}
.book-detail h1 {
  font-size: clamp(28px,3.5vw,40px);
  overflow-wrap: anywhere;
}
.detail-cover {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #eef3e7;
  border-radius: 22px;
  border: 1px solid #e1e7de;
  aspect-ratio: 4/3;
}
.book-detail dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  font-size: 14px;
  margin: 26px 0;
}
.book-detail dt {
  color: #6a7b6b;
}
.book-detail dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.description {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px;
}
.feature-grid article {
  background: #fff;
  border: 1px solid #e1e7de;
  border-radius: 20px;
  padding: 28px;
}
.feature-grid article>span {
  color: #73935c;
  display: block;
  margin-bottom: 14px;
}
.feature-grid p {
  color: #5f7363;
  margin: 0;
}
footer {
  max-width: 1104px;
  margin: 0 auto;
  padding: 32px 0 42px;
  border-top: 1px solid #dfe7dc;
  font-size: 14px;
  color: #667766;
}
.empty {
  padding: 20px 0;
}
@media(max-width:850px) {
  .book-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .book-detail {
    gap: 26px;
  }
  .site-header nav {
    gap: 14px;
  }
  .site-header nav .compact {
    display: none;
  }
}
@media(max-width:600px) {
  main {
    padding: 0 20px 30px;
  }
  .site-header {
    padding: 18px 20px;
    flex-wrap: wrap;
    gap: 14px;
  }
  .site-header nav {
    width: 100%;
    justify-content: space-between;
  }
  .brand {
    font-size: 24px;
  }
  .intro {
    padding-top: 42px;
  }
  .lead {
    font-size: 16px;
  }
  .book-grid,.book-detail {
    grid-template-columns: 1fr;
  }
  .book-detail {
    padding-top: 0;
  }
  .book-card img {
    max-height: 280px;
  }
  .note {
    padding: 24px;
  }
  .pagination {
    gap: 22px;
  }
  footer {
    margin: 0 20px;
  }
  .book-detail .english {
    font-size: 18px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .book-card {
    transition: none;
  }
  .book-card:hover {
    transform: none;
  }
}
