:root {
  --bg: #0f1110;
  --surface: #171a18;
  --surface-2: #20251f;
  --surface-3: #252018;
  --text: #eef2ed;
  --muted: #a0aaa2;
  --muted-2: #717b73;
  --line: #2b312d;
  --line-soft: rgba(238, 242, 237, 0.08);
  --green: #65c6a4;
  --green-2: #2f8064;
  --orange: #d99555;
  --amber: #e7c16c;
  --violet: #a79cf5;
  --ink: #f8faf7;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(231, 193, 108, 0.04), transparent 260px),
    linear-gradient(90deg, rgba(101, 198, 164, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(101, 198, 164, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 72px 72px, 72px 72px, auto;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
}

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

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding: 0 28px;
  background: rgba(15, 17, 16, 0.84);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(101, 198, 164, 0.95), rgba(217, 149, 85, 0.92));
  color: #0f1110;
  font-weight: 800;
  box-shadow: 0 10px 32px rgba(101, 198, 164, 0.18);
}

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

.brand strong {
  font-size: 15px;
  line-height: 1.2;
}

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

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-select {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 26, 24, 0.92);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

.icon-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.icon-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  max-width: 1440px;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100vh - 72px);
  padding: 28px 18px;
  border-right: 1px solid var(--line-soft);
}

.sidebar-heading {
  margin: 0 10px 12px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nav-link {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  min-height: 46px;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(238, 242, 237, 0.055);
  color: var(--text);
}

.nav-link.active {
  box-shadow:
    inset 3px 0 0 var(--green),
    0 10px 32px rgba(0, 0, 0, 0.18);
}

.nav-index {
  color: var(--orange);
  font-size: 12px;
}

.content {
  min-width: 0;
  padding: 34px clamp(22px, 5vw, 72px) 88px;
}

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

.dashboard-intro {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: end;
  padding: clamp(28px, 5vw, 54px);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(26, 31, 28, 0.94), rgba(16, 17, 16, 0.96)),
    linear-gradient(90deg, rgba(101, 198, 164, 0.18), rgba(217, 149, 85, 0.12));
  border: 1px solid rgba(238, 242, 237, 0.1);
  color: var(--text);
  box-shadow: var(--shadow);
}

.dashboard-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(231, 193, 108, 0.09), transparent 36%),
    linear-gradient(135deg, transparent 0 44%, rgba(101, 198, 164, 0.09) 44% 45%, transparent 45%);
  pointer-events: none;
}

.dashboard-intro > * {
  position: relative;
}

.eyebrow {
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-intro h1 {
  max-width: 900px;
  margin: 12px 0 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: 0;
}

.dashboard-intro p {
  max-width: 760px;
  margin: 0;
  color: rgba(238, 242, 237, 0.76);
  font-size: 18px;
}

.status-panel {
  align-self: stretch;
  display: grid;
  align-content: end;
  min-height: 170px;
  padding: 18px;
  border: 1px solid rgba(238, 242, 237, 0.13);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
}

.status-panel span {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-panel strong {
  margin: 8px 0 2px;
  color: var(--green);
  font-size: 54px;
  line-height: 1;
}

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

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

.module-card {
  position: relative;
  min-height: 330px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%),
    var(--surface);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.22);
}

.module-card::after {
  content: "";
  position: absolute;
  inset: auto 20px 20px auto;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(238, 242, 237, 0.12);
  border-radius: 50%;
  opacity: 0.52;
}

.module-card:hover {
  transform: translateY(-2px);
  border-color: rgba(101, 198, 164, 0.55);
  background:
    linear-gradient(180deg, rgba(101, 198, 164, 0.08), transparent 48%),
    var(--surface);
}

.module-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.module-topline span {
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
}

.module-topline small {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-card h2 {
  margin: 0;
  max-width: 240px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.12;
}

.module-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.module-card > strong {
  color: var(--amber);
  font-size: 13px;
  font-weight: 850;
}

.dashboard-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.strip-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  min-height: 72px;
  padding: 14px 16px;
  background: rgba(23, 26, 24, 0.94);
}

.strip-item span {
  color: var(--orange);
  font-weight: 850;
}

.strip-item p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.page-header {
  padding: 28px 0 34px;
  border-bottom: 1px solid var(--line-soft);
}

.page-header h1 {
  max-width: 840px;
  margin: 10px 0 12px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: 0;
}

.page-header p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.doc-section {
  padding: 46px 0;
  border-bottom: 1px solid var(--line-soft);
}

.section-copy {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-copy span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-copy h2 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.step-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    var(--surface);
}

.step-list li::before {
  content: counter(steps, decimal-leading-zero);
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: rgba(101, 198, 164, 0.12);
  color: var(--green);
  font-weight: 850;
}

.step-list h3,
.info-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
}

.step-list h3,
.step-list p {
  grid-column: 2;
}

.step-list p,
.info-card p,
.check-list p {
  margin: 0;
  color: var(--muted);
}

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

.info-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    var(--surface);
}

.info-card:nth-child(3n + 2) {
  border-color: rgba(217, 149, 85, 0.26);
}

.info-card:nth-child(3n) {
  border-color: rgba(167, 156, 245, 0.22);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

th {
  width: 220px;
  color: var(--ink);
  font-weight: 800;
}

td {
  color: var(--muted);
}

.code-block {
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid #2c372f;
  border-radius: var(--radius);
  background: #0b0d0c;
  color: #eaf4ee;
}

.code-block figcaption {
  padding: 12px 16px;
  border-bottom: 1px solid #2c372f;
  color: #f1c66f;
  font-weight: 750;
}

pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
}

code {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

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

.check-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}

.check-list span {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--green), var(--orange));
}

.check-list span::after {
  content: "";
  display: block;
  width: 8px;
  height: 4px;
  margin: 5px 0 0 4px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .topbar {
    padding: 0 16px;
  }

  .icon-button {
    display: block;
  }

  .layout {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 72px auto 0 0;
    z-index: 30;
    width: min(300px, 86vw);
    background: var(--bg);
    transform: translateX(-100%);
    transition: transform 160ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .content {
    padding: 22px 16px 64px;
  }

  .dashboard-intro {
    grid-template-columns: 1fr;
    padding: 30px 22px;
  }

  .status-panel {
    min-height: 120px;
  }

  .module-grid,
  .dashboard-strip,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .module-card {
    min-height: 260px;
  }

  .step-list li {
    grid-template-columns: 1fr;
  }

  .step-list li::before,
  .step-list h3,
  .step-list p {
    grid-column: auto;
    grid-row: auto;
  }

  th,
  td {
    display: block;
    width: 100%;
  }

  th {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  td {
    padding-top: 4px;
  }
}
