.home-page-root,
.home-page {
  min-width: 0;
}

.home-page main {
  padding-bottom: 48px;
}

.home-section {
  margin-top: 12px;
}

.home-section + .home-section {
  margin-top: 34px;
}

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.home-section-kicker {
  margin: 0 0 5px;
  color: var(--jade);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.home-section-heading h2 {
  margin: 0;
  color: #194f3b;
  font: 700 1.3rem/1.25 "STKaiti", "KaiTi", serif;
  letter-spacing: 0.05em;
}

.home-season-tag,
.home-card-tag {
  border: 1px solid #c6dfcf;
  color: var(--jade-dark);
  background: #e8f4ec;
  font-weight: 700;
}

.home-season-tag {
  flex: 0 0 auto;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.home-feature-grid,
.home-utility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.home-feature-card,
.home-utility-card {
  color: var(--paper);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.home-feature-card {
  position: relative;
  min-height: 235px;
  padding: 24px;
  overflow: hidden;
  border-radius: 20px;
}

.home-feature-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -52px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: rgba(63, 155, 112, 0.08);
  pointer-events: none;
}

.home-feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--jade-dark);
  background: #e5f3e9;
  border: 1px solid #cce3d4;
  border-radius: 14px;
  font: 700 1.45rem/1 "STKaiti", "KaiTi", serif;
}

.home-card-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  max-width: calc(100% - 96px);
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
}

.home-feature-card strong,
.home-feature-card small {
  display: block;
}

.home-feature-card > strong {
  color: #194f3b;
  font-size: 1.18rem;
}

.home-feature-card > small {
  min-height: 3.2em;
  margin-top: 9px;
  color: #667c72;
  font-size: 0.86rem;
  line-height: 1.6;
}

.home-card-action {
  display: inline-flex;
  gap: 6px;
  margin-top: 18px;
  color: var(--jade-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.home-utility-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 88px;
  padding: 15px 17px;
  border-radius: 16px;
}

.home-utility-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--jade-dark);
  background: #edf7f0;
  border-radius: 12px;
  font: 700 1.05rem/1 "STKaiti", "KaiTi", serif;
}

.home-utility-card strong,
.home-utility-card small {
  display: block;
}

.home-utility-card strong {
  color: #214f3e;
  font-size: 0.95rem;
}

.home-utility-card small {
  margin-top: 4px;
  color: #71877e;
  font-size: 0.76rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.home-utility-arrow {
  color: #76a48b;
  font-size: 1rem;
}

.home-feature-card:hover,
.home-utility-card:hover {
  border-color: var(--jade);
  box-shadow: 0 18px 44px rgba(35, 76, 57, 0.12);
  transform: translateY(-2px);
}

.home-feature-card:focus-visible,
.home-utility-card:focus-visible,
.home-market-card:focus-visible,
.home-gold-actions a:focus-visible,
.home-gold-actions button:focus-visible {
  outline: 3px solid #236b50;
  outline-offset: 3px;
}

.home-gold-heading {
  align-items: center;
}

.home-gold-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.home-gold-actions a,
.home-gold-actions button {
  min-height: 36px;
  border: 1px solid #bdd9c7;
  border-radius: 999px;
  color: var(--jade-dark);
  background: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.home-gold-actions a {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
}

.home-gold-actions button {
  padding: 7px 13px;
  cursor: pointer;
}

.home-gold-actions a:hover,
.home-gold-actions button:hover {
  border-color: var(--jade);
  background: #edf7f0;
}

.home-gold-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.home-gold-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-gold-metric {
  min-width: 0;
  min-height: 150px;
  padding: 17px;
  border: 1px solid #d7e9dd;
  border-radius: 16px;
  background: #f5faf6;
}

.home-gold-metric > span,
.home-gold-metric > small,
.home-gold-metric > p {
  color: #667c72;
}

.home-gold-metric > span {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
}

.home-gold-metric > strong {
  display: inline-block;
  max-width: 100%;
  margin-top: 13px;
  color: #194f3b;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.home-gold-metric > small {
  display: inline;
  margin-left: 5px;
  font-size: 0.72rem;
}

.home-gold-metric > p {
  min-height: 2.8em;
  margin: 11px 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.home-gold-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 16px;
  margin-top: 13px;
  color: #71877e;
  font-size: 0.78rem;
}

.home-gold-meta p {
  margin: 0;
}

.home-gold-stale {
  color: #9b6617;
  font-weight: 700;
}

.home-gold-status {
  flex: 1 0 100%;
  min-height: 1.4em;
}

.home-gold-stats[data-state="loading"] .home-gold-metric > strong {
  color: #8ca399;
}

.home-market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-market-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 14px;
  min-width: 0;
  min-height: 92px;
  padding: 15px 16px;
  color: #667c72;
  background: #fff;
  border: 1px solid #bdd9c7;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(35, 76, 57, 0.07);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.home-market-card:hover {
  border-color: var(--jade);
  box-shadow: 0 14px 34px rgba(35, 76, 57, 0.11);
  transform: translateY(-2px);
}

.home-market-identity {
  min-width: 0;
}

.home-market-identity strong,
.home-market-identity small {
  display: block;
  overflow-wrap: anywhere;
}

.home-market-identity strong {
  color: #194f3b;
  font-size: 1rem;
}

.home-market-identity small,
.home-market-card time {
  margin-top: 4px;
  color: #71877e;
  font-size: 0.75rem;
}

.home-market-card time {
  grid-column: 1;
}

.home-market-action {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--jade-dark);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.home-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.home-contact-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.home-contact-copy h3 {
  margin: 0;
  color: #194f3b;
  font-size: 1.05rem;
}

.home-contact-copy p {
  margin: 6px 0 16px;
  color: #667c72;
  font-size: 0.82rem;
  line-height: 1.5;
}

.home-contact-link {
  display: block;
  color: var(--jade-dark);
  text-align: center;
  text-decoration: none;
}

.home-contact-preview {
  position: relative;
  display: block;
  width: min(100%, 260px);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #d7e9dd;
  border-radius: 14px;
  background: #f5faf6;
}

.home-contact-preview img {
  display: block;
  max-width: none;
}

.home-contact-preview--wechat img,
.home-contact-preview--douyin img {
  position: absolute;
  height: auto;
}

.home-contact-preview--wechat img {
  width: 132.6%;
  left: -16.44%;
  top: -54.79%;
}

.home-contact-preview--mini img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-contact-preview--douyin img {
  width: 170.53%;
  left: -36%;
  top: -40%;
}

.home-contact-action {
  display: inline-block;
  margin-top: 11px;
  font-size: 0.82rem;
  font-weight: 800;
}

.home-contact-link:hover .home-contact-action {
  text-decoration: underline;
}

.home-contact-link:focus-visible,
.home-contact-dialog-close:focus-visible,
.home-contact-download:focus-visible {
  outline: 3px solid #236b50;
  outline-offset: 3px;
}

.home-contact-dialog {
  box-sizing: border-box;
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 18px;
  border: 1px solid #c6dfcf;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(18, 54, 38, 0.25);
  color: #214f3e;
  text-align: center;
}

.home-contact-dialog::backdrop {
  background: rgba(12, 36, 25, 0.7);
}

.home-contact-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-contact-dialog-heading h2 {
  margin: 0;
  font-size: 1.1rem;
}

.home-contact-dialog-close,
.home-contact-download {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #bdd9c7;
  border-radius: 999px;
  background: #edf7f0;
  color: var(--jade-dark);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.home-contact-dialog > p {
  margin: 10px 0 14px;
  color: #667c72;
  font-size: 0.82rem;
  line-height: 1.5;
}

.home-contact-dialog-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 65dvh;
  margin: 0 auto 14px;
  object-fit: contain;
}

.home-contact-download {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

@media (max-width: 760px) {
  .home-gold-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .home-feature-grid,
  .home-utility-grid,
  .home-market-grid,
  .home-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-feature-card:first-child {
    grid-column: 1 / -1;
    min-height: 205px;
  }
}

@media (max-width: 560px) {
  .home-page main {
    padding-bottom: 32px;
  }

  .home-section {
    margin-top: 9px;
  }

  .home-section + .home-section {
    margin-top: 27px;
  }

  .home-section-heading {
    align-items: center;
    margin-bottom: 12px;
  }

  .home-gold-heading {
    align-items: flex-end;
  }

  .home-gold-actions {
    gap: 6px;
  }

  .home-gold-actions a,
  .home-gold-actions button {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.74rem;
  }

  .home-gold-panel {
    padding: 11px;
    border-radius: 16px;
  }

  .home-gold-grid {
    gap: 8px;
  }

  .home-gold-metric {
    min-height: 138px;
    padding: 13px 11px;
    border-radius: 13px;
  }

  .home-gold-metric > strong {
    margin-top: 10px;
    font-size: clamp(1.3rem, 7vw, 1.7rem);
  }

  .home-gold-metric > small {
    display: block;
    margin: 4px 0 0;
    line-height: 1.25;
  }

  .home-gold-metric > p {
    margin-top: 8px;
    font-size: 0.72rem;
  }

  .home-feature-grid,
  .home-utility-grid,
  .home-market-grid,
  .home-contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }

  .home-contact-card {
    padding: 16px;
    border-radius: 16px;
  }

  .home-contact-dialog {
    padding: 14px;
  }

  .home-feature-card:first-child {
    grid-column: auto;
  }

  .home-feature-card {
    min-height: 0;
    padding: 19px;
    border-radius: 16px;
  }

  .home-feature-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 17px;
  }

  .home-card-tag {
    top: 19px;
    right: 19px;
  }

  .home-feature-card > small {
    min-height: 0;
  }

  .home-card-action {
    margin-top: 14px;
  }

  .home-utility-card {
    min-height: 80px;
    padding: 13px 14px;
  }

  .home-market-card {
    min-height: 86px;
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-feature-card,
  .home-utility-card,
  .home-market-card {
    transition: none;
  }
}
