/* 对齐产品功能页首屏；动效仅作用于插画，不引入页面状态。 */
.demo-hero {
  --demo-hero-line: #e4e1e6;
  --demo-hero-ease: cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
  border-bottom: 1px solid #e5e9ec;
  background: #fff;
}
.demo-hero__inner {
  display: grid;
  min-height: 600px;
  padding-block: 60px;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: center;
  gap: 48px;
}
.demo-hero__main {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: center;
  gap: 0;
}
.demo-hero__copy { position: relative; z-index: 1; min-width: 0; }
.demo-hero .demo-eyebrow {
  margin: 0 0 18px;
  color: #d34c47;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .045em;
}
.demo-hero h1 {
  margin: 0;
  color: #171419;
  font-size: clamp(38px, 3.55vw, 50px);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.demo-hero h1 strong { color: var(--demo-accent); font-weight: inherit; }
.demo-hero__description {
  max-width: 500px;
  margin: 24px 0 28px;
  color: #55505a;
  font-size: 15px;
  line-height: 1.9;
}
.demo-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #fff;
  background: #d94d47;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
.demo-button .demo-icon { width: 17px; height: 17px; transition: transform 220ms var(--demo-hero-ease); }
.demo-button:active { background: #b93a35; }
.demo-hero__visual {
  display: flex;
  width: 100%;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  transform: translateX(25px);
}
.demo-hero__art {
  display: block;
  width: 120%;
  max-width: none;
  height: auto;
  transform-origin: 48% 62%;
  filter: saturate(1.06) contrast(1.025);
  transition: transform 600ms var(--demo-hero-ease), filter 260ms ease;
}
.demo-route {
  position: relative;
  min-width: 0;
  padding-left: 42px;
  border-left: 1px solid #4a3e4f33;
}
.demo-route::before {
  position: absolute;
  top: 8px;
  left: -2px;
  width: 2px;
  height: 66px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6c66, #ff6c6600);
  content: '';
}
.demo-route__heading { padding-bottom: 24px; border-bottom: 1px solid var(--demo-hero-line); }
.demo-route__heading > p { margin: 0 0 12px; color: #77717d; font-size: 11px; font-weight: 800; line-height: 1.2; letter-spacing: .04em; }
.demo-route h2 { margin: 0; color: #242027; font-size: 28px; font-weight: 850; line-height: 1.2; }
.demo-route__list { margin: 0; padding: 0; list-style: none; }
.demo-route__list li {
  display: grid;
  min-height: 106px;
  padding: 22px 12px;
  border-bottom: 1px solid #ebe8ec;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  transition: background-color 220ms ease;
}
.demo-route__icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid #ff625c66;
  border-radius: 8px;
  color: var(--demo-accent);
  transition: color 220ms ease, border-color 220ms ease, background-color 220ms ease;
}
.demo-route__icon .demo-icon { width: 25px; height: 25px; }
.demo-route h3 { margin: 0; color: #28232b; font-size: 16px; font-weight: 800; line-height: 1.4; }
.demo-route li p { margin: 7px 0 0; color: #69636f; font-size: 13px; line-height: 1.65; }
@media (hover: hover) and (pointer: fine) {
  .demo-button:hover { background: #c9433e; box-shadow: 0 8px 22px #ff625c26; }
  .demo-button:hover .demo-icon { transform: translate(2px, -2px); }
  .demo-route__list li:hover { background: #ff625c0e; }
  .demo-route__list li:hover .demo-route__icon { color: #fff; border-color: #d94d47; background: #d94d47; }
  .demo-hero__visual:hover .demo-hero__art { filter: saturate(1.13) contrast(1.04); }
}
/* 插画入场后持续浮动，叠加轻微旋转与缩放；减少动态效果时停用。 */
@media (prefers-reduced-motion: no-preference) {
  .demo-hero__visual { animation: demo-visual-enter 640ms var(--demo-hero-ease) both; }
  .demo-hero__art { animation: demo-visual-float 3.6s ease-in-out 640ms infinite; }
}
@keyframes demo-visual-enter {
  from { opacity: 0; transform: translate(25px, 20px) scale(.95); }
  to { opacity: 1; transform: translate(25px, 0) scale(1); }
}
@keyframes demo-visual-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg) scale(1); }
  35% { transform: translate3d(6px, -24px, 0) rotate(3deg) scale(1.045); }
  70% { transform: translate3d(-4px, 10px, 0) rotate(-3deg) scale(.985); }
}
@media (max-width: 1280px) {
  .demo-hero__inner { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .demo-hero__main { grid-template-columns: minmax(0, 1fr) 220px; gap: 8px; }
  .demo-hero h1 { font-size: 40px; }
  .demo-route { padding-left: 28px; }
  .demo-route__list li { gap: 14px; padding-inline: 8px; }
  .demo-route li p { font-size: 12px; }
}
@media (max-width: 1050px) {
  .demo-hero__inner { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .demo-hero__main { grid-template-columns: minmax(0, 1fr) 170px; }
  .demo-hero h1 { font-size: 34px; }
  .demo-route { padding-left: 22px; }
  .demo-route h2 { font-size: 25px; }
}
@media (max-width: 900px) {
  .demo-hero__inner { min-height: 0; padding-block: 58px; grid-template-columns: 1fr; gap: 46px; }
  .demo-hero__main { grid-template-columns: minmax(0, 1fr) minmax(210px, 280px); gap: 16px; }
  .demo-hero h1 { font-size: 40px; }
  .demo-route { padding-left: 28px; }
  .demo-route h2 { font-size: 28px; }
  .demo-route li p { font-size: 14px; }
}
@media (max-width: 639px) {
  .demo-hero__inner { padding-block: 48px; gap: 32px; }
  .demo-hero__main { grid-template-columns: 1fr; gap: 8px; }
  .demo-hero .demo-eyebrow { font-size: 12px; }
  .demo-hero h1 { font-size: clamp(30px, 8.5vw, 40px); }
  .demo-hero__description { font-size: 16px; }
  .demo-hero__visual { width: min(280px, 75vw); margin: 8px auto 0; }
  .demo-route { padding-left: 20px; }
  .demo-route h2 { font-size: 24px; }
  .demo-route__list li { min-height: 100px; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .demo-route__icon { width: 44px; height: 44px; }
  .demo-route h3 { font-size: 15px; }
  .demo-route li p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-hero *, .demo-hero *::before { animation: none; transition: none; }
  .demo-hero__visual:hover .demo-hero__art { transform: none; }
}
