/* MAC-B5760 hero: text is HTML; bg image shows full slice (no crop). */
.boxpc-page {
  --boxpc-nav-h: 1rem;
}

@media (max-width: 768px) {
  .boxpc-page {
    --boxpc-nav-h: 44px;
  }
}

.boxpc-page .boxpc-hero {
  position: relative;
  width: 100%;
  background: #020910;
  line-height: 0;
}

/* Image in document flow so section height = full artboard, nothing cropped */
.boxpc-page .boxpc-hero__bg {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.boxpc-page .boxpc-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-align: center;
  pointer-events: none;
  line-height: 1.2;
}

/* PSD 3840×3922 artboard -> hero h=1961; title y=171; tagline y=391 */
.boxpc-page .boxpc-hero__content h1 {
  position: absolute;
  left: 50%;
  top: 8.72%;
  width: min(92%, 1260px);
  margin: 0;
  transform: translateX(-50%);
  font-family: "SourceHanSansCN-Bold", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(36px, 3.91vw, 75px);
  font-weight: normal;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: #e9fbff;
  background: linear-gradient(180deg, #ffffff 0%, #edfaff 42%, #d8f7ff 70%, #bcefff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0.134em 0.11em rgba(31, 105, 156, 0.72))
    drop-shadow(0 0 0.18em rgba(117, 223, 255, 0.28));
}

.boxpc-page .boxpc-hero__tagline {
  position: absolute;
  left: 50%;
  top: 19.94%;
  width: min(92%, 960px);
  margin: 0;
  transform: translateX(-50%);
  font-family: "SourceHanSansCN-Regular", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(22px, 2.08vw, 40px);
  font-weight: normal;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: #ef8519;
  background: linear-gradient(180deg, #ffa347 0%, #ef8519 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.36));
}

@media (max-width: 768px) {
  .boxpc-page .boxpc-hero__content h1 {
    font-size: clamp(28px, 7.2vw, 42px);
  }

  .boxpc-page .boxpc-hero__tagline {
    font-size: clamp(16px, 4.2vw, 22px);
  }
}

/* Screen 3+: keep title/desc gap aligned with IPC "3天搞定产品开发" rhythm */
.boxpc-page .boxpc-screen {
  position: relative;
  width: 100%;
  background: #020910;
  line-height: 0;
  --screen-title-top: 8.82%;
  /* H2→P 间距与其它屏统一：大屏 20px */
  --screen-title-desc-gap: clamp(14px, 1.8vw, 20px);
  --screen-head-offset: calc(var(--section-heading-size) * 1.12 + var(--screen-title-desc-gap));
  --screen-desc-top: calc(var(--screen-title-top) + var(--screen-head-offset));
}

.boxpc-page .boxpc-screen__bg {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.boxpc-page .boxpc-screen__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  line-height: 1.4;
}

.boxpc-page .boxpc-screen__title {
  position: absolute;
  left: 50%;
  top: var(--screen-title-top);
  width: min(92%, 1400px);
  margin: 0;
  transform: translateX(-50%);
  text-align: center;
  font-family: "SourceHanSansCN-Bold", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: var(--section-heading-size);
  font-weight: normal;
  line-height: 1.12;
  letter-spacing: 0;
  color: #ffffff;
}

.boxpc-page .boxpc-screen__title-accent {
  color: #f08519;
}

.boxpc-page .boxpc-title-comma {
  display: inline-block;
  margin: 0 0.22em;
  font-family: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: 0;
  vertical-align: baseline;
}

.boxpc-page .boxpc-screen--dark .boxpc-screen__title {
  color: #ffffff;
}

.boxpc-page .boxpc-screen--dark .boxpc-screen__title-accent {
  color: #f08519;
}

.boxpc-page .boxpc-screen--dark .boxpc-screen__desc {
  color: #adcdd1;
}

.boxpc-page .boxpc-screen--light .boxpc-screen__title {
  color: #1d1d1d;
}

.boxpc-page .boxpc-screen--light .boxpc-screen__title-accent {
  color: #f08519;
}

.boxpc-page .boxpc-screen--light .boxpc-screen__desc {
  color: #1d1d1d;
}

.boxpc-page .boxpc-screen__desc {
  position: absolute;
  left: 50%;
  top: var(--screen-desc-top);
  width: min(92%, 1200px);
  margin: 0;
  transform: translateX(-50%);
  text-align: center;
  font-family: "SourceHanSansCN-Regular", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: var(--section-subtitle-size);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: #adcdd1;
}

.boxpc-page .boxpc-screen__visual {
  position: absolute;
  left: 50%;
  top: var(--screen-visual-top, 26.57%);
  width: var(--screen-visual-width, 80.73%);
  margin: 0;
  transform: translateX(-50%);
}

.boxpc-page .boxpc-screen--deploy {
  --screen-visual-top: 26.57%;
  --screen-visual-width: 80.73%;
}

.boxpc-page .boxpc-screen--media {
  --screen-visual-top: 28.45%;
  --screen-visual-width: 69.69%;
  background: #f5f8fc;
}

.boxpc-page .boxpc-screen--wireless {
  --screen-badges-top: 31.54%;
  --screen-badges-width: 48.05%;
  background: #f5f8fc;
}

.boxpc-page .boxpc-screen--metal {
  background: #020910;
}

.boxpc-page .boxpc-screen--thermal {
  --screen-badges-top: 28.96%;
  background: #f5f8fc;
}

.boxpc-page .boxpc-feature-badges {
  position: absolute;
  left: 50%;
  top: var(--screen-badges-top);
  width: min(38vw, 720px);
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 24px);
  align-items: start;
  line-height: 0;
}

.boxpc-page .boxpc-feature-badges img {
  display: block;
  width: 100%;
  max-width: 158px;
  height: auto;
  margin: 0 auto;
}

.boxpc-page .boxpc-screen--tests {
  --screen-certs-top: 33.8%;
  background: #020910;
}

.boxpc-page .boxpc-cert-grid {
  position: absolute;
  left: 50%;
  top: var(--screen-certs-top);
  width: min(47.5%, 912px);
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.45vw, 28px) clamp(10px, 1.2vw, 23px);
  line-height: 0;
}

.boxpc-page .boxpc-cert-grid img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0;
}

.boxpc-page .boxpc-screen--os {
  background: #f5f8fc;
}

.boxpc-page .boxpc-screen--install {
  --screen-install-top: 24.7%;
  background: #020910;
}

.boxpc-page .boxpc-install-grid {
  position: absolute;
  left: 50%;
  top: var(--screen-install-top);
  width: min(92%, 1400px);
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 28px);
  align-items: start;
  line-height: 0;
}

.boxpc-page .boxpc-install-grid img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 452px;
  margin: 0 auto;
  border-radius: 12px;
}

.boxpc-page .boxpc-screen--scenarios {
  aspect-ratio: auto;
  min-height: 0;
  padding: clamp(72px, 7vw, 100px) 16px clamp(80px, 8vw, 120px);
  background: #ecf1f7;
  line-height: normal;
}

.boxpc-page .boxpc-screen--scenarios .boxpc-screen__content {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(92%, 1400px);
  margin: 0 auto;
}

.boxpc-page .boxpc-screen--scenarios .boxpc-screen__title,
.boxpc-page .boxpc-screen--scenarios .boxpc-screen__desc {
  position: static;
  left: auto;
  top: auto;
  transform: none;
}

.boxpc-page .boxpc-screen--scenarios .boxpc-screen__title {
  width: 100%;
  margin: 0 0 var(--screen-title-desc-gap, clamp(14px, 1.8vw, 20px));
}

.boxpc-page .boxpc-screen--scenarios .boxpc-screen__desc {
  width: min(100%, 1200px);
  margin: 0;
}

/* Spec section: HTML table, no sliced table image */
.boxpc-page .boxpc-spec {
  padding: clamp(48px, 5.5vw, 88px) 16px clamp(56px, 6vw, 96px);
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 55%, #e8eef5 100%);
}

.boxpc-page .boxpc-spec__inner {
  width: min(100%, 1400px);
  margin: 0 auto;
}

.boxpc-page .boxpc-spec__head {
  margin: 0 0 clamp(28px, 3.2vw, 44px);
  text-align: center;
}

.boxpc-page .boxpc-spec__title {
  margin: 0 0 clamp(14px, 1.8vw, 20px);
  font-family: "SourceHanSansCN-Bold", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: var(--section-heading-size);
  font-weight: normal;
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: #1d1d1d;
}

.boxpc-page .boxpc-spec__desc {
  margin: 0;
  font-family: "SourceHanSansCN-Regular", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: var(--section-subtitle-size);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: #1d1d1d;
}

.boxpc-page .boxpc-spec__tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  width: min(100%, 1200px);
  margin: 0 auto;
}

.boxpc-page .boxpc-spec__table-wrap {
  width: 100%;
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(21, 52, 102, 0.08);
}

.boxpc-page .boxpc-spec-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: #ffffff;
  font-family: "SourceHanSansCN-Regular", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(13px, 0.95vw, 16px);
  line-height: 1.85;
  color: #4d608b;
}

.boxpc-page .boxpc-spec-table thead th {
  padding: 14px 20px;
  background: #2d5bb4;
  color: #ffffff;
  font-family: "SourceHanSansCN-Bold", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(14px, 1.05vw, 18px);
  font-weight: normal;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-align: center;
  border: 1px solid #2d5bb4;
}

.boxpc-page .boxpc-spec-table tbody th {
  width: 30%;
  padding: 16px;
  color: #2c406b;
  font-family: "SourceHanSansCN-Bold", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: normal;
  line-height: 1.85;
  text-align: center;
  vertical-align: middle;
  border: 1px solid #dce4ef;
  box-sizing: border-box;
}

.boxpc-page .boxpc-spec-table tbody td {
  padding: 16px 24px;
  color: #4d608b;
  line-height: 1.85;
  text-align: left;
  vertical-align: middle;
  border: 1px solid #dce4ef;
  box-sizing: border-box;
}

.boxpc-page .boxpc-spec-table tbody tr:nth-child(odd) th {
  background: #f0f5fa;
}

.boxpc-page .boxpc-spec-table tbody tr:nth-child(odd) td {
  background: #ffffff;
}

.boxpc-page .boxpc-spec-table tbody tr:nth-child(even) th {
  background: #f0f5fa;
}

.boxpc-page .boxpc-spec-table tbody tr:nth-child(even) td {
  background: #ffffff;
}

.boxpc-page .boxpc-spec__actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 3.8vw, 75px);
}

.boxpc-page .boxpc-spec__buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(220px, 24vw, 320px);
  min-height: clamp(48px, 4.2vw, 64px);
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffb14d 0%, #ef8b24 100%);
  box-shadow: 0 12px 26px rgba(239, 139, 36, 0.28);
  font-family: "SourceHanSansCN-Bold", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(18px, 1.35vw, 26px);
  line-height: 1;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: #ffffff;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.boxpc-page .boxpc-spec__buy-btn:hover,
.boxpc-page .boxpc-spec__buy-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(239, 139, 36, 0.34);
  filter: brightness(1.03);
}

.ipc-page .boxpc-cert-grid,
.ipc-page .boxpc-install-grid,
.ipc-page .boxpc-feature-badges {
  opacity: 1;
  transform: translateX(-50%);
}

.ipc-page .boxpc-scenario-grid,
.ipc-page .boxpc-spec__tables {
  opacity: 1;
  transform: none;
}

.ipc-page.js-reveal-ready .boxpc-cert-grid,
.ipc-page.js-reveal-ready .boxpc-install-grid,
.ipc-page.js-reveal-ready .boxpc-feature-badges {
  opacity: 1;
  transform: translate3d(-50%, 24px, 0);
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.ipc-page.js-reveal-ready .boxpc-scenario-grid,
.ipc-page.js-reveal-ready .boxpc-spec__tables {
  opacity: 1;
  transform: translate3d(0, 24px, 0);
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.ipc-page.js-reveal-ready .boxpc-cert-grid li,
.ipc-page.js-reveal-ready .boxpc-install-grid li,
.ipc-page.js-reveal-ready .boxpc-scenario-grid li,
.ipc-page.js-reveal-ready .boxpc-feature-badges li,
.ipc-page.js-reveal-ready .boxpc-spec__tables > * {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity 0.58s ease,
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-index, 0) * 120ms);
  will-change: opacity, transform;
}

.ipc-page.js-reveal-ready .is-revealed .boxpc-spec__table-wrap,
.ipc-page.js-reveal-ready .is-revealed.boxpc-spec__tables > *,
.ipc-page.js-reveal-ready .is-revealed.boxpc-cert-grid li,
.ipc-page.js-reveal-ready .is-revealed.boxpc-install-grid li,
.ipc-page.js-reveal-ready .is-revealed.boxpc-scenario-grid li,
.ipc-page.js-reveal-ready .is-revealed.boxpc-feature-badges li {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.ipc-page.js-reveal-ready .is-revealed.boxpc-cert-grid,
.ipc-page.js-reveal-ready .is-revealed.boxpc-install-grid,
.ipc-page.js-reveal-ready .is-revealed.boxpc-feature-badges {
  transform: translate3d(-50%, 0, 0);
}

.ipc-page.js-reveal-ready .is-revealed.boxpc-scenario-grid,
.ipc-page.js-reveal-ready .is-revealed.boxpc-spec__tables {
  transform: translate3d(0, 0, 0);
}

.boxpc-page .boxpc-scenario-grid {
  position: static;
  left: auto;
  top: auto;
  width: 100%;
  margin: clamp(40px, 3.2vw, 60px) 0 0;
  padding: 0;
  list-style: none;
  transform: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(14px, 1.6vw, 28px);
  row-gap: clamp(36px, 3.2vw, 60px);
}

.boxpc-page .boxpc-scenario-grid figure {
  margin: 0;
  line-height: 1.3;
}

.boxpc-page .boxpc-scenario-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.boxpc-page .boxpc-scenario-grid figcaption {
  margin-top: 0.55em;
  text-align: center;
  font-family: "SourceHanSansCN-Regular", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(14px, 1.4vw, 26px);
  color: #1d1d1d;
}

.boxpc-page .boxpc-screen__badges {
  position: absolute;
  left: 50%;
  top: var(--screen-badges-top);
  width: var(--screen-badges-width);
  margin: 0;
  transform: translateX(-50%);
  line-height: 0;
}

.boxpc-page .boxpc-screen__badges img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.boxpc-page .boxpc-screen__visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

@media (max-width: 768px) {
  .boxpc-page .boxpc-screen__visual {
    width: 92%;
    top: 24%;
  }

  .boxpc-page .boxpc-screen__badges {
    width: 88%;
    top: 28%;
  }

  .boxpc-page .boxpc-scenario-grid {
    margin-top: clamp(28px, 5vw, 40px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: clamp(20px, 4vw, 36px);
  }

  .boxpc-page .boxpc-scenario-grid figcaption {
    font-size: clamp(12px, 3.2vw, 15px);
  }

  .boxpc-page .boxpc-feature-badges {
    width: min(88%, 420px);
    top: 27%;
    gap: 8px;
  }

  .boxpc-page .boxpc-cert-grid {
    top: 30%;
    width: min(88%, 520px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }

  .boxpc-page .boxpc-install-grid {
    top: 22%;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .boxpc-page .boxpc-spec {
    padding: 40px 16px 48px;
  }

  .boxpc-page .boxpc-spec__tables {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .boxpc-page .boxpc-spec__buy-btn {
    min-width: 200px;
    min-height: 46px;
    padding: 0 24px;
    font-size: 17px;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }

  .boxpc-page .boxpc-spec-table thead th,
  .boxpc-page .boxpc-spec-table tbody th,
  .boxpc-page .boxpc-spec-table tbody td {
    padding: 12px 14px;
    font-size: 13px;
  }

  .boxpc-page .boxpc-spec-table tbody th {
    width: 34%;
  }
}
