/* Homepage corrections from the operations review, 2026-11-10. */
@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("https://cdn.jsdelivr.net/npm/@lobehub/webfont-harmony-sans-sc@1.0.0/fonts/HarmonyOS_Sans_SC_Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
.home-page .opening-copy h1 {
  font-size: 0;
  line-height: 0;
  text-shadow: none;
}
.home-page .opening-copy h1::after { content: none; }
.opening-copy__image {
  display: block;
  width: 421px;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}
.home-page .opening-stage { container-type: inline-size; }
.home-page .opening-stage .product { width: 60px; height: 60px; transform: translate(-50%, -50%); }
/* Keep the previous icon centers while removing the oversized glow hit areas. */
.home-page .product--one { left: 30.835%; top: calc(31% + 9.585cqw); }
.home-page .product--two { left: 23.805%; top: calc(3.5% + 8.595cqw); }
.home-page .product--three { left: 67.915%; top: calc(32.5% + 8.335cqw); }
.home-page .product--four { left: 76.505%; top: calc(-3.5% + 10.675cqw); }
.home-page .opening-stage .product-float { pointer-events: none; }
.home-page .opening-stage .product-glow {
  inset: -90px;
  width: 240px;
  height: 240px;
  pointer-events: none;
  opacity: .78;
  filter: blur(3px);
  transform: scale(1.08);
  animation: none;
  transition: none;
}
.home-page .product--three { --glow-image: radial-gradient(circle, rgba(255, 255, 255, .5), transparent 65%); }
.home-page .product--one { --glow-image: radial-gradient(circle, rgba(95, 151, 255, .6), transparent 65%); }
.home-page .product--two { --glow-image: radial-gradient(circle, rgba(255, 100, 25, .6), transparent 65%); }
.home-page .product--four { --glow-image: radial-gradient(circle, rgba(130, 65, 255, .6), transparent 65%); }
.home-page .opening-stage .product-mark {
  inset: 50% auto auto 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 12px;
  background-position: center;
  background-repeat: no-repeat;
  animation: none;
  transform: none;
}
@media (hover: hover) and (pointer: fine) {
  .home-page .opening-stage .product:hover .product-mark { transform: scale(1.05); }
}
/* The original PNGs include a glow around a 120px icon. Render that icon at half size. */
.home-page .product--one .product-mark { background-image: url("https://www.afirstsoft.cn/images/images-2026/home/opening/product-creative.webp"); background-size: 228px 228px; }
.home-page .product--two .product-mark { background-image: url("https://www.afirstsoft.cn/images/images-2026/home/opening/product-media.webp"); background-size: 298.5px 298.5px; }
.home-page .product--three .product-mark { background-image: url("https://www.afirstsoft.cn/images/images-2026/home/pixpretty-logo.svg"); background-size: 60px 60px; }
.home-page .product--four .product-mark { background-image: url("https://www.afirstsoft.cn/images/images-2026/home/opening/product-brand.webp"); background-size: 358px 358px; }
.home-page .product-site-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  color: #fff;
  text-decoration: none;
  transform-origin: left center;
  transition: transform 240ms ease, color 200ms ease;
}
.home-page .product-site-link:focus-visible { outline: 2px solid #09e9b3; outline-offset: 6px; border-radius: 4px; }
.home-page .image-creative__brand { width: 359px; }
.home-page .image-creative__brand .image-creative__brand-lockup { display: block; width: 100%; height: auto; }
.home-page .video-creative__brand { width: 408px; }
.home-page .video-creative__brand .video-creative__brand-lockup { display: block; flex: 0 1 auto; width: 100%; height: auto; }
.home-page .product-site-link h3 { margin: 0; white-space: normal; overflow-wrap: anywhere; }
.home-page .document-creative__brand {
  position: absolute;
  z-index: 1;
  left: 4.43%;
  top: 5.34%;
  width: auto;
  height: auto;
  border-radius: 8px;
}
.home-page .document-creative__brand img { display: block; width: 17.929cqw; height: auto; }
.image-creative__product > p,
.video-creative__footer > p,
.showcase-card__footer p,
.media-tool-card__footer > p,
.data-product__content p,
.data-product__hover-content p { font-weight: 400; }
.home-page .image-creative__heading p,
.home-page .video-creative__heading p,
.home-page .data-management__heading p,
.home-page .document-creative__heading p { font-weight: 300; }

.home-page .data-product { container-type: inline-size; }
.home-page .data-product::before { background: url("https://www.afirstsoft.cn/images/images-2026/home/data-card-hover-background.webp") center / 100% 100% no-repeat; }
.home-page .data-product__hover-art { top: var(--art-top); left: var(--art-left); width: var(--art-width); height: auto; translate: none; }
.home-page [data-product="reiboot"] { --art-top: 12.05%; --art-left: 10.3473%; --art-width: 89.6527%; --art-mobile-top: 16.0667%; }
.home-page [data-product="icarefone"] { --art-top: 14.73%; --art-left: 8.2284%; --art-width: 90.3974%; --art-mobile-top: 19.64%; }
.home-page [data-product="4ddig"] { --art-top: 16.3553%; --art-left: 2.0867%; --art-width: 97.9133%; --art-mobile-top: 21.8071%; }
.home-page .data-product__hover-content { top: 71.3333%; bottom: auto; left: 10.6667%; right: 8%; }
.home-page .data-product__hover-brand { min-height: 0; gap: clamp(8px, 2.6667cqw, 12px); }
.home-page .data-product__hover-brand img { flex: 0 0 auto; width: clamp(32px, 10.6667cqw, 48px); height: auto; aspect-ratio: 1; }
.home-page .data-product__hover-brand h3 { font: 900 clamp(14px, 4.4444cqw, 20px)/1.5 "HarmonyOS Sans", var(--font-family-base); white-space: nowrap; }
.home-page .data-product__hover-content p { margin-top: clamp(12px, 4cqw, 18px); font-size: clamp(12px, 3.5556cqw, 16px); line-height: 1.5; font-weight: 300; }
@media (max-width: 991px) {
  .home-page .data-product { aspect-ratio: auto; background: url("https://www.afirstsoft.cn/images/images-2026/home/data-card-hover-background.webp") center / 100% 100% no-repeat; }
  .home-page .data-product__hover-art { position: relative; top: auto; margin-top: var(--art-mobile-top); }
  .home-page .data-product__hover-content { position: relative; top: auto; left: auto; right: auto; margin: 16px 8% 8% 10.6667%; }
  .home-page .data-product__hover-content p { font-size: 16px; }
}

.home-page .news-card { display: block; text-decoration: none; }
.news-card__media { position: relative; display: block; overflow: hidden; border-radius: 8px; }
.news-card__media::after { position: absolute; inset: 0; content: ""; background: #fff; opacity: 0; pointer-events: none; transition: opacity 300ms ease-out; }
.home-page .news-card__image { transition: transform 300ms ease-out; }
.home-page .news-card:focus-visible { outline: 2px solid #09e9b3; outline-offset: 6px; border-radius: 4px; }
.home-page .news-card:focus-visible .news-card__image { transform: scale(1.027); }
.home-page .news-card:focus-visible .news-card__media::after { opacity: .2; }
@media (hover: hover) and (pointer: fine) {
  .home-page .product-site-link:hover { transform: scale(1.04); color: #09e9b3; }
  .home-page .news-card:hover .news-card__image { transform: scale(1.027); }
  .home-page .news-card:hover .news-card__media::after { opacity: .2; }
}
@media (max-width: 767px) {
  .home-page .product--one { left: 28%; top: 65%; }
  .home-page .product--two { left: 13.6%; top: 38.5%; }
  .home-page .product--three { left: 62.5%; top: 62%; }
  .home-page .product--four { left: 82.5%; top: 43%; }
  .home-page .image-creative__product { display: flex; flex-wrap: wrap; gap: 8px; }
  .home-page .image-creative__product > p { flex-basis: 100%; padding-left: 60px; }
  .home-page .video-creative__footer { display: flex; flex-direction: column; align-items: flex-start; }
  .home-page .video-creative__brand h3 { font: 700 16px/1.35 var(--font-family-base); }
  .home-page .video-creative__footer > p { padding-left: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .opening-stage .product:hover .product-mark { transform: none; }
  .home-page .product-site-link,
  .home-page .news-card,
  .home-page .news-card__image,
  .home-page .news-card__media::after { transition: none; }
  .home-page .product-site-link:hover,
  .home-page .news-card:hover,
  .home-page .news-card:hover .news-card__image { transform: none; }
}
