:root {
  --blue: #1966ff;
  --ink: #252931;
  --ink-soft: rgba(0, 0, 0, 0.8);
  --ink-muted: rgba(0, 0, 0, 0.6);
  --viewport-height: 100vh;
}

@supports (height: 100dvh) {
  :root {
    --viewport-height: 100dvh;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "PingFang SC", "Alibaba PuHuiTi", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #040404;
}

.kc2d-main {
  width: 100%;
  overflow-x: hidden;
}

.case-topbar {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 120;
  pointer-events: none;
}

.case-back-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: #111;
  font-family: "Inter", "Noto Sans SC", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.case-back-home:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.92);
}

.case-back-home svg {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}

.canvas-wrap {
  --canvas-width: 1920;
  --focus-width: var(--canvas-width);
  --canvas-shift: 0;
  --responsive-canvas-height: var(--canvas-height);
  --viewport-gutter: 0px;
  --viewport-width: calc(100vw - (var(--viewport-gutter) * 2));
  --scale-w: calc(var(--viewport-width) / (var(--focus-width) * 1px));
  --scale: min(1, var(--scale-w));
  --type-comp-max: 1.22;
  --type-comp: min(calc(1 / max(var(--scale), 0.01)), var(--type-comp-max));
  content-visibility: auto;
  contain-intrinsic-size: 1400px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  height: calc(var(--responsive-canvas-height) * 1px * var(--scale) + 2px);
  overflow: hidden;
  background: #fff;
}

.canvas {
  position: relative;
  width: 1920px;
  height: calc(var(--responsive-canvas-height) * 1px);
  flex: 0 0 auto;
  transform-origin: top left;
  transform: translateX(calc(var(--canvas-shift) * var(--scale) * 1px)) scale(var(--scale));
}

.kc2d-canvas {
  background: linear-gradient(180deg, #f0f3f6 0%, #ffffff 32%);
  box-shadow: 0 -15px 50px rgba(0, 2, 57, 0.05);
}

.abs {
  position: absolute;
  white-space: nowrap;
}

.allow-wrap {
  white-space: normal;
}

.image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.sec-no {
  margin: 0;
  opacity: 0.3;
  color: #bcbdc0;
  font-family: "DIN Alternate", "Inter", sans-serif;
  font-size: calc(32px * var(--type-comp));
  line-height: 1;
  font-weight: 700;
}

.sec-en {
  margin: 0;
  opacity: 0.3;
  color: rgba(188, 189, 192, 0.6);
  font-size: calc(24px * var(--type-comp));
  line-height: 1.4;
  font-weight: 600;
}

.sec-title {
  margin: 0;
  color: #000;
  font-size: calc(28px * var(--type-comp));
  line-height: 1.5;
  font-weight: 600;
}

.sec-title span {
  color: var(--blue);
}

.time-label {
  margin: 0;
  color: #000;
  font-size: calc(18px * var(--type-comp));
  line-height: 1.4;
  font-weight: 700;
}

.bullet-list {
  display: grid;
  gap: 8px;
}

.bullet-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1966ff;
  display: block;
}

.bullet-row p {
  margin: 0;
  white-space: normal;
  color: #000;
  font-size: calc(16px * var(--type-comp));
  line-height: 1.6;
}

.intro-block {
  display: grid;
  gap: 24px;
}

.intro-head {
  margin: 0;
  text-align: center;
  color: #000;
  font-size: calc(24px * var(--type-comp));
  line-height: 1.5;
  font-weight: 600;
}

.intro-head span {
  color: var(--blue);
}

.section-block {
  display: grid;
  gap: 24px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.section-head h3 {
  margin: 0;
  color: #252931;
  font-size: calc(24px * var(--type-comp));
  line-height: 1.5;
  font-weight: 500;
}

.section-head p {
  margin: 0;
  color: #898b8f;
  font-size: calc(16px * var(--type-comp));
  line-height: 1.5;
}

.section-mark {
  width: 12px;
  height: 4px;
  background: #252931;
}

.body-16 {
  margin: 0;
  white-space: normal;
  color: var(--ink-soft);
  font-size: calc(16px * var(--type-comp));
  line-height: 1.56;
}

.blue-inline {
  color: var(--blue);
}

.issue-bullets {
  display: grid;
  gap: 8px;
}

.issue-bullets p {
  margin: 0;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  white-space: normal;
  color: #000;
  font-size: calc(16px * var(--type-comp));
  line-height: 1.58;
}

.issue-bullets .bullet-dot {
  margin-top: 8px;
}

.issue-copy {
  white-space: normal;
}

.issue-tags {
  display: flex;
  gap: 24px;
  align-items: center;
}

.issue-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  background: #1966ff;
  color: #fff;
  font-size: calc(12px * var(--type-comp));
  line-height: 1.2;
  font-weight: 500;
}

.note-muted {
  margin: 0;
  color: rgba(0, 0, 0, 0.4);
  font-size: calc(16px * var(--type-comp));
  line-height: 1.4;
}

.is-rounded {
  border-radius: 12px;
}

.top-thumb {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.workflow-image {
  width: 1360px;
  height: 250px;
}

.feature-row {
  width: 1320px;
  display: grid;
  grid-template-columns: 440px 880px;
  align-items: stretch;
  column-gap: 0;
}

.feature-row.feature-row--rendering {
  height: 516px;
  align-items: stretch;
}

.feature-row.feature-row--rendering .feature-row-right {
  height: 516px;
  align-self: stretch;
}

.feature-row-right {
  min-width: 0;
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
  align-self: stretch;
}

.left-card {
  background: #f6f6f6;
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 0;
  align-self: stretch;
}

.left-card h4 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #000;
  font-size: calc(24px * var(--type-comp));
  line-height: 1.4;
  font-weight: 500;
}

.left-card h4 img {
  width: 28px;
  height: 28px;
}

.left-sub {
  color: rgba(0, 0, 0, 0.4);
  font-size: calc(20px * var(--type-comp));
  font-weight: 400;
}

.left-card p {
  margin: 0;
  white-space: normal;
  color: rgba(0, 0, 0, 0.6);
  font-size: calc(16px * var(--type-comp));
  line-height: 1.5;
}

.left-card > img {
  margin-top: auto;
  width: 100%;
  max-width: 320px;
}

.left-card--rendering {
  height: 516px;
  min-height: 516px;
  box-sizing: border-box;
  overflow: hidden;
}

.left-card--rendering .left-card-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.left-card--rendering .left-card-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.left-card--rendering .left-card-text p {
  margin: 0;
}

.left-card--rendering .left-card-thumb {
  width: 320px;
  height: 160px;
  margin: 0;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
  align-self: flex-start;
}

.right-media {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.smiley-title {
  margin: 0;
  font-family: "Smiley Sans", "PingFang SC", sans-serif;
  font-size: calc(24px * var(--type-comp));
  line-height: 1.4;
  color: #000;
  font-style: italic;
}

.smiley-title span {
  color: var(--blue);
}

.result-copy {
  margin: 0;
  color: #000;
  font-family: "Smiley Sans", "PingFang SC", sans-serif;
  font-size: calc(30px * var(--type-comp));
  line-height: 1.4;
  font-style: italic;
}

.result-copy span {
  color: var(--blue);
}

.insights-collage {
  position: relative;
}

.insights-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.insights-card {
  position: absolute;
  width: 422px;
  height: 211px;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

.insights-card-left-top {
  left: 0;
  top: 33px;
  transform: rotate(-10deg) scaleY(-1);
}

.insights-card-left-bottom {
  left: 201px;
  top: 5px;
  transform: rotate(-5deg) scaleY(-1);
}

.insights-card-right-top {
  right: 0;
  top: 33px;
  transform: rotate(10deg);
}

.insights-card-right-bottom {
  right: 201px;
  top: 5px;
  transform: rotate(5deg);
}

.kc2d-story-wrap {
  width: 100%;
  background: #000;
  padding: 10px;
}

.kc2d-story-shell {
  width: min(100%, 1020px);
  margin: 0 auto;
  padding: 40px 40px 120px;
  background: #000;
  box-shadow: 0 4px 80px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 100px;
  justify-items: end;
}

.story-face {
  width: 72px;
  height: 72px;
}

.story-content {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 100px;
  align-items: start;
}

.story-copy h3 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 500;
}

.story-copy p {
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  line-height: 1.5;
  white-space: normal;
}

.story-copy p span {
  color: #fff;
}

.story-visual {
  width: 320px;
  height: 317px;
  border-radius: 12px;
}

@media (max-width: 1680px) {
  .kc2d-main .canvas-wrap {
    --focus-width: 1760;
    --canvas-shift: -80;
  }
}

@media (max-width: 1440px) {
  .kc2d-main .canvas-wrap {
    --focus-width: 1620;
    --canvas-shift: -150;
    --type-comp-max: 1.28;
  }
}

@media (max-width: 1280px) {
  .kc2d-main .canvas-wrap {
    --focus-width: 1540;
    --canvas-shift: -200;
    --type-comp-max: 1.34;
  }

  .case-topbar {
    top: 14px;
    left: 14px;
  }
}

@media (max-width: 1024px) {
  .kc2d-main .canvas-wrap {
    --focus-width: 1400;
    --canvas-shift: -320;
    --type-comp-max: 1.42;
  }

  .kc2d-story-shell {
    padding: 40px 28px 72px;
    gap: 48px;
  }

  .story-content {
    gap: 36px;
  }
}

@media (max-width: 820px) {
  .kc2d-main .canvas-wrap {
    --responsive-canvas-height: 10980;
    --type-comp-max: 1.68;
  }

  .kc2d-story-shell {
    width: calc(100% - 24px);
    gap: 24px;
    padding: 24px 16px 32px;
  }

  .story-face {
    width: 56px;
    height: 56px;
  }

  .story-content {
    grid-template-columns: 1fr;
  }

  .story-visual {
    width: 100%;
    height: auto;
    aspect-ratio: 320 / 317;
  }
}
