/* Homepage visual alignment with the C1520 product-detail system. */
:root {
  --jnm-home-ink: #111827;
  --jnm-home-muted: #4b5563;
  --jnm-home-cyan: #0891b2;
  --jnm-home-blue: #3b82f6;
  --jnm-home-orange: #f97316;
  --jnm-home-yellow: #eab308;
  --jnm-home-line: #dbe4ee;
  --jnm-home-soft: #f8fafc;
  --jnm-home-radius: 16px;
  --jnm-home-shadow: 0 20px 25px -5px rgba(15, 23, 42, .10), 0 8px 10px -6px rgba(15, 23, 42, .08);
  --jnm-home-shadow-small: 0 10px 15px -3px rgba(15, 23, 42, .08), 0 4px 6px -4px rgba(15, 23, 42, .08);
}

main[data-component-file="Home.tsx"] {
  color: var(--jnm-home-ink);
  background: #fff;
}

html[data-jnm-home-product-ui="20260830-v1"] main[data-component-file="Home.tsx"] > section:not(:first-child) {
  display: none !important;
}

main[data-component-file="Home.tsx"] *,
main[data-component-file="Home.tsx"] *::before,
main[data-component-file="Home.tsx"] *::after {
  box-sizing: border-box;
}

main[data-component-file="Home.tsx"] ::selection {
  color: #0c2e46;
  background: #bae6fd;
}

main[data-component-file="Home.tsx"] a {
  text-underline-offset: .22em;
}

main[data-component-file="Home.tsx"] a:focus-visible {
  outline: 3px solid #06b6d4 !important;
  outline-offset: 4px !important;
}

/* Hero: the product-detail title surface expanded into an editorial split. */
main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child {
  position: relative !important;
  isolation: isolate;
  min-height: 660px !important;
  overflow: hidden;
  justify-content: flex-start !important;
  padding: 92px 0 !important;
  background: linear-gradient(110deg, #ecfeff 0%, #eff6ff 54%, #faf5ff 100%) !important;
}

main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: auto auto -190px -150px;
  width: 430px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, .13), rgba(6, 182, 212, 0) 70%);
  pointer-events: none;
}

main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 72px;
  right: max(32px, calc((100vw - 1380px) / 2 + 32px));
  width: min(42vw, 620px);
  height: 516px;
  border-radius: var(--jnm-home-radius);
  background: url("/junaimei-factory-hero.png") center 49% / cover no-repeat;
  background: image-set(
    url("/junaimei-factory-hero.png.webp") type("image/webp") 1x,
    url("/junaimei-factory-hero.png") type("image/png") 1x
  ) center 49% / cover no-repeat;
  box-shadow: var(--jnm-home-shadow);
  pointer-events: none;
}

main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child > div {
  width: min(1380px, calc(100% - 64px)) !important;
  max-width: 1380px !important;
  margin: 0 auto !important;
  padding: 0 min(50%, 710px) 0 32px !important;
  text-align: left !important;
}

main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child h1,
main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child h2 {
  max-width: 680px;
  color: var(--jnm-home-ink) !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
  letter-spacing: -.03em;
}

main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child h1 {
  margin: 0 0 12px !important;
  font-size: clamp(2.55rem, 3.55vw, 3.5rem) !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
}

main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child h2 {
  margin: 0 0 26px !important;
  font-size: clamp(1.75rem, 2.55vw, 2.55rem) !important;
  line-height: 1.18 !important;
  font-weight: 750 !important;
}

main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child p {
  max-width: 62ch !important;
  margin: 0 0 34px !important;
  color: var(--jnm-home-muted) !important;
  font-size: clamp(1.02rem, 1.3vw, 1.18rem) !important;
  line-height: 1.8 !important;
  text-shadow: none !important;
}

main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child div > div:last-child {
  justify-content: flex-start !important;
  gap: 14px !important;
}

main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  text-decoration: none;
  transform: none !important;
  transition: color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease !important;
}

main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child a:first-child {
  color: #fff !important;
  background: linear-gradient(90deg, #06b6d4, #3b82f6) !important;
  box-shadow: var(--jnm-home-shadow-small) !important;
}

main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child a:last-child {
  color: #c2410c !important;
  background: #fff !important;
  box-shadow: inset 0 0 0 1px #fdba74 !important;
}

main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child a:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--jnm-home-shadow) !important;
}

/* Shared product-detail typography and section rhythm. */
main[data-component-file="Home.tsx"] .jn-proof-loop {
  --jn-ink: var(--jnm-home-ink);
  --jn-muted: var(--jnm-home-muted);
  --jn-line: var(--jnm-home-line);
  --jn-paper: #fff;
  --jn-warm: #f8fafc;
  --jn-orange: var(--jnm-home-orange);
  --jn-blue: var(--jnm-home-cyan);
  color: var(--jnm-home-ink);
  background: #fff;
}

main[data-component-file="Home.tsx"] .jn-loop-shell {
  width: min(1380px, calc(100% - 64px));
}

main[data-component-file="Home.tsx"] .jn-loop-heading,
main[data-component-file="Home.tsx"] .jn-actions h2 {
  max-width: 880px;
  color: var(--jnm-home-ink);
  font-size: clamp(2.2rem, 3.2vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 800;
  text-wrap: balance;
}

main[data-component-file="Home.tsx"] .jn-loop-lead,
main[data-component-file="Home.tsx"] .jn-section-note {
  color: var(--jnm-home-muted);
  line-height: 1.78;
}

main[data-component-file="Home.tsx"] .jn-loop-intro,
main[data-component-file="Home.tsx"] .jn-scenarios,
main[data-component-file="Home.tsx"] .jn-selector,
main[data-component-file="Home.tsx"] .jn-evidence,
main[data-component-file="Home.tsx"] .jn-cases {
  padding: 84px 0;
}

main[data-component-file="Home.tsx"] .jn-loop-intro {
  border: 0;
  background: linear-gradient(105deg, #ecfeff 0%, #eff6ff 52%, #faf5ff 100%);
}

main[data-component-file="Home.tsx"] .jn-audience-switch {
  gap: 20px;
  margin-top: 38px;
  border: 0;
}

main[data-component-file="Home.tsx"] .jn-audience-link {
  min-height: 122px;
  padding: 24px 26px;
  border: 0 !important;
  border-radius: 12px;
  color: var(--jnm-home-ink);
  background: linear-gradient(145deg, #fff, #f8fafc);
  box-shadow: var(--jnm-home-shadow-small);
  transition: color .22s ease, box-shadow .22s ease, transform .22s ease;
}

main[data-component-file="Home.tsx"] .jn-audience-link + .jn-audience-link {
  padding-left: 26px;
}

main[data-component-file="Home.tsx"] .jn-audience-link:hover {
  color: var(--jnm-home-cyan);
  transform: translateY(-3px);
  box-shadow: var(--jnm-home-shadow);
}

main[data-component-file="Home.tsx"] .jn-audience-icon {
  width: 54px;
  height: 54px;
  padding: 12px;
  border-radius: 12px;
  color: #0891b2;
  background: #cffafe;
}

main[data-component-file="Home.tsx"] .jn-audience-link + .jn-audience-link .jn-audience-icon {
  color: #c2410c;
  background: #ffedd5;
}

main[data-component-file="Home.tsx"] .jn-audience-link strong {
  color: var(--jnm-home-ink);
  font-size: 1.15rem;
}

main[data-component-file="Home.tsx"] .jn-audience-link span span {
  color: var(--jnm-home-muted);
}

main[data-component-file="Home.tsx"] .jn-scenarios,
main[data-component-file="Home.tsx"] .jn-cases {
  background: #fff;
}

main[data-component-file="Home.tsx"] .jn-section-top {
  margin-bottom: 34px;
}

main[data-component-file="Home.tsx"] .jn-scenario-grid {
  gap: 18px;
  border: 0;
}

main[data-component-file="Home.tsx"] .jn-scenario {
  min-height: 318px;
  padding: 26px;
  border: 0 !important;
  border-radius: 12px;
  background: linear-gradient(145deg, #f8fafc, #fff);
  box-shadow: var(--jnm-home-shadow-small);
  transition: box-shadow .22s ease, transform .22s ease;
}

main[data-component-file="Home.tsx"] .jn-scenario:hover {
  transform: translateY(-4px);
  box-shadow: var(--jnm-home-shadow);
}

main[data-component-file="Home.tsx"] .jn-scenario-index {
  letter-spacing: .09em;
}

main[data-component-file="Home.tsx"] .jn-scenario svg {
  width: 58px;
  height: 58px;
  margin: 38px 0 30px;
}

main[data-component-file="Home.tsx"] .jn-scenario h3,
main[data-component-file="Home.tsx"] .jn-case h3 {
  color: var(--jnm-home-ink);
}

/* The model selector mirrors the C1520 technical-parameter card. */
main[data-component-file="Home.tsx"] .jn-selector {
  color: var(--jnm-home-ink);
  background: linear-gradient(105deg, #ecfeff 0%, #eff6ff 56%, #faf5ff 100%);
}

main[data-component-file="Home.tsx"] .jn-selector .jn-loop-heading {
  color: var(--jnm-home-ink);
}

main[data-component-file="Home.tsx"] .jn-selector .jn-section-note {
  color: var(--jnm-home-muted);
}

main[data-component-file="Home.tsx"] .jn-model-grid {
  overflow: hidden;
  margin-top: 36px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--jnm-home-shadow);
}

main[data-component-file="Home.tsx"] .jn-model {
  grid-template-columns: 170px minmax(150px, .85fr) minmax(280px, 1.45fr) 150px;
  gap: 24px;
  min-height: 94px;
  padding: 22px 26px;
  border-color: #e2e8f0;
  color: var(--jnm-home-ink);
  background: #fff;
  transition: background .2s ease;
}

main[data-component-file="Home.tsx"] .jn-model:nth-child(even) {
  background: #f8fafc;
}

main[data-component-file="Home.tsx"] .jn-model:hover {
  background: #ecfeff;
}

main[data-component-file="Home.tsx"] .jn-model-code {
  font-size: clamp(1.55rem, 2.15vw, 2.2rem);
}

main[data-component-file="Home.tsx"] .jn-model strong {
  color: var(--jnm-home-ink);
}

main[data-component-file="Home.tsx"] .jn-model span {
  color: var(--jnm-home-muted);
}

main[data-component-file="Home.tsx"] .jn-model .jn-model-action {
  color: var(--jnm-home-cyan) !important;
}

main[data-component-file="Home.tsx"] .jn-evidence {
  background: #fff;
}

main[data-component-file="Home.tsx"] .jn-evidence-layout {
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.25fr);
  gap: 72px;
}

main[data-component-file="Home.tsx"] .jn-report-meta {
  padding: 22px 24px;
  border: 0;
  border-radius: 12px;
  color: var(--jnm-home-muted);
  background: linear-gradient(135deg, #fff7ed, #fefce8);
  box-shadow: var(--jnm-home-shadow-small);
}

main[data-component-file="Home.tsx"] .jn-report-meta strong {
  color: var(--jnm-home-ink);
}

main[data-component-file="Home.tsx"] .jn-metric-list {
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--jnm-home-shadow);
}

main[data-component-file="Home.tsx"] .jn-metric {
  min-height: 96px;
  padding: 21px 24px;
  border-color: #e2e8f0;
}

main[data-component-file="Home.tsx"] .jn-metric:nth-child(even) {
  background: #f8fafc;
}

main[data-component-file="Home.tsx"] .jn-metric-source,
main[data-component-file="Home.tsx"] .jn-report-caution {
  color: var(--jnm-home-muted);
}

main[data-component-file="Home.tsx"] .jn-metric-value {
  color: var(--jnm-home-cyan);
  font-size: clamp(1.65rem, 2.45vw, 2.7rem);
}

main[data-component-file="Home.tsx"] .jn-cases {
  background: #f8fafc;
}

main[data-component-file="Home.tsx"] .jn-case-grid {
  gap: 20px;
}

main[data-component-file="Home.tsx"] .jn-case,
main[data-component-file="Home.tsx"] .jn-case:nth-child(2),
main[data-component-file="Home.tsx"] .jn-case:nth-child(3) {
  min-height: 244px;
  padding: 30px;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #f8fafc);
  box-shadow: var(--jnm-home-shadow-small);
  transition: box-shadow .22s ease, transform .22s ease;
}

main[data-component-file="Home.tsx"] .jn-case:nth-child(2),
main[data-component-file="Home.tsx"] .jn-case:nth-child(4) {
  background: linear-gradient(145deg, #f0f9ff, #fff);
}

main[data-component-file="Home.tsx"] .jn-case:hover {
  transform: translateY(-3px);
  box-shadow: var(--jnm-home-shadow);
}

main[data-component-file="Home.tsx"] .jn-case span {
  color: var(--jnm-home-cyan);
}

main[data-component-file="Home.tsx"] .jn-actions {
  padding: 72px 0;
  color: var(--jnm-home-ink);
  background: linear-gradient(90deg, #ecfeff, #eff6ff);
}

main[data-component-file="Home.tsx"] .jn-actions h2 {
  color: var(--jnm-home-ink);
}

main[data-component-file="Home.tsx"] .jn-action-links {
  gap: 12px;
}

main[data-component-file="Home.tsx"] .jn-action-links a {
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  box-shadow: var(--jnm-home-shadow-small);
  transition: box-shadow .22s ease, transform .22s ease;
}

main[data-component-file="Home.tsx"] .jn-action-links a:first-child {
  color: #fff;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
}

main[data-component-file="Home.tsx"] .jn-action-links a:nth-child(2) {
  color: #fff;
  background: linear-gradient(90deg, #f97316, #eab308);
}

main[data-component-file="Home.tsx"] .jn-action-links a:nth-child(3) {
  color: #1d4ed8;
  background: #fff;
  box-shadow: inset 0 0 0 1px #93c5fd;
}

main[data-component-file="Home.tsx"] .jn-action-links a:hover {
  color: #fff;
  background: #111827;
  transform: translateY(-2px);
  box-shadow: var(--jnm-home-shadow);
}

@media (max-width: 1120px) {
  main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child {
    min-height: 620px !important;
  }

  main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child::after {
    width: 42vw;
    height: 450px;
    top: 84px;
  }

  main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child > div {
    padding-right: 49% !important;
  }

  main[data-component-file="Home.tsx"] .jn-model {
    grid-template-columns: 140px .8fr 1.3fr 120px;
  }
}

@media (max-width: 960px) {
  main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child {
    min-height: 760px !important;
    align-items: flex-start !important;
    padding: 52px 0 356px !important;
  }

  main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child::after {
    top: auto;
    right: 32px;
    bottom: 32px;
    left: 32px;
    width: auto;
    height: 320px;
  }

  main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child > div {
    padding: 0 10px !important;
  }

  main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child h1,
  main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child h2,
  main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child p {
    max-width: 760px !important;
  }

  main[data-component-file="Home.tsx"] .jn-model {
    grid-template-columns: 130px 1fr 1.45fr;
  }

  main[data-component-file="Home.tsx"] .jn-model-action {
    display: none;
  }

  main[data-component-file="Home.tsx"] .jn-evidence-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 640px) {
  main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child {
    min-height: 760px !important;
    padding: 48px 0 310px !important;
  }

  main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child::after {
    right: 14px;
    bottom: 40px;
    left: 14px;
    height: 232px;
  }

  main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child > div,
  main[data-component-file="Home.tsx"] .jn-loop-shell {
    width: calc(100% - 28px) !important;
  }

  main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child h1 {
    font-size: clamp(2.1rem, 10vw, 2.75rem) !important;
  }

  main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child h2 {
    font-size: clamp(1.42rem, 6.2vw, 1.82rem) !important;
    line-height: 1.25 !important;
    letter-spacing: -.018em !important;
  }

  main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child p {
    font-size: 1rem !important;
    line-height: 1.72 !important;
  }

  main[data-component-file="Home.tsx"] > section[data-component-file="Home.tsx"]:first-child div > div:last-child {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  main[data-component-file="Home.tsx"] .jn-loop-intro,
  main[data-component-file="Home.tsx"] .jn-scenarios,
  main[data-component-file="Home.tsx"] .jn-selector,
  main[data-component-file="Home.tsx"] .jn-evidence,
  main[data-component-file="Home.tsx"] .jn-cases {
    padding: 64px 0;
  }

  main[data-component-file="Home.tsx"] .jn-loop-heading,
  main[data-component-file="Home.tsx"] .jn-actions h2 {
    font-size: clamp(2rem, 9vw, 2.55rem);
  }

  main[data-component-file="Home.tsx"] .jn-audience-switch,
  main[data-component-file="Home.tsx"] .jn-scenario-grid,
  main[data-component-file="Home.tsx"] .jn-case-grid {
    grid-template-columns: 1fr;
  }

  main[data-component-file="Home.tsx"] .jn-audience-link,
  main[data-component-file="Home.tsx"] .jn-audience-link + .jn-audience-link {
    min-height: 110px;
    padding: 22px;
    border: 0;
  }

  main[data-component-file="Home.tsx"] .jn-scenario {
    min-height: 270px;
  }

  main[data-component-file="Home.tsx"] .jn-model {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px;
  }

  main[data-component-file="Home.tsx"] .jn-metric {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }

  main[data-component-file="Home.tsx"] .jn-case {
    min-height: 230px;
  }

  main[data-component-file="Home.tsx"] .jn-actions {
    padding: 58px 0;
  }

  main[data-component-file="Home.tsx"] .jn-action-links {
    display: grid;
    width: 100%;
  }

  main[data-component-file="Home.tsx"] .jn-action-links a {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  main[data-component-file="Home.tsx"] *,
  main[data-component-file="Home.tsx"] *::before,
  main[data-component-file="Home.tsx"] *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
