/* 首页 — 远山灰底 · 丹砂鎏金 · 大牌留白 */

/* ── Hero ─────────────────────────────────────────── */
.hm-hero {
  position: relative;
  min-height: min(94vh, 960px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f4f3 0%, #f7f7f6 40%, #faf9f8 100%);
  color: var(--hm-text);
  padding: calc(var(--hm-header-h) + 72px) 0 var(--hm-space-4xl);
}

.hm-hero__bg {
  position: absolute;
  inset: 0;
  background: url('../../images/hero-bg.png') right center / auto 100% no-repeat;
  opacity: 0.88;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 42%, rgba(0,0,0,0.4) 56%, rgba(0,0,0,0.85) 70%, black 80%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 42%, rgba(0,0,0,0.4) 56%, rgba(0,0,0,0.85) 70%, black 80%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hm-hero__bg {
    background-position: center center;
    background-size: cover;
    opacity: 0.3;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.6) 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.6) 100%);
  }
}

.hm-hero__parallax {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 86% 10%, rgba(166, 124, 41, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 45% 38% at 10% 80%, rgba(179, 36, 45, 0.03) 0%, transparent 45%);
  pointer-events: none;
  z-index: 1;
}

.hm-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--hm-max);
  margin: 0 auto;
  padding: 0 var(--hm-space-lg);
  text-align: left;
}

@media (max-width: 900px) {
  .hm-hero__inner {
    text-align: center;
  }
}

.hm-hero__ctas {
  justify-content: flex-start;
}

.hm-hero__lockup {
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .hm-hero__ctas {
    justify-content: center;
  }
  .hm-hero__lockup {
    justify-content: center;
  }
}

/* 锁区：圆形 Logo + 文案 */
.hm-hero__lockup {
  display: flex;
  gap: var(--hm-space-lg);
  align-items: center;
  margin-bottom: var(--hm-space-xl);
}

.hm-hero__logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  box-shadow: 0 6px 24px rgba(26, 18, 18, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
  .hm-hero__logo {
    width: 72px;
    height: 72px;
  }
}

.hm-hero__kicker {
  color: var(--hm-text-hint) !important;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.hm-hero__values {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--hm-primary);
  letter-spacing: 0.12em;
  margin: 0;
  padding: 7px 18px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  border: 1px solid rgba(179, 36, 45, 0.12);
}

/* 主标题 */
.hm-hero h1 {
  color: var(--hm-text);
  margin-bottom: var(--hm-space-xl);
  line-height: 1.2;
  font-size: clamp(2.2rem, 4.5vw + 0.8rem, 3.4rem);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .hm-hero h1 {
    white-space: normal;
  }
}

/* 副文案层次：tagline > lead > pulse，逐级变淡 */
.hm-hero__tagline {
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--hm-text-secondary);
  line-height: 2.1;
  max-width: 520px;
  margin: 0 0 var(--hm-space-lg);
}

.hm-hero__lead {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--hm-text-muted);
  line-height: 2;
  max-width: 500px;
  margin: 0 0 var(--hm-space-xl);
}

@media (max-width: 900px) {
  .hm-hero__tagline,
  .hm-hero__lead {
    margin-left: auto;
    margin-right: auto;
  }
}

.hm-hero__pulse {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--hm-primary);
  letter-spacing: 0.04em;
  margin: 0 auto var(--hm-space-2xl);
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(179, 36, 45, 0.05);
  border-radius: var(--hm-radius-sm);
  border: 1px solid rgba(179, 36, 45, 0.1);
}

.hm-hero__ctas {
  display: flex;
  gap: var(--hm-space-md);
  flex-wrap: wrap;
}

.hm-hero .hm-btn--outline {
  border-color: var(--hm-border);
  color: var(--hm-text-secondary);
  background: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.hm-hero .hm-btn--outline:hover {
  background: #fff;
  border-color: var(--hm-primary);
  color: var(--hm-primary-dark);
}

/* 右侧品牌展示（完整 Logo，不裁切） */
.hm-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hm-hero__logo-frame {
  padding: var(--hm-space-xl);
  background: linear-gradient(165deg, #ffffff 0%, #faf9f8 100%);
  border-radius: var(--hm-radius-xl);
  border: 1px solid var(--hm-border);
  box-shadow:
    0 32px 72px rgba(26, 18, 18, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

.hm-hero__crane-mark {
  width: min(320px, 68vw);
  height: auto;
  max-height: min(340px, 50vh);
  object-fit: contain;
  margin: 0 auto;
}

/* 居中型 Hero 覆写（关于我们等；置于 home.css 末尾确保压过 .hm-hero h1 nowrap） */
.hm-hero.hm-hero--center .hm-hero__inner {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hm-hero.hm-hero--center h1 {
  white-space: normal;
  text-wrap: balance;
}

/* ── Belief Strip ─────────────────────────────────── */
.hm-belief-strip {
  padding: var(--hm-space-2xl) var(--hm-space-lg);
  background: linear-gradient(90deg, var(--hm-primary-bg) 0%, var(--hm-warm-gold-bg) 100%);
  border-top: 1px solid rgba(179, 36, 45, 0.08);
  border-bottom: 1px solid rgba(166, 124, 41, 0.08);
}

.hm-belief-strip__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 2;
  color: var(--hm-text-secondary);
  letter-spacing: 0.01em;
}

.hm-belief-strip__inner p {
  margin: 0;
  white-space: nowrap;
}

.hm-belief-strip__inner p + p {
  margin-top: 0.3em;
}

.hm-belief-strip__inner strong {
  color: var(--hm-primary-dark);
  font-weight: 600;
}

/* ── 痛点 Split ───────────────────────────────────── */
.hm-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--hm-space-3xl);
  align-items: center;
}

@media (max-width: 900px) {
  .hm-split {
    grid-template-columns: 1fr;
    gap: var(--hm-space-2xl);
  }
}

.hm-split p {
  line-height: 2;
  color: var(--hm-text-secondary);
  text-wrap: pretty;
}
.hm-split h2 {
  text-wrap: balance;
}

.hm-mockup {
  aspect-ratio: 9/18;
  max-width: 260px;
  margin: 0 auto;
  border-radius: 36px;
  background: linear-gradient(180deg, #3a3532 0%, #5c5652 100%);
  box-shadow: var(--hm-shadow-lg);
  border: 10px solid #2a2624;
  position: relative;
  overflow: hidden;
}

.hm-mockup::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 24px;
  background: #faf9f8 url('../../images/mockup-login.png') center top / contain no-repeat;
}

/* ── Features ─────────────────────────────────────── */
.hm-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--hm-space-lg);
}

@media (max-width: 640px) {
  .hm-features {
    grid-template-columns: 1fr;
  }
}

/* 5 张卡片强制一排（用于"巷弄烟火"5 卡场景） */
.hm-features--5col {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--hm-space-md);
}
@media (max-width: 900px) {
  .hm-features--5col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--hm-space-lg);
  }
}
@media (max-width: 480px) {
  .hm-features--5col {
    grid-template-columns: 1fr;
  }
}
/* 5 列时卡片内边距收紧一点，避免文字过窄 */
.hm-features--5col .hm-feature-card {
  padding: var(--hm-space-lg) var(--hm-space-lg) var(--hm-space-xl);
}
.hm-features--5col .hm-feature-card h3 {
  font-size: 1.05rem;
}
.hm-features--5col .hm-feature-card p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.hm-feature-card {
  padding: var(--hm-space-xl) var(--hm-space-xl) var(--hm-space-2xl);
  border-radius: var(--hm-radius);
  background: var(--hm-surface);
  border: 1px solid var(--hm-border);
  box-shadow: var(--hm-shadow);
  transition:
    transform var(--hm-duration) var(--hm-ease),
    box-shadow var(--hm-duration) var(--hm-ease);
}

.hm-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hm-shadow-lg);
}

.hm-feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--hm-primary-bg);
  color: var(--hm-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--hm-space-lg);
}

.hm-feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.hm-feature-card h3 {
  margin-bottom: 0.5em;
}

.hm-feature-card p {
  color: var(--hm-text-muted);
  font-size: 0.92rem;
  line-height: 1.85;
  margin-bottom: 0;
}

/* ── Dark Band (子女 / Stats) ─────────────────────── */
.hm-dark-band {
  background: linear-gradient(180deg, var(--hm-dark) 0%, #1f1c1a 100%);
  color: rgba(255, 255, 255, 0.88);
}

.hm-dark-band h2,
.hm-dark-band h3 {
  color: #fff;
}

.hm-dark-band h2 {
  text-wrap: balance;
}

.hm-dark-band .hm-kicker {
  color: var(--hm-warm-gold-light) !important;
}

.hm-dark-band p {
  line-height: 1.9;
}

.hm-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--hm-space-lg);
  margin-top: var(--hm-space-2xl);
}

@media (max-width: 768px) {
  .hm-steps {
    grid-template-columns: 1fr;
  }
}

.hm-step {
  text-align: center;
  padding: var(--hm-space-xl);
  border-radius: var(--hm-radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hm-step h3 {
  color: #fff;
  font-weight: 600;
}

.hm-step p {
  font-size: 0.92rem;
  opacity: 0.8;
  margin-bottom: 0;
}

.hm-step__num {
  width: 44px;
  height: 44px;
  margin: 0 auto var(--hm-space-md);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hm-primary-light), var(--hm-warm-gold-light));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ── Trust ────────────────────────────────────────── */
.hm-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--hm-space-lg);
}

@media (max-width: 768px) {
  .hm-trust {
    grid-template-columns: 1fr;
  }
}

/* ── Stats ────────────────────────────────────────── */
.hm-stat {
  text-align: center;
  padding: var(--hm-space-xl);
}

.hm-stat__num {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  font-family: var(--hm-font-display);
  color: #fff;
  line-height: 1;
  margin-bottom: var(--hm-space-sm);
}

.hm-stat__label {
  opacity: 0.75;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hm-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--hm-space-lg);
}

@media (max-width: 768px) {
  .hm-stats-row {
    grid-template-columns: 1fr;
  }
}

/* ── Pricing Preview ──────────────────────────────── */
.hm-pricing-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--hm-space-lg);
  align-items: stretch;
}

@media (max-width: 900px) {
  .hm-pricing-preview {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
}

.hm-price-card {
  padding: var(--hm-space-xl) var(--hm-space-lg);
  border-radius: var(--hm-radius-lg);
  border: 1px solid var(--hm-border);
  background: var(--hm-surface);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--hm-duration),
    box-shadow var(--hm-duration);
}

.hm-price-card h3 {
  font-weight: 600;
  margin-bottom: 0.3em;
}

.hm-price-card > p {
  font-size: 0.92rem;
  color: var(--hm-text-muted);
}

.hm-price-card--featured {
  border-color: var(--hm-primary);
  box-shadow: 0 20px 56px rgba(179, 36, 45, 0.12);
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .hm-price-card--featured {
    transform: none;
  }
}

.hm-price-card__price {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--hm-font-display);
  color: var(--hm-primary);
  margin: var(--hm-space-sm) 0 4px;
  letter-spacing: -0.02em;
}

.hm-price-card__price span {
  font-size: 1rem;
  font-weight: 600;
}

.hm-price-card__sub {
  font-size: 0.82rem !important;
  color: var(--hm-text-hint) !important;
  margin-bottom: var(--hm-space-md) !important;
}

.hm-price-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--hm-space-lg);
  text-align: left;
  border-top: 1px solid var(--hm-divider);
  padding-top: var(--hm-space-md);
}

.hm-price-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--hm-text-secondary);
}

.hm-price-card__features li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.hm-price-card__features li.is-included svg {
  color: var(--hm-success);
}

.hm-price-card__features li.is-excluded {
  color: var(--hm-text-hint);
  opacity: 0.6;
}

.hm-price-card__features li.is-excluded svg {
  color: var(--hm-text-hint);
}

.hm-price-card__features li.is-highlight {
  font-weight: 600;
  color: var(--hm-text);
}

.hm-pricing-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--hm-text-hint);
  margin-top: var(--hm-space-xl);
  letter-spacing: 0.02em;
}

/* ── Closing CTA ──────────────────────────────────── */
.hm-closing {
  background: linear-gradient(180deg, var(--hm-bg) 0%, var(--hm-primary-bg) 50%, var(--hm-warm-gold-bg) 100%);
  padding-top: var(--hm-space-4xl);
  padding-bottom: var(--hm-space-4xl);
}

.hm-closing h2 {
  font-size: clamp(2rem, 4vw + 0.8rem, 3rem);
  margin-bottom: 0.6em;
}
