:root {
  --blue: #1966ff;
  --ink: #000000;
  --ink-soft: rgba(0, 0, 0, 0.8);
  --ink-muted: rgba(0, 0, 0, 0.6);
  --light-bg-start: #f0f3f6;
  --light-bg-end: #ffffff;
  --dark-bg: #0b0b0b;
  --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: #0b0b0b;
}

.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;
}

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

.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.5;
  --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: #ffffff;
}

.dark-wrap {
  background: var(--dark-bg);
}

.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));
  isolation: isolate;
}

.light-frame {
  background: linear-gradient(180deg, var(--light-bg-start) 0%, var(--light-bg-end) 18%);
  box-shadow: 0 -15px 50px rgba(0, 2, 57, 0.05);
}

.dark-frame {
  background: var(--dark-bg);
}

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

.radius-24 {
  border-radius: 24px;
}

.time-label {
  margin: 0;
  font-family: "Alibaba PuHuiTi", "PingFang SC", sans-serif;
  font-size: calc(18px * var(--type-comp));
  line-height: 1.4;
  font-weight: 700;
}

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

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

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

.sec-title.single {
  line-height: 1.2;
}

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

.blue-title {
  margin: 0;
  color: var(--blue);
  font-size: calc(24px * var(--type-comp));
  line-height: 1.4;
  font-weight: 600;
}

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

.body-20 {
  margin: 0;
  color: var(--ink-muted);
  font-size: calc(20px * var(--type-comp));
  line-height: 1.5;
}

.side-32 {
  margin: 0;
  color: var(--ink);
  font-family: "Alibaba PuHuiTi", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.muted {
  color: var(--ink-muted);
}

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

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

.bullet-row img {
  width: 8px;
  height: 28px;
}

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

.bullet-row p {
  margin: 0;
  font-family: "Alibaba PuHuiTi", "PingFang SC", sans-serif;
  font-size: calc(16px * var(--type-comp));
  line-height: 1.5;
  white-space: normal;
}

.white-card {
  background: #f6f6f6;
  border-radius: 24px;
  overflow: hidden;
}

.scheme-board {
  position: absolute;
  overflow: hidden;
}

.scheme-board img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-contain {
  object-fit: contain;
}

.scheme-dashed {
  position: absolute;
  border: 1px dashed #1966ff;
  border-radius: 30px;
  background: rgba(25, 102, 255, 0.04);
}

.scheme-dashed-main {
  left: 0;
  top: 32px;
  width: 982px;
  height: 86px;
}

.scheme-dashed-render {
  left: 1024px;
  top: 32px;
  width: 389px;
  height: 86px;
}

.scheme-focus {
  position: absolute;
  left: 194px;
  top: 172px;
  width: 788px;
  height: 266px;
  border: 2px solid #1966ff;
  border-radius: 30px;
  background: rgba(25, 102, 255, 0.04);
}

.scheme-caption {
  position: absolute;
  margin: 0;
  color: #1966ff;
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
}

.scheme-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 8px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 15px;
  background: #e0edff;
}

.scheme-chip.is-active {
  border: 2px solid #ff9f1a;
  background: #ffecd1;
}

.scheme-chip span {
  color: #000000;
  font-size: 16px;
  line-height: 22px;
  white-space: nowrap;
}

.scheme-focus-copy {
  position: absolute;
  left: 222px;
  top: 259px;
  width: 735px;
  display: grid;
  gap: 16px;
}

.scheme-focus-copy .title {
  margin: 0;
  color: #1966ff;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
}

.scheme-focus-copy .row {
  display: grid;
  grid-template-columns: 126px 592px;
  gap: 24px;
}

.scheme-focus-copy .label {
  margin: 0;
  color: #000000;
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
}

.scheme-focus-copy .desc {
  margin: 0;
  color: #000000;
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
}

.card-1 {
  padding: 32px 30px;
}

.card-1 ul,
.card-2 ul {
  margin: 0;
  padding-left: 24px;
  display: grid;
  gap: 8px;
}

.card-1 li,
.card-2 li {
  color: var(--ink-soft);
  font-family: "Alibaba PuHuiTi", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.card-1 strong,
.card-2 strong {
  font-weight: 700;
}

.card-accent {
  position: absolute;
  top: -174px;
  right: 0;
  width: 161px;
  height: 348px;
  object-fit: cover;
}

.card-2 {
  padding: 32px 30px;
}

.route-pair {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 251px);
  width: min(751px, 100%);
  margin: 16px 0;
}

.route-pair img {
  width: 100%;
  height: 331px;
  object-fit: cover;
}

.mini-step-label {
  margin: 0;
  color: #000000;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 400;
}

.mini-card,
.ai-card {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 28px;
  overflow: hidden;
  min-width: 0;
}

.mini-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(407px, calc(100% - 34px));
  margin: 15px 17px 0;
  padding: 8px;
  border-radius: 20px;
  background: #ffffff;
}

.mini-head span {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: #f1f1f2;
  color: rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 500;
}

.mini-head h3 {
  margin: 0;
  color: #000000;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
}

.mini-card p,
.ai-card p {
  margin: 18px 25px 0;
  color: rgba(0, 0, 0, 0.6);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.mini-img-1 {
  width: 409px;
  margin: 39px 0 0 17px;
}

.mini-img-2 {
  width: 407px;
  margin: 65px 0 0 17px;
}

.mini-img-3 {
  width: 424px;
  margin: 54px 0 0 10px;
}

.mini-head-small h3 {
  font-size: 16px;
  line-height: 1.5;
}

.ai-img {
  width: 440px;
  margin-top: 52px;
}

.ai-img-loading {
  width: 331px;
  margin: 92px 0 0 52px;
}

.render-stack {
  width: 170px;
  height: 141px;
}

.stack-card {
  position: absolute;
  overflow: hidden;
  border: 2px solid #ffffff;
  border-radius: 8px;
}

.stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stack-card.back {
  left: 45px;
  top: 0;
  width: 116px;
  height: 63.8px;
  transform: rotate(10deg);
}

.stack-card.front {
  left: 26px;
  top: 2px;
  width: 128px;
  height: 70.4px;
  transform: rotate(5deg);
}

.stack-generating {
  position: absolute;
  left: 9px;
  top: 0;
  width: 140px;
  height: 79px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  line-height: 18px;
  background:
    linear-gradient(165.066deg, rgba(255, 255, 255, 0) 20.673%, rgba(255, 255, 255, 0.2) 39.904%, rgba(255, 255, 255, 0) 58.207%),
    linear-gradient(90deg, #7b7b7b 0%, #7b7b7b 100%);
}

.stack-chip {
  position: absolute;
  left: 0;
  top: 95px;
  height: 46px;
  padding: 8px 12px;
  border-radius: 100px;
  border: 1px solid #00c2ff;
  backdrop-filter: blur(3px);
  background: rgba(3, 9, 17, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stack-chip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.stack-chip span {
  color: #ffffff;
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
}

.dark-eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-family: "Inter", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

.dark-headline {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 500;
}

.dark-headline .muted {
  color: rgba(255, 255, 255, 0.4);
}

.dark-problem {
  padding: 40px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.problem-title {
  margin: 0 0 24px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 500;
}

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

.problem-content {
  display: grid;
  grid-template-columns: 599px 603px;
  justify-content: space-between;
  align-items: start;
}

.problem-copy {
  display: grid;
  gap: 8px;
}

.problem-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
}

.problem-copy strong {
  color: #ffffff;
  font-weight: 500;
}

.problem-content img {
  width: 603px;
  height: 316px;
  border-radius: 20px;
}

.dark-topic {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 500;
  white-space: normal;
  width: 520px;
}

.dark-topic span {
  color: var(--blue);
}

.dark-topic-3 {
  width: 371px;
}

.dark-copy {
  display: grid;
  gap: 8px;
}

.dark-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
}

.dark-copy strong {
  color: #ffffff;
  font-weight: 500;
}

.cabinet-feature-footer {
  position: relative;
  height: 732px;
  background: #0b0b0b;
  overflow: hidden;
}

.cabinet-feature-footer-line {
  position: absolute;
  left: 50%;
  top: 60px;
  width: min(1144px, calc(100% - 48px));
  height: 1px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.12);
}

.cabinet-feature-footer-title {
  position: absolute;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: #ffffff;
  font-family: "Alibaba PuHuiTi", "PingFang SC", sans-serif;
  font-size: 24px;
  line-height: 1.375;
  font-weight: 500;
}

.cabinet-feature-footer-grid {
  position: absolute;
  left: 50%;
  top: 177px;
  width: min(1080px, calc(100% - 48px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cabinet-feature-footer-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.cabinet-feature-footer-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.cabinet-feature-footer-media {
  display: block;
  width: 320px;
  max-width: 100%;
  height: 241px;
  border-radius: 12px;
  overflow: hidden;
}

.cabinet-feature-footer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cabinet-feature-footer-name {
  color: rgba(255, 255, 255, 0.8);
  font-family: "Inter", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.cabinet-feature-footer-credit {
  position: absolute;
  left: 50%;
  top: 663px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-family: "Alibaba PuHuiTi", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.375;
  white-space: nowrap;
}

.dark-note {
  margin: 0;
  color: var(--blue);
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
}

.dark-bar {
  width: 11px;
  height: 205px;
  background: var(--blue);
}

.dark-right-stack {
  position: absolute;
  overflow: hidden;
}

.dark-right-stack .part {
  position: absolute;
  left: 0;
  width: 713px;
  object-fit: cover;
}

.dark-right-stack .part.top {
  top: 0;
  height: 761px;
}

.dark-right-stack .part.middle {
  top: 736px;
  height: 599px;
}

.dark-right-stack .part.bottom {
  top: 1393px;
  height: 661px;
}

.dark-right-stack .fade {
  position: absolute;
  left: 0;
  width: 713px;
  height: 97px;
  pointer-events: none;
}

.dark-right-stack .fade.down {
  top: 1238px;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0) 0%, #0b0b0b 100%);
}

.dark-right-stack .fade.up {
  top: 1393px;
  background: linear-gradient(0deg, rgba(11, 11, 11, 0) 0%, #0b0b0b 100%);
}

.body-16,
.body-20,
.side-32,
.card-1 li,
.card-2 li,
.mini-card p,
.ai-card p,
.problem-copy p,
.dark-copy p,
.dark-headline,
.dark-note {
  white-space: normal;
}

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

@media (max-width: 1440px) {
  .cabinet-main .canvas-wrap {
    --focus-width: 1600;
    --canvas-shift: -120;
    --type-comp-max: 1.28;
  }
}

@media (max-width: 1280px) {
  .cabinet-main .canvas-wrap {
    --focus-width: 1520;
    --canvas-shift: -160;
    --type-comp-max: 1.45;
  }

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

  .case-back-home {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .cabinet-feature-footer {
    height: auto;
    padding: 52px 20px 56px;
  }

  .cabinet-feature-footer-line,
  .cabinet-feature-footer-title,
  .cabinet-feature-footer-grid,
  .cabinet-feature-footer-credit {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    width: auto;
  }

  .cabinet-feature-footer-line {
    width: min(1144px, 100%);
    margin: 0 auto 20px;
  }

  .cabinet-feature-footer-title {
    text-align: center;
    margin-bottom: 24px;
  }

  .cabinet-feature-footer-grid {
    width: min(1080px, 100%);
    margin: 0 auto;
  }

  .cabinet-feature-footer-credit {
    text-align: center;
    margin-top: 56px;
  }
}

@media (max-width: 1024px) {
  .cabinet-main .canvas-wrap {
    --focus-width: 1360;
    --canvas-shift: -280;
    --type-comp-max: 1.62;
  }
}

@media (max-width: 768px) {
  .cabinet-main .canvas-wrap {
    --type-comp-max: 1.82;
  }

  .cabinet-feature-footer-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .cabinet-main .canvas-wrap {
    --type-comp-max: 1.9;
    --viewport-gutter: 6px;
  }
}
