/* =========================================================
   墨灵HOO V6.20 — 首页首屏视觉优化
   目标：标题层级清晰、左右布局平衡、产品示意完整可见、平板手机自然堆叠。
   仅作用于首页 Hero，不覆盖其他页面和模块。
   ========================================================= */
#home.hero {
  min-height: auto;
  padding: clamp(58px, 6.5vw, 86px) 0 clamp(68px, 7vw, 92px);
  overflow: hidden;
}

#home .hero-grid {
  display: grid;
  width: min(calc(100% - (var(--gutter) * 2)), 1200px);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
  min-width: 0;
}

#home .hero-copy {
  width: 100%;
  max-width: 670px;
  min-width: 0;
  margin: 0;
  text-align: left;
}

#home .hero-title {
  max-width: 680px;
  margin: 0;
  color: #35242d;
  font-size: clamp(46px, 4.45vw, 60px);
  font-weight: 760;
  line-height: 1.18;
  letter-spacing: -.045em;
  text-wrap: balance;
}

#home .hero-title .hero-title-lead,
#home .hero-title .highlight {
  display: block;
  width: fit-content;
  max-width: 100%;
}

#home .hero-title .highlight {
  margin-top: 2px;
  color: #a85f68;
}

#home .hero-title .highlight::after {
  left: -3%;
  right: -3%;
  bottom: 2px;
  height: 9px;
  background: rgba(239, 184, 151, .42);
  transform: rotate(-.6deg);
}

#home .hero-quote {
  margin: 17px 0 0;
  color: #a65f67;
  font-size: clamp(16px, 1.45vw, 19px);
  font-weight: 650;
  line-height: 1.65;
  letter-spacing: .01em;
}

#home .hero-subtitle {
  max-width: 570px;
  margin: 21px 0 0;
  color: #705c65;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.82;
  letter-spacing: .005em;
}

#home .hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 600px;
  margin: 22px 0 26px;
}

#home .hero-points span {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .84);
  background: rgba(255, 250, 245, .58);
  box-shadow: 0 5px 18px rgba(113, 72, 69, .045), inset 0 1px 0 rgba(255,255,255,.72);
  color: #69545d;
  font-size: 13px;
  line-height: 1.45;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

#home .hero-actions .btn {
  min-height: 54px;
  padding: 15px 23px;
  font-size: 15px;
  white-space: nowrap;
}

#home .hero-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 580px;
  margin-top: 19px;
  color: #7b676f;
  font-size: 13px;
  line-height: 1.75;
}

#home .hero-note::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: .62em;
  border-radius: 50%;
  background: #d99b7f;
  box-shadow: 0 0 0 4px rgba(217, 155, 127, .13);
  font-size: 0;
}

#home .hero-visual {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 555px;
  margin: 0;
  isolation: isolate;
}

#home .watercolor.one {
  top: 6%;
  right: 3%;
  width: min(420px, 96%);
  height: 365px;
  opacity: .68;
}

#home .watercolor.two {
  left: 1%;
  bottom: 5%;
  width: 235px;
  height: 205px;
  opacity: .62;
}

#home .phone-card {
  top: 1%;
  right: 7%;
  width: min(350px, 78%);
  padding: 14px;
  border-radius: 36px;
  transform: rotate(1deg);
  box-shadow: 0 28px 68px rgba(120, 73, 67, .15), inset 0 1px 0 rgba(255,255,255,.86);
}

#home .phone-screen {
  min-height: 455px;
  padding: 24px 20px;
  border-radius: 27px;
}

#home .phone-title {
  margin-top: 43px;
  font-size: 25px;
  line-height: 1.42;
}

#home .phone-cloud {
  margin-top: 17px;
  margin-bottom: 23px;
}

#home .qr-card {
  left: 1%;
  bottom: 3%;
  width: 218px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 22px;
  background: rgba(255, 250, 245, .88);
  box-shadow: 0 16px 36px rgba(120, 73, 67, .12), inset 0 1px 0 rgba(255,255,255,.85);
  transform: rotate(-2deg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#home .qr-card::before {
  display: none;
}

/* Tablet: avoid squeezed columns and keep the complete product preview in view. */
@media (max-width: 1024px) {
  #home.hero {
    padding: 48px 0 60px;
  }

  #home .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  #home .hero-copy {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
  }

  #home .hero-title {
    max-width: 760px;
    margin-inline: auto;
    font-size: clamp(42px, 5.5vw, 58px);
  }

  #home .hero-title .hero-title-lead,
  #home .hero-title .highlight {
    margin-inline: auto;
  }

  #home .hero-quote,
  #home .hero-subtitle {
    margin-inline: auto;
  }

  #home .hero-subtitle {
    max-width: 660px;
  }

  #home .hero-points,
  #home .hero-actions {
    justify-content: center;
    margin-inline: auto;
  }

  #home .hero-note {
    justify-content: center;
    margin-inline: auto;
    text-align: left;
  }

  #home .hero-visual {
    width: min(100%, 610px);
    min-height: 535px;
    margin: 2px auto 0;
  }

  #home .phone-card {
    right: 8%;
    width: min(350px, 72%);
  }

  #home .qr-card {
    left: 3%;
    bottom: 2%;
  }
}

@media (max-width: 640px) {
  #home.hero {
    padding: 34px 0 44px;
  }

  #home .hero-grid {
    width: min(calc(100% - 32px), 560px);
    gap: 20px;
  }

  #home .hero-title {
    font-size: clamp(28px, 8.5vw, 42px);
    line-height: 1.2;
    letter-spacing: -.04em;
  }

  #home .hero-quote {
    margin-top: 13px;
    font-size: 15px;
    line-height: 1.65;
  }

  #home .hero-subtitle {
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.8;
  }

  #home .hero-points {
    gap: 7px;
    margin: 17px 0 21px;
  }

  #home .hero-points span {
    padding: 7px 10px;
    font-size: 12px;
  }

  #home .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 360px);
    gap: 10px;
  }

  #home .hero-actions .btn {
    width: 100%;
    min-height: 49px;
    padding: 13px 17px;
    white-space: normal;
  }

  #home .hero-note {
    max-width: 400px;
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.75;
  }

  #home .hero-visual {
    width: 100%;
    min-height: 415px;
    margin-top: 2px;
  }

  #home .watercolor.one {
    top: 5%;
    right: 0;
    width: 100%;
    height: 300px;
  }

  #home .watercolor.two {
    left: 0;
    bottom: 3%;
    width: 170px;
    height: 155px;
  }

  #home .phone-card {
    top: 0;
    right: 2%;
    width: min(300px, 77%);
    padding: 10px;
    border-radius: 28px;
  }

  #home .phone-screen {
    min-height: 355px;
    padding: 18px 14px;
    border-radius: 21px;
  }

  #home .phone-title {
    margin: 32px 0 12px;
    font-size: 22px;
  }

  #home .phone-cloud {
    width: 176px;
    height: 120px;
    margin: 14px auto 19px;
  }

  #home .phone-cta {
    margin-top: 18px;
    padding: 12px 14px;
  }

  #home .qr-card {
    left: 0;
    bottom: 1%;
    width: 190px;
    padding: 12px;
    border-radius: 18px;
    transform: rotate(-1.5deg);
  }

  #home .qr-row {
    gap: 10px;
  }

  #home .qr-mini {
    width: 66px;
    height: 66px;
  }

  #home .qr-card strong {
    font-size: 12px;
  }

  #home .qr-card span {
    font-size: 10px;
  }
}

@media (max-width: 370px) {
  #home .hero-title {
    font-size: 28px;
  }

  #home .hero-visual {
    min-height: 395px;
  }

  #home .phone-card {
    width: 78%;
    right: 0;
  }

  #home .qr-card {
    width: 176px;
    padding: 10px;
    transform: rotate(-1deg) scale(.94);
    transform-origin: left bottom;
  }
}
