:root {
  --bg0: #0c1210;
  --bg1: #14201b;
  --bg2: #1a2c25;
  --line: rgba(180, 220, 190, 0.14);
  --text: #e8f2ec;
  --muted: #8aa396;
  --accent: #c8f542;
  --accent-dim: rgba(200, 245, 66, 0.15);
  --accent2: #f0c75e;
  --ok: #5dde9a;
  --danger: #ff6b7a;
  --radius: 14px;
  --font-display: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: Consolas, "Courier New", ui-monospace, monospace;
  --max: 1100px;
}
body.modal-open { overflow: hidden; }

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(200, 245, 66, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(60, 140, 110, 0.22), transparent 50%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 45%, #0e1814);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(12, 18, 16, 0.96);
  border-bottom: 1px solid var(--line);
}
.bar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-display);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.mark {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim), 0 0 16px rgba(200, 245, 66, 0.35);
}
.nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.nav a {
  color: var(--muted); font-size: 0.92rem; font-weight: 500;
  transition: color 0.15s;
}
.nav a:hover, .nav a.active { color: var(--accent); }
.nav .pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}
.nav .pill:hover, .nav .pill.active {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
}
.auth-slot { margin-left: 0.35rem; }
.btn-login {
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-login:hover { filter: brightness(1.08); }
.acct { position: relative; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 800;
  cursor: pointer;
}
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 220px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #121a17;
  z-index: 60;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.acct-name { font-weight: 700; }
.acct-mail { font-size: 0.8rem; margin-top: 2px; word-break: break-all; }

.auth-modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
}
.auth-modal[hidden] { display: none !important; }
.auth-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.62);
}
.auth-dialog {
  position: relative; z-index: 1;
  width: min(100%, 400px);
  padding: 22px 22px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #121a17;
}
.auth-x {
  position: absolute; top: 10px; right: 12px;
  border: 0; background: transparent; color: var(--muted);
  font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.auth-reason { margin: 0 0 12px; color: var(--muted); font-size: 0.92rem; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.auth-tabs button {
  flex: 1; border: 1px solid var(--line); background: transparent;
  color: var(--muted); border-radius: 999px; padding: 8px; cursor: pointer; font-weight: 600;
}
.auth-tabs button.on {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: var(--accent-dim);
}
.auth-form[hidden] { display: none !important; }

.section { padding: 3.2rem 0 4rem; }
.section-title {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  margin: 0 0 0.55rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}
.section-lead {
  max-width: 40rem;
  color: var(--muted);
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.panel {
  background: color-mix(in srgb, var(--bg2) 88%, black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 0; border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.92rem; font-weight: 600;
  cursor: pointer;
  background: var(--accent); color: #10160f;
  transition: transform 0.15s, filter 0.15s, opacity 0.15s;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  filter: none;
}
.btn-gold { background: var(--accent2); color: #1a1406; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: center;
  padding: 4rem 0 3rem;
}
.hero-visual {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(80% 70% at 85% 20%, rgba(200, 245, 66, 0.14), transparent 55%),
    radial-gradient(50% 50% at 10% 90%, rgba(61, 214, 198, 0.08), transparent 50%),
    linear-gradient(180deg, transparent 40%, rgba(12, 18, 16, 0.95) 100%);
}
.hero-copy { position: relative; z-index: 1; max-width: 36rem; }
.live {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 0.88rem; margin: 0 0 1rem;
}
.live i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 10px var(--ok);
}
.hero-brand {
  font-family: var(--font-display);
  letter-spacing: -0.05em;
  color: var(--accent);
  text-shadow: 0 0 60px rgba(200, 245, 66, 0.25);
  margin: 0;
  font-size: clamp(3.2rem, 10vw, 5.6rem);
  font-weight: 800;
  line-height: 0.95;
}
.hero-line {
  max-width: 22em;
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
}
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6rem; }

.showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.showcase-item {
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s, transform 0.15s;
}
.showcase-item:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  transform: translateY(-2px);
}
.showcase-item h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--accent);
  font-family: var(--font-display);
}
.showcase-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}
.showcase-item .hook {
  margin-top: 14px;
  color: var(--accent2);
  font-size: 0.88rem;
  font-weight: 600;
}
.bundle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: linear-gradient(120deg, rgba(200, 245, 66, 0.08), rgba(0, 0, 0, 0.25));
}
.bundle h3 { margin: 0 0 6px; font-size: 1.3rem; color: var(--accent); }
.bundle p { margin: 0; color: var(--muted); max-width: 34rem; line-height: 1.5; }

.card-list { display: grid; gap: 12px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
  padding: 16px 18px;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translateY(-1px);
}
.card h3 {
  font-family: var(--font-display);
  color: var(--accent);
  margin: 0 0 6px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.card p { color: var(--muted); margin: 0; line-height: 1.55; }
.meta {
  color: var(--accent2);
  font-size: 0.82rem;
  margin-top: 8px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

label.field {
  display: grid; gap: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
label.field input,
label.field textarea,
label.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  border-radius: 10px;
  outline: none;
  padding: 10px 12px;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.95rem;
}
label.field input:focus,
label.field textarea:focus,
label.field select:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
label.field textarea { min-height: 100px; resize: vertical; line-height: 1.5; }

pre, code { font-family: var(--font-mono); }
pre {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  overflow: auto;
  color: var(--accent);
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  margin: 0 0 10px;
}

.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ok { color: var(--ok); }
.err { color: var(--danger); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 0.8rem; word-break: break-all; }

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  margin-top: auto;
}
.footer .brand { margin-bottom: 0.4rem; }
.footer p { color: var(--muted); max-width: 28rem; margin: 0; line-height: 1.55; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td {
  border-bottom: 1px solid var(--line);
  padding: 8px 6px;
  text-align: left;
  vertical-align: top;
}
th { color: var(--muted); font-weight: 600; font-size: 0.78rem; }

.toast {
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 12px;
  border: 1px solid rgba(93, 222, 154, 0.35);
  background: rgba(93, 222, 154, 0.12);
  color: var(--ok);
}
.toast.bad {
  border-color: rgba(255, 107, 122, 0.35);
  background: rgba(255, 107, 122, 0.12);
  color: var(--danger);
}

.panel-h {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.sep {
  border: none;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0;
}
.price-sale {
  color: var(--accent2);
  font-weight: 700;
  font-size: 1.15rem;
}
.price-orig {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.9rem;
}
.login-hint {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}
.login-hint .btn { margin-top: 8px; }
.tabs-mini {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tabs-mini button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
}
.tabs-mini button.on,
.tabs-mini button:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: var(--accent-dim);
}

@media (max-width: 800px) {
  .grid-2, .showcase { grid-template-columns: 1fr; }
  .container { width: min(100% - 1.5rem, var(--max)); }
  .nav { gap: 0.65rem; }
  .nav a { font-size: 0.8rem; }
  .hero { min-height: auto; padding: 2.5rem 0 2rem; }
}
