/* DARK P27 — Figma 1826:1807. The article uses the same fixed-board scaler as Zhike. */
@font-face {
  font-family: 'Hefei LogoSC';
  src: url('../assets/fonts/a6032b8d66c3af49f86d.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

#main #enterprise > .hf-p27-stage {
  display: none;
}

html[data-theme="dark"] #main #enterprise.portfolio-sheet {
  --hf-scale: var(--zk592-scale, 1);
  /* The 60px running rows in the source artwork are shorter after scaling. */
  --hf-running-extra: max(0px, calc(var(--portfolio-row-height) - 60px * var(--hf-scale)));
  position: relative;
  display: block;
  width: 100%;
  max-width: 1920px;
  height: calc(2360px * var(--hf-scale) + 2 * var(--hf-running-extra));
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: calc(22px * var(--hf-scale));
  overflow: clip;
  isolation: isolate;
  background: linear-gradient(#060713 calc(100% - var(--hf-running-extra)), #17054f 0);
  box-shadow: 0 14px 45px #07030c36;
}

html[data-theme="dark"] #main #enterprise > :is(.sheet-content,.u-background),
html[data-theme="dark"] #main #enterprise::before {
  display: none;
}

html[data-theme="dark"] #main #enterprise > .hf-p27-stage {
  position: absolute;
  inset: var(--hf-running-extra) auto auto 0;
  display: block;
  width: 1920px;
  height: 2360px;
  transform: scale(var(--hf-scale));
  transform-origin: top left;
  isolation: isolate;
  color: #fff;
  font: 400 28px/1.2 'Portfolio Inter', 'PingFang SC', sans-serif;
}

#enterprise .hf-p27-stage :is(h2,p,figure,ul) {
  margin: 0;
}

#enterprise .hf-p27-stage img {
  display: block;
  max-width: none;
}

html[data-theme="dark"] #main #enterprise::after {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  box-shadow: inset 0 0 0 calc(2px * var(--hf-scale)) #372942;
  content: '';
  pointer-events: none;
}

#enterprise .hf-p27-background {
  position: absolute;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  background: linear-gradient(180deg, #060713 0%, #0a0e24 55%, #090517 90%, #29004b 100%);
}

#enterprise .hf-p27-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #060713 20.804%, #0a0e2480 50%, #090517 86.589%);
}

#enterprise .hf-p27-trails {
  position: absolute;
  inset: 30.25% 0 auto;
  height: 90.85%;
  background: url('../assets/cq-overview-1606/5e873.png') center / cover no-repeat;
}

#enterprise .hf-p27-mask {
  position: absolute;
  top: 179px;
  z-index: 1;
  width: 1920px;
  height: 2360px;
  mask: url('../assets/enterprise-hefei-dark/1814/background-mask.svg') 0 0 / 1920px 1008px no-repeat;
  background:
    linear-gradient(180deg, transparent 9.089%, #000c 55.653%, #270046cc 93.75%),
    url('../assets/enterprise-hefei-dark/73b98.png') left -157.248px top -216.884px / 2077.056px 2576.884px no-repeat;
}

#enterprise .hf-p27-mask::after {
  position: absolute;
  inset: 0 0 auto;
  height: 45.81%;
  background: url('../assets/enterprise-hefei-dark/226ff.png') 0 0 / cover no-repeat;
  opacity: .02;
  content: '';
}

#enterprise .hf-p27-grid {
  position: absolute;
  bottom: -155.77px;
  left: 0;
  z-index: 1;
  height: auto;
}

#enterprise .hf-p27-stage > .hf-p27-section-no {
  position: absolute;
  left: 953px;
  top: -97px;
  font: 700 820px/normal 'Portfolio Trash', sans-serif;
  letter-spacing: -57.4px;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  color: transparent;
  background: linear-gradient(-19.916deg, #9d59ff06 14.068%, #7424ff17 71.428%);
  background-clip: text;
}

#enterprise .hf-p27-intro {
  position: absolute;
  inset: 140px 80px auto;
  z-index: 1;
}

#enterprise .hf-p27-kicker {
  display: flex;
  min-height: 41.6px;
  align-items: center;
  gap: 16px;
}

#enterprise .hf-p27-discipline {
  display: grid;
  width: 226.35px;
  height: 36px;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 24px;
  font: 700 24px/1.2 'Portfolio Trash', 'PingFang SC', sans-serif;
  white-space: nowrap;
}

#enterprise .hf-p27-discipline span,
#enterprise .hf-p27-metric-value,
#enterprise .hf-p27-pill-label,
#enterprise .hf-p27-caption p,
#enterprise .hf-p27-caption-label span {
  transform: skewX(-6.63deg) scaleY(.99);
}

#enterprise .hf-p27-kicker-text {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

#enterprise .hf-p27-intro > .hf-p27-title {
  width: max-content;
  margin-top: 12px;
  padding-left: 4px;
  color: #fff;
  font: 400 86px/1.2 'Hefei LogoSC', 'LogoSC Unbounded Sans', sans-serif;
  font-synthesis: none;
  transform: skewX(-6.63deg) scale(1.045, .99);
  transform-origin: left center;
  white-space: nowrap;
}

#enterprise .hf-p27-title-bar {
  color: #f0ebfc;
}

#enterprise .hf-p27-title-accent {
  color: transparent;
  background: linear-gradient(105deg, #6c3ff9 2%, #9550fa 74%, #a464ff 100%);
  background-clip: text;
}

#enterprise .hf-p27-intro > .hf-p27-description {
  width: max-content;
  margin-top: 10px;
  color: #f4f0fa;
  font: 500 32px/1.26 'Noto Sans SC', 'CQ03 Noto', sans-serif;
  white-space: nowrap;
  /* Fit the approved copy to the new one-line placement. */
  transform: skewX(-6.63deg) scale(.90, .99);
  transform-origin: left center;
}

#enterprise .hf-p27-description strong {
  font-family: 'Noto Sans SC', 'ZKP22 Noto', sans-serif;
  font-weight: 700;
}

#enterprise .hf-p27-highlights {
  margin-top: 39px;
}

#enterprise .hf-p27-metric {
  position: absolute;
  inset: auto 80px 90.8px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 180.2px;
  box-sizing: border-box;
  padding: 30px 80px;
  border: 1.6px solid transparent;
  border-radius: 30px;
  background: url('../assets/enterprise-hefei-dark/1826/results-glass.png') center / cover no-repeat;
}

#enterprise .hf-p27-metric::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 570px 445px at 525px -42px, #e5d3ff, #d4b6ff00),
    radial-gradient(ellipse 780px 330px at 427.5px 385px, #971cff, #6713ae80 50%, #370a5d00);
  backdrop-filter: blur(5.6px);
  content: '';
  pointer-events: none;
}

#enterprise .hf-p27-metric::after {
  position: absolute;
  top: 122.4px;
  left: 29.4px;
  width: 755px;
  height: 110px;
  background: url('../assets/zhike-before-after-764/metric-glow.png') center / cover no-repeat;
  mix-blend-mode: plus-lighter;
  content: '';
  pointer-events: none;
}

#enterprise .hf-p27-metric-clip {
  position: relative;
  width: 484px;
  height: 117px;
  overflow: clip;
}

#enterprise .hf-p27-metric-value {
  position: absolute;
  left: -5px;
  top: -49px;
  display: block;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(-82.827deg, #be8aff 12.319%, #964dff 44.098%, #2429ff 96.807%, #3d22b6 114.69%), #fff;
  background-clip: text;
  font: 400 160px/1.2 'Hefei LogoSC', 'LogoSC Unbounded Sans', sans-serif;
  font-synthesis: none;
}

#enterprise .hf-p27-metric p {
  position: relative;
  color: #543181;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.69;
  white-space: nowrap;
}

#enterprise .hf-p27-pills {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0;
  list-style: none;
}

#enterprise .hf-p27-pill {
  --hf-pill-width: 293.54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  width: var(--hf-pill-width);
  height: 81.679px;
  border: 1px solid #7b4cd4;
  border-radius: 24px;
  background: radial-gradient(ellipse 62% 83% at 7% 108%, #7315c3, #55109080 50%, transparent),
    linear-gradient(180deg, #46239f40, #260f5c40);
  backdrop-filter: blur(5.6px);
}

#enterprise .hf-p27-pill-blue {
  background: radial-gradient(ellipse 62% 83% at 7% 108%, #2f50ff, #332dae80 50%, transparent),
    linear-gradient(172deg, #2f4ded40 17.228%, #151e9440 96.795%);
}

#enterprise .hf-p27-pill:nth-child(3) { --hf-pill-width: 295px; }
#enterprise .hf-p27-pill:nth-child(4) { --hf-pill-width: 336px; }

#enterprise .hf-p27-bracket-start { transform: rotate(180deg); }
#enterprise .hf-p27-bracket-end { transform: scaleY(-1); }

#enterprise .hf-p27-pill-label {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

#enterprise .hf-p27-caption {
  position: absolute;
  top: -1px;
  right: .02px;
  display: grid;
  justify-items: end;
  gap: 12px;
  width: 311.575px;
}

#enterprise .hf-p27-caption-label {
  display: flex;
  align-items: center;
  gap: 17.516px;
  position: relative;
  font-size: 32px;
  font-weight: 600;
  white-space: nowrap;
}

#enterprise .hf-p27-caption-label span {
  padding: 0 13px;
  border-inline: 5.531px solid #fff;
}

#enterprise .hf-p27-caption-label span::after {
  content: '';
  position: absolute;
  top: 0;
  right: -5.531px;
  width: 5.531px;
  height: 5.531px;
  background: #a96cfe;
}

#enterprise .hf-p27-mark {
  display: block;
  width: 52px;
  height: 52px;
  background: url('../assets/enterprise-hefei-dark/1826/discipline-mark.svg') -6.5px -8.664px no-repeat;
  mask: url('../assets/enterprise-hefei-dark/1814/discipline-mask.svg') center no-repeat;
}

#enterprise .hf-p27-caption p {
  color: #ffffff80;
  font: 400 20px/1.2 'Portfolio Trash', sans-serif;
  white-space: nowrap;
}

#enterprise .hf-p27-gallery {
  position: absolute;
  z-index: 2;
  top: 507px;
  left: calc(50% + .19px);
  transform: translateX(-50%);
  display: flex;
  width: 2908.389px;
  flex-direction: column;
  align-items: center;
  gap: 35.977px;
}

#enterprise .hf-p27-row {
  position: relative;
  display: flex;
  gap: 35.977px;
}

#enterprise .hf-p27-device {
  position: relative;
  width: 945.478px;
  height: 562.682px;
  flex: none;
}

#enterprise .hf-p27-device::before {
  position: absolute;
  left: 43.892px;
  top: 74.11px;
  width: 858.414px;
  height: 506.558px;
  background: #290148;
  opacity: .4;
  filter: blur(82.379px);
  content: '';
}

#enterprise .hf-p27-device img {
  position: absolute;
  height: auto;
}

/* Only the screenshot participates in the existing image-zoom dialog. */
#enterprise .hf-p27-device > .hf-screen {
  display: contents;
}

#enterprise .hf-p27-floor {
  top: 500.3px;
  left: -5.535px;
}

#enterprise .hf-p27-frame {
  top: -4.297px;
  left: -3.597px;
}

#enterprise .hf-p27-screen {
  top: 2.873px;
  left: 3.595px;
  width: 938.283px;
}

#enterprise .hf-p27-device-map .hf-p27-screen {
  top: 3.264px;
  left: 3.87px;
  width: 937.904px;
}

#enterprise .hf-p27-light {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--w);
  height: var(--h);
  background: url('../assets/zhike-before-after-764/metric-glow.png') center / cover no-repeat;
  mix-blend-mode: plus-lighter;
  pointer-events: none;
}

#enterprise .hf-p27-fade {
  --hf-bottom-shade: linear-gradient(180deg, #0e0d2000 24%, #190557a6);
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 611px;
  background:
    var(--hf-bottom-shade) bottom / 100% 500px no-repeat,
    var(--hf-bottom-shade) bottom / 100% 611px no-repeat;
  pointer-events: none;
}

/* Keep the shared running rows outside the artwork transform. */
html[data-theme="dark"] #main #enterprise > .portfolio-running {
  position: absolute;
  inset-inline: 0;
}
