:root {
  color-scheme: dark;
  --bg: #080d16;
  --panel: #101826;
  --panel-2: #141f30;
  --line: #263348;
  --line-soft: #1d2839;
  --text: #eef6ff;
  --muted: #95a7bd;
  --faint: #65748a;
  --cyan: #26d9e8;
  --blue: #4b8dff;
  --green: #3ee4a6;
  --gold: #ffd166;
  --danger: #ff6b78;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --font: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(38, 217, 232, 0.13), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(75, 141, 255, 0.14), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 13, 22, 0.86);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #06111d;
}

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

.nav-links a:hover {
  color: var(--text);
}

.nav-cta,
.btn {
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 800;
}

.nav-cta,
.btn.primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #06111d;
}

.btn.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero-section {
  padding: 72px 16px 42px;
}

.hero-inner,
.section,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 48px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-desc {
  max-width: 720px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 17px;
}

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

.hero-points {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points span {
  border: 1px solid rgba(38, 217, 232, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  color: #bfeff5;
  background: rgba(38, 217, 232, 0.08);
  font-size: 13px;
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(16, 24, 38, 0.86);
  box-shadow: var(--shadow);
}

.flow-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 18px;
  background: #0c1422;
}

.flow-card strong {
  display: block;
  margin-top: 4px;
  font-size: 19px;
}

.label {
  color: var(--muted);
  font-size: 13px;
}

.flow-line {
  width: 2px;
  height: 34px;
  margin: 0 auto;
  background: linear-gradient(var(--cyan), var(--blue));
}

.section {
  padding: 54px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
}

.section-heading p:not(.section-kicker) {
  color: var(--muted);
}

.split-grid,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.info-box,
.recommend-card,
.step-card,
.plan-card,
.notice-box {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(16, 24, 38, 0.82);
}

.info-box {
  padding: 22px;
}

.info-box p,
.step-card p,
.plan-card p,
.recommend-card p,
.notice-box li {
  color: var(--muted);
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.recommend-card {
  padding: 22px;
}

.recommend-card.featured {
  border-color: rgba(38, 217, 232, 0.5);
  background: linear-gradient(180deg, rgba(38, 217, 232, 0.09), rgba(16, 24, 38, 0.9));
}

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

.badge,
.score {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.badge {
  background: rgba(38, 217, 232, 0.14);
  color: #bff8ff;
}

.badge.muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.score {
  color: var(--gold);
  background: rgba(255, 209, 102, 0.12);
}

.recommend-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.recommend-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.recommend-card li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.text-link {
  color: var(--cyan);
  font-weight: 900;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-card {
  padding: 20px;
}

.step-card span {
  color: var(--cyan);
  font-weight: 900;
}

.plan-card {
  padding: 24px;
}

.plan-card.recommended {
  border-color: rgba(62, 228, 166, 0.44);
}

.price {
  color: var(--green) !important;
  font-weight: 900;
}

.notice-box {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  padding: 28px;
  border-color: rgba(255, 209, 102, 0.35);
}

.notice-box ul {
  display: grid;
  gap: 10px;
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 26px 0;
  color: var(--faint);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
}

.chat-anchor {
  position: absolute;
}

.chat-launcher {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2ff0ff, #4b8dff);
  color: #06111d;
  box-shadow: 0 0 0 8px rgba(38, 217, 232, 0.13), 0 24px 54px rgba(38, 217, 232, 0.34);
  cursor: pointer;
  font-size: 20px;
  font-weight: 1000;
}

.chat-launcher::before {
  content: "点我";
  position: absolute;
  top: -15px;
  right: 8px;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
}

.chat-launcher:hover {
  transform: translateY(-2px);
}

.chat-launcher.has-unread {
  animation: chatPulse 1.35s ease-in-out infinite;
}

.chat-launcher .unread-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  display: none;
  place-items: center;
  border: 2px solid #07111d;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 13px;
  font-weight: 1000;
}

.chat-launcher.has-unread .unread-badge {
  display: grid;
}

@keyframes chatPulse {
  0%, 100% {
    box-shadow: 0 0 0 8px rgba(38, 217, 232, 0.13), 0 24px 54px rgba(38, 217, 232, 0.34);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(255, 107, 120, 0.18), 0 24px 62px rgba(255, 107, 120, 0.36);
  }
}

.chat-launcher.hidden {
  display: none;
}

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  width: min(420px, calc(100vw - 28px));
  height: min(700px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(38, 217, 232, 0.32);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.chat-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-panel.minimized {
  height: auto;
}

.chat-panel.minimized .visitor-note,
.chat-panel.minimized .chat-messages,
.chat-panel.minimized .chat-input-bar {
  display: none;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  background: #15243a;
  border-bottom: 1px solid var(--line);
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.chat-sub {
  color: var(--muted);
  font-size: 12px;
}

.conn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
}

.conn-dot.online {
  background: var(--green);
}

.chat-header-actions {
  display: flex;
  gap: 6px;
}

.icon-btn-sm {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.chat-retention-notice {
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 209, 102, 0.22);
  background: rgba(255, 209, 102, 0.1);
  color: #ffe4a3;
  font-size: 13px;
  font-weight: 800;
}

.visitor-note {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: #0d1625;
}

.visitor-note label {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.visitor-note-row {
  display: grid;
  grid-template-columns: 1fr 68px;
  gap: 8px;
}

#visitor-note-input,
#chat-input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #08111f;
  color: var(--text);
  outline: none;
}

#visitor-note-input {
  height: 38px;
  padding: 0 11px;
}

#visitor-note-input.locked {
  border-color: rgba(62, 228, 166, 0.38);
  background: rgba(62, 228, 166, 0.08);
  color: #d8fff0;
  cursor: default;
}

#visitor-note-save,
.send-btn {
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #06111d;
  cursor: pointer;
  font-weight: 900;
}

.visitor-note-help {
  color: var(--faint);
  font-size: 12px;
}

.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg-row {
  max-width: 88%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msg-row.agent {
  align-self: flex-start;
}

.msg-row.user {
  align-self: flex-end;
  align-items: flex-end;
}

.msg-row.system {
  align-self: center;
  max-width: 94%;
}

.msg-bubble {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  white-space: pre-line;
}

.msg-row.user .msg-bubble {
  background: #153f59;
}

.msg-row.system .msg-bubble {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.msg-time {
  color: var(--faint);
  font-size: 11px;
}

.chat-input-bar {
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #0d1625;
}

#chat-input {
  height: 42px;
  padding: 0 12px;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero-inner,
  .notice-box {
    grid-template-columns: 1fr;
  }

  .split-grid,
  .plan-grid,
  .recommend-grid,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 62px;
  }

  .nav-cta {
    display: none;
  }

  .hero-section {
    padding-top: 46px;
  }

  .chat-launcher {
    right: 16px;
    bottom: 16px;
    width: 82px;
    height: 82px;
    font-size: 17px;
  }

  .chat-panel {
    right: 10px;
    left: 10px;
    top: 10px;
    bottom: auto;
    width: calc(100vw - 20px);
    height: min(720px, calc(100dvh - 24px));
    max-height: calc(100dvh - 24px);
  }

  .chat-header {
    padding: 12px 14px;
  }

  .chat-retention-notice {
    padding: 7px 12px;
    font-size: 12px;
  }

  .visitor-note {
    padding: 10px 12px;
  }

  .visitor-note-help {
    display: none;
  }

  .chat-messages {
    padding: 12px;
  }

  .chat-input-bar {
    grid-template-columns: 1fr 64px;
    padding: 10px 12px;
  }
}
