/* Homepage text actions share the selected B treatment; photo sections keep white copy. */
.cinematic-home main a.text-link {
  --action-arrow-x: 2px;
  --action-arrow-y: -2px;
  min-height: 48px;
  min-width: 154px;
  max-width: 100%;
  gap: 24px;
  padding: 11px 20px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.cinematic-home .product-bottom > div { gap: 12px; flex-wrap: wrap; }
/* Only the hero OEM action adopts the primary action's square corners. */
.cinematic-home main .hero-actions a.text-link { border-radius: 0; }
/* Match the two hero action frames, including their existing borders. */
.cinematic-home .hero-video .hero-actions > a {
  box-sizing: border-box;
  width: 210px;
  max-width: 100%;
  height: 56px;
  flex-shrink: 0;
  line-height: 20px;
}
.cinematic-home .hero-video .hero-actions > a > span { line-height: 1; }
.cinematic-home main a.text-link > span { flex-shrink: 0; }
/* Keep the introduction's three optional treatments available for comparison. */
.cinematic-home main .focus-cta[data-hover-style="brand"]:is(:hover, :focus-visible) {
  color: #fff;
  background: #b9231b;
  border-color: #b9231b;
}
.cinematic-home main .focus-cta[data-hover-style="soft"]:is(:hover, :focus-visible),
.cinematic-home main a.text-link:not(.focus-cta):is(:hover, :focus-visible) {
  color: #b9231b;
  background: #fff4f1;
  border-color: #b9231b;
}
.cinematic-home main .focus-cta[data-hover-style="dark"]:is(:hover, :focus-visible) {
  color: #fff;
  background: #242628;
  border-color: #242628;
}
.cinematic-home main a.text-link:focus-visible { outline: 2px solid #b9231b; outline-offset: 4px; }
.cinematic-home main a.text-link:is(:hover, :focus-visible) span { transform: translate(var(--action-arrow-x), var(--action-arrow-y)); }
.cinematic-home main .product-bottom a[href="/zh/downloads/"] { --action-arrow-x: 0px; --action-arrow-y: 2px; }
.cinematic-home main .hero-actions a.text-link,
.cinematic-home main .product-bottom a[href="/zh/products/"] { --action-arrow-y: 0px; }
@media (max-width: 767px) {
  .cinematic-home .hero-video .hero-actions > a { width: 180px; height: 52px; }
  .cinematic-home main a.text-link { min-width: 0; }
  .cinematic-home .product-bottom > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cinematic-home main .product-bottom a.text-link { gap: 12px; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cinematic-home main a.text-link,
  .cinematic-home main a.text-link span { transition: none; }
  .cinematic-home main a.text-link:is(:hover, :focus-visible) span { transform: none; }
}

/* On phones, draw the homepage's northeast arrows instead of relying on a
   platform font: iOS can render the original U+2197 character as a blue emoji.
   Keep the character and every desktop rule intact. Other arrow directions
   are deliberately excluded, and the technology icons retain their circles. */
@media (max-width: 767px) {
  body.cinematic-home :is(
    .hero-actions > a.button > span[aria-hidden="true"],
    .focus-cta > span[aria-hidden="true"],
    .mosaic-cta > span[aria-hidden="true"],
    #featured-detail > span[aria-hidden="true"],
    .technology-intro > a.text-link > span[aria-hidden="true"],
    .home-technology-links > a > .tech-link-arrow,
    .oem-content > a.button > span[aria-hidden="true"],
    .hvs-all > span[aria-hidden="true"],
    .site-header .nav-contact > span[aria-hidden="true"]
  ) {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    width: var(--mobile-arrow-box, 20px);
    height: var(--mobile-arrow-box, 20px);
    font-size: 0;
    line-height: 0;
    vertical-align: middle;
  }
  body.cinematic-home :is(
    .hero-actions > a.button > span[aria-hidden="true"],
    .focus-cta > span[aria-hidden="true"],
    .mosaic-cta > span[aria-hidden="true"],
    #featured-detail > span[aria-hidden="true"],
    .technology-intro > a.text-link > span[aria-hidden="true"],
    .home-technology-links > a > .tech-link-arrow,
    .oem-content > a.button > span[aria-hidden="true"],
    .hvs-all > span[aria-hidden="true"],
    .site-header .nav-contact > span[aria-hidden="true"]
  )::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--mobile-arrow-drawing, 20px);
    height: var(--mobile-arrow-drawing, 20px);
    transform: translate(-50%, -50%);
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 16 16 4M5 4h11v11' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 16 16 4M5 4h11v11' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    pointer-events: none;
  }
  body.cinematic-home .home-technology-links .tech-link-arrow {
    --mobile-arrow-box: 30px;
  }
  body.cinematic-home .mosaic-cta > span {
    --mobile-arrow-box: 17px;
    --mobile-arrow-drawing: 17px;
  }
}

/* Text-only mobile shortcuts: four centered labels share one balanced cross.
   The original arrows remain available for the desktop layout. */
@media (max-width: 767px) {
  body.cinematic-home .home-paths {
    position: relative;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 0;
    padding-block: 16px;
    border: 0;
  }
  body.cinematic-home .home-paths::before,
  body.cinematic-home .home-paths::after {
    content: "";
    position: absolute;
    background: var(--line);
    pointer-events: none;
  }
  body.cinematic-home .home-paths::before {
    top: 50%;
    left: var(--gutter);
    right: var(--gutter);
    height: 1px;
    transform: translateY(-50%);
  }
  body.cinematic-home .home-paths::after {
    top: 16px;
    bottom: 16px;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
  }
  body.cinematic-home .home-paths > a {
    min-width: 0;
    min-height: 72px;
    justify-content: center;
    gap: 0;
    padding: 16px;
    border: 0;
    line-height: 1.5;
    text-align: center;
  }
  body.cinematic-home .home-paths > a > span[aria-hidden="true"] {
    display: none;
  }
}
