/* ==========================================================================
   电商工作流开发解决方案
   ========================================================================== */

.ecw-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(68px, 8vw, 108px) 0 clamp(54px, 7vw, 84px);
  color: #fff;
  background:
    radial-gradient(circle at 76% 16%, rgba(124, 99, 255, 0.2), transparent 34%),
    radial-gradient(circle at 16% 84%, rgba(47, 107, 255, 0.12), transparent 32%),
    #0c0d12;
}

.ecw-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 82%);
}

.ecw-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}

.ecw-hero h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.ecw-hero__lead {
  max-width: 620px;
  margin-top: 22px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.66);
}

.ecw-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.ecw-hero__chips span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.ecw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.ecw-hero__note {
  margin-top: 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}

.ecw-board {
  transform: none;
}

.ecw-board .ydm-board__canvas {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ecw-board .ydm-node {
  min-height: 78px;
}

.ecw-board .ydm-node--wide {
  grid-column: span 2;
}

.ecw-board .ydm-node small {
  line-height: 1.45;
}

.ecw-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.ecw-section-head h2 {
  margin-top: 10px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.ecw-section-head > p {
  max-width: 400px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.ecw-section-head--single {
  display: block;
  max-width: 760px;
}

.ecw-section-head--single > p {
  margin-top: 12px;
}

.ecw-fit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ecw-fit {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(155deg, #fff, #f8f8fc);
}

.ecw-fit__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}

.ecw-fit__icon .icon {
  width: 18px;
  height: 18px;
}

.ecw-fit h3 {
  margin-top: 16px;
  font-size: 16px;
}

.ecw-fit p {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.ecw-workflow-section {
  background: var(--bg-soft);
}

.ecw-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ecw-workflow {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}

.ecw-workflow::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 69, 255, 0.07), transparent 68%);
  pointer-events: none;
}

.ecw-workflow__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ecw-workflow__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
}

.ecw-workflow__icon .icon {
  width: 19px;
  height: 19px;
}

.ecw-workflow__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}

.ecw-workflow h3 {
  margin-top: 18px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.ecw-workflow p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.ecw-workflow__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.ecw-workflow__tags span {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bg-soft);
  font-size: 10px;
  color: var(--muted);
}

.ecw-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ecw-example {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.ecw-example__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--brand);
}

.ecw-example h3 {
  margin-top: 10px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.ecw-example > p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.ecw-steps {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.ecw-steps li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink);
}

.ecw-steps li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.ecw-compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.ecw-compare {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}

.ecw-compare th,
.ecw-compare td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.ecw-compare thead th {
  background: var(--bg-soft);
  font-size: 12px;
  color: var(--muted);
}

.ecw-compare tbody th {
  width: 140px;
  font-weight: 600;
  color: var(--ink);
}

.ecw-compare td {
  color: var(--muted);
  line-height: 1.7;
}

.ecw-compare tr:last-child th,
.ecw-compare tr:last-child td {
  border-bottom: 0;
}

.ecw-governance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ecw-governance__item {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.ecw-governance__item .icon {
  width: 20px;
  height: 20px;
  color: #9d8cff;
}

.ecw-governance__item h3 {
  margin-top: 14px;
  font-size: 15px;
  color: #fff;
}

.ecw-governance__item p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.52);
}

.ecw-governance-section {
  color: #fff;
  background: #0c0d12;
}

.ecw-governance-section .ecw-section-head h2 {
  color: #fff;
}

.ecw-governance-section .ecw-section-head > p {
  color: rgba(255, 255, 255, 0.54);
}

.ecw-deliverables {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.ecw-deliverable {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.ecw-deliverable span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--brand);
}

.ecw-deliverable h3 {
  margin-top: 10px;
  font-size: 14px;
}

.ecw-deliverable p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.ecw-delivery-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted-2);
}

.ecw-product-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
}

.ecw-product-link span {
  font-size: 12px;
  color: var(--muted);
}

.ecw-product-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.ecw-product-link a .icon {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

.ecw-cta {
  padding-bottom: var(--section-y);
}

.ecw-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 20%, rgba(124, 99, 255, 0.34), transparent 36%),
    linear-gradient(120deg, #16182a, #0c0d12);
}

.ecw-cta h2 {
  margin-top: 10px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.ecw-cta p {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.56);
}

.ecw-disclaimer {
  margin: 18px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted-2);
}

@media (max-width: 1080px) {
  .ecw-fit-grid,
  .ecw-governance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecw-deliverables {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .ecw-hero__inner {
    grid-template-columns: 1fr;
  }

  .ecw-board {
    max-width: 680px;
  }

  .ecw-section-head {
    display: block;
  }

  .ecw-section-head > p {
    margin-top: 12px;
  }

  .ecw-workflow-grid,
  .ecw-examples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecw-product-link {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .ecw-hero {
    padding-top: 54px;
  }

  .ecw-hero h1 {
    font-size: clamp(36px, 10.5vw, 50px);
  }

  .ecw-board .ydm-board__canvas,
  .ecw-fit-grid,
  .ecw-workflow-grid,
  .ecw-examples,
  .ecw-governance,
  .ecw-deliverables {
    grid-template-columns: 1fr;
  }

  .ecw-board .ydm-node--wide {
    grid-column: auto;
  }

  .ecw-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
