/* API 接入页（/webapi.html）专属样式 —— 排版与 /redeem /pricing 同一语言，代码块用深色底 */
.rd-nav .subnav-link { padding: 7px 10px; font-size: 12.5px; }

.wa-main { padding: 60px 0 100px; }
.wa-hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px;
  align-items: center; max-width: 1200px; margin: 0 auto 8px;
}
.wa-hero-copy h1 {
  font-size: clamp(32px, 3.4vw, 46px); font-weight: 800; line-height: 1.3;
  letter-spacing: -.03em; color: #20252c; margin: 18px 0 18px;
}
.wa-hero-copy h1 em { color: #2f5cff; }
.wa-hero-copy > p { font-size: 14px; line-height: 1.95; color: #6b7280; margin: 0 0 22px; max-width: 560px; }
.wa-contact {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border: 1px solid #dfe6ff; border-radius: 10px;
  background: #f5f7ff; font-size: 12.5px; color: #4b5563;
}
.wa-contact b { color: #2f5cff; font-weight: 800; letter-spacing: .02em; }
.wa-contact-ico { color: #2f5cff; display: inline-flex; }

.wa-steps { display: grid; gap: 12px; }
.wa-step {
  position: relative; display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto;
  column-gap: 12px; padding: 14px 16px; background: #fff;
  border: 1px solid #e8eaf0; border-radius: 12px; box-shadow: 0 6px 18px rgba(24, 32, 72, .05);
}
.wa-step i {
  grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; background: #eef1ff; color: #2f5cff;
  font-style: normal; font-weight: 800; font-size: 13px;
}
.wa-step b { font-size: 13px; color: #20252c; }
.wa-step span { font-size: 11.5px; color: #8a94a6; line-height: 1.6; }

.wa-sec { max-width: 1200px; margin: 0 auto; padding: 54px 0 8px; border-top: 1px solid #e8eaf0; }
.wa-sec:first-of-type { border-top: none; }
.wa-sec > h2 { font-size: 21px; font-weight: 800; color: #20252c; letter-spacing: -.02em; margin: 0 0 10px; }
.wa-sec > p { font-size: 13px; line-height: 1.9; color: #6b7280; margin: 0 0 18px; max-width: 860px; }
.wa-sec code, .wa-note code {
  font-family: var(--font-mono, Consolas, monospace); font-size: 12px;
  background: #f1f3fa; border: 1px solid #e8eaf0; border-radius: 5px; padding: 1px 6px; color: #4f46e5;
}
.wa-code-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #9aa3b2; margin: 18px 0 8px; text-transform: uppercase; }
.wa-code {
  font-family: var(--font-mono, Consolas, monospace); font-size: 12.5px; line-height: 1.75;
  background: #14172b; color: #d6dcf5; border-radius: 12px; padding: 16px 18px;
  overflow-x: auto; white-space: pre; margin: 0 0 6px;
}
.wa-note { font-size: 12px; color: #8a94a6; margin-top: 10px; }

.wa-table-wrap { overflow-x: auto; border: 1px solid #e8eaf0; border-radius: 12px; background: #fff; }
.wa-table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wa-table-wrap th {
  text-align: left; padding: 11px 14px; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: #9aa3b2;
  border-bottom: 1px solid #e8eaf0; background: #fafbfe;
}
.wa-table-wrap td { padding: 11px 14px; border-bottom: 1px solid #f1f3f8; color: #4b5563; }
.wa-table-wrap tr:last-child td { border-bottom: none; }

.wa-callout {
  display: flex; align-items: flex-start; gap: 9px; max-width: 860px;
  padding: 12px 14px; border-radius: 10px; margin: 0 0 18px;
  background: #fff8e1; border: 1px solid #f4e3ae; color: #7a5b13; font-size: 12.5px; line-height: 1.7;
}
.wa-callout svg { flex: none; margin-top: 2px; }
.wa-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 860px; }
.wa-list li { position: relative; padding-left: 24px; font-size: 13px; line-height: 1.8; color: #4b5563; }
.wa-list li::before { content: '✓'; position: absolute; left: 0; color: #2f5cff; font-weight: 800; }
.wa-cta {
  margin-top: 30px; padding: 26px 30px; border-radius: 16px; background: #f5f6ff;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.wa-cta > span { font-size: 15px; font-weight: 800; color: #20252c; }

@media (max-width: 900px) {
  .wa-main { padding: 40px 0 72px; }
  .wa-hero { grid-template-columns: 1fr; gap: 30px; }
  .wa-hero-copy h1 { font-size: 34px; }
  .wa-sec { padding: 40px 0 8px; }
  .rd-nav { display: none; }
}
@media (max-width: 480px) {
  .wa-code { font-size: 11.5px; padding: 13px 14px; }
}
