/* =============================================================
   service-api.css 二次开发/API 对接页（hero 接口连线式）
   ============================================================= */

/* ---- Hero：接口连线 ---- */
.api-hero {
  padding: calc(var(--header-h) + var(--topbar-h) + 50px) 0 70px;
  background: linear-gradient(160deg, #2C3E33 0%, #4A6B52 55%, var(--cream) 140%);
  overflow: hidden; position: relative;
}
.api-hero h1, .api-hero .hero-title { color: #fff; margin-bottom: 16px; }
.api-hero .hero-sub { color: rgba(255,255,255,.85); max-width: 520px; margin-bottom: 26px; }
.api-hero .hero-bread { color: rgba(255,255,255,.7); }
.api-hero .hero-bread a { color: #fff; }
.api-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  position: relative; z-index: 2;
}
.api-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.api-hero-tel { margin-top: 16px; font-size: .92rem; color: rgba(255,255,255,.85); }
.api-hero-tel b { color: #fff; font-size: 1.1rem; }

/* 节点连线图 */
.api-nodes { position: relative; height: 400px; }
.api-node {
  position: absolute; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--green) 75%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--clay-shadow); text-align: center;
  font-weight: 800; color: #3F5238; font-size: .78rem; z-index: 2;
}
.api-node.center { width: 120px; height: 120px; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 3; font-size: .95rem; }
.api-node.n1 { left: 6%; top: 12%; }
.api-node.n2 { right: 4%; top: 18%; }
.api-node.n3 { left: 2%; bottom: 16%; }
.api-node.n4 { right: 8%; bottom: 8%; }
.api-line {
  position: absolute; height: 3px; background: rgba(191,216,178,.6);
  transform-origin: left center; z-index: 1; border-radius: 3px;
}

/* ---- 服务价值：节点卡 ---- */
.api-node-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.api-node-card {
  padding: 28px 22px; border-radius: var(--radius);
  background: linear-gradient(165deg, #FFFDF6, var(--cream-2)); box-shadow: var(--clay-shadow-sm);
  border-left: 6px solid var(--green);
}
.api-node-card:nth-child(2) { border-left-color: var(--yellow-3); }
.api-node-card:nth-child(3) { border-left-color: var(--green-3); }
.api-node-card:nth-child(4) { border-left-color: var(--yellow-2); }
.api-node-card:nth-child(5) { border-left-color: var(--green-2); }
.api-node-card:nth-child(6) { border-left-color: var(--yellow-3); }
.api-node-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.api-node-card p { font-size: .9rem; }

/* ---- 交付内容：编号 ---- */
.api-deliver { counter-reset: apid; }
.api-deliver li {
  counter-increment: apid; position: relative; padding: 18px 18px 18px 70px;
  margin-bottom: 14px; border-radius: 16px; background: var(--cream-2);
  box-shadow: var(--clay-shadow-sm);
}
.api-deliver li::before {
  content: counter(apid, decimal-leading-zero);
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 12px; background: var(--green);
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.api-deliver li b { display: block; color: var(--ink); margin-bottom: 2px; }
.api-deliver li span { font-size: .88rem; color: var(--ink-2); }

/* ---- 适用人群：标签 ---- */
.api-aud { display: flex; flex-wrap: wrap; gap: 12px; }
.api-aud span {
  padding: 10px 20px; border-radius: 999px; background: var(--cream-2);
  border: 2px solid var(--line); font-weight: 600; font-size: .92rem;
}
.api-aud span:nth-child(odd) { border-color: var(--green-2); background: #EEF4E6; }

/* ---- 区别对照 ---- */
.api-cmp {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--clay-shadow-sm);
}
.api-cmp-col { padding: 28px; }
.api-cmp-old { background: var(--cream-2); }
.api-cmp-new { background: linear-gradient(160deg, var(--green), var(--green-2)); }
.api-cmp-new h3, .api-cmp-new p { color: #fff; }
.api-cmp-col h3 { margin-bottom: 12px; }
.api-cmp-col p { font-size: .93rem; margin-bottom: 8px; }

/* ---- 案例入口 ---- */
.api-case {
  display: flex; gap: 26px; align-items: center; flex-wrap: wrap;
  padding: 30px; border-radius: var(--radius);
  background: linear-gradient(160deg, #FFFDF6, var(--cream-2)); box-shadow: var(--clay-shadow);
}
.api-case img { width: 280px; border-radius: var(--radius-sm); box-shadow: var(--clay-shadow-sm); flex-shrink: 0; }

/* ---- 价格引导 ---- */
.api-price {
  text-align: center; padding: 44px 20px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--yellow), var(--yellow-2));
  box-shadow: var(--clay-shadow-sm);
}

/* ---- FAQ ---- */
.api-faq details {
  background: var(--cream-2); border-radius: 16px; padding: 18px 22px;
  margin-bottom: 14px; box-shadow: var(--clay-shadow-sm);
}
.api-faq summary { font-weight: 700; cursor: pointer; color: var(--ink); list-style: none; position: relative; padding-right: 30px; }
.api-faq summary::-webkit-details-marker { display: none; }
.api-faq summary::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 1.3rem; color: var(--green-3); }
.api-faq details[open] summary::after { content: "−"; }
.api-faq details p { margin-top: 10px; font-size: .94rem; }

/* ---- CTA ---- */
.api-cta {
  text-align: center; padding: 60px 20px; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--green) 0%, var(--green-2) 100%);
  box-shadow: var(--clay-shadow);
}
.api-cta h2 { color: #fff; }
.api-cta p { color: rgba(255,255,255,.9); margin-bottom: 24px; }
.api-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.api-cta .btn-line { background: transparent; color: #fff; box-shadow: 0 0 0 2px #fff inset; }
.api-cta-contact { margin-top: 20px; font-size: .95rem; color: #fff; }
.api-cta-contact b { font-size: 1.15rem; }

@media (max-width: 900px) {
  .api-hero-grid { grid-template-columns: 1fr; }
  .api-nodes { height: 340px; }
  .api-node-grid, .api-cmp { grid-template-columns: 1fr; }
  .api-case img { width: 100%; }
}

/* ---- 通用工具类（本片页面共用） ---- */
.band { background: var(--cream-2); }
.narrow { max-width: 860px; }
.center-head { margin-left: auto !important; margin-right: auto !important; text-align: center; }
.center-head p { margin-left: auto; margin-right: auto; }
.lead-p { margin-bottom: 18px; }
.sub-p { margin-top: 8px; }
.btn-mt { margin-top: 14px; display: inline-flex; }
.inline-link { color: var(--green-3); font-weight: 700; }
.reveal-scroll { overflow-x: auto; }
.center-p { text-align: center; margin-top: 26px; }
.btn-light { background: transparent !important; color: #fff !important; box-shadow: 0 0 0 2px #fff inset !important; }

/* API 连线位置 */
.line-1 { left: 15%; top: 22%; width: 34%; transform: rotate(12deg); }
.line-2 { left: 55%; top: 28%; width: 30%; transform: rotate(-10deg); }
.line-3 { left: 12%; top: 62%; width: 36%; transform: rotate(-8deg); }
.line-4 { left: 55%; top: 60%; width: 32%; transform: rotate(8deg); }
