:root {
  --black: #000;
  --panel: #171a20;
  --orange: #f5a136;
  --brand-on-dark: #f79a2a;
  --brand-on-light: #f98e27;
  --light: #fff;
  --text: #262a30;
  --safe-width: 1200px;
  --content-width: calc(var(--safe-width) * .7);
  --header-offset: 4rem;
  --section-padding: 78px;
  --section-padding-large: 155px;
  --font-cn: "MiSans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-en: "Montserrat", "MiSans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

@media (max-width: 1300px) {
  :root {
    --safe-width: 75vw;
  }
}

@media (min-width: 1601px) {
  :root {
    --section-padding: 73px;
    --section-padding-large: 145px;
  }
}

@media (min-width: 2240px) {
  :root {
    --section-padding: 98px;
    --section-padding-large: 195px;
  }
}

html {
  scroll-behavior: smooth;
}

.masterpi-page,
.masterpi-page * {
  box-sizing: border-box;
}

.masterpi-page {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: #000;
  color: var(--text);
  font-family: var(--font-cn);
}

.masterpi-page a {
  text-decoration: none;
}

.masterpi-page button,
.masterpi-page input {
  font: inherit;
}

.masterpi-page button {
  border: 0;
}

.masterpi-page h1,
.masterpi-page h2,
.masterpi-page h3,
.masterpi-page p,
.masterpi-page figure {
  margin: 0;
}

.masterpi-page main img,
.masterpi-page main video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.masterpi-page [hidden] {
  display: none !important;
}

.masterpi-page .font-en {
  font-family: var(--font-en);
}

.dark-section {
  background: #000;
  color: #fff;
}

.light-section {
  background: #fff;
  color: var(--text);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.masterpi-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 100%;
  height: var(--header-offset);
  background: rgba(5, 6, 9, .96);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}

.masterpi-page .site-header.is-scrolled {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.masterpi-page .site-header__inner {
  display: flex;
  align-items: center;
  width: var(--safe-width);
  height: 100%;
  margin: 0 auto;
}

.masterpi-page .site-header-placeholder {
  display: none;
}

.masterpi-page.has-fixed-header #header {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
}

.masterpi-page .brand {
  flex: 0 0 auto;
  font-size: 1.65rem;
  font-weight: 750;
}

.masterpi-page .site-header__inner .brand .font-en {
  font-family: var(--font-en);
  color: var(--light);
}

.masterpi-page .site-nav {
  display: flex;
  gap: 2.2rem;
  margin-left: auto;
  font-size: .84rem;
}

.masterpi-page .site-nav a {
  color: rgba(255, 255, 255, .88);
  white-space: nowrap;
}

.masterpi-page .buy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  min-width: 7rem;
  height: 2.3rem;
  margin-left: 2rem;
  background: var(--orange);
  color: #101010;
  font-size: .84rem;
  font-weight: 750;
}

.masterpi-page .buy-link span {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  filter: brightness(0);
}

.masterpi-page .buy-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  min-height: 0;
  aspect-ratio: 3840 / 2000;
  overflow: hidden;
  background: #151720;
  --hero-overlay-opacity: 0;
  --hero-blur: 0px;
}

.hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 1;
  background: rgba(0, 0, 0, var(--hero-overlay-opacity));
}

.hero__kv {
  width: 100%;
  min-height: 0;
  height: auto;
  object-fit: contain;
  filter: blur(var(--hero-blur));
  will-change: filter;
}

.hero__content {
  position: absolute;
  top: 20%;
  left: 50%;
  z-index: 3;
  width: var(--safe-width);
  margin: 0;
  text-align: center;
  transform: translateX(-50%);
  color: var(--light);
}

.hero h1 {
  font-size: 6rem;
  line-height: .95;
  font-weight: 800;
}

.hero p {
  margin-top: 1.2rem;
  font-size: 1.6rem;
}

.feature-mosaic {
  position: relative;
  z-index: 6;
  padding: var(--section-padding-large) 0 var(--section-padding);
  background: linear-gradient(to bottom, #181310 0%, #0e0a08 70%, #000000 100%);
}

.intro__scroll-copy {
  position: absolute;
  top: -35vh;
  right: 0;
  left: 0;
  z-index: 4;
  width: var(--safe-width);
  margin: auto;
  color: var(--light);
  opacity: 0;
  backface-visibility: hidden;
  will-change: opacity, transform;
  pointer-events: none;
}

.intro__scroll-copy h2 {
  margin-bottom: .8rem;
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  line-height: 1.25;
  font-weight: 650;
  text-align: center;
}

.intro__scroll-copy p {
  font-size: 18px;
  line-height: 1.8;
  font-weight: 300;
  text-align: center;
}

.intro__scroll-copy p+p {
  margin-top: .8rem;
}

.feature-mosaic__row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: var(--safe-width);
  margin: 0 auto;
}

.feature-mosaic__row+.feature-mosaic__row {
  margin-top: 1rem;
}

.mosaic-card {
  position: relative;
  flex: var(--card-weight) 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: .8rem;
}

.mosaic-card>img {
  width: 100%;
  height: auto;
  transition: transform .65s ease;
}

.mosaic-card h2 .mosaic-copy__metric {
  display: inline-block;
  font-size: 2.8rem;
  line-height: 0.82;
  font-weight: 700;
}

.mosaic-copy {
  position: absolute;
  top: 1.45rem;
  left: 1.55rem;
  z-index: 3;
  max-width: calc(100% - 3rem);
  color: var(--light);
}

.mosaic-copy h2 {
  font-size: clamp(1rem, 1.45vw, 1.5rem);
  line-height: 1.25;
  font-weight: 650;
}

.mosaic-copy h2.mosaic-copy__python-title {
  display: inline-flex;
  align-items: center;
  gap: .25em;
}

.mosaic-copy h2 .mosaic-copy__times {
  display: inline-block;
  font-size: .98em;
  font-weight: 400;
  line-height: 1;
}

.mosaic-copy p {
  margin-top: .45rem;
  color: rgba(255, 255, 255, .68);
  font-size: .9rem;
  line-height: 1.45;
}

.mosaic-card__insert {
  position: absolute;
  right: 17%;
  top: 65%;
  z-index: 3;
  width: 34%;
  margin: 0;
}

.mosaic-card__insert img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .35rem;
}

.mosaic-card__insert figcaption {
  margin-top: .35rem;
  color: rgba(255, 255, 255, .68);
  font-size: .9rem;
  line-height: 1.3;
  text-align: center;
}

.mosaic-card__tag {
  position: absolute;
  left: 14%;
  bottom: 5%;
  z-index: 3;
  color: rgba(255, 255, 255, .68);
  font-size: .9rem;
  line-height: 1.3;
  white-space: nowrap;
}

.feature-mosaic__row--bottom .mosaic-card:nth-of-type(1) .mosaic-copy {
  left: auto;
  right: 1.55rem;
  text-align: right;
}

.section-heading {
  width: var(--safe-width);
  margin: 0 auto;
  text-align: left;
}

.section-heading--light {
  color: var(--text);
}

.section-heading>span {
  display: block;
  margin-bottom: .65rem;
  color: var(--brand-on-dark);
  font-size: 1.1rem;
  font-weight: 600;
}

.section-heading--light>span {
  color: var(--brand-on-light);
}

.section-heading h2,
.specs__heading h2 {
  font-size: 2.5rem;
  line-height: 1.18;
  font-weight: 650;
}

.section-heading p {
  max-width: 48rem;
  margin: 1.15rem 0 0;
  color: rgba(38, 42, 48, .68);
  font-size: 1rem;
  line-height: 1.8;
}

.dark-section .section-heading>p {
  color: rgba(255, 255, 255, .72);
}

.section-heading--light p {
  color: rgba(38, 42, 48, .68);
}

/* 硬核工艺：PuppyPi #hardware 标注组件 */
.hardware-showcase {
  position: relative;
  z-index: 6;
  isolation: isolate;
  min-height: auto;
  overflow: hidden;
  background: #000000;
}

.hardware-showcase .section-heading p {
  margin: 1.15rem auto 0;
}

.hardware-showcase__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-padding) 0;
}

.hardware-showcase .section-heading {
  z-index: 2;
  width: var(--safe-width);
  text-align: center;
}

.hardware-showcase__media {
  margin: 6rem auto 0;
  transform-origin: center center;
}

.hardware-showcase__media img {
  object-fit: contain;
}

.hardware-showcase--annotated .hardware-showcase__media {
  position: relative;
}

@media (min-width: 901px) {
  .hardware-showcase--sticky {
    overflow: visible;
    min-height: 150vh;
  }

  .hardware-showcase--sticky .hardware-showcase__inner {
    position: sticky;
    top: var(--header-offset);
    z-index: 1;
  }
}

.hardware-callout-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hardware-callout {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  width: auto;
  color: #fff;
  opacity: 0;
  visibility: hidden;
}

.hardware-callout--left {
  justify-content: flex-end;
  text-align: right;
}

.hardware-callout--right {
  justify-content: flex-start;
  text-align: left;
}

.hardware-callout__text {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, .92);
  font-size: 1rem;
  line-height: 1.35;
  white-space: nowrap;
}

.hardware-callout__line {
  position: relative;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin: 0 .8rem;
  border-top: 1px dashed rgba(255, 255, 255, .68);
  transform: scaleX(0);
}

.hardware-callout__dot {
  position: absolute;
  top: 50%;
  display: block;
  width: .55rem;
  height: .55rem;
  border: 1px solid rgba(255, 192, 91, .9);
  border-radius: 50%;
  background: #ee9530;
  box-shadow: 0 0 0 .35rem rgba(238, 149, 48, .16), 0 0 1rem rgba(238, 149, 48, .48);
  transform: translateY(-50%);
}

.hardware-callout--left .hardware-callout__line {
  margin-right: 0;
  transform-origin: right center;
}

.hardware-callout--left .hardware-callout__dot {
  left: -.25rem;
}

.hardware-callout--right .hardware-callout__line {
  margin-left: 0;
  transform-origin: left center;
}

.hardware-callout--right .hardware-callout__dot {
  right: -.25rem;
}

.masterpi-hardware {
  width: calc(var(--content-width)*.8);
}

/* 标注图层与图片本体对齐：图片铺满容器，标注百分比相对图片定位 */
.masterpi-hardware img {
  max-height: none;
}

.masterpi-hardware .hardware-callout {
  /* width: auto; */
}

.masterpi-hardware .hardware-callout__line {
  flex: 1 1 auto;
  width: auto;
  min-width: 1rem;
}

.masterpi-callout--left-camera {
  top: 9.4%;
  left: -26%;
  width: 45.6%;
}

.masterpi-callout--left-gear {
  top: 21.6%;
  left: 0;
  width: 28%;
}

.masterpi-callout--left-mini {
  top: 25.8%;
  left: -25%;
  width: 53.5%;
}

.masterpi-callout--left-servo {
  top: 37.1%;
  left: -27%;
  width: 60.1%;
}

.masterpi-callout--left-ultrasonic {
  top: 69%;
  left: -34%;
  width: 51%;
}

.masterpi-callout--left-wheel {
  top: 62.9%;
  left: -22%;
  width: 23.4%;
}

.masterpi-callout--right-frame {
  top: 14.7%;
  right: -17%;
  width: 40.6%;
}

.masterpi-callout--right-arm {
  top: 22.7%;
  right: -17%;
  width: 65.2%;
}

.masterpi-callout--right-board {
  top: 37.8%;
  right: -17%;
  width: 46.9%;
}

.masterpi-callout--right-pi {
  top: 49.4%;
  right: -16%;
  width: 46.25%;
}

/* 360°全向移动：ArmPi-Ultra #depth-kinematics 文案+视频组件 */
.static-video-section {
  position: relative;
  z-index: 6;
  isolation: isolate;
  padding: var(--section-padding) 0;
  overflow: hidden;
}

.static-video-section__media {
  width: var(--safe-width);
  margin: 4rem auto 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: .5rem;
  background: #141414;
}

.static-video-section__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* AI视觉算法：miniHexa-Pro #control 切换组件 */
.control-section {
  position: relative;
  z-index: 6;
  isolation: isolate;
  padding: var(--section-padding) 0 0;
  background: #000;
}

.control-section .section-heading {
  margin-bottom: 2rem;
}

.control-section .section-heading>span {
  color: var(--brand-on-dark);
}

.control-section .section-heading p {
  color: rgba(255, 255, 255, .72);
}

.control-layout {
  display: flex;
  gap: 2.2rem;
  align-items: center;
  width: var(--safe-width);
  margin: auto;
}

.control-panels {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: clamp(22rem, 32vw, 34rem);
}

.control-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}

.control-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

.control-copy {
  flex: 0 0 20%;
  max-width: 22rem;
}

.control-nav {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, .18);
  min-height: 18rem;
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
}

.control-nav button {
  width: 3px;
  height: 6rem;
  transform: translateX(-50%);
  padding: 0;
  background: transparent;
  color: transparent;
  border: 0;
  overflow: hidden;
  cursor: inherit;
}

.control-nav.is-dragging {
  cursor: grabbing;
}

.control-nav button.is-active {
  background: #f98e27;
}

.control-copy h3 {
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 650;
}

.control-copy p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, .72);
  font-size: 1rem;
  line-height: 1.75;
}

.control-media {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  border-radius: .5rem;
}

.control-media img {
  width: 100%;
  aspect-ratio: 1.75;
  object-fit: cover;
  transition: opacity .35s;
}

/* MasterPi #ai-vision follows JetArm-n #control interaction layout. */
.masterpi-page #ai-vision .control-nav {
  flex: 0 0 clamp(16rem, 24vw, 22rem);
  min-height: 0;
  gap: 0;
  border-left: 0;
  touch-action: auto;
  user-select: auto;
}

.masterpi-page #ai-vision .control-nav button {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 8.5rem;
  max-width: clamp(16rem, 24vw, 22rem);
  transform: none;
  display: block;
  padding: 1.1rem 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.masterpi-page #ai-vision .control-nav button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2rem;
  width: 30px;
  height: 2px;
  background: #f98e27;
  transition: width .3s ease;
}

.masterpi-page #ai-vision .control-nav button.is-active::after {
  width: calc(100% - 1.5rem);
  bottom: .15rem;
}

.masterpi-page #ai-vision .control-nav-title {
  display: block;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 400;
  opacity: .6;
  transition: opacity .3s ease;
}

.masterpi-page #ai-vision .control-nav button.is-active .control-nav-title {
  opacity: 1;
}

.masterpi-page #ai-vision .control-nav-desc {
  display: block;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  font-size: 1rem;
  color: rgba(255, 255, 255, .72);
  font-weight: 300;
  line-height: 1.7;
  opacity: 0;
  transition: max-height .3s ease, margin-top .3s ease, opacity .3s ease;
}

.masterpi-page #ai-vision .control-nav button.is-active .control-nav-desc {
  max-height: 12rem;
  margin-top: .8rem;
  opacity: 1;
}

.masterpi-page #ai-vision .control-panel .control-copy {
  display: none;
}

/* MasterPi AI素材为纵向长图：媒体不参与横向 flex 分配，导航叠放在安全区左侧。 */
.masterpi-page #ai-vision .control-layout {
  position: relative;
  display: block;
  width: 100%;
}

.masterpi-page #ai-vision .control-panels {
  display: grid;
  width: 100%;
  min-height: 0;
}

.masterpi-page #ai-vision .control-panel {
  position: relative;
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  min-width: 0;
}

.masterpi-page #ai-vision .control-media {
  width: 100%;
  flex: none;
  overflow: visible;
  border-radius: .5rem;
}

.masterpi-page #ai-vision .control-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: initial;
}

.masterpi-page #ai-vision .control-nav {
  position: absolute;
  top: 50%;
  left: calc(((100vw - var(--safe-width)) / 2) - .5%);
  transform: translateY(-50%);
  z-index: 2;
}

@media (max-width: 900px) {
  .masterpi-page #ai-vision .control-nav {
    flex: none;
    width: 100%;
  }

  .masterpi-page #ai-vision .control-nav button {
    min-height: 0;
    padding: .9rem 0 .9rem 1rem;
  }

  .masterpi-page #ai-vision .control-nav button::after {
    left: 1rem;
  }

  .masterpi-page #ai-vision .control-nav button.is-active::after {
    width: calc(100% - 1rem);
  }

  .masterpi-page #ai-vision .control-nav-title {
    font-size: 1.25rem;
  }

  .masterpi-page #ai-vision .control-nav-desc {
    font-size: .85rem;
  }

  .masterpi-page #ai-vision .control-nav {
    position: relative;
    top: auto;
    left: auto;
    z-index: auto;
  }
}

/* 手眼合一 / 无线互联：PuppyPi #sensors 轮播组件 */
.embodied-section .section-heading {
  width: var(--content-width);
}

.embodied-section.media-carousel {
  position: relative;
  z-index: 6;
  isolation: isolate;
  padding: var(--section-padding) 0 var(--section-padding-large);
  background: #000;
  overflow: hidden;
}

#wireless.embodied-section.media-carousel {
  --control-cover-dim: 0;
  padding-top: var(--section-padding-large);
}

#wireless.embodied-section.media-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #000;
  opacity: var(--control-cover-dim);
  pointer-events: none;
}

.embodied-section .carousel-shell {
  position: relative;
  width: 100%;
  margin-top: 3.2rem;
  overflow: hidden;
}

.embodied-section .carousel-track {
  display: flex;
  align-items: center;
  gap: .6rem;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.embodied-section .carousel-slide {
  position: relative;
  flex: 0 0 calc(var(--safe-width) * .7);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: .5rem;
  background: #171a20;
  transform-origin: center;
}

.embodied-section .carousel-slide>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.embodied-section .carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 12, 12, .5);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .25s ease;
}

.embodied-section .carousel-arrow:hover {
  background: rgba(255, 255, 255, .2);
}

.embodied-section .carousel-arrow[hidden] {
  display: none;
}

.embodied-section .carousel-arrow--prev {
  left: max(1.25rem, calc((100vw - var(--content-width)) / 2 - 5.5rem));
}

.embodied-section .carousel-arrow--next {
  right: max(1.25rem, calc((100vw - var(--content-width)) / 2 - 5.5rem));
}

.embodied-section .carousel-tabs {
  display: flex;
  width: min(44rem, calc(100% - 2rem));
  min-height: 2.8rem;
  margin: 2rem auto 0;
  padding: .25rem;
  border-radius: 1.5rem;
  background: #1c1d20;
}

.embodied-section .carousel-tabs button {
  flex: 1;
  min-width: 0;
  padding: .65rem .45rem;
  border: 0;
  border-radius: 1.2rem;
  background: transparent;
  color: rgba(255, 255, 255, .68);
  font-size: .79rem;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .3s ease, color .3s ease;
}

.embodied-section .carousel-tabs button.is-active {
  background: #fff;
  color: #111;
  font-weight: 600;
}

.carousel-arrow span {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  transform: translateY(-.1rem);
}

/* 开源生态：PuppyPi #programming 海报 + specs 覆盖 */
.poster-section {
  position: relative;
  z-index: 6;
  min-height: 100vh;
  overflow: hidden;
  background: #090a0d;
}

.poster-section>img {
  display: block;
  width: 100%;
  min-height: 100vh;
  object-fit: cover;
}

.poster-section::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .05) 60%);
  pointer-events: none;
}

.poster-copy {
  position: absolute;
  top: 15%;
  left: calc(((100vw - var(--safe-width)) / 2) - .5%);
  z-index: 2;
  width: min(60rem, calc(var(--safe-width) * .64));
}

.poster-copy>span {
  display: block;
  margin-bottom: .65rem;
  color: var(--brand-on-dark);
  font-size: 1.1rem;
  font-weight: 600;
}

.poster-copy h2 {
  font-size: 2.5rem;
  line-height: 1.18;
  font-weight: 650;
}

.poster-copy p {
  max-width: 48rem;
  margin-top: 1.15rem;
  color: rgba(255, 255, 255, .76);
  font-size: 1rem;
  line-height: 1.8;
}

.poster-section.sticky-cover-content {
  --control-cover-dim: 0;
  z-index: 0;
}

.poster-section.sticky-cover-content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #000;
  opacity: var(--control-cover-dim);
  pointer-events: none;
}

/* 参数 */
.specs {
  position: relative;
  z-index: 30;
  padding: var(--section-padding-large) 0 var(--section-padding);
  background: #fff;
}

.specs__inner {
  width: var(--safe-width);
  margin: 0 auto;
}

.specs__heading {
  margin-bottom: 5rem;
}

.specs__heading h2 {
  color: var(--text);
  font-size: 2.4rem;
}

.specs__heading p {
  margin-top: .65rem;
  color: rgba(38, 42, 48, .58);
  font-size: 1rem;
}

.specs-table {
  display: block;
  width: 100%;
  border-collapse: collapse;
  color: rgba(38, 42, 48, .82);
  font-size: 1rem;
}

.specs-table tbody {
  display: block;
}

.specs-row {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  min-height: 5.25rem;
  border-bottom: 1px solid rgba(38, 42, 48, .16);
}

.specs-row>th,
.specs-row>td {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: .75rem 1rem;
  line-height: 1.45;
  font-weight: 400;
  text-align: left;
}

.specs-row>th {
  padding-left: 2.5rem;
  color: var(--text);
  font-weight: 600;
}

.specs-row>td {
  padding-left: 2.5rem;
}

.masterpi-page .specs-drawing {
  width: var(--content-width);
  margin: 4rem auto 0;
}

.specs-drawing img {
  width: 100%;
  height: auto;
}

.section-cover-layer {
  isolation: isolate;
}

/* FAQ 与留言 */
.product-faq {
  padding: 8rem 0 10rem;
  color: var(--text);
}

.product-faq__heading,
.product-faq__list {
  width: var(--safe-width);
  margin-right: auto;
  margin-left: auto;
}

.product-faq__heading {
  margin-bottom: 3rem;
}

.product-faq__heading h2 {
  font-size: 2.4rem;
  line-height: 1.15;
}

.product-faq__item {
  border-bottom: 1px solid rgba(38, 42, 48, .18);
}

.product-faq__item:last-child {
  border-bottom: 0;
}

.product-faq__item summary {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) 1.5rem;
  gap: 1rem;
  align-items: center;
  min-height: 5.25rem;
  cursor: pointer;
  list-style: none;
}

.product-faq__item summary::-webkit-details-marker {
  display: none;
}

.product-faq__item summary:focus-visible {
  outline: 2px solid var(--brand-on-light);
  outline-offset: -2px;
}

.product-faq__number {
  color: rgba(38, 42, 48, .6);
  font-family: var(--font-en);
  font-size: .9rem;
  font-weight: 600;
}

.product-faq__question {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
}

.product-faq__arrow {
  justify-self: end;
  width: 0;
  height: 0;
  border-right: .38rem solid transparent;
  border-left: .38rem solid transparent;
  border-top: .5rem solid rgba(38, 42, 48, .6);
  transition: transform .25s ease, border-top-color .25s ease;
}

.product-faq__item[open] .product-faq__number {
  color: var(--brand-on-light);
}

.product-faq__item[open] .product-faq__arrow {
  border-top-color: var(--brand-on-light);
  transform: rotate(180deg);
}

.product-faq__answer {
  max-width: calc(100% - 5rem);
  padding: 0 0 2.2rem 4.5rem;
  color: rgba(38, 42, 48, .68);
  font-size: 1rem;
  line-height: 1.85;
}

.product-faq__answer a {
  color: var(--brand-on-light);
}

.product-faq__message {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8rem;
  width: min(38rem, 60%);
  height: 3.5rem;
  margin: 5rem auto 0;
  overflow: hidden;
  border-radius: 2rem;
  background: rgba(38, 42, 48, .14);
}

.product-faq__message-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.product-faq__message input {
  min-width: 0;
  padding: 0 1.75rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  text-align: center;
}

.product-faq__message input::placeholder {
  color: rgba(38, 42, 48, .6);
}

.product-faq__message button {
  background: var(--panel);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.product-faq__message button:hover {
  background: var(--brand-on-light);
  color: var(--panel);
}

.product-faq__message:focus-within {
  outline: 2px solid var(--brand-on-light);
  outline-offset: 3px;
}

.product-faq__message button:disabled {
  cursor: wait;
  opacity: .65;
}

.product-faq__success {
  position: fixed;
  inset: 0;
  width: min(30rem, calc(100% - 2rem));
  margin: auto;
  padding: 3.5rem 3rem 3rem;
  border: 0;
  border-radius: .8rem;
  background: #fff;
  color: var(--text);
  text-align: center;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .3);
}

.product-faq__success::backdrop {
  background: rgba(0, 0, 0, .56);
}

.product-faq__success-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  width: 2rem;
  height: 2rem;
  background: transparent;
  color: rgba(38, 42, 48, .6);
  font-size: 1.5rem;
  cursor: pointer;
}

.product-faq__success-mark {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--brand-on-light);
  border-radius: 50%;
  color: var(--brand-on-light);
  font-size: 1.65rem;
  font-weight: 700;
}

.product-faq__success p {
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 600;
}

#opensource .poster-copy p {
  color: #ffffff;
}

@media (max-width: 1920px) {
  .intro__scroll-copy {
    top: -36%;
  }
}

@media (max-width: 1620px) {
  .intro__scroll-copy {
    top: -45%;
  }

  .masterpi-page .specs-drawing {
    width: 70vw;
  }
}

@media (max-width: 1600px) {
  #omni-motion .section-heading {
    width: calc(var(--safe-width) * .7);
  }

  .static-video-section__media {
    width: calc(var(--safe-width) * .7);
  }
}

@media (max-width: 1700px) {
  .control-section .section-heading {
    margin-bottom: 3rem;
  }

  .control-section {
    padding: 16vh 0;
  }
}

@media (min-width: 1025px) {
  .masterpi-page .site-header-placeholder {
    display: block;
    height: var(--common-header-height, 53px);
  }
}

@media (max-width: 900px) {
  :root {
    --safe-width: calc(100vw - 2rem);
    --content-width: var(--safe-width);
    --header-offset: 3.5rem;
  }

  .masterpi-page #header {
    display: none !important;
  }

  .masterpi-page .site-header {
    width: 100vw;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .masterpi-page .site-header-placeholder {
    display: block;
    height: var(--header-offset);
  }

  .masterpi-page #footer {
    max-width: 100vw;
    overflow: hidden;
  }

  .masterpi-page .site-nav {
    display: none;
  }

  .masterpi-page .brand {
    font-size: 1.25rem;
  }

  .masterpi-page .buy-link {
    min-width: 6rem;
    height: 2rem;
    margin-left: auto;
  }

  .hero h1 {
    font-size: 3.6rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .intro__scroll-copy {
    top: -15vh;
    width: var(--safe-width);
  }

  .intro__scroll-copy p {
    font-size: .9rem;
  }

  .feature-mosaic {
    padding: var(--section-padding-large) 0 var(--section-padding);
  }

  .feature-mosaic__row {
    flex-direction: column;
    gap: .65rem;
  }

  .feature-mosaic__row+.feature-mosaic__row {
    margin-top: .65rem;
  }

  .mosaic-card {
    flex: 0 0 auto;
    width: 100%;
  }

  .mosaic-copy {
    top: .8rem;
    left: .9rem;
  }

  .mosaic-copy h2 {
    font-size: .86rem;
  }

  .mosaic-copy p {
    display: none;
  }

  .section-heading {
    width: var(--safe-width);
  }

  .section-heading h2 {
    font-size: 1.8rem;
  }

  .section-heading p {
    margin-top: .85rem;
    font-size: .88rem;
  }

  .hardware-showcase {
    min-height: auto;
  }

  .hardware-showcase__inner {
    min-height: 100svh;
  }

  .hardware-showcase__inner {
    padding: var(--section-padding) 0;
  }

  .hardware-showcase__media {
    width: 96vw;
    margin-top: 3rem;
  }

  .hardware-callout {
    width: 47%;
  }

  .hardware-callout__text {
    font-size: .68rem;
  }

  .hardware-callout--left .hardware-callout__line,
  .hardware-callout--right .hardware-callout__line {
    flex: 1 1 auto;
    width: auto;
    min-width: 1.5rem;
    margin: 0 .35rem;
  }

  .masterpi-callout--left-camera,
  .masterpi-callout--left-gear,
  .masterpi-callout--left-mini,
  .masterpi-callout--left-servo,
  .masterpi-callout--left-ultrasonic,
  .masterpi-callout--left-wheel {
    left: 0;
    width: 47%;
  }

  .masterpi-callout--right-frame,
  .masterpi-callout--right-arm,
  .masterpi-callout--right-board,
  .masterpi-callout--right-pi {
    right: 0;
    width: 47%;
  }

  .static-video-section {
    padding: var(--section-padding) 0;
  }

  .static-video-section__media {
    margin-top: 2.5rem;
  }

  .control-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    width: calc(100% - 2rem);
  }

  .control-nav {
    flex-direction: row;
    min-height: 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
    border-left: 0;
    cursor: ew-resize;
  }

  .control-nav button {
    width: 6rem;
    height: 3px;
  }

  .control-panels {
    min-height: 25rem;
  }

  .control-panel {
    align-items: stretch;
    flex-direction: column;
    gap: 1.5rem;
  }

  .control-copy {
    flex: 0 0 auto;
    max-width: none;
  }

  .control-media {
    width: 100%;
  }

  .embodied-section .section-heading {
    width: var(--safe-width);
  }

  .embodied-section .carousel-shell {
    width: 100%;
    margin-top: 2.2rem;
  }

  .embodied-section .carousel-slide {
    flex-basis: calc(100vw - 2rem);
  }

  .embodied-section .carousel-arrow {
    width: 2.75rem;
    height: 2.75rem;
  }

  .embodied-section .carousel-arrow--prev {
    left: 1.25rem;
  }

  .embodied-section .carousel-arrow--next {
    right: 1.25rem;
  }

  .embodied-section .carousel-tabs {
    justify-content: flex-start;
    width: calc(100% - 2rem);
    overflow-x: auto;
    border-radius: .5rem;
  }

  .embodied-section .carousel-tabs button {
    flex: 0 0 auto;
    padding: .7rem 1rem;
  }

  .poster-section {
    min-height: 48rem;
  }

  .poster-section>img {
    min-height: 48rem;
    object-position: 63% center;
  }

  .poster-copy {
    top: auto;
    right: 1rem;
    bottom: 4rem;
    left: 1rem;
    width: auto;
  }

  .poster-copy h2 {
    font-size: 1.8rem;
  }

  .specs {
    padding: var(--section-padding) 0;
  }

  .specs__inner {
    width: var(--safe-width);
  }

  .specs__heading {
    margin-bottom: 2.5rem;
  }

  .specs__heading h2 {
    font-size: 1.8rem;
  }

  .specs-row {
    grid-template-columns: 7rem minmax(0, 1fr);
    min-height: 4.5rem;
    font-size: .82rem;
  }

  .specs-row>th {
    padding: .65rem .5rem;
  }

  .specs-row>td {
    padding: .65rem .5rem;
  }

  .masterpi-page .specs-drawing {
    width: var(--safe-width);
    margin: 2.5rem auto 0;
  }

  .product-faq {
    padding: 5rem 0 6rem;
  }

  .product-faq__heading,
  .product-faq__list {
    width: var(--safe-width);
  }

  .product-faq__heading {
    margin-bottom: 1.5rem;
  }

  .product-faq__heading h2 {
    font-size: 1.8rem;
  }

  .product-faq__item summary {
    grid-template-columns: 2.5rem minmax(0, 1fr) 1rem;
    gap: .5rem;
    min-height: 4.5rem;
  }

  .product-faq__question {
    font-size: .9rem;
  }

  .product-faq__answer {
    max-width: calc(100% - 2.5rem);
    padding: 0 0 1.6rem 3rem;
    font-size: .88rem;
  }

  .product-faq__message {
    grid-template-columns: minmax(0, 1fr) 5.5rem;
    width: var(--safe-width);
    margin-top: 3.5rem;
  }

  .product-faq__message input {
    padding: 0 .75rem;
    font-size: .82rem;
  }
}