.home-page {
  overflow: hidden;
  background: var(--surface-0)
}

.home-wrap {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto
}

.home-page * {
  box-sizing: border-box
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page p {
  margin-top: 0
}

.home-page h1,
.home-page h2,
.home-page h3 {
  color: var(--ink-900);
  letter-spacing: -.035em
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--brand-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em
}

.eyebrow>span {
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-coral) 0 35%, var(--brand-gold) 35% 68%, var(--brand-teal) 68%)
}

.home-hero {
  position: relative;
  background: linear-gradient(130deg, #f3f8ff 0%, #fff 47%, #fff5f1 100%)
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: 30px;
  min-height: 680px;
  padding: 76px 0 66px
}

.hero-copy {
  position: relative;
  z-index: 2
}

.hero-copy h1 {
  max-width: 720px;
  margin: 16px 0 24px;
  font-size: clamp(44px, 5.25vw, 76px);
  font-weight: 850;
  line-height: 1.08
}

.hero-copy h1 em {
  color: var(--brand-500);
  font-style: normal
}

.hero-lead {
  max-width: 610px;
  color: var(--ink-500);
  font-size: 18px;
  line-height: 1.85
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px
}

.home-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s
}

.home-page .btn:hover {
  transform: translateY(-2px)
}

.home-page .btn-primary {
  color: #fff;
  background: var(--brand-coral);
  box-shadow: 0 10px 24px rgba(195, 68, 62, .2)
}

.home-page .btn-primary:hover {
  color: #fff;
  background: #a9322d
}

.home-page .btn-outline {
  color: var(--brand-600);
  border-color: #b9cbe0;
  background: #fff
}

.home-page .btn-outline:hover {
  color: var(--brand-700);
  box-shadow: 0 10px 24px rgba(23, 50, 77, .1)
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 38px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid #dce6f0;
  list-style: none
}

.hero-proof li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-500);
  font-size: 13px
}

.hero-proof b {
  color: var(--brand-coral);
  font-size: 11px
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center
}

.hero-ink {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px)
}

.ink-blue {
  width: 410px;
  height: 410px;
  background: #dbeafd
}

.ink-coral {
  width: 120px;
  height: 120px;
  top: 30px;
  right: 10px;
  background: #ffd7ce
}

.ink-gold {
  width: 65px;
  height: 65px;
  bottom: 50px;
  left: 15px;
  background: #ffe29a
}

.hero-machine-card {
  position: relative;
  z-index: 2;
  width: min(455px, 88%);
  padding: 20px 20px 12px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 28px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 28px 70px rgba(23, 50, 77, .16);
  transform: rotate(2deg);
  backdrop-filter: blur(10px)
}

.hero-machine-card img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 20px rgba(23, 50, 77, .15))
}

.hero-card-label,
.hero-card-result {
  display: block;
  color: var(--ink-900);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em
}

.hero-card-result {
  text-align: right
}

.hero-sticker {
  position: absolute;
  z-index: 3;
  padding: 10px 15px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 50, 77, .13);
  color: var(--ink-900);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em
}

.sticker-one {
  top: 13%;
  left: -1%;
  transform: rotate(-8deg)
}

.sticker-two {
  right: -2%;
  bottom: 14%;
  background: var(--brand-gold);
  transform: rotate(7deg)
}

.home-section {
  padding: 100px 0
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 38px
}

.home-section h2 {
  margin: 10px 0 14px;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 820;
  line-height: 1.2
}

.section-intro {
  max-width: 680px;
  color: var(--ink-500);
  font-size: 17px;
  line-height: 1.8
}

.section-note {
  color: var(--ink-400);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em
}

.text-link {
  color: var(--brand-600);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none
}

.text-link:hover {
  color: var(--brand-coral);
  text-decoration: underline
}

.play-section {
  background: #fff
}

.play-lab {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  min-height: 590px;
  overflow: hidden;
  border: 1px solid #dce6f0;
  border-radius: 28px;
  background: #f9fbfd;
  box-shadow: 0 22px 55px rgba(23, 50, 77, .09)
}

.play-controls {
  padding: 40px;
  background: #fff
}

.play-step {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid #e4eaf0
}

.play-step-no {
  color: var(--brand-coral);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em
}

.play-step h3,
.play-result-copy h3 {
  margin: 7px 0 14px;
  font-size: 21px
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px
}

.choice-btn {
  min-height: 72px;
  padding: 9px;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  background: #fff;
  color: var(--ink-500);
  font: 600 13px var(--font-sans);
  cursor: pointer
}

.choice-btn span {
  display: block;
  margin-bottom: 3px;
  color: var(--brand-500);
  font-size: 22px
}

.choice-btn:hover,
.choice-btn.is-active {
  border-color: var(--brand-500);
  background: #edf4fd;
  color: var(--ink-900)
}

.art-row {
  display: flex;
  gap: 10px
}

.art-btn {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font: 800 18px var(--font-sans);
  cursor: pointer;
  box-shadow: inset 0 0 0 3px transparent
}

.art-btn:hover,
.art-btn.is-active {
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--brand-500);
  transform: rotate(-5deg)
}

.art-spark {
  background: var(--brand-coral)
}

.art-smile {
  background: var(--brand-gold);
  color: #624500
}

.art-wave {
  background: var(--brand-teal)
}

.art-letter {
  background: var(--brand-500);
  font-size: 13px
}

.play-result-copy p {
  color: var(--ink-500);
  line-height: 1.7
}

.play-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(140deg, #dceafb, #f6f9fd 56%, #ffe7df)
}

.play-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(35, 86, 168, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(35, 86, 168, .06) 1px, transparent 1px);
  background-size: 30px 30px
}

.preview-shadow {
  position: absolute;
  width: 310px;
  height: 55px;
  bottom: 16%;
  border-radius: 50%;
  background: rgba(23, 50, 77, .18);
  filter: blur(16px)
}

.preview-object {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: inset 0 0 0 8px #edf1f4, 0 28px 48px rgba(23, 50, 77, .2);
  transition: all .35s cubic-bezier(.2, .8, .2, 1)
}

.object-phone {
  width: 230px;
  height: 390px;
  border-radius: 38px;
  transform: rotate(7deg)
}

.object-shirt {
  width: 330px;
  height: 300px;
  border-radius: 45% 45% 18% 18%;
  clip-path: polygon(20% 0, 38% 10%, 62% 10%, 80% 0, 100% 25%, 82% 40%, 75% 28%, 78% 100%, 22% 100%, 25% 28%, 18% 40%, 0 25%);
  transform: rotate(-3deg)
}

.object-golf {
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background-color: #fff;
  background-image: radial-gradient(circle at center, #d8dde2 0 3px, transparent 4px);
  background-size: 24px 24px;
  transform: rotate(2deg)
}

.preview-camera {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 47px;
  height: 47px;
  border-radius: 15px;
  background: #17324d
}

.object-shirt .preview-camera,
.object-golf .preview-camera {
  display: none
}

.preview-art {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--brand-coral);
  color: #fff;
  font-size: 54px;
  font-weight: 850;
  box-shadow: 0 14px 28px rgba(195, 68, 62, .22);
  transition: all .25s
}

.preview-art.art-smile {
  background: var(--brand-gold);
  color: #624500
}

.preview-art.art-wave {
  background: var(--brand-teal)
}

.preview-art.art-letter {
  background: var(--brand-500);
  font-size: 32px
}

.stage-caption {
  position: absolute;
  right: 24px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-end
}

.stage-caption span {
  color: var(--ink-500);
  font-size: 10px;
  letter-spacing: .12em
}

.stage-caption b {
  color: var(--ink-900);
  font-size: 13px
}

.path-section {
  background: #f5f8fc
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.path-card {
  position: relative;
  min-height: 320px;
  padding: 30px;
  border: 1px solid #dbe5ef;
  border-radius: 22px;
  background: #fff;
  color: var(--ink-900);
  text-decoration: none;
  transition: transform .22s, box-shadow .22s
}

.path-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(23, 50, 77, .12);
  color: var(--ink-900)
}

.path-index {
  position: absolute;
  top: 25px;
  right: 27px;
  color: #a3b0bd;
  font-size: 12px;
  font-weight: 850
}

.path-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 38px;
  border-radius: 18px;
  background: #e7f0fb;
  color: var(--brand-600);
  font-size: 25px;
  font-weight: 850
}

.path-maker .path-icon {
  background: #fff0eb;
  color: var(--brand-coral)
}

.path-dev .path-icon {
  background: #e6f5f1;
  color: var(--brand-teal);
  font-size: 17px
}

.path-card h3 {
  font-size: 23px
}

.path-card p {
  min-height: 72px;
  color: var(--ink-500);
  line-height: 1.75
}

.path-card>span:last-child {
  color: var(--brand-600);
  font-size: 14px;
  font-weight: 750
}

.journey-section {
  background: #fff
}

.journey-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: center
}

.journey-steps {
  margin: 0;
  padding: 0;
  list-style: none
}

.journey-steps li {
  display: flex;
  gap: 25px;
  padding: 24px 0;
  border-bottom: 1px solid #dce5ef
}

.journey-steps li>span {
  color: var(--brand-coral);
  font-size: 18px;
  font-weight: 850
}

.journey-steps strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-900);
  font-size: 20px
}

.journey-steps p {
  margin-bottom: 0;
  color: var(--ink-500);
  font-size: 15px;
  line-height: 1.7
}

.developer-section {
  background: #eef4fb
}

.developer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center
}

.dev-panel {
  overflow: hidden;
  border-radius: 22px;
  background: var(--ink-900);
  color: #e8f2ff;
  box-shadow: 0 25px 55px rgba(23, 50, 77, .24)
}

.dev-panel-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 18px 23px;
  border-bottom: 1px solid rgba(255, 255, 255, .13)
}

.dev-panel-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-coral)
}

.dev-panel-top span:nth-child(2) {
  background: var(--brand-gold)
}

.dev-panel-top span:nth-child(3) {
  background: #60b9a8
}

.dev-panel-top b {
  margin-left: auto;
  color: #a9bed5;
  font-size: 12px;
  font-weight: 500
}

.dev-code {
  padding: 18px 28px
}

.dev-code p {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 13px;
  align-items: center;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.dev-code i {
  color: #6dd0bc;
  font-style: normal;
  font-weight: 800
}

.dev-code code {
  color: #fff;
  font-family: var(--font-mono)
}

.dev-code b {
  color: #8bd5c7;
  font-size: 11px
}

.dev-panel-links {
  display: flex;
  gap: 24px;
  padding: 4px 28px 28px
}

.dev-panel a {
  color: #fff;
  font-weight: 750;
  text-decoration: none
}

.dev-panel a:hover {
  text-decoration: underline
}

.home-contact {
  background: var(--brand-500);
  color: #fff
}

.contact-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px
}

.home-contact h2 {
  color: #fff
}

.home-contact p {
  color: #dbeaff
}

.home-contact .eyebrow {
  color: #dbeaff
}

.home-contact .eyebrow>span {
  background: linear-gradient(90deg, #fff 0 35%, var(--brand-gold) 35% 68%, #7be0cb 68%)
}

.home-page .btn-light {
  flex: none;
  background: #fff;
  color: var(--brand-600)
}

@media(max-width:960px) {

  .hero-grid,
  .journey-grid,
  .developer-grid {
    grid-template-columns: 1fr;
    gap: 40px
  }

  .hero-grid {
    padding: 54px 0
  }

  .hero-visual {
    min-height: 450px
  }

  .play-lab {
    grid-template-columns: 1fr
  }

  .play-stage {
    min-height: 520px
  }

  .path-grid {
    grid-template-columns: 1fr 1fr
  }

  .path-card:last-child {
    grid-column: 1/-1
  }

  .home-section {
    padding: 76px 0
  }
}

@media(max-width:650px) {
  .home-wrap {
    width: min(100% - 32px, var(--container))
  }

  .hero-grid {
    gap: 10px;
    padding: 40px 0 50px
  }

  .hero-copy h1 {
    font-size: 42px
  }

  .hero-lead {
    font-size: 16px
  }

  .hero-proof {
    display: grid
  }

  .hero-visual {
    min-height: 360px
  }

  .ink-blue {
    width: 310px;
    height: 310px
  }

  .hero-machine-card {
    width: 82%
  }

  .hero-sticker {
    font-size: 9px
  }

  .home-section {
    padding: 62px 0
  }

  .section-heading-row,
  .contact-inner {
    display: block
  }

  .section-note {
    display: block;
    margin-top: 10px
  }

  .play-controls {
    padding: 24px 18px
  }

  .choice-row {
    grid-template-columns: 1fr
  }

  .choice-btn {
    min-height: 58px;
    text-align: left;
    padding-left: 18px
  }

  .choice-btn span {
    display: inline;
    margin-right: 9px
  }

  .play-stage {
    min-height: 400px
  }

  .preview-shadow {
    width: 230px
  }

  .object-phone {
    width: 170px;
    height: 290px
  }

  .object-shirt {
    width: 260px;
    height: 235px
  }

  .object-golf {
    width: 220px;
    height: 220px
  }

  .preview-art {
    width: 88px;
    height: 88px;
    font-size: 42px
  }

  .path-grid {
    grid-template-columns: 1fr
  }

  .path-card:last-child {
    grid-column: auto
  }

  .path-card {
    min-height: 270px
  }

  .path-card p {
    min-height: auto
  }

  .journey-grid {
    gap: 24px
  }

  .developer-grid {
    gap: 28px
  }

  .dev-code {
    padding: 14px 18px
  }

  .dev-code p {
    grid-template-columns: 25px 1fr
  }

  .dev-code b {
    display: none
  }

  .contact-inner .btn {
    margin-top: 20px
  }
}

@media(prefers-reduced-motion:reduce) {

  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important
  }
}

/* 本地图片预览：文件只通过 FileReader 留在当前浏览器。 */
.play-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap
}

.upload-row {
  margin-bottom: 14px
}

.upload-trigger {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px dashed #9db7d3;
  border-radius: 13px;
  background: #f5f9fe;
  cursor: pointer;
  transition: border-color .2s, background .2s
}

.upload-trigger:hover {
  border-color: var(--brand-500);
  background: #edf4fd
}

.upload-trigger>span {
  grid-row: 1/3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-500);
  color: #fff;
  font-size: 25px
}

.upload-trigger b {
  color: var(--ink-900);
  font-size: 14px
}

.upload-trigger small {
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.45
}

.upload-reset {
  margin-top: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-600);
  font: 700 12px var(--font-sans);
  cursor: pointer
}

.upload-status {
  min-height: 18px;
  margin: 6px 0 0;
  color: var(--brand-teal);
  font-size: 11px
}

.upload-status.is-error {
  color: var(--brand-coral)
}

.preview-art {
  overflow: hidden
}

.preview-art img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.preview-art.is-uploaded {
  width: 150px;
  height: 150px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(23, 50, 77, .24)
}

.preview-art.is-uploaded .preview-mark {
  display: none
}

.preview-art.is-uploaded img {
  display: block
}

.object-golf .preview-art.is-uploaded {
  width: 120px;
  height: 120px;
  border-radius: 50%
}

.object-shirt .preview-art.is-uploaded {
  width: 145px;
  height: 145px;
  border-radius: 18px
}

/* 用成品照片讲用户能创造什么。 */
.scene-section {
  background: #fff8f5
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 245px;
  gap: 14px
}

.scene-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--ink-900);
  color: #fff;
  text-decoration: none
}

.scene-card.scene-wide {
  grid-column: span 2
}

.scene-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s
}

.scene-card::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(11, 31, 50, .82))
}

.scene-card span {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.scene-card small {
  color: #cfe1f5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em
}

.scene-card b {
  color: #fff;
  font-size: 17px;
  line-height: 1.35
}

.scene-card:hover {
  color: #fff
}

.scene-card:hover img {
  transform: scale(1.05)
}

@media(max-width:960px) {
  .scene-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:650px) {
  .scene-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px
  }

  .scene-card.scene-wide {
    grid-column: auto
  }

  .preview-art.is-uploaded,
  .object-shirt .preview-art.is-uploaded {
    width: 112px;
    height: 112px
  }
}
