@charset "UTF-8";
main {
  padding-top: 125px;
}

/* ========== 基础 ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

:root {
  --bg: #fdf8ef;
  --bg-2: #fdf1de;
  --surface: #ffffff;
  --ink: #241a0e;
  --ink-2: #4a3c2c;
  --muted: #7d6b55;
  --faint: #a89680;
  --line: #f0e3cd;
  --line-2: #e3d2b6;
  --accent: #f5a623;
  --accent-deep: #a8680a;
  --accent-2: #ffc247;
  --accent-soft: #fdf0d8;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

body {
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  border: 0;
}

ul {
  list-style: none;
}

h1, h2, h3 {
  line-height: 1.25;
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 22px;
}

section[id] {
  scroll-margin-top: 76px;
}

/* ========== 按钮 ========== */
.p338-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.p338-btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.p338-btn-lg {
  padding: 15px 30px;
  font-size: 16px;
  border-radius: 12px;
}

.p338-btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.38);
}

.p338-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(245, 166, 35, 0.48);
}

/* 悬停时一道高光从左扫到右 */
.p338-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, 0.5) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
}

.p338-btn:hover::after {
  transform: translateX(130%);
}

.p338-btn-line {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-2);
}

.p338-btn-line:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: 0 10px 22px rgba(22, 24, 29, 0.08);
}

.p338-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ========== 首屏 ========== */
.hero {
  position: relative;
  padding: 44px 0 44px;
  overflow: hidden;
}

/* 背景光斑：两团，缓慢漂移 */
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(6px);
}

.blob-a {
  width: 520px;
  height: 520px;
  top: -260px;
  left: -120px;
  background: radial-gradient(circle, rgba(255, 176, 32, 0.26), rgba(255, 176, 32, 0) 68%);
  animation: drift 18s ease-in-out infinite;
}

.blob-b {
  width: 620px;
  height: 620px;
  top: -300px;
  right: -180px;
  background: radial-gradient(circle, rgba(255, 198, 120, 0.3), rgba(255, 198, 120, 0) 68%);
  animation: drift 22s ease-in-out infinite reverse;
}

@keyframes drift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(26px, 30px) scale(1.07);
  }
}
/* 大尺寸轨道环：三道同心细弧，缓慢自转 */
.orbits {
  position: absolute;
  left: 50%;
  top: -140px;
  transform: translateX(-50%);
  width: 880px;
  height: 880px;
  pointer-events: none;
}

/* 每道环由两段亮弧组成，旋转时能清楚看到弧在走 */
.orbits i {
  position: absolute;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(245, 166, 35, 0) 0deg, rgba(245, 166, 35, 0.95) 36deg, rgba(245, 166, 35, 0) 78deg, rgba(245, 166, 35, 0) 180deg, rgba(255, 205, 110, 0) 198deg, rgba(255, 205, 110, 0.9) 234deg, rgba(255, 205, 110, 0) 276deg, rgba(255, 205, 110, 0) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  animation: spinSlow 18s linear infinite;
}

.orbits i:nth-child(1) {
  inset: 0;
}

.orbits i:nth-child(2) {
  inset: 118px;
  animation-duration: 13s;
  animation-direction: reverse;
}

.orbits i:nth-child(3) {
  inset: 236px;
  animation-duration: 22s;
}

/* 沿着轨道跑的光点，进一步强化「在转」的观感 */
.oring-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 16px 3px rgba(245, 166, 35, 0.85);
  animation: orbitItem 9s linear infinite;
}

.od1 {
  --r: 440px;
}

.od2 {
  --r: 322px;
  animation-duration: 13s;
  animation-direction: reverse;
  background: #fff3d6;
}

.od3 {
  --r: 204px;
  animation-duration: 7s;
}

@keyframes orbitItem {
  from {
    transform: rotate(0deg) translateX(var(--r));
  }
  to {
    transform: rotate(360deg) translateX(var(--r));
  }
}
@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}
/* 十字准星点缀 */
.plus {
  position: absolute;
  width: 13px;
  height: 13px;
  pointer-events: none;
  opacity: 0.7;
}

.plus::before, .plus::after {
  content: "";
  position: absolute;
  background: var(--line-2);
}

.plus::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
}

.plus::after {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%);
}

.p1 {
  left: 11%;
  top: 27%;
}

.p2 {
  right: 13%;
  top: 21%;
}

.p3 {
  left: 18%;
  bottom: 24%;
}

.p4 {
  right: 17%;
  bottom: 30%;
}

/* 背景漂浮的积木块（放大尺寸，做背景层次） */
.floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floaters i {
  position: absolute;
  height: 46px;
  border-radius: 12px;
  opacity: 0.42;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line-2);
  box-shadow: 0 16px 36px rgba(120, 100, 70, 0.12);
  animation: floatUp 13s ease-in-out infinite;
}

.floaters i::before {
  content: "";
  position: absolute;
  left: 20px;
  top: -7px;
  width: 26px;
  height: 8px;
  border-radius: 4px 4px 0 0;
  background: inherit;
  border: 1px solid var(--line-2);
  border-bottom: 0;
}

.fl1 {
  left: 2%;
  top: 20%;
  width: 116px;
  animation-duration: 13s;
}

.fl2 {
  left: 5%;
  top: 66%;
  width: 92px;
  animation-duration: 16s;
  animation-delay: -5s;
}

.fl3 {
  right: 3%;
  top: 15%;
  width: 104px;
  animation-duration: 14s;
  animation-delay: -8s;
}

.fl4 {
  right: 6%;
  top: 60%;
  width: 132px;
  animation-duration: 18s;
  animation-delay: -3s;
}

@keyframes floatUp {
  0%, 100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-18px) rotate(3deg);
  }
}
.hero-copy {
  position: relative;
  z-index: 4;
  text-align: center;
}

/* 产品名称标识 */
.hero-brand {
  display: inline-block;
  padding: 9px 24px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: 0 8px 18px rgba(160, 120, 60, 0.1);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.5px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--accent) !important;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgb(245, 166, 35);
}

.hero h1 {
  margin-top: 20px;
  font-size: 36px;
  letter-spacing: -1px;
}

.hero h1 em {
  position: relative;
  font-style: normal;
  color: var(--accent);
  z-index: 0;
}

@keyframes markIn {
  to {
    transform: scaleX(1);
  }
}
.lede {
  margin: 16px auto 0;
  max-width: 560px;
  font-size: 15.5px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

.hero-actions .p338-btn {
  flex: 1 1 auto;
  min-width: 160px;
  max-width: 240px;
}

/* 首屏元素依次淡入 */
.rise {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

.rise.d1 {
  animation-delay: 0.05s;
}

.rise.d2 {
  animation-delay: 0.15s;
}

.rise.d3 {
  animation-delay: 0.25s;
}

.rise.d4 {
  animation-delay: 0.35s;
}

.rise.d5 {
  animation-delay: 0.45s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}
/* ========== 编辑器示意 ========== */
.hero-visual {
  position: relative;
  z-index: 2;
  margin-top: 38px;
}

.hero-banner {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line-2);
}

.sec {
  padding: 62px 0;
}

.sec-head {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.sec-head h2 {
  margin-top: 14px;
  font-size: 27px;
  letter-spacing: -0.4px;
}

.sec-head p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}

.flow {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 34px;
}

.step {
  position: relative;
  padding: 0 0 26px 46px;
  border-left: 1px solid var(--line-2);
}

.step:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.step .num {
  position: absolute;
  left: -1px;
  top: 0;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  border: 1px solid var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent-deep);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.step h3 {
  font-size: 17px;
  padding-top: 2px;
}

.step p {
  margin-top: 7px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ========== 编号特性行 ========== */
.frow {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0 16px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.3s, background 0.3s;
}

.frow:last-child {
  border-bottom: 1px solid var(--line);
}

.frow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
}

/* 图标块：四行四色 */
.frow-ic {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.3s;
}

.frow-ic svg {
  width: 21px;
  height: 21px;
}

.ic1 {
  color: #d98200;
  background: linear-gradient(160deg, #fff6e6, #ffe8c4);
}

.ic2 {
  color: #2f7fe8;
  background: linear-gradient(160deg, #edf4ff, #d4e5ff);
}

.ic3 {
  color: #7a4fe0;
  background: linear-gradient(160deg, #f4efff, #e3d7ff);
}

.ic4 {
  color: #3aa847;
  background: linear-gradient(160deg, #ecf9ee, #d2f0d8);
}

.frow-body {
  min-width: 0;
}

.frow-num {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 2px;
  color: var(--accent-deep);
}

.frow h3 {
  font-size: 19px;
  margin-top: 5px;
}

.frow p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 620px;
}

/* ========== 学 Scratch 的好处 ========== */
.bene-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 34px;
}

.bene {
  padding: 20px 20px 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.26s, border-color 0.26s;
}

.bene:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(120, 90, 40, 0.12);
  border-color: var(--line-2);
}

.bene-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* 圆形图标底，与「能力」那节的方形图标块区分开 */
.bene-ic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid rgba(245, 166, 35, 0.26);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), background 0.3s, color 0.3s, border-color 0.3s;
}

.bene-ic svg {
  width: 21px;
  height: 21px;
}

.bene:hover .bene-ic {
  transform: scale(1.08) rotate(-6deg);
  background: var(--accent);
  color: #3d2408;
  border-color: var(--accent);
}

.bene-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-deep);
  opacity: 0.55;
}

.bene h3 {
  margin-top: 12px;
  font-size: 17.5px;
}

.bene p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ========== 作品效果 ========== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.work {
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.26s;
}

.work:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(90, 70, 45, 0.1);
}

.work-shot {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #fff5ec, #fff0d8);
}

.work-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(245, 166, 35, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 166, 35, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}

.work-shot img {
  position: relative;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.work figcaption {
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
}

.works-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--faint);
}

.works-note::before {
  content: "!";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid rgba(245, 166, 35, 0.22);
}

.works-note strong {
  color: var(--muted);
  font-weight: 600;
}

/* 交替底色 */
.altbg {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ========== CTA ========== */
.cta {
  position: relative;
  text-align: center;
  padding: 70px 0 78px;
}

.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -300px;
  transform: translateX(-50%);
  width: 780px;
  height: 480px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 176, 32, 0.22), rgba(255, 176, 32, 0) 70%);
}

.cta h2 {
  position: relative;
  font-size: 28px;
  letter-spacing: -0.5px;
}

.cta p {
  position: relative;
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}

.cta .p338-btn {
  position: relative;
  margin-top: 26px;
}

/* ========== 提示 ========== */
.toast {
  position: fixed;
  left: 50%;
  top: 44%;
  z-index: 100;
  transform: translateX(-50%);
  max-width: 82%;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(22, 24, 29, 0.92);
  color: #fff;
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
}

.wx-guide {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(22, 24, 29, 0.9);
  color: #fff;
  text-align: right;
  padding: 18px 24px;
}

.wx-guide .arrow {
  font-size: 42px;
  line-height: 1;
  color: var(--accent-2);
}

.wx-guide p {
  margin-top: 60px;
  font-size: 17px;
  line-height: 1.9;
  text-align: center;
}

[hidden] {
  display: none !important;
}

/* ========== 响应式 ========== */
@media (min-width: 640px) {
  .hero {
    padding: 62px 0;
  }
  .hero h1 {
    font-size: 50px;
  }
  .lede {
    font-size: 17px;
  }
  .sec-head h2 {
    font-size: 32px;
  }
  .cta h2 {
    font-size: 34px;
  }
  .bene-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 900px) {
  .bar-nav {
    display: block;
  }
  .hero {
    padding: 80px 0;
  }
  .hero h1 {
    font-size: 62px;
    letter-spacing: -1.8px;
  }
  .hero-visual {
    margin-top: 50px;
  }
  .sec {
    padding: 86px 0;
  }
  .flow-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .step {
    padding: 26px 30px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-2);
  }
  .step:last-child {
    padding-bottom: 0;
  }
  .step .num {
    left: 0;
    top: 0;
    transform: translateY(-50%);
  }
  .frow {
    padding: 34px 0;
    gap: 0 24px;
  }
}
/* ========== 尊重「减少动效」 ========== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .blob-a, .blob-b, .floaters i, .orbits i, .oring-dot,
  .rise {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .p338-btn:hover, .p338-btn-line:hover {
    transform: none;
  }
  .p338-btn::after {
    display: none;
  }
}
/* 二维码下载悬浮层 */
.p338-qrcode-btn {
  position: relative;
  z-index: 30;
  overflow: visible;
}
.p338-qrcode-btn .qrcode-box {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 20;
  display: flex;
  width: 152px;
  padding: 12px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(90, 70, 45, 0.16);
  cursor: default;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.p338-qrcode-btn .qrcode-box::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 0;
  left: 0;
  height: 10px;
}
.p338-qrcode-btn .qrcode-box .qrcode {
  width: 128px;
  height: 128px;
  background: #fff;
}
.p338-qrcode-btn .qrcode-box em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
  white-space: nowrap;
}
.p338-qrcode-btn:hover .qrcode-box, .p338-qrcode-btn:focus-visible .qrcode-box {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.cta .p338-qrcode-btn .qrcode-box {
  top: auto;
  bottom: calc(100% + 10px);
  transform: translate(-50%, 4px);
}
.cta .p338-qrcode-btn:hover .qrcode-box, .cta .p338-qrcode-btn:focus-visible .qrcode-box {
  transform: translate(-50%, 0);
}/*# sourceMappingURL=style.css.map */