﻿:root {
  --ink: #11151d;
  --muted: #667085;
  --soft: #f4f7fb;
  --line: #dfe5ee;
  --panel: #ffffff;
  --brand: #11151d;
  --accent: #0b8f87;
  --accent-2: #2563eb;
  --accent-soft: #e7f8f6;
  --warm: #f6b44b;
  --shadow: 0 22px 70px rgba(17, 21, 29, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(11, 143, 135, 0.1) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #fff 0%, #f6f8fb 48%, #fff 100%);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(223, 229, 238, 0.86);
  backdrop-filter: blur(18px);
}
.nav {
  width: min(1160px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand, .nav-actions { display: flex; align-items: center; gap: 14px; }
.brand { font-weight: 900; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}
.nav-link, .lang-toggle {
  color: var(--muted);
  font-weight: 800;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-link:hover, .lang-toggle:hover { color: var(--ink); }
.nav-cta, .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
}
.nav-cta, .btn.primary { background: var(--ink); color: #fff; }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn:hover, .nav-cta:hover { transform: translateY(-1px); }

.hero {
  width: min(1160px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: 54px;
  align-items: center;
  padding: 52px 0 62px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
h1, h2, p { margin-top: 0; }
h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(44px, 6.9vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: 0;
}
.hero-lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 20px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-card {
  min-height: 430px;
  padding: 26px;
  border: 1px solid rgba(223, 229, 238, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.signal-row { display: flex; gap: 8px; }
.signal-row span { width: 10px; height: 10px; border-radius: 50%; background: #d7dce5; }
.signal-row span:first-child { background: var(--accent); }
.signal-row span:nth-child(2) { background: var(--warm); }
.route-panel { display: grid; gap: 18px; }
.route-line {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 900;
}
.logo-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.logo-eyebrow img { width: 92px; height: auto; display: block; }
.minimax-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.minimax-pill img { width: 74px; height: auto; display: block; }
.route-line span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: center;
}
.route-line i { height: 2px; background: linear-gradient(90deg, var(--accent), #d6dee9); }
.code-line {
  padding: 18px;
  border-radius: 8px;
  background: #11151d;
  color: #daf8f5;
  font: 800 14px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}
button.code-line {
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.status-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}
.status-grid strong { display: block; font-size: 30px; line-height: 1; }
.status-grid small { color: var(--muted); font-weight: 800; }

.models, .pricing, .setup, .contact, .footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}
.models { padding: 22px 0 72px; }
.section-head { max-width: 780px; margin-bottom: 26px; }
.section-head p:not(.eyebrow), .pricing p, .contact p { margin-bottom: 0; color: var(--muted); font-size: 18px; }
.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.model-card {
  min-height: 194px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(17, 21, 29, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.model-card.flagship { background: #11151d; color: #fff; border-color: #11151d; }
.model-card.speed { border-top: 4px solid var(--accent); }
.model-card.legacy { background: #fbfcfe; }
.model-card span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.model-card.flagship span { background: rgba(255,255,255,0.12); color: #9ff3eb; }
.model-card strong {
  display: block;
  font: 900 17px/1.25 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}
.model-card p { margin: 0; color: var(--muted); font-size: 14px; }
.model-card.flagship p { color: rgba(255,255,255,0.74); }

.pricing {
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 52px rgba(17, 21, 29, 0.08);
}
.pricing-head { max-width: 720px; margin-bottom: 26px; }
.pass-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pass-card {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.pass-card.featured { background: #11151d; color: #fff; border-color: #11151d; }
.pass-card span { color: var(--muted); font-weight: 900; }
.pass-card.featured span, .pass-card.featured p { color: rgba(255,255,255,0.72); }
.pass-card strong { margin: 18px 0 10px; font-size: 44px; line-height: 1; letter-spacing: 0; }
.pass-card p { font-size: 15px; }
.pass-actions {
  margin-top: auto;
  width: 100%;
  display: grid;
  gap: 10px;
}
.pass-card .btn { width: 100%; }
.btn.paypal {
  background: #ffc439;
  color: #11151d;
  border-color: #ffc439;
}
.btn.paypal:hover { background: #f4b800; border-color: #f4b800; }
.trial-link {
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}
.trial-link:hover { color: var(--ink); }
.pass-card.featured .trial-link { color: rgba(255,255,255,0.74); }
.pass-card.featured .trial-link:hover { color: #fff; }

.setup {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 24px;
  align-items: stretch;
  padding: 88px 0 0;
}
.setup-copy, .code-card, .qr-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 52px rgba(17, 21, 29, 0.08);
}
.setup-copy { padding: 34px; }
.setup-copy p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.endpoint-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
.endpoint-list button {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.endpoint-list button:hover { border-color: var(--accent); background: #f7fbfb; }
.endpoint-list strong, .endpoint-list span { display: block; }
.endpoint-list span { margin-top: 4px; color: var(--muted); font: 900 13px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; }
.model-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.model-list span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: #475467;
  font: 900 12px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.code-card { overflow: hidden; }
.code-head {
  min-height: 56px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}
.code-head button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
}
.code-card pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  max-height: 620px;
  background: #11151d;
  color: #daf8f5;
  font: 800 13px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.contact { padding: 88px 0 70px; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
  align-items: start;
  margin-top: 24px;
}
.contact-layout .contact-links { margin-top: 0; }
.qr-card { padding: 14px; text-align: center; }
.qr-card img { width: 100%; border-radius: 8px; display: block; }
.qr-card span { display: block; margin-top: 10px; color: var(--muted); font-weight: 900; font-size: 13px; }
.contact-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.contact-links a {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.contact-links strong, .contact-links span { display: block; }
.contact-links span { margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.footer { padding: 28px 0 40px; color: var(--muted); border-top: 1px solid var(--line); }
.footer p { margin: 0; }

.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 60; }
.chat-launcher {
  min-width: 96px;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 18px 50px rgba(17, 21, 29, 0.22);
  cursor: pointer;
}
.chat-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.chat-head {
  min-height: 64px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.chat-head small { display: block; color: var(--muted); }
.chat-head button { border: 0; background: transparent; font-size: 24px; cursor: pointer; }
.chat-log {
  min-height: 210px;
  max-height: 300px;
  overflow: auto;
  padding: 16px;
  background: #fbfcfe;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg { max-width: 82%; padding: 11px 12px; border-radius: 8px; font-size: 14px; }
.chat-msg.agent { align-self: flex-start; background: #eef3f8; }
.chat-msg.user { align-self: flex-end; background: var(--accent); color: #fff; }
.chat-form { display: grid; grid-template-columns: 1fr 76px; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.chat-form button { border: 0; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 900; cursor: pointer; }
.chat-channels { display: flex; gap: 8px; padding: 0 12px 12px; }
.chat-channels a { flex: 1; padding: 8px; border: 1px solid var(--line); border-radius: 8px; text-align: center; color: var(--muted); font-size: 12px; font-weight: 900; }

@media (max-width: 980px) {
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .setup, .contact-layout { grid-template-columns: 1fr; }
  .endpoint-list { grid-template-columns: 1fr; }
  .qr-card { max-width: 260px; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 34px; padding-top: 46px; }
  .hero-card { min-height: 340px; }
  .pricing { padding: 30px 22px; }
  .pass-grid { grid-template-columns: 1fr; }
  .contact-links { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .setup-copy { padding: 24px; }
  .code-card pre { font-size: 12px; }
  .nav { width: min(100% - 24px, 1160px); }
  .brand span:last-child, .nav-link { display: none; }
  .nav-actions { gap: 10px; }
  .nav-cta { padding-inline: 12px; }
  .hero, .models, .pricing, .setup, .contact, .footer { width: min(100% - 24px, 1160px); }
  h1 { font-size: 42px; }
  .hero-lead { font-size: 18px; }
  .hero-actions .btn { width: 100%; }
  .route-line { grid-template-columns: 1fr; }
  .route-line i { height: 28px; width: 2px; justify-self: center; background: linear-gradient(180deg, var(--accent), #d6dee9); }
  .status-grid, .model-grid { grid-template-columns: 1fr; }
  .chat-widget { right: 12px; bottom: 12px; }
}
