:root {
  --bg: #f5f8ff;
  --panel: rgba(255, 255, 255, 0.9);
  --line: rgba(110, 142, 255, 0.16);
  --text: #1d2438;
  --muted: #7081a1;
  --blue: #3377ff;
  --cyan: #54d4ff;
  --violet: #875cff;
  --pink: #db60ff;
  --shadow: 0 20px 50px rgba(63, 98, 200, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(84, 212, 255, 0.14), transparent 25%),
    radial-gradient(circle at top right, rgba(219, 96, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #f5f8ff 0%, #fbfcff 48%, #f7f9ff 100%);
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(245, 248, 255, 0.84);
  border-bottom: 1px solid rgba(120, 152, 255, 0.1);
}

.nav-shell,
.brand,
.top-nav,
.hero-actions,
.hero-tags,
.summary-grid,
.modules-grid,
.merchant-grid,
.plan-grid,
.dashboard-head,
.metrics-grid,
.permission-grid {
  display: flex;
}

.nav-shell,
.brand {
  align-items: center;
}

.nav-shell {
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  gap: 12px;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  box-shadow: 0 14px 24px rgba(103, 112, 255, 0.25);
}

.top-nav {
  gap: 22px;
  color: #51607e;
  font-size: 14px;
}

.hero-section,
.section {
  padding: 72px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
}

.hero-chip,
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.hero-section h1,
.section-title h2,
.cta-panel h2,
.login-card h1,
.dashboard-head h1 {
  margin: 16px 0;
  line-height: 1.15;
}

.hero-section h1 {
  font-size: clamp(38px, 5vw, 66px);
}

.hero-copy,
.section-title p,
.summary-card p,
.module-card p,
.merchant-card p,
.plan-card p,
.cta-panel p,
.login-card p,
.permission-card p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-actions,
.hero-tags {
  gap: 14px;
  flex-wrap: wrap;
}

.hero-tags {
  margin-top: 28px;
}

.landing-metrics {
  margin-top: 28px;
}

.hero-tags span {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  color: #4868a5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  box-shadow: 0 16px 28px rgba(115, 111, 255, 0.22);
}

.button.ghost {
  color: #496182;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.button.full {
  width: 100%;
}

.hero-panel,
.summary-card,
.module-card,
.merchant-card,
.plan-card,
.cta-panel,
.metric-card,
.metric-box,
.panel,
.table-section,
.permission-card,
.report-card,
.login-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.metric-card {
  padding: 24px;
}

.metric-card span,
.panel-head span,
.metric-box span,
.merchant-top span,
.plan-top strong,
.side-note p,
.status-text {
  color: var(--muted);
}

.metric-card strong,
.summary-card h3,
.module-card h3,
.plan-card h3,
.panel-head h2 {
  display: block;
  font-size: 22px;
  margin: 10px 0 12px;
}

.section-title {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 34px;
}

.section-muted {
  background: rgba(255, 255, 255, 0.38);
}

.summary-grid,
.merchant-grid,
.plan-grid,
.metrics-grid,
.permission-grid {
  gap: 18px;
  flex-wrap: wrap;
}

.summary-card,
.module-card,
.merchant-card,
.plan-card,
.metric-box {
  padding: 24px;
}

.summary-grid > *,
.merchant-grid > *,
.plan-grid > *,
.metrics-grid > * {
  flex: 1 1 260px;
}

.modules-grid {
  gap: 18px;
  flex-wrap: wrap;
}

.module-card {
  flex: 1 1 320px;
}

.module-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(51, 119, 255, 0.12), rgba(219, 96, 255, 0.14));
  color: var(--blue);
  font-weight: 800;
}

.merchant-top,
.plan-top,
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.merchant-top span,
.eyebrow {
  font-size: 12px;
}

.merchant-top span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(77, 118, 255, 0.1);
}

.plan-card ul {
  padding-left: 18px;
  color: #475774;
  line-height: 1.9;
}

.plan-card.featured {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(241,245,255,0.98));
  border-color: rgba(122, 144, 255, 0.3);
}

.cta-panel {
  padding: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  padding: 28px 22px;
  border-right: 1px solid rgba(114, 142, 228, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.side-brand {
  margin-bottom: 28px;
}

.side-nav {
  display: grid;
  gap: 10px;
}

.side-nav a,
.side-note span {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  color: #44506d;
}

.side-note {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.admin-main {
  padding: 28px;
}

.login-panel {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
}

.login-card {
  width: min(100%, 520px);
  padding: 36px;
}

.login-form,
.generator-form {
  display: grid;
  gap: 14px;
}

.quick-forms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #51607d;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(125, 149, 227, 0.22);
  background: rgba(255, 255, 255, 0.94);
  padding: 0 14px;
  font: inherit;
}

.hidden {
  display: none;
}

.dashboard {
  display: grid;
  gap: 20px;
}

.metric-box strong {
  display: block;
  font-size: 36px;
  margin: 10px 0;
}

.panel,
.table-section {
  padding: 24px;
}

.permission-grid {
  margin-bottom: 18px;
}

.permission-grid > div {
  flex: 1 1 180px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(246, 248, 255, 0.9);
}

.permission-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.json-box {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  background: #131a2a;
  color: #d9e5ff;
  overflow: auto;
  white-space: pre-wrap;
}

.report-card {
  padding: 24px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
}

.report-score {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--pink));
}

.table-wrap {
  overflow: auto;
}

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

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(110, 142, 255, 0.12);
  text-align: left;
  white-space: nowrap;
}

th {
  color: #52627f;
  font-weight: 700;
}

.empty-state {
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero-grid,
  .admin-layout,
  .report-card {
    grid-template-columns: 1fr;
  }

  .top-nav,
  .sidebar {
    display: none;
  }

  .admin-main {
    padding: 18px;
  }

  .quick-forms {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    flex-direction: column;
    align-items: start;
  }
}
