/* LumiCred - 首页样式 (Figma node 2113:938) */

.home-main {
  background: var(--white);
}

/* ============================================================
   1. Hero Section
   ============================================================ */
.home-hero {
  position: relative;
  text-align: center;
  padding: 5rem 1.5rem 0;
  max-width: 1320px;
  margin: 0 auto;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 100%,
    rgba(193, 255, 46, 0.15) 0%,
    rgba(193, 255, 46, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
}

.home-hero > * {
  position: relative;
  z-index: 1;
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 9px 17px;
  font-size: 20px;
  font-weight: 500;
  line-height: normal;
  color: var(--primary-medium);
  background: var(--white);
  border: 1px solid rgba(0, 61, 43, 0.05);
  border-radius: 999px;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.75rem;
}

.home-hero-badge-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.home-hero-title {
  font-size: clamp(2.25rem, 5vw, 68px);
  font-weight: 600;
  color: var(--primary-medium);
  line-height: 1.32;
  margin: 0 auto 2.5rem;
  max-width: 800px;
}

.home-hero-cards {
  position: relative;
  width: min(100%, 920px);
  height: clamp(400px, 38vw, 620px);
  margin: 0 auto;
  overflow-x: clip;
}

.home-hero-card {
  position: absolute;
  left: 50%;
  top: 0;
  display: block;
  width: clamp(210px, 26vw, 340px);
  height: auto;
  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  filter: drop-shadow(0 33px 33px rgba(0, 0, 0, 0.25));
  transition:
    transform 0.85s cubic-bezier(0.34, 1.1, 0.64, 1),
    opacity 0.55s ease,
    filter 0.85s ease;
  cursor: pointer;
  will-change: transform, opacity;
}

.home-hero-card.is-left {
  transform: translate3d(calc(-50% - clamp(130px, 18vw, 210px)), 8%, 0) rotate(-12deg) scale(0.94);
  z-index: 1;
  opacity: 0.92;
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.18));
}

.home-hero-card.is-center {
  transform: translate3d(-50%, 0, 0) rotate(0deg) scale(1.06);
  z-index: 3;
  opacity: 1;
  filter: drop-shadow(0 33px 33px rgba(0, 0, 0, 0.25));
  cursor: default;
}

.home-hero-card.is-right {
  transform: translate3d(calc(-50% + clamp(130px, 18vw, 210px)), 8%, 0) rotate(12deg) scale(0.94);
  z-index: 2;
  opacity: 0.92;
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.18));
}

.home-hero-card.is-no-transition {
  transition: none !important;
}

.home-hero-card.is-fading {
  opacity: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-card {
    transition: none;
  }
}

/* ============================================================
   2. Features Section
   ============================================================ */
.home-features {
  padding: 5rem 1.5rem;
  max-width: 1320px;
  margin: 0 auto;
}

.home-features-title {
  font-size: clamp(1.75rem, 3.5vw, 48px);
  font-weight: 600;
  color: var(--primary-medium);
  text-align: center;
  margin: 0 auto 3rem;
  line-height: 1.25;
  max-width: 840px;
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.home-feature-card {
  text-align: left;
}

.home-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.home-feature-icon img {
  width: 20px;
  height: 20px;
  display: block;
}

.home-feature-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-medium);
  margin: 0 0 0.75rem;
  line-height: 30px;
}

.home-feature-desc {
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: var(--primary-medium);
  margin: 0;
}

/* ============================================================
   3. App Download Section (Lime Green)
   ============================================================ */
.home-app {
  position: relative;
  background: var(--lime-green);
  padding: 4rem 0 0;
  overflow: visible;
}

.home-app-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
  min-height: clamp(520px, 52vw, 680px);
}

.home-app-content {
  max-width: 580px;
  padding-bottom: 4rem;
}

.home-app-title {
  font-size: clamp(1.75rem, 3.5vw, 48px);
  font-weight: 600;
  color: var(--primary-medium);
  line-height: 1.25;
  margin: 0 0 1rem;
  max-width: 590px;
}

.home-app-subtitle {
  font-size: 20px;
  font-weight: 500;
  color: var(--primary-medium);
  margin: 0 0 2rem;
}

.home-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 580px;
}

.home-step {
  padding: 1.75rem 1.75rem 1.5rem 2rem;
  border: 1px solid rgba(0, 61, 43, 0.2);
  border-radius: 30px;
  background: transparent;
  min-height: 192px;
  cursor: pointer;
  transition:
    background-color 0.45s ease,
    border-color 0.45s ease,
    color 0.45s ease;
}

.home-step.is-active {
  background: var(--magenta);
  border-color: var(--magenta);
  cursor: default;
}

.home-step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.home-step-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 61, 43, 0.1);
  color: #003d2b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background-color 0.45s ease,
    color 0.45s ease;
}

.home-step.is-active .home-step-icon {
  background: var(--white);
  color: var(--magenta);
}

.home-step-check {
  width: 20px;
  height: 20px;
  display: block;
}

.home-step-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-medium);
  margin: 0;
  line-height: normal;
  transition: color 0.45s ease;
}

.home-step.is-active .home-step-title,
.home-step.is-active .home-step-desc {
  color: var(--white);
}

.home-step-desc {
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  color: var(--primary-medium);
  margin: 0;
  padding-left: calc(40px + 1rem);
  transition: color 0.45s ease;
}

.home-app-image {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: min(clamp(480px, 48vw, 820px), 100%);
  max-width: 50vw;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 5;
}

.home-app-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom right;
}

/* ============================================================
   4. Products Section
   ============================================================ */
.home-products {
  padding: 5rem 1.5rem;
  max-width: 1320px;
  margin: 0 auto;
}

.home-products-title {
  font-size: clamp(1.75rem, 3.5vw, 48px);
  font-weight: 600;
  color: var(--primary-medium);
  text-align: center;
  margin: 0 0 3rem;
  line-height: 1.25;
}

.home-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.home-product {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-product-name {
  font-size: 36px;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0;
  line-height: normal;
}

.home-product-desc {
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: var(--primary-dark);
  margin: 0;
}

.home-product-soon {
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: var(--primary-dark);
  margin: 0;
}

.home-product-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: auto;
}

.home-product-label {
  font-size: 20px;
  font-weight: 500;
  color: var(--primary-dark);
  margin: 0;
}

.home-product-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 203px;
  height: 58px;
  border-radius: 30px;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
}

.home-product-amount.color-magenta {
  background: var(--magenta);
  color: var(--white);
}

.home-product-amount.color-dark {
  background: var(--primary-dark);
  color: var(--white);
}

.home-product-amount.color-lime {
  background: var(--lime-green);
  color: var(--primary-dark);
}

.home-product-amount.color-teal {
  background: #13835f;
  color: var(--white);
}

/* ============================================================
   5. Stats CTA Section (Dark Green)
   ============================================================ */
.home-stats {
  padding: 0 1.5rem 4rem;
  max-width: 1320px;
  margin: 0 auto;
}

.home-stats-card {
  background: var(--primary-dark);
  border-radius: 48px;
  padding: 5.75rem 2rem 3.5rem;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-stats-avatars {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.home-stats-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.home-stats-avatar + .home-stats-avatar {
  margin-left: -15px;
}

.home-stats-number {
  font-size: clamp(2.5rem, 5vw, 68px);
  font-weight: 600;
  margin: 0 0 1.5rem;
  line-height: 60px;
  text-transform: uppercase;
}

.home-stats-desc {
  font-size: 20px;
  line-height: 22px;
  font-weight: 400;
  color: var(--white);
  max-width: 680px;
  margin: 0 auto 2rem;
}

.home-stats-cta {
  display: inline-block;
  transition: opacity 0.2s;
}

.home-stats-cta:hover {
  opacity: 0.9;
}

.home-stats-cta img {
  display: block;
  height: 60px;
  width: auto;
  border-radius: 6px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1200px) {
  .home-app-image {
    width: clamp(400px, 44vw, 680px);
    max-width: 50vw;
  }
}

@media (max-width: 992px) {
  .home-main {
    overflow-x: clip;
  }

  .home-features {
    padding: 3.5rem 1.5rem 2.5rem;
  }

  .home-features-title {
    margin-bottom: 2rem;
  }

  .home-features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 520px;
    margin: 0 auto;
  }

  .home-app {
    display: flex;
    flex-direction: column;
    padding: 3rem 0 0;
    overflow-x: clip;
  }

  .home-app-inner {
    min-height: auto;
    padding: 0 1.25rem;
  }

  .home-app-content {
    max-width: none;
    padding-bottom: 0.5rem;
  }

  .home-app-image {
    position: relative;
    left: auto;
    right: 0;
    top: auto;
    width: fit-content;
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    align-self: flex-end;
  }

  .home-app-image img {
    display: block;
    width: min(92vw, 420px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: right bottom;
  }

  .home-steps {
    max-width: 100%;
    gap: 16px;
  }

  .home-step {
    min-height: auto;
    padding: 1.25rem 1.25rem 1rem;
  }

  .home-products {
    padding: 3.5rem 1.25rem;
  }

  .home-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.25rem;
  }

  .home-hero-cards {
    width: 100%;
    height: clamp(340px, 58vw, 520px);
  }

  .home-hero-card {
    width: clamp(180px, 34vw, 300px);
  }

  .home-hero-card.is-left {
    transform: translate3d(calc(-50% - clamp(95px, 16vw, 175px)), 8%, 0) rotate(-11deg) scale(0.93);
  }

  .home-hero-card.is-center {
    transform: translate3d(-50%, 0, 0) rotate(0deg) scale(1.05);
  }

  .home-hero-card.is-right {
    transform: translate3d(calc(-50% + clamp(95px, 16vw, 175px)), 8%, 0) rotate(11deg) scale(0.93);
  }
}

@media (max-width: 600px) {
  .home-hero {
    padding: 2rem 1rem 0;
  }

  .home-hero-badge {
    font-size: 13px;
    height: auto;
    padding: 7px 12px;
    line-height: 1.3;
    max-width: calc(100% - 0.5rem);
    white-space: normal;
    text-align: center;
  }

  .home-hero-title {
    font-size: clamp(1.625rem, 7.5vw, 2.25rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
  }

  .home-hero-cards {
    width: 100%;
    height: clamp(300px, 92vw, 400px);
  }

  .home-hero-card {
    width: clamp(150px, 44vw, 220px);
  }

  .home-hero-card.is-center {
    transform: translate3d(-50%, 0, 0) rotate(0deg) scale(1.05);
  }

  .home-hero-card.is-left {
    transform: translate3d(calc(-50% - clamp(62px, 19vw, 95px)), 8%, 0) rotate(-10deg) scale(0.92);
  }

  .home-hero-card.is-right {
    transform: translate3d(calc(-50% + clamp(62px, 19vw, 95px)), 8%, 0) rotate(10deg) scale(0.92);
  }

  .home-features {
    padding: 2.5rem 1rem 2rem;
  }

  .home-features-title {
    font-size: clamp(1.375rem, 5.5vw, 1.75rem);
    margin-bottom: 1.75rem;
  }

  .home-features-grid {
    gap: 0;
    max-width: 100%;
  }

  .home-feature-card {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 61, 43, 0.08);
  }

  .home-feature-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .home-feature-title {
    font-size: 18px;
    line-height: 24px;
  }

  .home-feature-desc {
    font-size: 15px;
    line-height: 1.45;
  }

  .home-app {
    padding: 2.5rem 0 0;
  }

  .home-app-inner {
    padding: 0 1rem;
  }

  .home-app-title {
    font-size: clamp(1.375rem, 5.5vw, 1.75rem);
  }

  .home-app-subtitle {
    font-size: 16px;
    margin-bottom: 1.5rem;
  }

  .home-step {
    padding: 1.125rem 1rem;
    border-radius: 20px;
  }

  .home-step-header {
    gap: 0.75rem;
    margin-bottom: 0.625rem;
  }

  .home-step-icon {
    width: 36px;
    height: 36px;
  }

  .home-step-check {
    width: 18px;
    height: 18px;
  }

  .home-step-title {
    font-size: 17px;
    line-height: 1.3;
  }

  .home-step-desc {
    padding-left: 0;
    font-size: 13px;
    line-height: 1.5;
  }

  .home-app-image {
    margin-top: 1.25rem;
    margin-left: auto;
    margin-right: 0;
    margin-bottom: 0;
  }

  .home-app-image img {
    width: min(88vw, 380px);
  }

  .home-products {
    padding: 2.5rem 1rem;
  }

  .home-products-title {
    font-size: clamp(1.375rem, 5.5vw, 1.75rem);
    margin-bottom: 1.75rem;
  }

  .home-products-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-product {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 61, 43, 0.08);
  }

  .home-product:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .home-product-name {
    font-size: 24px;
  }

  .home-product-desc,
  .home-product-soon {
    font-size: 15px;
    line-height: 1.45;
  }

  .home-product-label {
    font-size: 16px;
  }

  .home-product-amount {
    width: 100%;
    max-width: none;
    height: 52px;
    font-size: 18px;
  }

  .home-stats {
    padding: 0 1rem 2.5rem;
  }

  .home-stats-card {
    padding: 2.5rem 1rem 2rem;
    border-radius: 20px;
    min-height: auto;
  }

  .home-stats-avatars {
    margin-bottom: 1rem;
  }

  .home-stats-avatar {
    width: 48px;
    height: 48px;
  }

  .home-stats-number {
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .home-stats-desc {
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 1.5rem;
  }

  .home-stats-cta img {
    height: 48px;
  }
}
