:root {
  --bg: #14060a;
  --bg-deep: #0d0305;
  --surface: rgba(37, 10, 16, 0.9);
  --surface-soft: rgba(57, 15, 25, 0.72);
  --surface-bright: rgba(255, 244, 236, 0.08);
  --card: rgba(37, 10, 16, 0.82);
  --card-strong: rgba(47, 12, 20, 0.96);
  --line: rgba(255, 164, 128, 0.22);
  --line-strong: rgba(255, 195, 153, 0.45);
  --ink: #fff6ef;
  --ink-soft: #f0c8bc;
  --ink-dim: #d7a99d;
  --brand: #ff6a3d;
  --brand-strong: #ff8056;
  --brand-soft: rgba(255, 106, 61, 0.16);
  --cream: #ffe3cf;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.34);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 127, 80, 0.18), transparent 36%),
    radial-gradient(circle at top right, rgba(255, 208, 122, 0.1), transparent 28%),
    linear-gradient(180deg, #19070b 0%, #100305 45%, #0a0203 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 70%);
  pointer-events: none;
}

.page-glow {
  position: fixed;
  inset: auto auto -160px -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 61, 0.24), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}

::selection {
  background: var(--brand);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

.wrap {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(16, 3, 5, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-note {
  color: var(--ink-dim);
  font-size: 13px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-dim);
  font-size: 14px;
}

.nav-links a:hover,
.ghost-link:hover,
.inline-link:hover {
  color: var(--cream);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ghost-link {
  color: var(--ink-dim);
  font-size: 14px;
}

.lang-switcher {
  appearance: none;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 38px 10px 14px;
  cursor: pointer;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffe3cf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left top, right 12px center;
  background-size: auto, 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-solid {
  background: linear-gradient(135deg, var(--brand), #ff9964);
  color: #240606;
  box-shadow: 0 16px 32px rgba(255, 106, 61, 0.2);
}

.button-soft {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.button-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 32px;
  padding: 64px 0 32px;
  align-items: start;
}

.hero-copy,
.launchpad,
.trust-card,
.step-card,
.soft-card,
.client-card,
.recommend-card,
.copy-card,
.faq-list details,
.table-shell {
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 26px 6px 0;
}

.eyebrow,
.section-kicker,
.launchpad-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 9.2em;
}

.hero h1 span {
  display: inline-block;
  background: linear-gradient(135deg, #ff9d6c, #ffd0ab 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  margin: 22px 0 24px;
  max-width: 640px;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-dim);
  font-size: 13px;
}

.launchpad {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 180, 138, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(49, 13, 21, 0.96), rgba(31, 8, 13, 0.96));
  border: 1px solid var(--line);
}

.launchpad::after {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.launchpad h2 {
  margin: 10px 0 6px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.08;
}

.launchpad p {
  margin: 0;
  color: var(--ink-soft);
}

.launch-steps {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.launch-step {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.launch-step:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 195, 153, 0.3);
  transform: translateX(3px);
}

.step-body {
  min-width: 0;
}

.step-arrow {
  color: var(--ink-dim);
  font-size: 18px;
  transition: color 0.18s ease, transform 0.18s ease;
  flex-shrink: 0;
}

.launch-step:hover .step-arrow {
  color: var(--cream);
  transform: translateX(3px);
}

.launch-step strong {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}

.launch-step p {
  font-size: 14px;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 106, 61, 0.24), rgba(255, 213, 177, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
}

.endpoint-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.endpoint-copy {
  min-width: 0;
}

.endpoint-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  margin-bottom: 6px;
}

.endpoint-card code,
.copy-field code,
.code-block code {
  font-family: "IBM Plex Mono", monospace;
}

.endpoint-card code {
  display: block;
  font-size: 13px;
  color: var(--cream);
  word-break: break-all;
}

.endpoint-tip {
  margin-top: 12px;
  font-size: 13px;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  cursor: pointer;
}

.copy-button:hover {
  border-color: var(--line-strong);
}

section {
  padding: 38px 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: 10em;
}

.section-sub {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 17px;
}

.narrow h2 {
  max-width: 15em;
}

.trust-strip,
.step-grid,
.beginner-grid,
.client-grid,
.recommend-grid,
.copy-grid {
  display: grid;
  gap: 18px;
}

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

.trust-card,
.step-card,
.soft-card,
.client-card,
.recommend-card,
.copy-card,
.faq-list details {
  min-width: 0;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), rgba(21, 6, 9, 0.98));
  padding: 24px;
}

.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--brand-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--brand-strong);
  margin-bottom: 16px;
}

.trust-card strong,
.step-card h3,
.soft-card h3,
.client-card h3,
.recommend-card h3,
.copy-card h3 {
  font-size: 20px;
  line-height: 1.15;
  margin: 0 0 10px;
}

.trust-card p,
.step-card p,
.soft-card p,
.client-card p,
.recommend-card p,
.copy-card p,
.faq-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

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

.step-card {
  position: relative;
  min-height: 232px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--brand-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--cream);
  font-weight: 800;
}

.inline-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--cream);
  font-weight: 700;
}

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

.soft-card {
  background: linear-gradient(180deg, rgba(255, 246, 239, 0.09), rgba(255, 255, 255, 0.02));
}

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

.client-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.client-type,
.recommend-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink-dim);
  font-size: 12px;
  font-weight: 700;
}

.accent-card {
  background:
    radial-gradient(circle at top right, rgba(255, 169, 122, 0.16), transparent 35%),
    linear-gradient(180deg, rgba(57, 15, 25, 0.98), rgba(23, 7, 11, 0.98));
}

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

.recommend-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.price-pair {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.price-pair span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.table-shell {
  min-width: 0;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(38, 11, 18, 0.98), rgba(22, 7, 11, 0.98));
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.pricing-table th,
.pricing-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-table thead th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-table td:nth-child(2),
.pricing-table td:nth-child(3) {
  color: var(--cream);
  font-family: "IBM Plex Mono", monospace;
}

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

.copy-card.full-span {
  grid-column: 1 / -1;
}

.copy-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.endpoint-panel {
  background:
    radial-gradient(circle at top right, rgba(255, 200, 170, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(49, 13, 21, 0.98), rgba(25, 8, 12, 0.98));
}

.copy-field {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.copy-field + .copy-field {
  margin-top: 12px;
}

.copy-field span {
  color: var(--ink-dim);
  font-size: 13px;
}

.copy-field code {
  display: block;
  color: var(--cream);
  word-break: break-all;
  font-size: 13px;
}

.helper-text {
  margin-top: 12px;
  font-size: 13px;
}

.code-block {
  margin: 0;
  padding: 20px;
  border-radius: 24px;
  background: #120407;
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 100%;
  overflow: auto;
  min-height: 280px;
}

.code-block code {
  display: block;
  color: #ffe9da;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--cream);
  font-size: 28px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin-top: 12px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 36px;
  padding: 28px 0 36px;
  color: var(--ink-dim);
  font-size: 14px;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
}

@media (max-width: 1120px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }

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

  .trust-strip,
  .beginner-grid,
  .recommend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 760px) {
  .wrap {
    width: min(100vw - 20px, 100%);
  }

  .nav-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-actions .button,
  .ghost-link,
  .lang-switcher {
    flex: 1 1 auto;
  }

  .hero {
    padding-top: 34px;
  }

  .brand-note {
    white-space: normal;
    font-size: 12px;
  }

  .hero-copy {
    padding: 10px 0 0;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 13vw, 4rem);
  }

  .trust-strip,
  .step-grid,
  .beginner-grid,
  .client-grid,
  .recommend-grid,
  .copy-grid {
    grid-template-columns: 1fr;
  }

  .copy-field {
    grid-template-columns: 1fr;
  }

  .table-shell {
    overflow-x: auto;
  }

  .pricing-table {
    display: block;
    min-width: 620px;
    white-space: nowrap;
  }

  .copy-card,
  .copy-card.full-span,
  .endpoint-panel,
  .code-block {
    width: 100%;
    min-width: 0;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* LobeChat 专区 */
.lobechat-section {
  margin-top: 4rem;
}

.lobe-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 2.5rem;
}

.lobe-step-card {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lobe-step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.lobe-step-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}

.lobe-step-num {
  width: 2.2rem;
  height: 2.2rem;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.lobe-step-arrow {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  color: var(--brand);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.lobe-copy-fields {
  margin-top: 0.75rem;
}

.lobe-tip {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--brand-soft);
  border: 1px solid var(--brand);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.lobe-tip strong {
  color: var(--brand-strong);
  margin-right: 0.5rem;
}

.lobe-tip a {
  color: var(--brand-strong);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .lobe-steps {
    flex-direction: column;
  }
  .lobe-step-arrow {
    transform: rotate(90deg);
    padding: 0.5rem 0;
    justify-content: center;
  }
}
