:root {
  --ink: #182028;
  --muted: #66727d;
  --line: #dde5e8;
  --paper: #f6f8f7;
  --white: #ffffff;
  --green: #0b7b68;
  --coral: #d95e46;
  --blue: #315f9e;
  --gold: #be8c33;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
}

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

.site-header {
  align-items: center;
  background: rgba(246, 248, 247, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.book-info span,
.eyebrow {
  color: var(--muted);
}

.nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.nav a,
.site-footer a {
  font-size: 14px;
  font-weight: 800;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 6vw, 86px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
  padding: clamp(64px, 10vw, 128px) clamp(22px, 5vw, 72px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
}

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

h1 {
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.05;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.18;
  margin-bottom: 18px;
}

.hero-copy p {
  color: #31404b;
  font-size: 18px;
}

.search-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  margin-top: 30px;
  max-width: 620px;
  padding: 8px;
}

.search-box input {
  border: 0;
  flex: 1;
  font: inherit;
  min-width: 0;
  outline: 0;
  padding: 10px 12px;
}

.search-box button,
.book-meta button {
  background: var(--green);
  border: 0;
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
  padding: 10px 16px;
}

.hero-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(24, 32, 40, 0.12);
  padding: 28px;
}

.hero-panel span,
.hero-panel strong {
  display: block;
}

.hero-panel strong {
  font-size: 30px;
  line-height: 1.2;
  margin: 8px 0 14px;
}

.section {
  padding: clamp(48px, 7vw, 90px) clamp(22px, 5vw, 72px);
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  padding-top: 18px;
}

.category-strip a {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  padding: 12px 16px;
}

.section-heading {
  max-width: 760px;
}

.book-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.book-card,
.service-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.book-cover {
  align-items: center;
  aspect-ratio: 3 / 4;
  color: var(--white);
  display: flex;
  font-size: 68px;
  font-weight: 900;
  justify-content: center;
}

.book-cover-link {
  aspect-ratio: 3 / 4;
  background: #eef5f2;
  display: block;
  overflow: hidden;
}

.book-cover-link img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.book-cover-link {
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

.book-cover-link:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.cover-green { background: var(--green); }
.cover-coral { background: var(--coral); }
.cover-blue { background: var(--blue); }
.cover-gold { background: var(--gold); }

.book-info {
  padding: 20px;
}

.book-info h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.book-info p,
.service-grid span,
.site-footer p {
  color: var(--muted);
}

.book-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.book-meta strong {
  color: var(--coral);
  font-size: 22px;
}

.service-section {
  background: #eef5f2;
}

.service-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.service-grid article {
  padding: 22px;
}

.service-grid strong,
.service-grid span {
  display: block;
}

.about-contact {
  align-items: start;
  display: grid;
  gap: clamp(24px, 5vw, 72px);
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(24, 32, 40, 0.08);
  padding: clamp(24px, 4vw, 34px);
}

.contact-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.contact-card p {
  color: #31404b;
  font-size: 17px;
}

.contact-phone {
  color: var(--green) !important;
  font-size: 20px !important;
  font-weight: 900;
  margin-bottom: 0;
}

.site-footer {
  align-items: center;
  background: #10181d;
  color: var(--white);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 30px clamp(22px, 5vw, 72px);
}

.site-footer p {
  margin: 4px 0 0;
}

.site-footer a {
  color: #b8c5cc;
}

.product-main {
  margin: 0 auto;
  max-width: 1120px;
  padding: 42px 22px 86px;
}

.contact-main {
  margin: 0 auto;
  max-width: 980px;
  padding: 58px 22px 88px;
}

.contact-main h1 {
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.05;
}

.back-link {
  color: var(--green);
  display: inline-flex;
  font-weight: 900;
  margin-bottom: 24px;
}

.product-detail {
  align-items: start;
  display: grid;
  gap: clamp(28px, 5vw, 68px);
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
}

.product-cover {
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(24, 32, 40, 0.15);
  min-height: 420px;
}

.product-cover-image {
  aspect-ratio: 3 / 4;
  background: #eef5f2;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(24, 32, 40, 0.15);
  display: block;
  object-fit: cover;
  width: 100%;
}

.product-info h1 {
  font-size: clamp(38px, 6vw, 72px);
}

.product-info > p {
  color: #31404b;
  font-size: 18px;
}

.product-price {
  color: var(--coral);
  font-size: 34px;
  font-weight: 900;
  margin: 22px 0;
}

.product-meta {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0;
  margin: 0 0 24px;
}

.product-meta div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 16px;
}

.product-meta div + div {
  border-top: 1px solid var(--line);
}

.product-meta dt {
  color: var(--muted);
}

.product-meta dd {
  font-weight: 900;
  margin: 0;
  text-align: right;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-actions button {
  background: var(--green);
  border: 0;
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  min-height: 48px;
  padding: 12px 22px;
}

.product-actions .secondary-action {
  background: var(--ink);
}

.product-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 48px;
  padding: clamp(24px, 4vw, 34px);
}

.product-section p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .hero,
  .product-detail,
  .about-contact,
  .book-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-box {
    flex-direction: column;
  }
}
