.site-home {
  --home-ink: #171914;
  --home-green: #294f40;
  --home-green-deep: #183b31;
  --home-rust: #ac3b2b;
  --home-paper: #f7f3ea;
  --home-paper-strong: #fcfaf4;
  --home-line: rgba(52, 58, 46, 0.18);
  --home-muted: #6f746c;
  background: #f5f1e8;
  color: var(--home-ink);
}

.site-home .hero {
  min-height: 640px;
  display: grid;
  place-items: center;
  padding: 112px 24px 86px;
  background-position: center 54%;
}

.site-home .hero::before {
  background: rgba(250, 248, 241, 0.12);
}

.site-home .hero-content {
  width: min(1040px, 100%);
  margin: 0 auto;
  text-align: center;
}

.site-home .hero-kicker,
.site-home .home-section-kicker {
  margin: 0 0 14px;
  color: var(--home-green-deep);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-home .hero h1 {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  font-size: clamp(44px, 4.2vw, 68px);
  line-height: 1.15;
  letter-spacing: 0.035em;
  white-space: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.site-home .hero-copy {
  width: 100%;
  max-width: 820px;
  margin: 24px auto 0;
  color: #3f443d;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.9;
  white-space: normal;
  overflow-wrap: break-word;
}

@media (min-width: 1180px) {
  .site-home .hero-content {
    width: min(1600px, 100%);
  }

  .site-home .hero h1 {
    max-width: none;
    font-size: clamp(38px, 3vw, 54px);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow-wrap: normal;
    text-wrap: nowrap;
  }

  .site-home .hero-copy {
    max-width: none;
    font-size: clamp(14px, 0.95vw, 17px);
    white-space: nowrap;
    overflow-wrap: normal;
  }
}

.site-home .hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.site-home .home-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1px solid var(--home-green-deep);
  background: var(--home-green-deep);
  color: #fff;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-home .home-button:hover {
  background: #0f2f27;
  transform: translateY(-1px);
}

.site-home .home-button-secondary {
  background: rgba(251, 249, 243, 0.72);
  color: var(--home-green-deep);
}

.site-home .home-button-secondary:hover {
  background: #fffdf8;
}

.site-home .hero-search {
  width: min(700px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  margin: 24px auto 0;
  border: 1px solid rgba(31, 50, 42, 0.24);
  background: rgba(255, 253, 247, 0.88);
  box-shadow: 0 16px 40px rgba(35, 34, 29, 0.08);
}

.site-home .hero-search input {
  min-width: 0;
  height: 50px;
  padding: 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--home-ink);
  font-size: 15px;
}

.site-home .hero-search button {
  min-width: 126px;
  min-height: 50px;
  border: 0;
  background: var(--home-green-deep);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.site-home .hero-trust-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 25px auto 0;
  padding: 0;
  color: #515750;
  font-size: 13px;
  list-style: none;
}

.site-home .hero-trust-points li {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 0 18px;
}

.site-home .hero-trust-points li + li {
  border-left: 1px solid var(--home-line);
}

.site-home .home-section {
  padding: 96px 24px;
}

.site-home .home-section-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.site-home .home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.site-home .home-section-heading h2,
.site-home .buyout-copy h2,
.site-home .final-cta h2 {
  margin: 0;
  font-size: clamp(34px, 3.2vw, 52px);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: 0.025em;
}

.site-home .home-section-heading p:not(.home-section-kicker) {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--home-muted);
  line-height: 1.8;
}

.site-home .home-all-courses-link {
  flex: 0 0 auto;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--home-green);
  color: var(--home-green-deep);
  font-weight: 700;
  text-decoration: none;
}

.site-home .featured-section {
  background: var(--home-paper);
}

.site-home .home-course-group + .home-course-group {
  margin-top: 52px;
}

.site-home .home-course-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--home-line);
}

.site-home .home-course-group-heading h3 {
  margin: 0;
  font-size: 23px;
  font-weight: 600;
}

.site-home .home-course-group-heading p {
  margin: 0;
  color: var(--home-muted);
  font-size: 13px;
}

.site-home .home-course-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.site-home [data-home-trial-grid] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-home .home-course-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--home-line);
  background: var(--home-paper-strong);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.site-home .home-course-card:hover {
  border-color: rgba(36, 73, 59, 0.46);
  box-shadow: 0 16px 34px rgba(28, 31, 25, 0.08);
  transform: translateY(-2px);
}

.site-home .home-course-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ddd8ce;
}

.site-home .home-course-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 260ms ease;
}

.site-home .home-course-card:hover .home-course-cover img {
  transform: scale(1.025);
}

.site-home .home-course-badge,
.site-home .home-course-code {
  position: absolute;
  top: 10px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  background: rgba(24, 59, 49, 0.94);
  color: #fff;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-home .home-course-badge {
  left: 10px;
}

.site-home .home-course-code {
  right: 10px;
  background: rgba(20, 22, 18, 0.84);
}

.site-home .home-course-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 17px 16px 15px;
}

.site-home .home-course-body h3 {
  min-height: 3em;
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #1d201b;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.site-home .home-course-value {
  min-height: 3.4em;
  display: -webkit-box;
  margin: 12px 0 0;
  overflow: hidden;
  color: #536158;
  font-size: 13px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.site-home .home-course-meta {
  margin: auto 0 0;
  padding-top: 16px;
  color: #858980;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 11px;
}

.site-home .home-course-action {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding: 0 14px;
  border: 1px solid rgba(36, 73, 59, 0.34);
  color: var(--home-green-deep);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-home .home-course-action:hover {
  border-color: var(--home-green-deep);
  background: var(--home-green-deep);
  color: #fff;
}

.site-home .trust-section {
  background: #f1ede4;
}

.site-home .trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.site-home .trust-card {
  padding: 34px 26px;
}

.site-home .trust-card + .trust-card {
  border-left: 1px solid var(--home-line);
}

.site-home .trust-index {
  color: var(--home-rust);
  font-family: Georgia, serif;
  font-size: 14px;
}

.site-home .trust-card h3 {
  margin: 20px 0 8px;
  font-size: 22px;
  font-weight: 600;
}

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

.site-home .buyout-section {
  padding-top: 82px;
  padding-bottom: 82px;
  background: #ebe7de;
}

.site-home .buyout-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 56px;
  padding: 58px 62px;
  overflow: hidden;
  border: 1px solid rgba(35, 62, 50, 0.23);
  background: rgba(250, 248, 242, 0.88);
}

.site-home .buyout-panel::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(35, 75, 59, 0.08);
  border-radius: 50%;
}

.site-home .buyout-copy > p:not(.home-section-kicker) {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.9;
}

.site-home .buyout-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.site-home .buyout-points li {
  padding: 13px 0;
  border-bottom: 1px solid var(--home-line);
  color: #3f4942;
  font-size: 14px;
}

.site-home .buyout-checkout {
  position: relative;
  z-index: 1;
  border-left: 3px solid var(--home-green-deep);
  background: rgba(255, 253, 248, 0.76);
}

.site-home .buyout-checkout .purchase-form {
  height: 100%;
  align-content: start;
  padding: 28px;
  border: 0;
  background: transparent;
}

.site-home .buyout-checkout .purchase-price strong {
  font-size: clamp(34px, 3.1vw, 42px);
}

.site-home .home-purchase-loading,
.site-home .home-purchase-login-copy {
  margin: 0;
  padding: 28px;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.7;
}

.site-home .home-purchase-login {
  width: 100%;
  margin-top: 18px;
}

.site-home .buyout-checkout .purchase-message {
  min-height: 20px;
}

.site-home .review-disclosure {
  max-width: 730px;
  margin: -22px 0 28px;
  color: #858980;
  font-size: 12px;
}

.site-home .review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.site-home .home-review-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--home-line);
  background: var(--home-paper-strong);
}

.site-home .home-review-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-home .home-review-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(35, 75, 59, 0.28);
  border-radius: 50%;
  color: var(--home-green-deep);
  font-size: 14px;
}

.site-home .home-review-head h3 {
  margin: 0;
  font-size: 15px;
}

.site-home .home-review-status {
  margin: 4px 0 0;
  color: var(--home-green);
  font-size: 11px;
}

.site-home .home-review-card blockquote {
  margin: 22px 0 18px;
  color: #424740;
  font-size: 14px;
  line-height: 1.85;
}

.site-home .home-review-course {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--home-line);
  color: var(--home-muted);
  font-size: 11px;
}

.site-home .final-cta-section {
  padding-top: 54px;
  padding-bottom: 88px;
  background: var(--home-paper);
}

.site-home .final-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 44px;
  padding: 48px 52px;
  border-top: 1px solid var(--home-green-deep);
  border-bottom: 1px solid var(--home-green-deep);
}

.site-home .final-cta p {
  max-width: 700px;
  margin: 14px 0 0;
  color: var(--home-muted);
  line-height: 1.85;
}

.site-home .final-cta-actions {
  display: flex;
  gap: 10px;
}

.site-home .home-button:focus-visible,
.site-home .home-course-action:focus-visible,
.site-home .home-course-cover:focus-visible,
.site-home .home-all-courses-link:focus-visible,
.site-home .hero-search input:focus-visible,
.site-home .hero-search button:focus-visible {
  outline: 3px solid rgba(172, 59, 43, 0.42);
  outline-offset: 3px;
}

@media (max-width: 1179px) {
  .site-home .home-course-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .site-home .buyout-panel {
    grid-template-columns: 1fr;
  }

  .site-home .buyout-checkout {
    border-top: 3px solid var(--home-green-deep);
    border-left: 0;
  }
}

@media (max-width: 767px) {
  .site-home .hero {
    min-height: 620px;
    padding: 98px 18px 66px;
    background-position: 48% center;
  }

  .site-home .hero h1 {
    font-size: clamp(39px, 11vw, 54px);
  }

  .site-home .hero-actions,
  .site-home .final-cta-actions {
    flex-direction: column;
  }

  .site-home .home-button {
    width: 100%;
  }

  .site-home .hero-search {
    grid-template-columns: 1fr;
  }

  .site-home .hero-search button {
    width: 100%;
  }

  .site-home .hero-trust-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .site-home .hero-trust-points li {
    justify-content: center;
    padding: 0 7px;
  }

  .site-home .hero-trust-points li + li {
    border-left: 0;
  }

  .site-home .home-section {
    padding: 70px 18px;
  }

  .site-home .home-section-heading,
  .site-home .home-course-group-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-home .home-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .site-home .home-course-body {
    padding: 14px 12px 12px;
  }

  .site-home .home-course-body h3 {
    font-size: 15px;
  }

  .site-home .home-course-value {
    font-size: 12px;
  }

  .site-home .trust-grid {
    grid-template-columns: 1fr;
  }

  .site-home .trust-card + .trust-card {
    border-top: 1px solid var(--home-line);
    border-left: 0;
  }

  .site-home .buyout-panel {
    gap: 34px;
    padding: 38px 24px;
  }

  .site-home .buyout-checkout .purchase-form,
  .site-home .home-purchase-loading,
  .site-home .home-purchase-login-copy {
    padding: 24px 18px;
  }

  .site-home .buyout-points {
    grid-template-columns: 1fr;
  }

  .site-home .final-cta {
    grid-template-columns: 1fr;
    padding: 38px 0;
  }
}

@media (max-width: 519px) {
  .site-home .home-course-grid,
  .site-home .review-grid {
    grid-template-columns: 1fr;
  }

  .site-home .home-course-cover {
    aspect-ratio: 16 / 9;
  }

  .site-home .home-course-body h3,
  .site-home .home-course-value {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-home *,
  .site-home *::before,
  .site-home *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
