647 lines
13 KiB
CSS
647 lines
13 KiB
CSS
.app-shell {
|
|
width: min(1540px, calc(100% - 32px));
|
|
margin: 24px auto 48px;
|
|
}
|
|
.hero {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
gap: 32px;
|
|
padding: 28px 32px;
|
|
border: 1px solid #dbe4f0;
|
|
border-radius: 18px;
|
|
background: linear-gradient(135deg, #ffffff 0%, #f7faff 58%, #eef5ff 100%);
|
|
box-shadow: 0 14px 42px rgba(15, 23, 42, 0.07);
|
|
}
|
|
.hero h1 {
|
|
margin: 4px 0 10px;
|
|
font-size: clamp(28px, 4vw, 46px);
|
|
line-height: 1.08;
|
|
letter-spacing: -0.04em;
|
|
}
|
|
.hero p {
|
|
max-width: 900px;
|
|
margin: 0;
|
|
color: #64748b;
|
|
line-height: 1.7;
|
|
}
|
|
.eyebrow {
|
|
color: #2563eb;
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
letter-spacing: 0.16em;
|
|
}
|
|
.hero button {
|
|
flex: none;
|
|
padding: 10px 17px;
|
|
border: 1px solid #1d4ed8;
|
|
border-radius: 10px;
|
|
color: #fff;
|
|
background: #2563eb;
|
|
box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24);
|
|
cursor: pointer;
|
|
}
|
|
.hero button:disabled {
|
|
cursor: default;
|
|
opacity: 0.55;
|
|
}
|
|
.workspace {
|
|
display: grid;
|
|
grid-template-columns: 210px minmax(0, 1fr);
|
|
gap: 20px;
|
|
margin-top: 20px;
|
|
}
|
|
.sidebar {
|
|
align-self: start;
|
|
position: sticky;
|
|
top: 18px;
|
|
display: grid;
|
|
gap: 7px;
|
|
padding: 14px;
|
|
border: 1px solid #dbe4f0;
|
|
border-radius: 16px;
|
|
background: #fff;
|
|
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
|
|
}
|
|
.side-title {
|
|
padding: 7px 10px 10px;
|
|
color: #94a3b8;
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
letter-spacing: 0.12em;
|
|
}
|
|
.sidebar button {
|
|
display: grid;
|
|
gap: 2px;
|
|
width: 100%;
|
|
padding: 10px 11px;
|
|
border: 1px solid transparent;
|
|
border-radius: 10px;
|
|
text-align: left;
|
|
color: #334155;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
.sidebar button span {
|
|
color: #94a3b8;
|
|
font-size: 12px;
|
|
}
|
|
.sidebar button.active {
|
|
border-color: #bfdbfe;
|
|
color: #1d4ed8;
|
|
background: #eff6ff;
|
|
}
|
|
.content {
|
|
min-width: 0;
|
|
padding: 22px;
|
|
border: 1px solid #dbe4f0;
|
|
border-radius: 16px;
|
|
background: #fff;
|
|
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
|
|
}
|
|
.section-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 20px;
|
|
margin-bottom: 18px;
|
|
padding-bottom: 16px;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
}
|
|
.section-head span {
|
|
color: #64748b;
|
|
font-size: 12px;
|
|
}
|
|
.section-head h2 {
|
|
margin: 2px 0 0;
|
|
font-size: 26px;
|
|
}
|
|
.protocol-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
gap: 7px;
|
|
}
|
|
.protocol-tags span {
|
|
padding: 5px 8px;
|
|
border: 1px solid #dbeafe;
|
|
border-radius: 999px;
|
|
color: #1d4ed8;
|
|
background: #f8fbff;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
}
|
|
.state-message {
|
|
padding: 24px;
|
|
border: 1px dashed #cbd5e1;
|
|
border-radius: 12px;
|
|
color: #64748b;
|
|
text-align: center;
|
|
}
|
|
.state-message.error,
|
|
.inline-error {
|
|
color: #b91c1c;
|
|
background: #fef2f2;
|
|
}
|
|
.intro-panel,
|
|
.explain-box,
|
|
.demo-block {
|
|
margin-bottom: 18px;
|
|
padding: 18px;
|
|
border: 1px solid #dbe4f0;
|
|
border-radius: 14px;
|
|
background: #fbfdff;
|
|
}
|
|
.intro-panel h3,
|
|
.demo-block h3,
|
|
.endpoint-panel h3,
|
|
.protocol-panel h3 {
|
|
margin: 0 0 8px;
|
|
}
|
|
.intro-panel p,
|
|
.explain-box p {
|
|
margin: 4px 0 0;
|
|
color: #64748b;
|
|
line-height: 1.65;
|
|
}
|
|
.layer-flow {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
gap: 10px;
|
|
margin-top: 18px;
|
|
}
|
|
.layer-flow div {
|
|
display: grid;
|
|
align-content: start;
|
|
min-height: 126px;
|
|
padding: 13px;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 12px;
|
|
background: #fff;
|
|
}
|
|
.layer-flow div > span {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 26px;
|
|
height: 26px;
|
|
margin-bottom: 10px;
|
|
border-radius: 8px;
|
|
color: #fff;
|
|
background: #2563eb;
|
|
font-weight: 800;
|
|
}
|
|
.layer-flow small {
|
|
margin-top: 6px;
|
|
color: #64748b;
|
|
line-height: 1.45;
|
|
}
|
|
.capability-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
.capability-card {
|
|
padding: 16px;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 12px;
|
|
}
|
|
.capability-card h3 {
|
|
margin: 0 0 10px;
|
|
font-size: 15px;
|
|
}
|
|
.badge-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
.badge-list span {
|
|
padding: 4px 7px;
|
|
border-radius: 7px;
|
|
color: #475569;
|
|
background: #f1f5f9;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
font-size: 12px;
|
|
}
|
|
.amis-panel {
|
|
min-width: 0;
|
|
margin-bottom: 16px;
|
|
}
|
|
.amis-runtime {
|
|
min-width: 0;
|
|
}
|
|
.inline-error {
|
|
padding: 12px;
|
|
border: 1px solid #fecaca;
|
|
border-radius: 10px;
|
|
}
|
|
.frontend-layout {
|
|
min-width: 0;
|
|
}
|
|
.frontend-horizontal {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
.frontend-vertical {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
.frontend-list {
|
|
display: grid;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
}
|
|
.frontend-list .frontend-slot {
|
|
border-bottom: 1px solid #e2e8f0;
|
|
border-radius: 0;
|
|
}
|
|
.frontend-list .frontend-slot:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
.frontend-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
.frontend-slot {
|
|
min-width: 0;
|
|
padding: 13px;
|
|
border: 1px solid #dbe4f0;
|
|
border-radius: 12px;
|
|
background: #fff;
|
|
}
|
|
.frontend-vertical .frontend-slot {
|
|
width: 100%;
|
|
}
|
|
.slot-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 7px;
|
|
margin-bottom: 10px;
|
|
}
|
|
.slot-meta strong {
|
|
color: #0f172a;
|
|
}
|
|
.slot-meta span {
|
|
padding: 3px 6px;
|
|
border-radius: 6px;
|
|
color: #1d4ed8;
|
|
background: #eff6ff;
|
|
font-size: 11px;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
}
|
|
.slot-meta code {
|
|
max-width: 100%;
|
|
color: #64748b;
|
|
font-size: 11px;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.slot-demo {
|
|
min-width: 0;
|
|
margin: 0;
|
|
}
|
|
.slot-table-wrap {
|
|
overflow-x: auto;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 12px;
|
|
}
|
|
.slot-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 13px;
|
|
}
|
|
.slot-table th,
|
|
.slot-table td {
|
|
padding: 12px;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
text-align: left;
|
|
vertical-align: top;
|
|
}
|
|
.slot-table th {
|
|
color: #475569;
|
|
background: #f8fafc;
|
|
}
|
|
.slot-table th:first-child,
|
|
.slot-table td:first-child {
|
|
width: 64px;
|
|
}
|
|
.slot-table th:nth-child(2),
|
|
.slot-table td:nth-child(2) {
|
|
width: 320px;
|
|
}
|
|
.slot-table tbody tr:last-child td {
|
|
border-bottom: 0;
|
|
}
|
|
.mode-switch {
|
|
display: inline-flex;
|
|
gap: 5px;
|
|
margin-bottom: 16px;
|
|
padding: 4px;
|
|
border: 1px solid #dbe4f0;
|
|
border-radius: 10px;
|
|
background: #f8fafc;
|
|
}
|
|
.mode-switch button {
|
|
padding: 7px 14px;
|
|
border: 0;
|
|
border-radius: 7px;
|
|
color: #64748b;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
.mode-switch button.active {
|
|
color: #1d4ed8;
|
|
background: #fff;
|
|
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
|
|
}
|
|
.json-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
.json-panel {
|
|
min-width: 0;
|
|
border: 1px solid #dbe4f0;
|
|
border-radius: 12px;
|
|
background: #0f172a;
|
|
overflow: hidden;
|
|
}
|
|
.json-panel summary {
|
|
padding: 12px 14px;
|
|
color: #dbeafe;
|
|
background: #172033;
|
|
cursor: pointer;
|
|
font-weight: 700;
|
|
}
|
|
.json-panel pre,
|
|
.protocol-panel pre {
|
|
max-height: 560px;
|
|
margin: 0;
|
|
padding: 15px;
|
|
overflow: auto;
|
|
color: #dbeafe;
|
|
background: #0f172a;
|
|
font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
white-space: pre-wrap;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.doc-layout {
|
|
display: grid;
|
|
grid-template-columns: 0.85fr 1.65fr;
|
|
gap: 14px;
|
|
margin-bottom: 16px;
|
|
}
|
|
.endpoint-panel,
|
|
.protocol-panel {
|
|
min-width: 0;
|
|
padding: 16px;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 13px;
|
|
}
|
|
.endpoint-panel code {
|
|
display: block;
|
|
margin-top: 7px;
|
|
padding: 7px 9px;
|
|
border-radius: 7px;
|
|
color: #334155;
|
|
background: #f1f5f9;
|
|
font-size: 12px;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.protocol-panel select {
|
|
width: 100%;
|
|
margin-bottom: 10px;
|
|
padding: 8px 10px;
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
}
|
|
.protocol-panel pre {
|
|
border-radius: 9px;
|
|
}
|
|
.advanced-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 14px;
|
|
}
|
|
.doc-case-tabs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 7px;
|
|
margin-bottom: 14px;
|
|
}
|
|
.doc-case-tabs button {
|
|
padding: 8px 10px;
|
|
border: 1px solid #dbe4f0;
|
|
border-radius: 8px;
|
|
color: #475569;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
}
|
|
.doc-case-tabs button.active {
|
|
border-color: #93c5fd;
|
|
color: #1d4ed8;
|
|
background: #eff6ff;
|
|
}
|
|
.doc-case {
|
|
margin-bottom: 18px;
|
|
padding: 16px;
|
|
border: 1px solid #dbe4f0;
|
|
border-radius: 13px;
|
|
background: #fbfdff;
|
|
}
|
|
.doc-case-head span {
|
|
color: #2563eb;
|
|
font-size: 11px;
|
|
font-weight: 800;
|
|
letter-spacing: 0.12em;
|
|
}
|
|
.doc-case-head h3 {
|
|
margin: 5px 0 6px;
|
|
}
|
|
.doc-case-head p {
|
|
margin: 0 0 14px;
|
|
color: #64748b;
|
|
line-height: 1.6;
|
|
}
|
|
.doc-preview {
|
|
margin-bottom: 14px;
|
|
padding: 14px;
|
|
border: 1px solid #dbe4f0;
|
|
border-radius: 12px;
|
|
background: #fff;
|
|
}
|
|
.doc-preview h4 {
|
|
margin: 0 0 10px;
|
|
}
|
|
.doc-code-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
.code-panel {
|
|
min-width: 0;
|
|
border: 1px solid #dbe4f0;
|
|
border-radius: 12px;
|
|
background: #0f172a;
|
|
overflow: hidden;
|
|
}
|
|
.code-panel h4 {
|
|
margin: 0;
|
|
padding: 12px 14px;
|
|
color: #dbeafe;
|
|
background: #172033;
|
|
}
|
|
.code-panel pre {
|
|
min-height: 160px;
|
|
max-height: 560px;
|
|
margin: 0;
|
|
padding: 15px;
|
|
overflow: auto;
|
|
color: #dbeafe;
|
|
font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
white-space: pre-wrap;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
@media (max-width: 1120px) {
|
|
.layer-flow {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
.frontend-horizontal,
|
|
.frontend-cards {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
@media (max-width: 820px) {
|
|
.app-shell {
|
|
width: min(100% - 18px, 1540px);
|
|
margin-top: 10px;
|
|
}
|
|
.hero,
|
|
.section-head {
|
|
align-items: stretch;
|
|
flex-direction: column;
|
|
}
|
|
.workspace {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.sidebar {
|
|
position: static;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
.side-title {
|
|
grid-column: 1 / -1;
|
|
}
|
|
.layer-flow,
|
|
.capability-grid,
|
|
.frontend-horizontal,
|
|
.frontend-cards,
|
|
.json-grid,
|
|
.advanced-grid,
|
|
.doc-layout,
|
|
.doc-code-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.protocol-tags {
|
|
justify-content: flex-start;
|
|
}
|
|
}
|
|
.case-summary {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px;
|
|
margin-top: 18px;
|
|
}
|
|
.case-summary article {
|
|
display: grid;
|
|
gap: 6px;
|
|
padding: 15px;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 12px;
|
|
}
|
|
.case-summary article > span,
|
|
.doc-case-tabs button span {
|
|
color: #2563eb;
|
|
font-size: 11px;
|
|
font-weight: 800;
|
|
text-transform: uppercase;
|
|
}
|
|
.case-summary small {
|
|
color: #64748b;
|
|
line-height: 1.5;
|
|
}
|
|
.lab-grid {
|
|
display: grid;
|
|
grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
|
|
gap: 14px;
|
|
margin: 18px 0;
|
|
}
|
|
.lab-controls {
|
|
padding: 17px;
|
|
border: 1px solid #dbe4f0;
|
|
border-radius: 12px;
|
|
background: #fbfdff;
|
|
}
|
|
.lab-controls h3 {
|
|
margin: 0 0 8px;
|
|
}
|
|
.lab-controls p {
|
|
margin: 0 0 14px;
|
|
color: #64748b;
|
|
line-height: 1.6;
|
|
}
|
|
.lab-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
.lab-controls button,
|
|
.explain-box button {
|
|
padding: 8px 11px;
|
|
border: 1px solid #bfdbfe;
|
|
border-radius: 8px;
|
|
color: #1d4ed8;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
}
|
|
.lab-controls button:disabled,
|
|
.explain-box button:disabled {
|
|
cursor: default;
|
|
opacity: 0.55;
|
|
}
|
|
.boundary-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 14px;
|
|
}
|
|
.boundary-card {
|
|
min-width: 0;
|
|
padding: 15px;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 12px;
|
|
background: #fff;
|
|
}
|
|
.boundary-card h3 {
|
|
margin: 0 0 10px;
|
|
}
|
|
.boundary-card > pre {
|
|
margin: 0 0 12px;
|
|
padding: 10px;
|
|
border-radius: 8px;
|
|
background: #0f172a;
|
|
color: #e2e8f0;
|
|
overflow: auto;
|
|
}
|
|
.doc-case-tabs button {
|
|
display: inline-grid;
|
|
gap: 2px;
|
|
}
|
|
@media (max-width: 980px) {
|
|
.case-summary,
|
|
.lab-grid,
|
|
.boundary-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|