/* ai.css - AI 友好页，深色终端风 */

.ai-hero {
  background: #1a1a1a;
  padding: 110px 0 90px;
  text-align: center;
  border-bottom: 4px solid #9a3412;
}
.ai-prompt-line {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  color: #6ee7b7;
  background: #111111;
  display: inline-block;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  margin-bottom: 30px;
  word-break: break-all;
}
.ai-prompt-var { color: #fbbf24; font-weight: 700; margin-right: 6px; }
.ai-hero-title {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 46px;
  font-weight: 800;
  color: #4ade80;
  margin: 0 auto 22px;
  letter-spacing: -1px;
  text-shadow: 0 0 24px rgba(74, 222, 128, 0.35);
}
.ai-hero-bracket { color: #9ca3af; font-weight: 400; }
.ai-hero-desc {
  font-size: 15.5px;
  color: #d4d4d4;
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.9;
}
.ai-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}
.ai-bot-tag {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 12.5px;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
}

/* Section */
.ai-section {
  padding: 90px 0;
  background: #faf7f2;
}
.ai-section-dark {
  background: #1a1a1a;
}
.ai-section-head {
  text-align: center;
  margin-bottom: 48px;
}
.ai-section-head h2 {
  font-size: 30px;
  color: #7c2d12;
  font-weight: 800;
  margin-bottom: 12px;
}
.ai-section-head p {
  color: #78716c;
  font-size: 15px;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}
.ai-section-head code {
  font-family: Consolas, Menlo, monospace;
  background: #f3ede3;
  padding: 2px 8px;
  border-radius: 4px;
  color: #9a3412;
  font-size: 14px;
}
.ai-section-head-light h2 { color: #4ade80; }
.ai-section-head-light p { color: #a3a3a3; }
.ai-section-head-light code {
  background: #262626;
  color: #6ee7b7;
}

/* Field cards */
.ai-fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.field-card {
  background: #ffffff;
  border: 1px solid #f0e9df;
  border-radius: 12px;
  padding: 26px 22px;
  transition: transform .25s, box-shadow .25s;
}
.field-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(124, 45, 18, 0.08);
}
.field-name {
  font-family: Consolas, Menlo, monospace;
  font-size: 16px;
  font-weight: 700;
  color: #9a3412;
  background: #fdf3ec;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.field-card p {
  font-size: 13.5px;
  color: #57534e;
  line-height: 1.75;
}

/* Code blocks */
.code-block {
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.code-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #242424;
  border-bottom: 1px solid #2a2a2a;
}
.code-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.code-dot-r { background: #ef4444; }
.code-dot-y { background: #fbbf24; }
.code-dot-g { background: #4ade80; }
.code-filename {
  margin-left: 10px;
  font-family: Consolas, Menlo, monospace;
  font-size: 12.5px;
  color: #a3a3a3;
}
.code-block pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
}
.code-block code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13.5px;
  line-height: 1.75;
  color: #e5e5e5;
  white-space: pre;
}
.c-key { color: #7dd3fc; }
.c-str { color: #4ade80; }
.c-num { color: #fbbf24; }

/* CTA */
.ai-section-cta {
  background: #ffffff;
  text-align: center;
}
.ai-cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-term {
  font-family: Consolas, Menlo, monospace;
  display: inline-block;
  padding: 14px 28px;
  background: #1a1a1a;
  color: #4ade80;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #1a1a1a;
  transition: background .2s, transform .2s;
}
.btn-term:hover {
  background: #0d0d0d;
  transform: translateY(-2px);
}
.btn-term-ghost {
  background: #ffffff;
  color: #9a3412;
  border-color: #9a3412;
}
.btn-term-ghost:hover { background: #fdf3ec; }

/* Responsive */
@media (max-width: 900px) {
  .ai-hero { padding: 80px 0 60px; }
  .ai-hero-title { font-size: 30px; }
  .ai-fields { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ai-hero-title { font-size: 24px; }
  .ai-fields { grid-template-columns: 1fr; }
  .code-block code { font-size: 12px; }
}
