/* docs 全站统一样式（Darcula 风格 · 紧凑正文 · 蓝色标题） */

*, *::before, *::after {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
		"Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	background: #1e1f22;
	color: #d6d7dc;
	line-height: 1.55;
	font-size: 15px;
	-webkit-font-smoothing: antialiased;
}

main {
	max-width: 960px;
	margin: 0 auto;
	padding: 24px 20px 60px;
}

/* 流程图：突破正文 960px，按视口宽居中铺开（最宽 1800px），SVG 按容器缩放 */
figure.flow {
	width: min(1800px, calc(100vw - 48px));
	margin: 8px 0 16px calc(50% - min(900px, 50vw - 24px));
}

figure.flow svg {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #d5d9e0;
	border-radius: 6px;
}

article h1 {
	font-size: 24px;
	color: #6aa9ff;
	margin: 8px 0 12px;
	line-height: 1.3;
}

article h2 {
	font-size: 18px;
	color: #6aa9ff;
	margin: 24px 0 8px;
	line-height: 1.35;
}

article h3 {
	font-size: 15px;
	color: #d6d7dc;
	margin: 18px 0 6px;
	line-height: 1.4;
}

article p {
	margin: 8px 0;
}

article ul, article ol {
	margin: 6px 0;
	padding-left: 22px;
}

article li {
	margin: 4px 0;
}

article a {
	color: #6aa9ff;
	text-decoration: none;
	border-bottom: 1px dashed rgba(106, 169, 255, 0.3);
}

article a:hover {
	color: #8bbcff;
	border-bottom-color: rgba(139, 188, 255, 0.7);
}

article code {
	font-family: "SF Mono", Menlo, Consolas, "Courier New", monospace;
	font-size: 13px;
	background: rgba(255, 255, 255, 0.05);
	padding: 1px 6px;
	border-radius: 4px;
	color: #f1c778;
}

article pre {
	background: #26282e;
	padding: 12px 14px;
	border-radius: 8px;
	overflow-x: auto;
	font-size: 13px;
	line-height: 1.45;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

article pre code {
	background: transparent;
	padding: 0;
	color: #d6d7dc;
}

.back-link {
	display: inline-block;
	padding: 4px 10px;
	margin-bottom: 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	color: #a8adb7;
	text-decoration: none;
	font-size: 13px;
	border-bottom-style: solid;
}

.back-link:hover {
	color: #6aa9ff;
	border-color: rgba(106, 169, 255, 0.5);
}

.lede {
	color: #a8adb7;
	font-size: 14px;
}

.danger, article strong.danger {
	color: #ff6b6b;
}

/* 数据报表 */
[data-report] .report-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	color: #8f95a1;
	font-size: 13px;
}

[data-report] .metric-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
	margin: 14px 0;
}

[data-report] .metric {
	padding: 12px 14px;
	background: #26282e;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 8px;
}

[data-report] .metric strong {
	display: block;
	color: #e5e7eb;
	font-size: 22px;
	line-height: 1.2;
}

[data-report] .metric span {
	color: #9ca2ad;
	font-size: 12px;
}

[data-report] table {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0;
	font-size: 13px;
}

[data-report] th,
[data-report] td {
	padding: 8px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	text-align: left;
	vertical-align: middle;
}

[data-report] th {
	color: #aeb4bf;
	font-weight: 600;
}

[data-report] td[data-number],
[data-report] th[data-number] {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

[data-report] .funnel-bar {
	width: max(3px, var(--value));
	height: 8px;
	margin-top: 5px;
	background: #6aa9ff;
	border-radius: 3px;
}

[data-report] .report-note {
	padding: 10px 12px;
	margin: 12px 0;
	background: #26282e;
	border-left: 3px solid #f1c778;
	color: #bfc3cc;
}

[data-report] .report-note[data-tone="danger"] {
	border-left-color: #ff6b6b;
}

[data-report] .status {
	font-weight: 600;
}

[data-report] .status[data-state="ready"] {
	color: #72c991;
}

[data-report] .status[data-state="missing"] {
	color: #ff8a8a;
}

@media (max-width: 600px) {
	[data-report] table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}
}
