:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fbfe;
  --line: #d9e4ef;
  --text: #182536;
  --muted: #617184;
  --blue: #2785d9;
  --blue-strong: #176bb3;
  --green: #0d8a7a;
  --purple: #6255c8;
  --amber: #c68218;
  --shadow: 0 16px 42px rgba(31, 52, 74, 0.11);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.index-shell {
  min-height: 100vh;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.index-hero,
.summary-strip,
.module-card,
.param-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.index-hero {
  min-height: 108px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

h1,
h2,
p,
pre {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 840;
}

.index-hero p,
.panel-head p,
.card-head p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.5;
}

.hero-actions,
.link-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-link,
.secondary-link,
.link-list a,
.copy-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.primary-link,
.copy-button {
  border: 0;
  background: var(--blue);
  color: #fff;
}

.primary-link {
  padding: 0 16px;
}

.secondary-link,
.link-list a {
  border: 1px solid #cfe0ee;
  background: #f8fbfe;
  color: var(--blue-strong);
}

.secondary-link {
  padding: 0 16px;
}

.link-list a {
  padding: 0 12px;
  font-size: 13px;
}

.summary-strip {
  min-height: 56px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.summary-strip span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid #dbe7ef;
  border-radius: 999px;
  color: var(--muted);
  background: #f8fbfd;
  font-size: 13px;
  font-weight: 720;
}

.summary-strip strong {
  color: var(--text);
  font-size: 17px;
}

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

.module-card {
  min-width: 0;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.card-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.card-head h2,
.panel-head h2 {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 820;
}

.module-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
}

.module-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.module-mark.record { background: linear-gradient(135deg, #1b8abf, var(--green)); }
.module-mark.assistant { background: linear-gradient(135deg, #208b57, #0d8a7a); }
.module-mark.popup { background: linear-gradient(135deg, #64748b, #2785d9); }
.module-mark.imaging { background: linear-gradient(135deg, #4459b8, #2785d9); }
.module-mark.market { background: linear-gradient(135deg, #0d8a7a, #54a765); }
.module-mark.research { background: linear-gradient(135deg, var(--purple), #2785d9); }

.info-list {
  margin: 0;
  display: grid;
  gap: 8px;
}

.info-list div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.info-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.info-list dd {
  margin: 0;
  color: #34445a;
  font-size: 13px;
  line-height: 1.55;
}

pre {
  min-height: 134px;
  overflow: auto;
  padding: 12px;
  border: 1px solid #dce7ef;
  border-radius: 8px;
  background: var(--surface-soft);
  color: #25415f;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.58;
  white-space: pre-wrap;
}

.copy-button {
  width: max-content;
  padding: 0 14px;
  cursor: pointer;
}

.copy-button:hover,
.primary-link:hover {
  background: var(--blue-strong);
}

.param-panel {
  padding: 18px;
  display: grid;
  gap: 14px;
}

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

.param-table div {
  min-height: 54px;
  padding: 12px;
  border: 1px solid #dce7ef;
  border-radius: 8px;
  background: var(--surface-soft);
}

.param-table strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  color: var(--blue-strong);
}

.param-table span {
  color: #43546a;
  font-size: 13px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: #172334;
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 14px;
}

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

@media (max-width: 760px) {
  .index-shell {
    padding: 12px;
  }

  .index-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 24px;
  }

  .module-grid,
  .param-table {
    grid-template-columns: 1fr;
  }
}
