  :root {
    --bg: #f3f6fb;
    --panel: rgba(255, 255, 255, 0.88);
    --ink: #0f172a;
    --muted: #516072;
    --line: rgba(113, 133, 163, 0.22);
    --blue: #3b82f6;
    --teal: #14b8a6;
    --amber: #f59e0b;
    --coral: #f97316;
    --violet: #8b5cf6;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  }

  body {
    background:
      radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 32%),
      radial-gradient(circle at top right, rgba(20, 184, 166, 0.1), transparent 28%),
      linear-gradient(180deg, #f7f9fc 0%, var(--bg) 100%);
    color: var(--ink);
  }

  .page {
    max-width: 1280px;
    margin: 0 auto;
  }

  .hero {
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.72));
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 32px;
    padding: 28px 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: start;
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  .hero h1 {
    font-size: 40px;
    line-height: 1.08;
    margin: 14px 0 14px;
  }

  .hero p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted);
  }

  .hero-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 22px;
  }

  .point {
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(113, 133, 163, 0.15);
    border-radius: 20px;
    padding: 14px;
  }

  .point strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
  }

  .point span {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
  }

  .hero-card {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
    color: white;
    border-radius: 28px;
    padding: 22px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
  }

  .hero-card .label {
    color: rgba(255,255,255,0.68);
  }

  .hero-card h3 {
    margin: 12px 0 10px;
    font-size: 24px;
  }

  .hero-card p {
    color: rgba(255,255,255,0.76);
    font-size: 14px;
    line-height: 1.65;
  }

  .chain-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
  }

  .chain-mini div {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .section-card {
    margin-top: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.84));
    border-radius: 30px;
    padding: 26px 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.72);
  }

  .section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 20px;
  }

  .section-title-row h2 {
    margin: 8px 0 0;
    font-size: 28px;
  }

  .section-title-row p {
    margin: 0;
    color: var(--muted);
    max-width: 620px;
    line-height: 1.65;
  }

  .tag {
    display: inline-flex;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    color: white;
  }

  .tag.blue { background: linear-gradient(135deg, #2563eb, #60a5fa); }
  .tag.teal { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
  .tag.amber { background: linear-gradient(135deg, #d97706, #fbbf24); }

  .workflow {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
  }

  .step {
    position: relative;
    border-radius: 24px;
    padding: 18px 16px;
    min-height: 190px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
  }

  .step::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.48), transparent 40%);
    pointer-events: none;
  }

  .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 14px;
  }

  .step h4 {
    margin: 0 0 8px;
    font-size: 18px;
  }

  .step p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(15, 23, 42, 0.82);
  }

  .step-note {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(15,23,42,0.09);
    font-size: 12px;
    line-height: 1.5;
    color: rgba(15, 23, 42, 0.68);
  }

  .s1 { background: linear-gradient(145deg, #ffe5bb, #ffd0b3); }
  .s2 { background: linear-gradient(145deg, #dff6ff, #bfdbfe); }
  .s3 { background: linear-gradient(145deg, #dcfce7, #bbf7d0); }
  .s4 { background: linear-gradient(145deg, #fef3c7, #fde68a); }
  .s5 { background: linear-gradient(145deg, #ede9fe, #ddd6fe); }
  .s6 { background: linear-gradient(145deg, #ffe4e6, #fecdd3); }
  .s7 { background: linear-gradient(145deg, #dbeafe, #bfdbfe); }

  .summary-band {
    margin-top: 18px;
    background: linear-gradient(90deg, rgba(59,130,246,0.08), rgba(20,184,166,0.08));
    border: 1px solid rgba(59,130,246,0.1);
    border-radius: 18px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #234;
  }

  .comparison {
    display: grid;
    grid-template-columns: 220px repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .comparison--2col {
    grid-template-columns: 220px repeat(2, minmax(0, 1fr));
  }

  .example-grid--three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-note--center {
    text-align: center;
    margin-top: 22px;
  }

  .compare-head {
    border-radius: 24px;
    padding: 18px;
    color: white;
    min-height: 112px;
    box-shadow: 0 16px 30px rgba(15,23,42,0.12);
  }

  .compare-head h4 {
    margin: 0 0 6px;
    font-size: 22px;
  }

  .compare-head p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255,255,255,0.8);
  }

  .h1 { background: linear-gradient(145deg, #475569, #64748b); }
  .h2 { background: linear-gradient(145deg, #0f766e, #2dd4bf); }
  .h3 { background: linear-gradient(145deg, #1d4ed8, #60a5fa); }

  .compare-side,
  .compare-box {
    border-radius: 20px;
    padding: 16px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(113,133,163,0.12);
    box-shadow: 0 12px 24px rgba(15,23,42,0.05);
  }

  .compare-side {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 800;
    color: #334155;
    background: linear-gradient(180deg, rgba(248,250,252,0.96), rgba(241,245,249,0.9));
  }

  .compare-box strong {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    color: #0f172a;
  }

  .compare-box span {
    display: block;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
  }

  .pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
  }

  .pill {
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(113,133,163,0.14);
    font-size: 13px;
    color: #334155;
  }

  .layers {
    display: grid;
    gap: 14px;
    margin-top: 10px;
  }

  .layer {
    position: relative;
    border-radius: 24px;
    padding: 18px 20px 18px 24px;
    box-shadow: 0 14px 30px rgba(15,23,42,0.07);
    overflow: hidden;
  }

  .layer::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: rgba(15,23,42,0.12);
  }

  .layer-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
  }

  .layer h4 {
    margin: 0 0 6px;
    font-size: 20px;
  }

  .layer p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(15,23,42,0.78);
  }

  .layer-badge {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255,255,255,0.6);
    color: #334155;
  }

  .l1 { background: linear-gradient(145deg, #dbeafe, #e0f2fe); }
  .l2 { background: linear-gradient(145deg, #d9f99d, #dcfce7); }
  .l3 { background: linear-gradient(145deg, #fde68a, #fef3c7); }
  .l4 { background: linear-gradient(145deg, #fed7aa, #ffedd5); }
  .l5 { background: linear-gradient(145deg, #fecaca, #ffe4e6); }

  .workflow-callout {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.54);
    border: 1px dashed rgba(15,23,42,0.18);
    font-size: 13px;
    line-height: 1.65;
    color: #334155;
  }

  .footer-note {
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
  }

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

  .glossary-card {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(113,133,163,0.12);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 12px 24px rgba(15,23,42,0.05);
  }

  .glossary-card h4 {
    margin: 0 0 8px;
    font-size: 18px;
  }

  .glossary-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: var(--muted);
  }

  .glossary-card strong {
    color: var(--ink);
  }

  .example-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .example-card {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(113,133,163,0.12);
    border-radius: 26px;
    padding: 20px;
    box-shadow: 0 14px 28px rgba(15,23,42,0.06);
  }

  .example-card h3 {
    margin: 10px 0 12px;
    font-size: 24px;
  }

  .example-card p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
  }

  .flow-list {
    display: grid;
    gap: 10px;
  }

  .flow-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border-top: 1px solid rgba(113,133,163,0.12);
  }

  .flow-item:first-child {
    border-top: none;
  }

  .flow-index {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(59,130,246,0.16), rgba(20,184,166,0.16));
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .flow-copy strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--ink);
  }

  .flow-copy span {
    display: block;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
  }

  @media (max-width: 1180px) {
    .hero-grid {
      grid-template-columns: 1fr;
    }

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

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

    .example-grid {
      grid-template-columns: 1fr;
    }

    .example-grid--three-col {
      grid-template-columns: 1fr;
    }

    .hero-points {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-title-row,
    .layer-top {
      flex-direction: column;
      align-items: start;
    }

    .comparison--3col,
    .comparison--2col {
      grid-template-columns: 1fr;
    }

    .comparison--3col > :first-child,
    .comparison--3col > .compare-head,
    .comparison--2col > :first-child,
    .comparison--2col > .compare-head {
      display: none;
    }

    .comparison--3col > .compare-side,
    .comparison--2col > .compare-side {
      margin-top: 20px;
      border-radius: 20px 20px 0 0;
      padding: 14px 16px;
      min-height: auto;
    }

    .comparison--3col > .compare-side:first-of-type,
    .comparison--2col > .compare-side:first-of-type {
      margin-top: 0;
    }

    .comparison--3col > .compare-box,
    .comparison--2col > .compare-box {
      border-radius: 0;
      border-top: none;
    }

    .comparison--3col > .compare-box:nth-child(4n+8),
    .comparison--2col > .compare-box:nth-child(3n+6) {
      border-radius: 0 0 20px 20px;
      margin-bottom: 4px;
    }

    .comparison--3col > .compare-box:nth-child(4n+6)::before {
      content: "普通 Agent";
      display: block;
      font-size: 11px;
      font-weight: 800;
      color: #64748b;
      margin-bottom: 6px;
      letter-spacing: 0.02em;
    }

    .comparison--3col > .compare-box:nth-child(4n+7)::before {
      content: "工作流 Agent";
      display: block;
      font-size: 11px;
      font-weight: 800;
      color: #0f766e;
      margin-bottom: 6px;
      letter-spacing: 0.02em;
    }

    .comparison--3col > .compare-box:nth-child(4n+8)::before {
      content: "IDE Agent";
      display: block;
      font-size: 11px;
      font-weight: 800;
      color: #1d4ed8;
      margin-bottom: 6px;
      letter-spacing: 0.02em;
    }

    .comparison--2col > .compare-box:nth-child(3n+5)::before {
      content: "没有工作流增强";
      display: block;
      font-size: 11px;
      font-weight: 800;
      color: #64748b;
      margin-bottom: 6px;
      letter-spacing: 0.02em;
    }

    .comparison--2col > .compare-box:nth-child(3n+6)::before {
      content: "有 Superpower 类工作流增强";
      display: block;
      font-size: 11px;
      font-weight: 800;
      color: #0f766e;
      margin-bottom: 6px;
      letter-spacing: 0.02em;
    }

    /* 产品映射区块：移动端标签文案 */
    .comparison--3col.product-map > .compare-box:nth-child(4n+6)::before {
      content: "更接近普通 Agent";
    }

    .comparison--3col.product-map > .compare-box:nth-child(4n+7)::before {
      content: "更接近工作流 Agent";
    }

    .comparison--3col.product-map > .compare-box:nth-child(4n+8)::before {
      content: "更接近 IDE Agent";
    }
  }

  @media (max-width: 768px) {
    .method-map-container {
      padding: 1rem 0.75rem 2.5rem;
    }

    .hero {
      border-radius: 22px;
      padding: 20px 16px;
    }

    .hero h1 {
      font-size: 28px;
      line-height: 1.15;
    }

    .hero p {
      font-size: 15px;
    }

    .hero-points {
      grid-template-columns: 1fr;
    }

    .hero-card {
      border-radius: 20px;
      padding: 18px 16px;
    }

    .hero-card h3 {
      font-size: 20px;
    }

    .chain-mini {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-card {
      margin-top: 16px;
      border-radius: 22px;
      padding: 18px 16px;
    }

    .section-title-row h2 {
      font-size: 22px;
      line-height: 1.25;
    }

    .section-title-row p {
      font-size: 14px;
      max-width: none;
    }

    .workflow {
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .step {
      min-height: auto;
      border-radius: 18px;
      padding: 16px 14px;
    }

    .step h4 {
      font-size: 16px;
    }

    .glossary-grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .glossary-card {
      border-radius: 18px;
      padding: 16px;
    }

    .example-card {
      border-radius: 20px;
      padding: 16px;
    }

    .example-card h3 {
      font-size: 20px;
      line-height: 1.3;
    }

    .compare-head h4 {
      font-size: 18px;
    }

    .layer {
      border-radius: 18px;
      padding: 16px 16px 16px 20px;
    }

    .layer h4 {
      font-size: 17px;
    }

    .layer-badge {
      align-self: flex-start;
    }

    .summary-band {
      font-size: 13px;
      padding: 12px 14px;
    }

    .pill {
      flex: 1 1 100%;
      text-align: center;
      font-size: 12px;
      padding: 10px 12px;
    }

    .footer-note {
      font-size: 12px;
    }
  }

  @media (max-width: 480px) {
    .hero h1 {
      font-size: 24px;
    }

    .eyebrow {
      font-size: 11px;
      padding: 6px 12px;
    }

    .chain-mini {
      grid-template-columns: 1fr;
    }

    .section-title-row h2 {
      font-size: 20px;
    }

    .tag {
      font-size: 11px;
      padding: 6px 10px;
    }
  }

.method-map-container {
  max-width: 1280px;
  padding: 1.5rem 1rem 3rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
}

.method-map-container *,
.method-map-container *::before,
.method-map-container *::after {
  box-sizing: border-box;
}
