/**
 * Hero block styles — extracted from style-index-ext.css
 */

@layer mm-block {
  .mm-x-hero {
    position: relative;
    min-height: 680px;
    color: var(--mmx-white);
    display: grid;
    align-items: center;
    overflow: hidden;
    background: var(--mmx-dark);
  }

  .mm-x-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
  }

  .mm-x-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(8,9,11,.92) 0%, rgba(8,9,11,.68) 48%, rgba(8,9,11,.24) 100%),
      linear-gradient(0deg, rgba(8,9,11,.68), rgba(8,9,11,.08));
    z-index: 1;
  }

  .mm-x-hero .mm-x-wrap {
    position: relative;
    z-index: 2;
  }

  .mm-x-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    gap: 52px;
    align-items: end;
  }

  .mm-x-hero h1 {
    max-width: 900px;
    margin: 14px 0 22px;
    font-size: clamp(32px, 7vw, 54px);
    line-height: .98;
    letter-spacing: 0;
  }

  .mm-x-hero p {
    max-width: 720px;
    color: #e5e8ee;
    font-size: 20px;
  }

  .mm-x-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
  }

  .mm-x-hero-panel {
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(13,15,18,.68);
    backdrop-filter: blur(10px);
    border-radius: var(--mmx-radius);
    padding: 22px;
  }

  .mm-x-hero-panel strong {
    display: block;
    font-size: 28px;
  }

  .mm-x-hero-panel span {
    display: block;
    color: #cfd4dc;
    margin-top: 8px;
  }

  .mm-x-quick-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 46px;
    overflow: hidden;
    border-radius: var(--mmx-radius);
    background: rgba(255,255,255,.18);
  }

  .mm-x-quick-specs div {
    background: rgba(255,255,255,.1);
    padding: 18px;
    min-height: 92px;
  }

  .mm-x-quick-specs strong {
    display: block;
    font-size: 22px;
  }

  .mm-x-quick-specs small {
    display: block;
    color: #d8dde5;
    margin-top: 4px;
  }

  .home .mm-x-hero {
    position: relative;
    min-height: 720px;
    color: var(--mmx-white);
    display: grid;
    align-items: center;
    overflow: hidden;
  }

  .home .mm-x-hero::before {
    background:
      linear-gradient(90deg, rgba(8,9,11,.88) 0%, rgba(8,9,11,.66) 46%, rgba(8,9,11,.32) 100%),
      linear-gradient(0deg, rgba(8,9,11,.64), rgba(8,9,11,.1));
  }

  .mm-x-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #08090b url("../assets/home-hero-filling-line.jpg") center / cover no-repeat;
    transform: scale(1.02);
  }

  .home .mm-x-hero .mm-x-wrap {
    position: relative;
    z-index: 1;
  }

  .home .mm-x-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(300px, .58fr);
    gap: 52px;
    align-items: end;
  }

  /* .mm-x-process-strip 已上收 style-index-ext.css [shared] 段 */

  /* ── Inner page heroes — unified compact height ─────────────────── */
  .mm-x-case-hero,
  .mm-x-video-hero,
  .mm-x-case-detail-hero,
  .mm-x-video-detail-hero,
  .mm-x-resources-simple-hero {
    min-height: 300px;
  }

  .mm-x-resources-simple-hero::before {
    background:
          linear-gradient(90deg, rgba(8,9,11,.92), rgba(8,9,11,.62)),
          linear-gradient(0deg, rgba(8,9,11,.52), rgba(8,9,11,.08));
  }

  .mm-x-resources-simple-hero h1 {
    max-width: 760px;
  }

  .mm-x-case-hero {
    padding: 0;
    align-items: start;
  }

  .mm-x-case-hero .mm-x-wrap {
    padding: 30px 0 28px;
  }

  .mm-x-case-hero h1 {
    max-width: 820px;
    font-size: clamp(34px, 4vw, 50px);
    margin: 8px 0 10px;
    line-height: 1.04;
  }

  .mm-x-case-hero p {
    max-width: 760px;
    margin: 0;
    font-size: 16px;
  }

  .mm-x-case-hero .mm-x-breadcrumb {
    margin-bottom: 10px;
  }

  .mm-x-case-hero .mm-x-eyebrow {
    display: block;
  }

  .mm-x-case-hero::before {
    background:
          linear-gradient(90deg, rgba(8,9,11,.92), rgba(8,9,11,.62)),
          linear-gradient(0deg, rgba(8,9,11,.5), rgba(8,9,11,.08));
  }

  .mm-x-video-hero {
    padding: 0;
    align-items: center;
  }

  .mm-x-video-hero::before {
    background:
          linear-gradient(90deg, rgba(8,9,11,.92), rgba(8,9,11,.62)),
          linear-gradient(0deg, rgba(8,9,11,.4), rgba(8,9,11,.08));
  }

  .mm-x-video-hero .mm-x-wrap {
    padding: 30px 0;
  }

  .mm-x-video-hero .mm-x-breadcrumb {
    margin-bottom: 12px;
  }

  .mm-x-video-hero h1 {
    max-width: 880px;
    margin: 0 0 12px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.04;
  }

  .mm-x-video-hero p {
    max-width: 760px;
    margin: 0;
    font-size: 16px;
  }

  .mm-x-why-hero-panel {
    display: grid;
    gap: 14px;
  }

  .mm-x-why-hero-panel .mm-x-mini {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    align-items: start;
    border-top: 1px solid rgba(255,255,255,.16);
    padding-top: 14px;
  }

  .mm-x-why-hero-panel .mm-x-mini:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .mm-x-why-hero-panel .mm-x-badge {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--mmx-red);
    color: #fff;
    font-weight: 900;
    font-size: 14px;
  }

  .mm-x-case-detail-hero {
    align-items: start;
    padding: 0;
  }

  .mm-x-case-detail-hero .mm-x-wrap {
    padding: 30px 0 28px;
  }

  .mm-x-case-detail-hero .mm-x-breadcrumb {
    margin-bottom: 10px;
  }

  .mm-x-case-detail-hero .mm-x-eyebrow {
    display: block;
  }

  .mm-x-case-detail-hero h1 {
    max-width: 930px;
    margin: 8px 0 10px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.04;
  }

  .mm-x-case-detail-hero p {
    max-width: 780px;
    margin: 0;
    font-size: 16px;
  }

  .mm-x-case-detail-hero::before {
    background:
          linear-gradient(90deg, rgba(8,9,11,.94), rgba(8,9,11,.58)),
          linear-gradient(0deg, rgba(8,9,11,.56), rgba(8,9,11,.06));
  }

  .mm-x-hero-proof {
    position: relative;
    min-height: 460px;
    border-radius: var(--mmx-radius);
    overflow: hidden;
    background: #111318;
    box-shadow: var(--mmx-shadow);
  }

  .mm-x-hero-proof img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
  }

  .mm-x-video-detail-hero {
    padding: 0;
    align-items: center;
  }

  .mm-x-video-detail-hero::before {
    background:
          linear-gradient(90deg, rgba(8,9,11,.92), rgba(8,9,11,.62)),
          linear-gradient(0deg, rgba(8,9,11,.44), rgba(8,9,11,.1));
  }

  .mm-x-video-detail-hero .mm-x-wrap {
    padding: 34px 0 32px;
  }

  .mm-x-video-detail-hero h1 {
    max-width: 900px;
    margin: 0 0 12px;
    font-size: clamp(34px, 4.4vw, 58px);
    line-height: 1.04;
  }

  .mm-x-video-detail-hero p {
    max-width: 780px;
    margin: 0;
    font-size: 17px;
  }

  .mm-x-hero-panel span { font-size: 14px; }

  .mm-x-hero-panel hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,.16);
    margin: 18px 0;
  }
}

@layer mm-responsive {
  /* ── Responsive ───────────────────────────────────────────────────── */
  /* Tablet (≤980px) */
  @media (max-width: 980px) {
    .mm-x-hero-grid,
    .home .mm-x-hero-grid {
      grid-template-columns: 1fr;
    }
  }
}

@layer mm-responsive {
  /* Phone (≤640px) */
  @media (max-width: 640px) {
    /* Hero sizing — both default and .home specificity */
    .mm-x-hero,
    .home .mm-x-hero {
      min-height: auto;
    }

    .mm-x-hero h1 {
      font-size: 30px;
      line-height: 1.02;
    }
    .mm-x-hero p {
      font-size: 17px;
    }
    .mm-x-hero-grid,
    .home .mm-x-hero-grid {
      gap: 24px;
    }
    .mm-x-hero-panel {
      padding: 18px;
    }
    .mm-x-hero-panel strong {
      font-size: 24px;
    }
    .mm-x-hero-actions {
      flex-direction: column;
    }
    .mm-x-hero-actions .mm-x-btn {
      width: 100%;
      justify-content: center;
    }

    /* Quick specs */
    .mm-x-quick-specs {
      grid-template-columns: repeat(2, 1fr);
      margin-top: 26px;
    }
    .mm-x-quick-specs div {
      min-height: 76px;
      padding: 14px;
    }
    .mm-x-quick-specs strong {
      font-size: 18px;
    }

    /* Why hero */
    .mm-x-why-hero-panel .mm-x-mini {
      grid-template-columns: 38px 1fr;
      gap: 10px;
    }

    /* Hero proof */
    .mm-x-hero-proof,
    .mm-x-hero-proof img {
      min-height: 280px;
    }

    /* Breadcrumb in hero */
    .mm-x-breadcrumb {
      margin-bottom: 14px;
    }
  }
}

@layer mm-responsive {
  /* Small phone (≤480px) */
  @media (max-width: 480px) {
    .mm-x-hero h1 {
      font-size: 28px;
    }
    .mm-x-hero p {
      font-size: 15px;
    }
  }
}
