.yuanmo-page {
  background: #eef3fa;
}
.hero-inner {
  min-height: 520px;
  align-items: center;
  position: relative;
}
.ym-hero {
  padding: 114px 0 46px;
  background:
    radial-gradient(1200px 460px at 50% 100%, rgba(128, 197, 255, 0.34), rgba(128, 197, 255, 0) 72%),
    #f2f6ff;
  position: relative;
}
.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.ym-hero-inner {

}

.ym-hero-copy {
  min-height: 520px;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 999;
}

.ym-hero-copy h1 {
  margin-bottom: 12px;
  position: relative;
  display: inline-grid;
  gap: 2px;
}

.ym-name {
  display: block;
  color: #2367ff;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.08;
}

.ym-title {
  display: block;
  color: #101a36;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.16;
  position: relative;
  z-index: 9;
  margin-top: 10px;
}

.ym-line {
  position: absolute;
  right: -6px;
  bottom: -10px;
  width: 400px;
  height: 29px;
  margin: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.ym-line img {
  width: 100%;
  height: 100%;
  display: block;
  animation: lineWrite 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s forwards;
}

.ym-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 3px;
  height: 100%;
  opacity: 0;
  transform: translateX(0);
  animation: penCursor 1.25s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s;
}

.ym-hero-copy p {
  margin: 14px 0 10px;
  color: #4a5978;
  font-size: 20px;
  line-height: 1.65;
}

.ym-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 0;
  min-width: 154px;
  height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  background: #1f5dff;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
}

.ym-hero-visual {
  position: absolute;
  right: 0;
  top: 58%;
  transform: translateY(-50%);
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  animation: heroFloat 4.2s ease-in-out infinite;
}

.ym-hero-visual img {
  display: block;
  width: 50%;
  height: auto;
}

.ym-features {
  padding: 60px 0 20px;
  background: #f4f8ff;
}

.ym-first-row {
  grid-template-columns: 0.62fr 1.38fr;
  gap: 28px;
}

.ym-first-text {
  align-self: center;
}

.ym-first-copy {
  margin: 0;
  color: #5e6f8a;
  font-size: 15px;
  line-height: 1.9;
}

.ym-features h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 20px;
}

.ym-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  padding:0 30px;
}

.ym-feature-card {
  border-radius: 18px;
  background: url("img/yuanmo/shadow.png") right top no-repeat #fff;
  background-size: 100% auto;
  border: 1px solid #b6dcff;
  min-height: 0;
  height: auto;
  padding: 24px 26px 0;
  box-shadow: 0 8px 20px rgba(42, 85, 169, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ym-feature-grid .ym-feature-card:nth-child(1) {
  height: 260px;
}

.ym-feature-grid .ym-feature-card:nth-child(2) {
  height: 220px;
}

.ym-feature-grid .ym-feature-card:nth-child(3) {
  height: 220px;
}

.ym-feature-grid .ym-feature-card:nth-child(4) {
  height: 260px;
  margin-top: -44px;
}

.ym-feature-card h4 {
  font-size: 18px;
  color: #10214a;
  margin-bottom: 10px;
}

.ym-feature-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #5a6884;
  position: relative;z-index: 9;
}

.ym-feature-art {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 106px;
  overflow: visible;
}

.ym-feature-art img {
  max-width: 100%;
  height: auto;
  display: block;
  transform: scale(1);
  transition: transform 0.45s ease;
}

.ym-feature-card:hover .ym-feature-art img {
  transform: scale(1.08);
}

.ym-feature-grid .ym-feature-card:nth-child(1) .ym-feature-art img {
  width: 86%;
}

.ym-feature-grid .ym-feature-card:nth-child(2) .ym-feature-art img {
  width: 80%;
}

.ym-feature-grid .ym-feature-card:nth-child(3) .ym-feature-art img {
  width: 84%;
}

.ym-feature-grid .ym-feature-card:nth-child(3) .ym-feature-art {
  justify-content: flex-end;
}

.ym-feature-grid .ym-feature-card:nth-child(4) .ym-feature-art img {
  width: 88%;
}

.ym-link {
  padding: 16px 0 26px;
  background: #f4f8ff;
}

.ym-link-img {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(29, 74, 164, 0.18);
}

.ym-link-img img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 1400px) {
  .ym-name { font-size: 44px; }
  .ym-title { font-size: 44px; }
  .ym-features h2 { font-size: 38px; }
}

@media (max-width: 1080px) {
  .ym-hero {
    padding-top: 96px;
    padding-bottom: 20px;
  }

  .ym-line {
    width: 182px;
    height: 18px;
    right: -4px;
    bottom: 2px;
  }

  .ym-title { font-size: 34px; }
  .ym-name { font-size: 38px; }
  .ym-hero-copy p { font-size: 16px; }

  .ym-cta {
    min-width: 140px;
    height: 46px;
    font-size: 20px;
  }

  .ym-hero-visual {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .ym-features h2 {
    font-size: 32px;
  }

  .ym-feature-card {
    min-height: 250px !important;
    height: auto !important;
    padding: 18px;
  }

  .ym-feature-card h4 {
    font-size: 18px;
  }

  .ym-feature-card p {
    font-size: 14px;
  }

  .ym-first-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 720px) {
  .ym-feature-grid {
    grid-template-columns: 1fr;
  }
  .ym-hero-inner{
    justify-content: center;
    align-items: center;
  }
  .ym-hero-copy{
    min-height: 300px;
  }
  .ym-hero-visual{
    position: absolute;
    bottom:-35%;
    top: auto;
  }
}
