:root {
  --bg: #f4fbfa;
  --bg-soft: #eef8f7;
  --card: #ffffff;
  --text: #202124;
  --muted: #5f6368;
  --line: #e8eaed;
  --line-soft: #f0f2f5;
  --brand: #15ad9d;
  --brand-deep: #0e8a7d;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --yellow: #f4b740;
  --green-soft: #dff7ef;
  --blue-soft: #eaf2ff;
  --purple-soft: #f1eaff;
  --yellow-soft: #fff6dc;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(21, 173, 157, 0.12), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, #f8fbfb 100%);
}

a {
  color: inherit;
}

code {
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
}

.dashboard-docs {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  margin-bottom: 20px;
}

.page-eyebrow,
.section-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.02em;
}

.page-header h1,
.section-heading h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
}

.page-subtitle,
.summary-note,
.step-item p,
.recommend-item p,
.faq-item p,
.inline-note p {
  color: var(--muted);
  line-height: 1.75;
}

.page-subtitle {
  margin: 12px 0 0;
  max-width: 760px;
  font-size: 15px;
}

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

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.action-button-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.summary-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
}

.summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.summary-green {
  background: var(--green-soft);
  color: var(--brand-deep);
}

.summary-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.summary-purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.summary-yellow {
  background: var(--yellow-soft);
  color: #ad7c18;
}

.summary-label {
  margin: 0 0 6px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
}

.summary-value {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
}

.summary-code {
  font-size: 15px;
  word-break: break-all;
}

.summary-note {
  margin: 4px 0 0;
  font-size: 13px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.main-column,
.side-column {
  display: grid;
  gap: 20px;
  align-content: start;
  min-width: 0;
}

.content-card {
  padding: 24px;
  min-width: 0;
}

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

.section-heading.compact h2 {
  font-size: 24px;
}

.heading-tip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: #f6faf9;
  border: 1px solid #dbeceb;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 600;
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.legend-pill,
.model-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.legend-general,
.type-general {
  background: #e6f8f5;
  color: var(--brand-deep);
}

.legend-code,
.type-code {
  background: #edf4ff;
  color: #2d6be0;
}

.legend-budget,
.type-budget {
  background: #fff4d8;
  color: #8e6a0c;
}

.legend-platform,
.type-platform {
  background: #f2f4f7;
  color: #6b7280;
}

.table-wrapper {
  overflow: hidden;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.pricing-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.pricing-table thead th {
  background: #f2fbf9;
  color: var(--brand-deep);
  font-weight: 700;
}

.pricing-table th:nth-child(1),
.pricing-table td:nth-child(1) {
  width: 24%;
}

.pricing-table th:nth-child(2),
.pricing-table td:nth-child(2) {
  width: 34%;
}

.pricing-table th:nth-child(3),
.pricing-table td:nth-child(3),
.pricing-table th:nth-child(4),
.pricing-table td:nth-child(4),
.pricing-table th:nth-child(5),
.pricing-table td:nth-child(5) {
  width: 14%;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody tr:hover {
  background: #fbfefe;
}

.model-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.model-name {
  font-weight: 700;
  color: var(--brand-deep);
  line-height: 1.5;
}

.price {
  font-weight: 700;
}

.price-muted {
  color: #6b7280;
}

.inline-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f9fbfb;
  border: 1px dashed var(--line);
}

.inline-note p {
  margin: 0;
  font-size: 13px;
}

.tab-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tab-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
}

.tab-button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.code-card {
  display: none;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d6e3e8;
  background: #f7fbfb;
}

.code-card.active {
  display: block;
}

.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #dce6ea;
  background: #f1f8f8;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.copy-button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #cfe3e1;
  background: #fff;
  color: var(--brand-deep);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.code-card pre {
  margin: 0;
  padding: 16px;
  overflow: auto;
}

.code-card code {
  color: #1f2937;
  line-height: 1.75;
  font-size: 13px;
}

.step-list,
.recommend-list,
.faq-list,
.security-list {
  display: grid;
  gap: 14px;
}

.step-item,
.recommend-item,
.faq-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.recommend-item,
.faq-item {
  display: block;
}

.step-item:last-child,
.recommend-item:last-child,
.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step-item:first-child,
.recommend-item:first-child,
.faq-item:first-child {
  padding-top: 0;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e6f8f5;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 700;
}

.step-item h3,
.recommend-item h3,
.faq-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.step-item p,
.recommend-item p,
.faq-item p {
  margin: 0;
  font-size: 14px;
}

.security-card {
  background: linear-gradient(180deg, #ffffff 0%, #fcfefe 100%);
}

.security-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 14px;
}

@media (max-width: 1240px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

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

  .side-column > :first-child,
  .security-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1080px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .side-column {
    grid-template-columns: 1fr;
  }

  .side-column > :first-child,
  .security-card {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .dashboard-docs {
    padding: 16px;
  }

  .page-header,
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .page-header h1,
  .section-heading h2 {
    font-size: 26px;
  }

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

  .action-button {
    width: 100%;
  }

  .tab-button {
    flex: 1 1 auto;
  }

  .code-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
