/* SPDX-License-Identifier: LicenseRef-VINCIS-ARR */
/* 产品介绍 under the site's header, on the site's ground (page.tsx). The page wears the /download page's frame
   (.decision-home.dl-page, download.css) and stands on SiteBackdrop; only the deck's own layout is here: the
   slide cards, the 1280x720 canvas inside each, and the page count. The slide rules are the deck's own
   (public/product-intro/assets/deck.css), scoped to this page. */

/* The header is fixed (VincisTopBar, --nav-h high): the page starts below it. */
.decision-home.pi-page {
  box-sizing: border-box;
  padding-top: calc(var(--nav-h, 58px) + 24px);
  padding-inline: 20px;
  padding-bottom: 88px;
}
/* The ground stays put while the slides scroll over it: the grid is behind the whole page. */
.decision-home.pi-page .pi-ground {
  position: fixed;
}

.decision-home .pi-deck {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  -webkit-font-smoothing: antialiased;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html:lang(zh-TW) .decision-home .pi-deck {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Segoe UI",
    Roboto, Arial, sans-serif;
}
html:lang(ja) .decision-home .pi-deck {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo",
    "Noto Sans JP", "Segoe UI", Roboto, Arial, sans-serif;
}
html:lang(ko) .decision-home .pi-deck {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI",
    Roboto, Arial, sans-serif;
}
html:lang(th) .decision-home .pi-deck {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Thonburi", "Leelawadee UI", "Noto Sans Thai",
    Tahoma, Arial, sans-serif;
}
html:lang(km) .decision-home .pi-deck {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Khmer Sangam MN", "Khmer UI", "Leelawadee UI",
    "Noto Sans Khmer", "Khmer OS", Arial, sans-serif;
}
html:lang(en) .decision-home .pi-deck,
html:lang(vi) .decision-home .pi-deck {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* A slide: a card on the page, its own ground the site's backdrop in the site's theme (Owner 2026-11-23:
   「浅色版就用浅色，深色版就用深色」): the grid and its light are SiteBackdrop's, in download.css's palette for the
   theme (.dl-page). It lands below the fixed header when moved to. */
.decision-home .pi-slide {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  scroll-margin-top: calc(var(--nav-h, 58px) + 16px);
  background: var(--dl-ground);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09);
  color: var(--dl-fg);
}
html:not(.dark) .decision-home .pi-slide {
  box-shadow: 0 0 0 1px rgba(14, 22, 32, 0.12), 0 18px 48px -28px rgba(14, 22, 32, 0.45);
}
/* The hero's light, sized to the card (it is 1180px high over a 720px canvas on the homepage). */
.decision-home .pi-slide .dl-backdrop .bloom {
  top: -50%;
  width: 125%;
  height: 164%;
}
/* Each slide is drawn once for both themes (lib/productIntroDeck.ts oneCanvas, 交接 §7-7): its colours the
   themes do not share are the page's --pi-N, given per theme; an icon drawn in the theme's colours is there once
   per theme, and the theme's class on <html> shows its own (a slide that could not be made one is drawn twice,
   and its canvases are marked the same way). Switching the theme needs no reload, and the server's markup is the
   same in both themes. */
html.dark .decision-home .pi-slide .pi-light,
html:not(.dark) .decision-home .pi-slide .pi-dark {
  display: none;
}

.decision-home .pi-slide .canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 1280px;
  height: 720px;
  transform-origin: 0 0;
  transform: scale(var(--s, 1));
}
.decision-home .pi-slide .a {
  position: absolute;
  box-sizing: border-box;
}
.decision-home .pi-slide .t {
  display: flex;
  flex-direction: column;
  --k: 1;
}
.decision-home .pi-slide .i {
  margin: 0;
  font-weight: 400;
  width: 100%;
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.decision-home .pi-slide img.a {
  display: block;
  border: 0;
}

/* The page count: in the page, at the foot of the window, never in the header. */
.decision-home .pi-count {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: 16px;
  translate: -50% 0;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--dl-line);
  background: color-mix(in srgb, var(--dl-ground) 82%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--dl-fg2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

@media (max-width: 720px) {
  .decision-home.pi-page {
    padding-top: calc(var(--nav-h, 58px) + 12px);
    padding-inline: 8px;
    padding-bottom: 64px;
  }
  .decision-home .pi-deck {
    gap: 12px;
  }
  .decision-home .pi-slide {
    border-radius: 8px;
    scroll-margin-top: calc(var(--nav-h, 58px) + 8px);
  }
}
@media print {
  .decision-home.pi-page {
    padding: 0;
  }
  .decision-home .pi-count {
    display: none;
  }
  .decision-home .pi-deck {
    gap: 0;
    max-width: none;
  }
  .decision-home .pi-slide {
    border-radius: 0;
    box-shadow: none;
    break-after: page;
  }
}

