/* 代码块语法高亮配色（配合 assets/dist/highlight.js，懒加载）。
   黑白灰体系：代码块是黑底白字工作台，token 只用不同灰度区分层级，不使用彩色。
   类名沿用 Prism 的 token 约定（.token.keyword 等），换主题只改这一个文件。 */

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #8b98a5;
  font-style: italic;
}

.token.punctuation {
  color: #a8b1b8;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
  color: #e7e9ea;
}

.token.boolean,
.token.number {
  color: #cfd9de;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #d5dde2;
}

.token.operator,
.token.entity,
.token.url {
  color: #b9c2c9;
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #f2f4f5;
}

.token.function,
.token.class-name {
  color: #e7e9ea;
}

.token.regex,
.token.important,
.token.variable {
  color: #cfd9de;
}

.token.important,
.token.bold {
  font-weight: 600;
}

.token.italic {
  font-style: italic;
}

/* 行号：由 prismjs 的 line-numbers 插件生成（插件样式在 build 时追加到本文件末尾）。 */
.line-numbers-rows {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.line-numbers-rows > span::before {
  color: #6b7280;
}

/* 行内 code：浅灰底、墨色字，与正文黑白灰层级一致。 */
:not(pre) > code {
  padding: 1px 5px;
  border-radius: 5px;
  background: #eff3f4;
  color: #0f1419;
  font: 400 12.5px/1.6 var(--font-mono);
}

[data-theme="dark"] :not(pre) > code {
  background: #2f3336;
  color: #e7e9ea;
}

/* prismjs line-numbers 插件样式 */
pre[class*="language-"].line-numbers {
	position: relative;
	padding-left: 3.8em;
	counter-reset: linenumber;
}

pre[class*="language-"].line-numbers > code {
	position: relative;
	white-space: inherit;
}

.line-numbers .line-numbers-rows {
	position: absolute;
	pointer-events: none;
	top: 0;
	font-size: 100%;
	left: -3.8em;
	width: 3em; /* works for line-numbers below 1000 lines */
	letter-spacing: -1px;
	border-right: 1px solid #999;

	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;

}

	.line-numbers-rows > span {
		display: block;
		counter-increment: linenumber;
	}

		.line-numbers-rows > span:before {
			content: counter(linenumber);
			color: #999;
			display: block;
			padding-right: 0.8em;
			text-align: right;
		}
