:root {
  --bg: #081018;
  --card: #121c2c;
  --line: rgba(212, 181, 106, 0.22);
  --text: #f4efe4;
  --muted: #b7c0cc;
  --gold: #d4b56a;
  --gold-2: #f0d78c;
  --teal: #2a9d8f;
  --font: "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: #0a1522;
  line-height: 1.65;
}

a {
  color: var(--gold);
  text-decoration: none;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 20px 24px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 90% 50% at 50% -8%, rgba(212, 181, 106, 0.14), transparent 58%),
    linear-gradient(180deg, #0a1522 0%, var(--bg) 40%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 12px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, #081018 72%, transparent);
}

.brand {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 14px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
}

.nav a:hover,
.nav a.is-on {
  color: var(--gold-2);
}

.hero--home {
  text-align: center;
  padding: 8px 0 4px;
}

.hero--home .eyebrow {
  margin: 0 0 4px;
  letter-spacing: 0.18em;
}

.hero--home h1 {
  font-size: 26px;
  letter-spacing: 0.06em;
  margin: 0;
}

.hero-split {
  position: relative;
  height: 12px;
  margin: 6px auto 2px;
  max-width: 240px;
}

.hero-split::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 181, 106, 0.2) 12%,
    rgba(240, 215, 140, 0.85) 50%,
    rgba(212, 181, 106, 0.2) 88%,
    transparent 100%
  );
}

.hero-split i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold-2);
  background: var(--bg);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 8px rgba(212, 181, 106, 0.5);
}

.hero--home .lead {
  max-width: 32em;
  margin: 6px auto 0;
  font-size: 13px;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.3;
}

.lead {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 16px 0 8px;
}

.card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 108px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: inherit;
  overflow: hidden;
}

.card h2,
.card p {
  margin: 0;
  padding: 16px 14px;
}

.card h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  line-height: 1.25;
  color: var(--gold-2);
  border-right: 1px solid var(--line);
  background: rgba(212, 181, 106, 0.06);
}

.card p {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.card--3 {
  grid-template-columns: 112px 1fr 96px;
}

.card-name,
.card-desc,
.card-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  text-decoration: none;
}

.card-name {
  padding: 16px 10px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gold-2);
  border-right: 1px solid var(--line);
  background: rgba(212, 181, 106, 0.06);
}

.card-desc {
  justify-content: flex-start;
  padding: 16px 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

.card-demo {
  padding: 12px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--gold-2);
  background: rgba(212, 181, 106, 0.06);
  border-left: 1px solid var(--line);
}

.card-demo:hover {
  background: rgba(212, 181, 106, 0.16);
  color: var(--gold-2);
}

.price-grid {
  display: grid;
  gap: 14px;
  margin: 16px 0 8px;
}

.price-card {
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.price-kicker {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.price-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.3;
  color: var(--gold-2);
}

.price-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.price-card ul {
  margin: 0 0 16px;
  padding-left: 1.15em;
  color: var(--muted);
  font-size: 13px;
}

.price-card li + li {
  margin-top: 6px;
}

.price-card .btn {
  width: 100%;
}

@media (max-width: 560px) {
  .actions--3 .btn {
    font-size: 12px;
    padding: 10px 4px;
  }

  .card,
  .card--3 {
    grid-template-columns: 1fr;
  }

  .card h2,
  .card-name {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .card-demo {
    border-left: none;
    border-top: 1px solid var(--line);
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.actions--3 {
  flex-wrap: nowrap;
}

.actions--3 .btn {
  flex: 1;
  min-width: 0;
  padding: 10px 8px;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--gold);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--gold);
  color: #1a1408;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold-2);
  color: #1a1408;
}

.btn-ghost {
  background: transparent;
  color: var(--gold-2);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--gold);
  color: #1a1408;
}

.note {
  margin: 28px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(42, 157, 143, 0.12);
  color: var(--muted);
  font-size: 13px;
}

.block {
  margin-top: 28px;
}

.block h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.block p,
.block li {
  color: var(--muted);
}

.company-name {
  text-align: center;
  margin: 10px 0 4px;
  line-height: 1.4;
}

.company-name + .demo-row {
  margin-top: 6px;
}

.block ul {
  padding-left: 1.2em;
}

.demo-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 0;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}

.demo-row-label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 10px;
  border-right: 1px solid var(--line);
  background: rgba(212, 181, 106, 0.06);
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.demo-row-links {
  display: flex;
  flex-direction: column;
}

.demo-row-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
}

.demo-row-links a:last-child {
  border-bottom: none;
}

.demo-row-links a:hover {
  color: var(--gold-2);
}

.demo-row-links p {
  margin: 0;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  white-space: normal;
  line-height: 1.7;
}

.demo-row-links p:last-child {
  border-bottom: none;
}

.demo-row-links p a {
  display: inline;
  padding: 0;
  border: none;
  color: var(--gold-2);
  white-space: normal;
}

.order-viewport {
  display: block;
  height: 168px;
  overflow: hidden;
}

.order-track {
  display: flex;
  flex-direction: column;
}

.order-viewport p,
.order-track p {
  flex: 0 0 42px;
  height: 42px;
  margin: 0;
  padding: 0 14px;
  line-height: 42px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-viewport p:last-child,
.order-track p:last-child {
  border-bottom: 1px solid var(--line);
}

.order-track.is-rolling {
  animation: order-marquee 16s linear infinite;
}

.order-viewport:hover .order-track.is-rolling {
  animation-play-state: paused;
}

@keyframes order-marquee {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.hero .card {
  margin-top: 8px;
}

.hero:not(.hero--home) .eyebrow {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-2);
}

.demo-desc {
  color: rgba(183, 192, 204, 0.72);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.form label {
  font-size: 13px;
  color: var(--muted);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0c1622;
  color: var(--text);
  font: inherit;
}

.form textarea {
  min-height: 96px;
  resize: vertical;
}

.form .btn {
  justify-self: center;
}

.hint {
  font-size: 13px;
  color: var(--muted);
}

.form-ok {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(212, 181, 106, 0.08);
}

.form-ok-title {
  margin: 0 0 6px;
  color: var(--gold-2);
  font-size: 16px;
  font-weight: 600;
}

.form-ok-desc {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.form-ok-copy {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0c1622;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}

.form-ok .btn {
  justify-self: start;
}

.page--wide {
  max-width: 960px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.stat {
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  text-align: center;
}

.stat b {
  display: block;
  color: var(--gold-2);
  font-size: 22px;
  line-height: 1.2;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
}

.table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.inbox-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.inbox-table th,
.inbox-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.inbox-table th {
  color: var(--gold-2);
  font-weight: 600;
  white-space: nowrap;
}

.inbox-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 640px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  line-height: 1.8;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--gold-2);
}

html.is-embed .topbar,
html.is-embed footer {
  display: none;
}

html.is-embed .page {
  min-height: 0;
  padding-top: 8px;
  padding-bottom: 16px;
}

.popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 18, 0.72);
}

.popup-box {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #0a1522;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 600;
}

.popup-close {
  border: 0;
  background: transparent;
  color: var(--gold-2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.popup-box iframe {
  width: 100%;
  height: min(78vh, 640px);
  border: 0;
  background: #0a1522;
}

.popup-demos {
  padding: 12px;
}

.popup-demos .demo-row {
  margin-top: 0;
}
