/* ============================================================
   features.css — sticky 分屏：左拼贴视差面板 / 右 sticky 文案
   ============================================================ */

.features { padding: 20px 0 120px; background: var(--white); }

.features__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

/* ---------- 左列：深色渐变面板 + 拼贴 ---------- */
.features__panel {
  position: relative;
  min-height: 2250px;
  border-radius: var(--radius-card);
  background: linear-gradient(165deg, #12333d 0%, #071e26 45%, var(--ink-green) 100%);
  overflow: clip;
}
.features__panel-bg {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  opacity: .8;
  pointer-events: none;
}
/* 拼贴：sticky 视口，三卡从中部依次向上飞入（带 rotate/scale，卡2 终态为主体） */
.features__collage {
  position: sticky;
  top: 88px;
  height: calc(100vh - 88px);
  min-height: 640px;
}
.features__card {
  position: absolute;
  left: 50%;
  translate: -50%;
  width: 58%;
  height: auto;
  border-radius: 14px;
}
.features__card--1 { top: 2%; }
.features__card--2 { top: 26%; width: 78%; z-index: 2; }
.features__card--3 { top: 78%; width: 62%; }

/* 分割处描线箭头：挂在右列 sticky 内、向左伸出跨过分割线（随视口停留） */
.features__arrow {
  position: absolute;
  left: -158px;
  top: 320px;
  width: 176px;
  z-index: 3;
  overflow: visible;
  pointer-events: none;
}
.features__arrow .doodle-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: doodle-draw 3.2s ease-in-out infinite;
}
.features__arrow .doodle-head {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: doodle-head 3.2s ease-in-out infinite;
}
.motion-off .features__arrow .doodle-line,
.motion-off .features__arrow .doodle-head {
  animation: none;
  stroke-dashoffset: 0;
  opacity: 1;
}

/* ---------- 右列：sticky 文案 ---------- */
.features__copy { position: relative; height: 100%; }
.features__sticky {
  position: sticky;
  top: 140px;
  display: grid;
  justify-items: start;
  gap: 26px;
  padding-top: 60px;
}
.features__copy { position: relative; }
.features__sticky h2 { max-width: 15ch; }
.features__sticky p { max-width: 46ch; font-size: var(--body-lg); }
.features__sticky .arrow-list { margin-top: 6px; }
.features__sticky .btn { margin-top: 10px; }

@media (max-width: 1199px) {
  .features__panel { min-height: 1600px; }
  .features__collage { top: 76px; height: calc(100vh - 76px); }
  .features__arrow { display: none; }
}
@media (max-width: 809px) {
  .features__grid { grid-template-columns: 1fr; }
  .features__copy { order: -1; }
  .features__sticky { position: static; padding-top: 0; }
  .features__panel { min-height: 0; padding: 44px 0 56px; }
  .features__collage { position: static; height: auto; min-height: 0; display: grid; justify-items: center; gap: 36px; }
  .features__card { position: static; translate: none; width: 74%; }
  .features__card--2 { width: 84%; }
}
