:root {
  --bg: #f6f7f8;
  --panel: #ffffff;
  --panel-soft: #f1f5f4;
  --text: #1b2a2f;
  --muted: #5e6f75;
  --line: #d9e1df;
  --brand: #11684f;
  --brand-dark: #0b4939;
  --blue: #2267a8;
  --amber: #a65f00;
  --red: #b64335;
  --radius: 8px;
  --shadow: 0 14px 36px rgba(20, 42, 48, 0.08);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
  color: var(--text);
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
}

.nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover,
.nav a.active {
  background: var(--panel-soft);
  color: var(--brand-dark);
  text-decoration: none;
}

.doc-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.doc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: center;
  padding: 22px 0 34px;
}

.doc-hero h1 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: 0;
}

.subtitle {
  max-width: 720px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
}

.page-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin: 10px 0 28px;
}

.page-title h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: 0;
}

.page-title p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.button:hover {
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(20, 42, 48, 0.08);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.panel {
  padding: 24px;
}

.doc-card {
  padding: 20px;
}

.doc-card h2,
.panel h2,
.section h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.doc-card h3,
.panel h3,
.section h3 {
  margin: 18px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}

.doc-card p,
.panel p,
.section p {
  margin: 0 0 12px;
}

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

.section {
  margin-top: 26px;
}

.section > h2 {
  margin-bottom: 14px;
}

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

.step-list li {
  position: relative;
  min-height: 58px;
  padding: 14px 16px 14px 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 15px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.plain-list {
  margin: 0;
  padding-left: 20px;
}

.plain-list li {
  margin: 6px 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

.tag.blue {
  background: #e8f1fb;
  color: var(--blue);
}

.tag.amber {
  background: #fff0d9;
  color: var(--amber);
}

.tag.red {
  background: #fde8e4;
  color: var(--red);
}

.screen-mock {
  overflow: hidden;
  border: 1px solid #cbd7d4;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.screen-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #edf2f1;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9aacb0;
}

.screen-body {
  padding: 18px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 14px;
}

.fake-input {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}

.fake-button {
  display: grid;
  place-items: center;
  min-width: 72px;
  min-height: 40px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

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

.mock-card {
  min-height: 122px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mock-image {
  height: 42px;
  margin-bottom: 9px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(17, 104, 79, 0.18), rgba(34, 103, 168, 0.16)),
    #edf3f2;
}

.mock-line {
  height: 8px;
  margin: 7px 0;
  border-radius: 999px;
  background: #d9e4e2;
}

.mock-line.short {
  width: 62%;
}

.source-table,
.doc-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

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

.source-table th,
.doc-table th {
  background: #edf2f1;
  color: var(--text);
  font-weight: 700;
}

.source-table tr:last-child td,
.doc-table tr:last-child td {
  border-bottom: 0;
}

.callout {
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #edf6f3;
  padding: 16px 18px;
}

.callout.warning {
  border-color: var(--amber);
  background: #fff7e9;
}

.progress-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.progress-rank {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--brand-dark);
  font-weight: 800;
}

.meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce6e4;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
}

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

.workflow-step {
  min-height: 128px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.workflow-step strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
}

.diagram-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

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

.doc-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.doc-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #f8fafc;
}

.doc-figure figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  border-top: 1px solid var(--line);
}

.demo-gif {
  border: 2px solid #c8d8d4;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  color: var(--muted);
  font-size: 14px;
}

.kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid #cbd7d4;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
}

@media (max-width: 920px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .doc-hero,
  .page-title,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .figure-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar-inner,
  .doc-main,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .doc-main {
    padding-top: 22px;
  }

  .mock-products,
  .workflow {
    grid-template-columns: 1fr;
  }

  .source-table,
  .doc-table {
    display: block;
    overflow-x: auto;
  }
}

@media print {
  .topbar,
  .actions,
  .footer {
    display: none;
  }

  body {
    background: #fff;
  }

  .doc-main {
    width: 100%;
    padding: 0;
  }

  .panel,
  .doc-card,
  .screen-mock {
    box-shadow: none;
    break-inside: avoid;
  }
}
