/* Homepage: one continuous canvas, five content-specific compositions. */
html:has(.chapter-home) { background: #f5f8fd; }
.chapter-home {
  --home-ink: #182b48;
  --home-muted: #61738b;
  --home-blue: #1265df;
  --home-line: #dce5f2;
  background: #f5f8fd;
  color: var(--home-ink);
  font-family: "Noto Sans CJK SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
.chapter-home .page-shell { padding-top: 64px; max-width: none; margin: 0; }
.home-icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.home-icon { width: 28px; height: 28px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--home-blue); }
.chapter {
  position: relative;
  isolation: isolate;
  scroll-margin-top: 100px;
  background: linear-gradient(115deg, #f3f3fd 0%, #f9fbff 47%, #edf7fc 100%);
}
.chapter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(#a3b9d30a 1px, transparent 1px), linear-gradient(90deg, #a3b9d30a 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(transparent, #000 45%, transparent);
}
.chapter-shell { width: min(1200px, calc(100% - 128px)); margin-inline: auto; padding-block: 46px; }
.chapter-copy { min-width: 0; }
.chapter-index { margin: 0 0 16px; font-size: 12px; font-weight: 650; letter-spacing: .12em; color: var(--home-blue); }
.chapter-home h1, .chapter-home .chapter h2 { color: var(--home-ink); letter-spacing: -.035em; font-weight: 700; }
.chapter-home h1 { margin: 0; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.35; }
.chapter-home .chapter h2 { margin: 0; font-size: clamp(30px, 2.7vw, 40px); line-height: 1.4; }
.chapter-home .chapter h3 { margin: 0; font-size: 18px; font-weight: 650; line-height: 1.5; color: var(--home-ink); }
.chapter-lead { margin: 18px 0 0; color: var(--home-muted); font-size: 16px; line-height: 1.9; }
.chapter-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 26px; }
.chapter-home .chapter .button { min-height: 44px; padding: 11px 23px; border-radius: 7px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.chapter .text-link { color: var(--home-blue); font-size: 14px; white-space: nowrap; }
.chapter a:focus-visible, .chapter-progress button:focus-visible { outline: 2px solid var(--home-blue); outline-offset: 5px; }
.chapter h1:focus, .chapter h2:focus { outline: none; }
.section-heading { max-width: 880px; margin: 0 auto 32px; text-align: center; }
.section-heading .chapter-lead { max-width: 750px; margin-inline: auto; }
.section-heading .chapter-index { margin-bottom: 12px; }
.panel { min-width: 0; background: #fff; border: 1px solid #fff; border-radius: 12px; padding: 28px; box-shadow: 0 8px 32px #364f8110; }
.panel-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.panel-heading p { margin: 6px 0 0; color: var(--home-muted); font-size: 13px; line-height: 1.7; }

/* 01: image sits in document flow. Its white matte blends with the same canvas. */
.blueprint-shell { display: flex; flex-direction: column; align-items: center; text-align: center; }
.blueprint-shell .chapter-copy { width: 100%; }
.blueprint-shell .chapter-lead { max-width: 650px; margin: 14px auto 0; }
.blueprint-shell .chapter-actions { justify-content: center; margin-top: 22px; }
.hero-scene { display: block; width: calc(100% + 48px); max-width: calc(100vw - 64px); margin: 0; mix-blend-mode: multiply; }
.hero-scene img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 390px;
  object-fit: contain;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(transparent, #000 10%, #000 83%, transparent);
  mask-composite: intersect;
}
.capability-links { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #ffffffb8; border: 1px solid #fff; border-radius: 10px; text-align: left; }
.capability-links a { padding: 18px 22px; display: grid; grid-template-columns: 28px 1fr 12px; align-items: center; gap: 12px; border-right: 1px solid var(--home-line); transition: background .2s; }
.capability-links a:last-child { border: 0; }
.capability-links a:hover { background: #eaf2ff; }
.capability-links strong { display: block; color: var(--home-ink); font-size: 15px; font-weight: 600; }
.capability-links small { display: block; margin-top: 4px; font-size: 12px; color: var(--home-muted); }
.capability-links .link-arrow { color: #7b91ad; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--home-muted); font-size: 11px; }

/* 02: balanced copy and an actual product cutout, then deployment choices. */
.hardware-main { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 52px; }
.hardware-main .chapter-copy { max-width: 480px; }
.hardware-main .chapter-lead { max-width: 435px; }
.product-portrait { margin: 0; text-align: center; min-width: 0; }
.product-portrait img { display: block; width: min(100%, 480px); height: auto; max-height: 320px; object-fit: contain; margin: auto; }
.product-portrait figcaption { font-size: 13px; color: var(--home-muted); margin-top: 18px; }
.product-portrait figcaption strong { font-weight: 600; color: var(--home-ink); margin-right: 12px; }
.deployment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 38px; }
.deployment-grid article { padding: 22px 24px; border-top: 2px solid #b6cbed; background: #ffffff9c; border-radius: 0 0 8px 8px; }
.deployment-grid .home-icon { margin-bottom: 14px; }
.deployment-grid p { color: var(--home-muted); font-size: 14px; line-height: 1.8; margin: 10px 0 0; }
.deployment-grid small { display: block; margin-top: 14px; font-size: 12px; color: var(--home-blue); }

/* 03: live-text service architecture instead of a decorative background. */
.model-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.model-brands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.model-brands div { display: flex; flex-direction: column; align-items: center; gap: 9px; padding-block: 12px; font-size: 12px; background: #f7f9fd; border-radius: 7px; }
.model-brands img { width: 30px; height: 30px; object-fit: contain; }
.engine-steps { list-style: none; padding: 0; margin: 0; }
.engine-steps li { display: grid; grid-template-columns: 32px 95px 1fr; align-items: center; gap: 12px; padding: 15px 0; border-top: 1px solid var(--home-line); }
.engine-steps .step-number { font-size: 11px; color: var(--home-blue); font-variant-numeric: tabular-nums; }
.engine-steps strong { font-size: 14px; font-weight: 600; }
.engine-steps p { margin: 0; font-size: 13px; color: var(--home-muted); line-height: 1.6; }
.software-route { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid var(--home-line); }
.software-route .home-icon { margin-top: 5px; }
.route-audience { display: block; font-size: 11px; color: var(--home-blue); margin-bottom: 6px; }
.chapter .software-route h3 { font-size: 17px; }
.software-route p { margin: 8px 0 0; color: var(--home-muted); line-height: 1.8; font-size: 13px; }
.model-layout + .chapter-actions { justify-content: center; margin-top: 22px; }

/* 04: a deliberate application frame; no image masquerading as a page background. */
.agent-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 48px; align-items: center; }
.agent-layout .chapter-lead { max-width: 360px; }
.app-figure { margin: 0; min-width: 0; }
.app-frame { padding: 7px; background: #fff; border: 1px solid #d8e3f2; border-radius: 12px; box-shadow: 0 22px 55px #33477318; }
.app-frame img { display: block; width: 100%; height: auto; border-radius: 6px; }
.app-figure figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 12px; color: var(--home-muted); }
.workflow { margin: 34px 0 0; padding: 22px 0; border-block: 1px solid #dce5f2; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.workflow li { display: flex; gap: 14px; align-items: flex-start; }
.workflow .step-number { color: #889bb7; font-size: 12px; margin-top: 5px; }
.workflow strong { font-size: 16px; font-weight: 600; }
.workflow p { font-size: 13px; color: var(--home-muted); line-height: 1.8; margin: 6px 0 0; }

/* 05: common foundations and clearly labelled collaboration directions. */
.ecosystem-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ecosystem-layout .panel { padding: 26px; }
.foundation-rows { display: grid; gap: 10px; }
.foundation-row { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--home-line); border-radius: 7px; }
.foundation-row strong { display: block; font-size: 14px; font-weight: 600; }
.foundation-row p { font-size: 12px; color: var(--home-muted); margin: 5px 0 0; }
.industry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.industry-grid > div { display: grid; grid-template-columns: 32px 1fr; gap: 8px 12px; padding: 17px 14px; background: #f6f8fd; border-radius: 7px; }
.industry-grid .home-icon { grid-row: 1 / 3; }
.industry-grid strong { font-size: 14px; font-weight: 600; }
.industry-grid span { font-size: 12px; line-height: 1.6; color: var(--home-muted); }
.ecosystem-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.ecosystem-cta p { font-size: 14px; color: var(--home-muted); margin: 0; }
.ecosystem-cta .chapter-actions { margin: 0; }
.chapter-home .footer { margin: 0; }
.chapter-home .footer .wrap { width: min(1200px, calc(100% - 128px)); }
.chapter-home .footer .footer-group h2 { font-size: 12px; letter-spacing: 0; margin-bottom: 12px; font-weight: 600; }
.public-security-filing { display: inline-flex; align-items: center; gap: 5px; }
.public-security-filing img { width: 16px; height: 18px; }

/* Navigation and enhancement. Without JS all chapters remain in reading order. */
.chapter-progress { position: fixed; z-index: 35; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; }
.chapter-progress button { position: relative; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.chapter-progress button::before { content: ""; display: block; width: 6px; height: 6px; border-radius: 8px; background: #b9cceb; margin: auto; transition: height .25s, background .25s; }
.chapter-progress button[aria-current="true"]::before { height: 22px; background: var(--home-blue); }
.chapter-progress button::after { content: attr(data-label); position: absolute; right: 34px; top: 2px; padding: 5px 9px; border-radius: 5px; background: #fff; color: var(--home-ink); font-size: 11px; white-space: nowrap; opacity: 0; pointer-events: none; }
.chapter-progress button:hover::after, .chapter-progress button:focus-visible::after { opacity: 1; }
.chapter-home:not(.chapter-enhanced) .chapter-progress { display: none; }
@media (min-width: 901px) {
  .chapter-home.chapter-enhanced { overflow: hidden; }
  .chapter-enhanced .chapter-stage { position: relative; height: calc(100svh - 64px); }
  .chapter-enhanced .chapter { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; scrollbar-width: thin; scrollbar-color: #bccde2 transparent; }
  .chapter-enhanced .chapter.is-active { opacity: 1; visibility: visible; z-index: 1; }
  .chapter-enhanced .chapter-shell { min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
  .chapter-enhanced .blueprint-shell { padding-block: 32px; }
  .chapter-enhanced .ecosystem-chapter .chapter-shell { min-height: auto; padding-block: 36px; }
  .chapter-enhanced .chapter-copy, .chapter-enhanced .panel, .chapter-enhanced .hero-scene { transform: translateY(12px); transition: transform .6s; }
  .chapter-enhanced .is-active .chapter-copy, .chapter-enhanced .is-active .panel, .chapter-enhanced .is-active .hero-scene { transform: none; }
  .chapter-home .ecosystem-chapter .footer { padding-top: 30px; }
  .chapter-home .ecosystem-chapter .footer-top { padding-bottom: 24px; }
}
@media (min-width: 901px) and (max-height: 780px) {
  .chapter-shell { padding-block: 30px; }
  .chapter-index { margin-bottom: 10px; }
  .chapter-home h1 { font-size: 40px; }
  .chapter-home .chapter h2 { font-size: 34px; }
  .hero-scene img { max-height: clamp(160px, 39vh, 290px); }
  .blueprint-shell .chapter-lead { margin-top: 10px; }
  .blueprint-shell .chapter-actions { margin-top: 16px; }
  .capability-links a { padding-block: 15px; }
  .scroll-cue { margin-top: 16px; }
  .product-portrait img { max-height: 270px; }
  .deployment-grid, .workflow { margin-top: 28px; }
  .deployment-grid article { padding: 18px; }
  .section-heading { margin-bottom: 24px; }
  .panel { padding: 22px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .chapter-shell, .chapter-home .footer .wrap { width: calc(100% - 112px); }
  .hardware-main, .agent-layout { gap: 28px; }
  .chapter-home h1 { font-size: 36px; }
  .chapter-home .chapter h2 { font-size: 32px; }
  .panel { padding: 22px; }
  .capability-links a { padding-inline: 14px; gap: 8px; }
  .capability-links .home-icon { width: 24px; }
  .capability-links small { font-size: 11px; }
  .engine-steps li { grid-template-columns: 24px 80px 1fr; gap: 8px; }
  .industry-grid > div { grid-template-columns: 1fr; padding: 14px; }
  .industry-grid .home-icon { grid-row: auto; }
}
@media (max-width: 900px) {
  .chapter { scroll-margin-top: 8px; }
  .chapter-shell, .chapter-home .footer .wrap { width: calc(100% - 48px); padding-block: 56px; }
  .chapter + .chapter { border-top: 1px solid var(--home-line); }
  .chapter-home h1 { font-size: clamp(29px, 4.8vw, 38px); }
  .chapter-home .chapter h2 { font-size: clamp(27px, 4.6vw, 36px); }
  .hero-scene { width: calc(100% + 32px); max-width: calc(100vw - 16px); margin-block: 12px; }
  .hero-scene img { max-height: none; }
  .capability-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability-links a { border-bottom: 1px solid var(--home-line); }
  .capability-links a:nth-child(2) { border-right: 0; }
  .capability-links a:nth-child(3) { border-bottom: 0; }
  .hardware-main, .agent-layout { grid-template-columns: 1fr; gap: 32px; }
  .hardware-main .chapter-copy, .hardware-main .chapter-lead, .agent-layout .chapter-lead { max-width: 620px; }
  .product-portrait img { max-height: 310px; width: min(90%, 470px); }
  .model-layout, .ecosystem-layout { grid-template-columns: 1fr; }
  .deployment-grid { gap: 12px; }
  .deployment-grid article { padding: 18px; }
  .section-heading { text-align: left; margin-bottom: 28px; }
  .section-heading .chapter-lead { margin-left: 0; }
  .app-figure { width: 100%; }
  .chapter-home .footer { padding-bottom: 96px; }
  .chapter-home .footer .wrap { padding-block: 0; }
  .scroll-cue { display: none; }
  .chapter-progress { flex-direction: row; top: auto; bottom: 16px; right: 50%; transform: translateX(50%); padding: 3px 8px; border: 1px solid #dce5f2; border-radius: 30px; background: #ffffffef; box-shadow: 0 4px 18px #182b4812; }
  .chapter-progress button { width: 36px; height: 36px; }
  .chapter-progress button[aria-current="true"]::before { height: 6px; width: 20px; }
  .chapter-progress button::after { display: none; }
}
@media (max-width: 600px) {
  .chapter-shell, .chapter-home .footer .wrap { width: calc(100% - 40px); }
  .chapter-shell { padding-block: 42px; }
  .blueprint-shell { padding-top: 36px; }
  .chapter-index { font-size: 11px; margin-bottom: 12px; }
  .chapter-lead { font-size: 14px; line-height: 1.85; margin-top: 14px; }
  .chapter-home .chapter h2 { letter-spacing: -.025em; }
  .chapter-actions { gap: 18px; margin-top: 22px; }
  .chapter-home .chapter .button, .chapter .text-link { font-size: 13px; }
  .hero-scene { margin-block: 18px; }
  .capability-links a { grid-template-columns: 22px 1fr; gap: 8px; padding: 16px 12px; }
  .capability-links .home-icon { width: 22px; height: 22px; }
  .capability-links strong { font-size: 13px; }
  .capability-links small { font-size: 11px; }
  .capability-links .link-arrow { display: none; }
  .scroll-cue { margin-top: 22px; }
  .deployment-grid { grid-template-columns: 1fr; margin-top: 30px; }
  .deployment-grid article { display: grid; grid-template-columns: 28px 1fr; gap: 6px 14px; border-top: 0; border-left: 2px solid #b6cbed; }
  .deployment-grid .home-icon { grid-row: 1 / 4; margin: 0; }
  .deployment-grid p, .deployment-grid small { margin: 0; }
  .chapter .deployment-grid h3 { font-size: 16px; }
  .product-portrait img { max-height: 240px; }
  .panel { padding: 20px; }
  .panel-heading { margin-bottom: 20px; }
  .chapter .panel h3 { font-size: 16px; }
  .model-brands { gap: 6px; margin-bottom: 18px; }
  .model-brands div { font-size: 10px; }
  .engine-steps li { grid-template-columns: 20px 1fr; gap: 4px 10px; }
  .engine-steps p { grid-column: 2; }
  .software-route { gap: 10px; grid-template-columns: 28px 1fr; }
  .chapter .software-route h3 { font-size: 15px; }
  .app-frame { padding: 4px; border-radius: 8px; }
  .app-figure figcaption { font-size: 11px; }
  .workflow { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
  .workflow strong { font-size: 15px; }
  .industry-grid { gap: 10px; }
  .industry-grid > div { grid-template-columns: 1fr; padding: 16px 12px; }
  .industry-grid .home-icon { grid-row: auto; }
  .industry-grid span { font-size: 11px; }
  .foundation-row { padding: 14px 12px; gap: 12px; }
  .foundation-row p { line-height: 1.8; }
  .ecosystem-cta { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .chapter-home *, .chapter-home *::before { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
