:root {
  --bg: #08111f;
  --bg-soft: #101c2f;
  --panel: rgba(11, 22, 40, 0.9);
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef4ff;
  --muted: #8fa3c2;
  --gold: #f4b942;
  --gold-strong: #d99012;
  --green: #38b36f;
  --red: #ef6461;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(244, 185, 66, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(56, 179, 111, 0.13), transparent 32%),
    linear-gradient(180deg, #08111f, #0b1729 35%, #08111f);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 20% 20%, rgba(244, 185, 66, 0.08), transparent 24%);
  mix-blend-mode: screen;
  opacity: 0.9;
}

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

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-shell {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(8, 17, 31, 0.82);
  border-bottom: 1px solid var(--line);
}

.shell-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.session-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a,
.session-pill,
.btn,
.text-input,
.notice,
.message-box,
.feature-card,
.stat,
.teaser-card {
  border-radius: var(--radius-sm);
}

.nav a {
  padding: 10px 14px;
  color: var(--muted);
}

.nav a.is-active,
.nav a:hover {
  background: rgba(244, 185, 66, 0.14);
  color: var(--gold);
}

.session-pill {
  border: 1px solid var(--line);
  padding: 8px 12px;
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 20px;
  padding: 28px 0 40px;
}

.narrow {
  width: min(640px, calc(100% - 32px));
}

.hero,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  padding: 28px;
  border-radius: 28px;
}

.hero--vip {
  background:
    linear-gradient(160deg, rgba(18, 27, 42, 0.96), rgba(10, 17, 29, 0.94)),
    radial-gradient(circle at top right, rgba(244, 185, 66, 0.16), transparent 32%);
}

.hero h1,
.panel h1,
.panel h2 {
  margin: 0 0 10px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}

.lead,
.panel p,
.notice,
.message-box,
li {
  color: var(--muted);
  line-height: 1.65;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn {
  border: 0;
  cursor: pointer;
  padding: 12px 18px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  color: #1b1505;
}

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

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.btn-inline {
  padding: 8px 12px;
  min-width: auto;
}

.panel {
  padding: 24px;
  border-radius: 24px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}

.meta {
  color: var(--gold);
  font-size: 0.9rem;
}

.stats,
.feature-grid,
.teaser-grid,
.split-panel,
.filter-row {
  display: grid;
  gap: 14px;
}

.stats {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stat,
.feature-card,
.teaser-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 16px;
}

.stat span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat strong {
  font-size: 1.8rem;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-grid .feature-card,
.hero--vip,
.teaser-card {
  overflow: hidden;
}

.feature-card h3,
.teaser-card h3 {
  margin-top: 0;
}

.teaser-card p:last-child {
  margin-bottom: 0;
}

.feature-card .btn {
  margin-top: 10px;
}

.teaser-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.teaser-card p:last-child,
.feature-card ul {
  margin-bottom: 0;
}

.notice,
.message-box {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.muted {
  margin-top: 14px;
}

.message-box.success {
  border-color: rgba(56, 179, 111, 0.45);
  color: #b8f0ce;
}

.message-box.error {
  border-color: rgba(239, 100, 97, 0.45);
  color: #ffc3c1;
}

.hidden {
  display: none !important;
}

.form-stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.text-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.text-input:focus {
  outline: 2px solid rgba(244, 185, 66, 0.35);
  border-color: rgba(244, 185, 66, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

body[data-page="login"] .stack {
  padding-top: 44px;
}

body[data-page="login"] .narrow {
  width: min(720px, calc(100% - 32px));
}

body[data-page="login"] .form-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

body[data-page="login"] .form-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), rgba(244, 185, 66, 0.15));
}

body[data-page="login"] .form-panel .btn-primary {
  width: 100%;
}

body[data-page="login"] .form-panel .notice {
  margin-top: 16px;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table th {
  color: var(--gold);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.data-table td {
  color: var(--text);
}

.split-panel {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.filter-row {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.filter-actions {
  display: flex;
  align-items: end;
}

.records-toolbar,
.records-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.records-toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.records-toolbar__actions {
  flex-wrap: wrap;
}

.auth-console {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: min(420px, 100%);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-console__meta,
.auth-console__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-console__pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(244, 185, 66, 0.12);
  color: var(--text);
  font-size: 0.88rem;
}

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

.btn-auth,
.btn-auth-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.btn-auth {
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  color: #1b1505;
}

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

.vip-guide {
  margin: 18px 0 26px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(244, 185, 66, 0.18);
  background: linear-gradient(160deg, rgba(17, 29, 47, 0.92), rgba(14, 23, 38, 0.88));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}

.vip-guide__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.vip-guide__eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.vip-guide__head h2 {
  margin: 0 0 10px;
}

.vip-guide__head p,
.vip-guide__card p,
.vip-guide__list span,
.vip-guide__flow li,
.auth-inline-note {
  color: var(--muted);
  line-height: 1.6;
}

.vip-guide__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.vip-guide__metrics,
.vip-guide__grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.vip-guide__metrics {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.vip-guide__metrics article,
.vip-guide__card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.vip-guide__metrics span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.vip-guide__metrics strong {
  font-size: 1.45rem;
}

.vip-guide__grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.vip-guide__card h3 {
  margin-top: 0;
}

.vip-guide__card p:last-child,
.feature-card p:last-child {
  margin-bottom: 0;
}

.vip-guide__list,
.vip-guide__flow {
  margin: 0;
  padding-left: 18px;
}

.vip-guide__list li,
.vip-guide__flow li {
  margin-bottom: 8px;
}

.vip-guide__list strong {
  display: block;
  color: var(--text);
}

.auth-inline-note {
  margin: 10px 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 24px);
  }

  .hero,
  .panel {
    padding: 20px;
  }

  .shell-inner,
  .panel-head {
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .nav a,
  .session-pill,
  .btn {
    width: 100%;
    text-align: center;
  }

  .session-tools {
    width: 100%;
    flex-direction: column;
  }

  .auth-console,
  .vip-guide__head,
  .records-toolbar,
  .records-toolbar__actions {
    flex-direction: column;
    min-width: 100%;
  }
}
