:root {
  --ink: #e8f6f2;
  --ink-dim: rgba(232, 246, 242, 0.72);
  --deep: #061618;
  --panel: rgba(8, 28, 34, 0.72);
  --line: rgba(62, 196, 180, 0.28);
  --teal: #3ec4b4;
  --teal-2: #4aafde;
  --warn: #e8a24a;
  --err: #e86a5c;
  --ok: #3ec4b4;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "DM Sans", sans-serif;
  --radius: 4px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--deep);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(6, 22, 24, 0.35) 0%, rgba(6, 22, 24, 0.82) 55%, #061618 100%),
    url("../assets/hero.png") center / cover no-repeat,
    radial-gradient(ellipse 900px 520px at 70% 20%, rgba(62, 196, 180, 0.18), transparent 60%),
    radial-gradient(ellipse 700px 480px at 15% 80%, rgba(74, 175, 222, 0.14), transparent 55%),
    #061618;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 71px,
      rgba(62, 196, 180, 0.04) 71px,
      rgba(62, 196, 180, 0.04) 72px
    );
  animation: grid-drift 18s linear infinite;
  opacity: 0.7;
}

@keyframes grid-drift {
  from { transform: translateY(0); }
  to { transform: translateY(72px); }
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: #8ef0e2; }
img { max-width: 100%; display: block; }
.wrap { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px) saturate(1.1);
  background: rgba(6, 22, 24, 0.55);
  border-bottom: 1px solid rgba(62, 196, 180, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 700;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(62, 196, 180, 0.45);
  animation: brand-pulse 3.2s ease-in-out infinite;
}
@keyframes brand-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(62, 196, 180, 0.35), 0 0 0 0 rgba(62, 196, 180, 0); }
  50% { box-shadow: 0 0 0 1px rgba(62, 196, 180, 0.7), 0 0 22px 2px rgba(62, 196, 180, 0.22); }
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}
.nav {
  margin-left: auto;
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink-dim);
  font-size: 0.95rem;
}
.nav a:hover,
.nav a.active { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), #2a8f9e);
  color: #042228;
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--teal); }

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  padding: 4rem 0 5rem;
}
.hero-inner {
  max-width: 720px;
  animation: rise 0.9s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: 0.12em;
  margin: 0 0 1rem;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}
.hero-brand span {
  display: block;
  color: var(--teal);
  font-size: 0.38em;
  letter-spacing: 0.35em;
  margin-bottom: 0.55rem;
  font-family: var(--font-body);
  font-weight: 500;
}
.hero p {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--ink-dim);
  font-size: 1.08rem;
}
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

.section {
  padding: 4.5rem 0;
  border-top: 1px solid rgba(62, 196, 180, 0.1);
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.08em;
  margin: 0 0 0.6rem;
}
.section .lead {
  margin: 0 0 2rem;
  color: var(--ink-dim);
  max-width: 36rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.form-grid {
  display: grid;
  gap: 1rem;
}
label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: var(--ink-dim);
}
input, select {
  width: 100%;
  border: 1px solid rgba(62, 196, 180, 0.25);
  background: rgba(4, 18, 22, 0.75);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  font: inherit;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(62, 196, 180, 0.15);
}
.hint { font-size: 0.82rem; color: rgba(232, 246, 242, 0.5); }
.form-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }

.alert {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  display: none;
}
.alert.show { display: block; animation: rise 0.35s ease both; }
.alert.ok {
  background: rgba(62, 196, 180, 0.12);
  border-color: rgba(62, 196, 180, 0.35);
  color: #b8fff3;
}
.alert.err {
  background: rgba(232, 106, 92, 0.12);
  border-color: rgba(232, 106, 92, 0.35);
  color: #ffd1cb;
}
.number-result {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border: 1px dashed rgba(62, 196, 180, 0.45);
  border-radius: 8px;
  text-align: center;
  display: none;
}
.number-result.show { display: block; animation: rise 0.45s ease both; }
.number-result strong {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.08em;
  color: var(--teal);
  line-height: 1.1;
}

.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(62, 196, 180, 0.1);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  color: var(--teal);
  font-size: 1.4rem;
  min-width: 2.2rem;
}
.step h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--ink-dim); font-size: 0.95rem; }

.page-hero {
  padding: 3.5rem 0 1.5rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.1em;
  margin: 0 0 0.5rem;
}
.page-hero p { margin: 0; color: var(--ink-dim); max-width: 36rem; }

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid rgba(62, 196, 180, 0.12);
  white-space: nowrap;
}
th { color: var(--ink-dim); font-weight: 500; }
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid currentColor;
}
.badge.active { color: var(--ok); }
.badge.banned { color: var(--err); }
.badge.pending { color: var(--warn); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.stat {
  background: rgba(4, 18, 22, 0.55);
  border: 1px solid rgba(62, 196, 180, 0.15);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--teal);
}
.stat span { color: var(--ink-dim); font-size: 0.85rem; }

.site-footer {
  border-top: 1px solid rgba(62, 196, 180, 0.1);
  padding: 2rem 0 2.5rem;
  color: var(--ink-dim);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; padding: 0.6rem 0; }
  .nav { margin-left: 0; width: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { align-items: center; min-height: calc(100vh - 120px); }
}
