:root {
  --ink: #071116;
  --ink-soft: #12232b;
  --panel: #0d1b22;
  --line: rgba(255, 255, 255, 0.12);
  --text: #ecf7fa;
  --muted: #9fb3bc;
  --cyan: #18d7ef;
  --cyan-deep: #0b8da3;
  --amber: #f0b850;
  --paper: #f5f8f8;
  --paper-text: #16252c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  width: 100%;
  max-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(7, 17, 22, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 2px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 119, 255, 0.2);
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(236, 247, 250, 0.84);
  font-size: 14px;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 124px clamp(20px, 5vw, 72px) 90px;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 17, 22, 0.96) 0%, rgba(7, 17, 22, 0.78) 38%, rgba(7, 17, 22, 0.24) 78%),
    linear-gradient(180deg, rgba(7, 17, 22, 0.2), rgba(7, 17, 22, 0.92));
}

.hero-content {
  width: min(760px, 100%);
  max-width: 100%;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  max-width: 740px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
}

h2 {
  margin-bottom: 16px;
  color: inherit;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.25;
}

.hero-lead {
  max-width: 660px;
  color: rgba(236, 247, 250, 0.82);
  font-size: clamp(17px, 2vw, 21px);
  overflow-wrap: anywhere;
  word-break: break-all;
}

.hero-actions,
.product-actions,
.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

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

.btn.primary {
  color: #061217;
  background: linear-gradient(135deg, var(--cyan), #85f2ff);
  box-shadow: 0 16px 34px rgba(24, 215, 239, 0.2);
}

.btn.ghost,
.btn.subtle {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.btn.ghost.dark {
  border-color: rgba(7, 17, 22, 0.18);
  color: var(--paper-text);
}

.btn.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.trust-strip span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(236, 247, 250, 0.86);
  font-size: 13px;
}

.section {
  padding: 92px clamp(20px, 5vw, 72px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: rgba(255, 255, 255, 0.08);
}

.stat {
  min-height: 132px;
  padding: 28px;
  background: #0b181e;
}

.stat strong {
  display: block;
  color: var(--cyan);
  font-size: 34px;
  line-height: 1;
}

.stat span {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) 1.6fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  background: var(--paper);
  color: var(--paper-text);
}

.section-heading {
  position: sticky;
  top: 100px;
}

.section-heading p:not(.eyebrow) {
  color: #50646d;
  font-size: 17px;
}

.centered {
  position: static;
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}

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

.category-hub {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  background: var(--paper);
  color: var(--paper-text);
}

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

.category-card {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(7, 17, 22, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(16, 37, 45, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 141, 163, 0.36);
  box-shadow: 0 22px 52px rgba(16, 37, 45, 0.12);
}

.category-card.featured {
  color: var(--text);
  background: linear-gradient(145deg, #0d1b22, #16323b);
}

.category-card .category-number {
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(11, 141, 163, 0.14);
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
}

.category-card.featured .category-number {
  color: rgba(24, 215, 239, 0.14);
}

.category-card h3 {
  max-width: calc(100% - 48px);
}

.category-card > p:last-of-type {
  flex: 1;
  color: #526870;
}

.category-card.featured > p:last-of-type {
  color: rgba(236, 247, 250, 0.72);
}

.category-card strong {
  color: var(--cyan-deep);
  font-size: 14px;
}

.category-card.featured strong {
  color: var(--cyan);
}

.product-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid rgba(7, 17, 22, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(16, 37, 45, 0.08);
}

.product-card.featured {
  background: linear-gradient(145deg, #0d1b22, #142d36);
  color: var(--text);
}

.product-card.featured p {
  color: rgba(236, 247, 250, 0.74);
}

.product-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(24, 215, 239, 0.13);
  color: var(--cyan-deep);
  font-weight: 900;
}

.featured .product-icon {
  color: var(--cyan);
  background: rgba(24, 215, 239, 0.18);
}

.tag {
  margin-bottom: 8px;
  color: var(--cyan-deep);
  font-size: 13px;
  font-weight: 700;
}

.product-card > p:last-of-type {
  flex: 1;
  color: #526870;
}

.product-price {
  margin: 4px 0 18px;
  color: var(--cyan-deep);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.featured .product-price {
  color: var(--cyan);
}

.payment-section {
  background:
    radial-gradient(circle at top left, rgba(24, 215, 239, 0.16), transparent 34%),
    linear-gradient(180deg, #0b181e, #071116);
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) repeat(2, minmax(260px, 1fr));
  gap: 18px;
  max-width: 1160px;
  margin: 0 auto;
  align-items: stretch;
}

.service-state,
.payment-feedback {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.service-state {
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(7, 17, 22, 0.5);
}

.service-state.ready {
  border-color: rgba(66, 227, 132, 0.36);
  color: #b9f7d1;
  background: rgba(66, 227, 132, 0.08);
}

.service-state.error,
.form-status.error {
  border-color: rgba(255, 118, 118, 0.38);
  color: #ffc1c1;
  background: rgba(255, 86, 86, 0.09);
}

.service-state.loading {
  border-color: rgba(87, 184, 255, 0.34);
  color: #b9e1ff;
}

.payment-feedback {
  min-height: 42px;
  color: var(--muted);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
  transform: none;
}

.btn.loading {
  cursor: progress;
}

.order-summary,
.pay-card {
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 430px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.order-price {
  color: var(--cyan);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.order-summary p:not(.eyebrow),
.pay-card p:not(.tag) {
  color: var(--muted);
}

.qr-box {
  position: relative;
  display: grid;
  width: min(100%, 245px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  border: 12px solid #fff;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #111 8px, transparent 8px) 0 0 / 24px 24px,
    linear-gradient(#111 8px, transparent 8px) 0 0 / 24px 24px,
    conic-gradient(from 90deg, #111 90deg, #fff 0) 0 0 / 48px 48px,
    #fff;
  overflow: hidden;
}

.qr-box::before,
.qr-box::after {
  content: "";
  position: absolute;
  width: 52px;
  height: 52px;
  border: 12px solid #111;
  background: #fff;
}

.qr-box::before {
  left: 14px;
  top: 14px;
}

.qr-box::after {
  right: 14px;
  top: 14px;
}

.qr-box span {
  position: relative;
  z-index: 1;
  max-width: 128px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #071116;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  line-height: 1.35;
}

.qr-box img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.qr-box img.manual-qr {
  transform: scale(1.65);
  transform-origin: 50% 38%;
}

.qr-box img:not([hidden]) + span {
  display: none;
}

.wechat .tag {
  color: #42e384;
}

.alipay .tag {
  color: #57b8ff;
}

.workflow {
  background:
    linear-gradient(180deg, #071116, #0d1b22 62%, #0a151a);
}

.register-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
  align-items: start;
}

.license-form,
.process-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.license-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

label {
  display: grid;
  gap: 8px;
  color: rgba(236, 247, 250, 0.84);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  outline: none;
  background: rgba(7, 17, 22, 0.72);
  color: var(--text);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(24, 215, 239, 0.12);
}

input:read-only,
select:disabled {
  color: rgba(236, 247, 250, 0.66);
  background: rgba(7, 17, 22, 0.48);
  cursor: default;
}

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

.submit {
  width: 100%;
}

.form-note,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-status.success {
  padding: 12px 14px;
  border: 1px solid rgba(24, 215, 239, 0.35);
  border-radius: 8px;
  color: #bdf8ff;
  background: rgba(24, 215, 239, 0.09);
}

.form-status.error {
  padding: 12px 14px;
  border-style: solid;
  border-width: 1px;
  border-radius: 8px;
}

.payment-state {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(240, 184, 80, 0.34);
  border-radius: 8px;
  background: rgba(240, 184, 80, 0.09);
}

.payment-state.ready {
  border-color: rgba(24, 215, 239, 0.35);
  background: rgba(24, 215, 239, 0.09);
}

.payment-state strong,
.payment-state span {
  display: block;
}

.payment-state span {
  color: var(--muted);
  font-size: 14px;
}

.license-code {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(24, 215, 239, 0.35);
  border-radius: 8px;
  background: rgba(7, 17, 22, 0.55);
}

.license-code code {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
  user-select: all;
}

.copy-license {
  justify-self: start;
}

.process-panel {
  padding: 28px;
}

.process-panel ol {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.process-panel li {
  position: relative;
  padding-left: 50px;
  counter-increment: steps;
}

.process-panel li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(24, 215, 239, 0.14);
  color: var(--cyan);
  font-weight: 900;
}

.process-panel strong,
.process-panel span {
  display: block;
}

.process-panel span {
  color: var(--muted);
  font-size: 14px;
}

.details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: var(--paper);
  color: var(--paper-text);
}

.details.reverse {
  background: #eaf0f1;
}

.detail-block p:not(.eyebrow),
.check-list {
  color: #50646d;
  font-size: 17px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 8px;
  border-left: 2px solid var(--cyan-deep);
  border-bottom: 2px solid var(--cyan-deep);
  transform: rotate(-45deg);
}

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

.capability-grid div {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(24, 215, 239, 0.17), rgba(255, 255, 255, 0.02)),
    #0d1b22;
  color: var(--text);
}

.capability-grid.warm div {
  background:
    linear-gradient(145deg, rgba(240, 184, 80, 0.17), rgba(255, 255, 255, 0.02)),
    #142026;
}

.capability-grid strong,
.capability-grid span {
  display: block;
}

.capability-grid span {
  color: var(--muted);
  font-size: 14px;
}

.support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #f8fbfb;
  color: var(--paper-text);
}

.support p {
  max-width: 720px;
  color: #50646d;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #071116;
}

.footer strong {
  color: var(--text);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid !important;
    position: fixed;
    top: 14px;
    right: 16px;
    left: auto;
    z-index: 40;
    place-content: center;
  }

  .nav {
    position: absolute;
    inset: 78px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(7, 17, 22, 0.96);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px;
  }

  .hero {
    min-height: 86vh;
  }

  .stats,
  .product-grid,
  .category-hub,
  .category-card-grid,
  .split,
  .payment-layout,
  .register-layout,
  .details,
  .form-row {
    grid-template-columns: 1fr;
  }

  .section-heading {
    position: static;
  }

  .support {
    display: grid;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding: 112px 18px 64px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(7, 17, 22, 0.84), rgba(7, 17, 22, 0.78)),
      linear-gradient(90deg, rgba(7, 17, 22, 0.92), rgba(7, 17, 22, 0.55));
  }

  h1 {
    font-size: 28px;
    line-height: 1.14;
  }

  .section {
    padding: 64px 18px;
  }

  .stats {
    padding: 0;
  }

  .stat {
    min-height: 110px;
  }

  .product-card {
    min-height: auto;
  }

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

  .btn {
    width: 100%;
  }

  .trust-strip span {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
  }
}

.admin-page {
  min-height: 100vh;
  background: #071116;
}

.admin-header {
  display: flex;
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 56px);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #0b181e;
}

.admin-header .btn,
.admin-result-heading .btn {
  width: auto;
  flex: 0 0 auto;
}

.admin-shell {
  display: grid;
  gap: 24px;
  padding: 42px clamp(18px, 4vw, 56px) 64px;
}

.admin-toolbar,
.admin-results {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: 32px;
  padding: 28px;
  align-items: end;
}

.admin-toolbar h1 {
  margin: 6px 0 10px;
  font-size: 32px;
}

.admin-toolbar p,
.admin-result-heading p {
  margin: 0;
  color: var(--muted);
}

.admin-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.admin-results {
  min-width: 0;
  overflow: hidden;
}

.admin-result-heading {
  display: flex;
  padding: 22px 24px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.admin-result-heading h2 {
  margin: 0 0 4px;
  font-size: 21px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
  white-space: pre-line;
}

.admin-table th {
  color: #b9d1d8;
  background: rgba(7, 17, 22, 0.58);
  font-weight: 800;
}

.admin-table td {
  color: rgba(236, 247, 250, 0.84);
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table td[data-state="licensed"] {
  color: #7ff0a8;
}

.admin-mono {
  max-width: 220px;
  overflow-wrap: anywhere;
  font-family: Consolas, "Courier New", monospace;
}

.admin-empty {
  padding: 42px !important;
  color: var(--muted) !important;
  text-align: center !important;
}

@media (max-width: 820px) {
  .admin-toolbar,
  .admin-auth {
    grid-template-columns: 1fr;
  }

  .admin-result-heading {
    align-items: flex-start;
    gap: 16px;
  }
}
