/* EEACCN 工具型独立页：电路在线仿真 / Verilog / 相册共用 */
html .eeaccn_container.tool-page-container {
	max-width: min(1600px, calc(100vw - 40px)) !important;
}
.tool-page-main { width: 100%; }
.tool-page { width: 100%; }

.tool-hero {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 24px 26px;
	margin: 0 0 18px;
	border: 1px solid rgba(37, 99, 235, .16);
	border-radius: 20px;
	background:
		radial-gradient(900px 240px at 100% 0%, rgba(34, 193, 220, .18), transparent 60%),
		linear-gradient(135deg, #101827 0%, #16263d 58%, #0d2233 100%);
	color: #e8f0fb;
	box-shadow: 0 18px 46px rgba(15, 23, 42, .16);
	overflow: hidden;
	position: relative;
}
.tool-hero::after {
	content: "";
	position: absolute;
	right: -30px;
	top: -46px;
	width: 210px;
	height: 210px;
	border: 1px solid rgba(90, 180, 255, .2);
	border-radius: 50%;
	box-shadow: 0 0 0 28px rgba(90, 180, 255, .045), 0 0 0 56px rgba(90, 180, 255, .025);
	pointer-events: none;
}
.tool-hero__icon {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	display: grid;
	place-items: center;
	border-radius: 16px;
	background: linear-gradient(135deg, #2563eb, #22c1dc);
	color: #fff;
	font-size: 25px;
	box-shadow: 0 10px 24px rgba(37, 99, 235, .35);
}
.tool-hero__body { min-width: 0; position: relative; z-index: 1; }
.tool-hero__eyebrow {
	margin: 0 0 6px;
	color: #7dd3fc;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
}
.tool-hero h2 {
	margin: 0 0 7px;
	color: #fff;
	font-size: clamp(21px, 2vw, 27px);
	line-height: 1.35;
	letter-spacing: .01em;
}
.tool-hero p {
	margin: 0;
	max-width: 880px;
	color: #b8c7da;
	font-size: 13.5px;
	line-height: 1.8;
}
.tool-hero p code {
	padding: 1px 5px;
	border-radius: 5px;
	background: rgba(125, 211, 252, .14);
	color: #bae6fd;
	font-size: 12.5px;
}
.tool-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 13px;
}
.tool-hero__badges span {
	padding: 4px 9px;
	border: 1px solid rgba(148, 190, 235, .24);
	border-radius: 999px;
	background: rgba(148, 190, 235, .08);
	color: #c9d8e8;
	font-size: 11.5px;
	line-height: 1.4;
}

/* Verilog 双栏工作台 */
.verilog-workbench {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
	gap: 16px;
	height: min(72vh, 700px);
	min-height: 540px;
	margin: 0 0 16px;
	align-items: stretch;
}
.verilog-pane {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	border: 1px solid var(--eeaccn-border, #e5e7eb);
	border-radius: 18px;
	background: var(--eeaccn-card, #fff);
	box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
}
.verilog-pane-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex: 0 0 auto;
	min-height: 44px;
	padding: 8px 13px;
	border-bottom: 1px solid var(--eeaccn-border, #e5e7eb);
	background: #f8fafc;
	color: #475569;
	font-size: 12.5px;
}
.verilog-file { display: flex; align-items: center; gap: 7px; min-width: 0; }
.verilog-file b { color: #111827; font-weight: 650; font-size: 13px; }
.verilog-file-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .12); }
.verilog-file-tag {
	padding: 2px 6px;
	border-radius: 5px;
	background: #e0ecff;
	color: #2563eb;
	font-size: 10.5px;
	letter-spacing: .02em;
}
.verilog-pane-hint { color: #8a94a6; font-size: 11.5px; white-space: nowrap; }
.verilog-example-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	flex: 0 0 auto;
	padding: 9px 13px;
	border-bottom: 1px solid #edf1f6;
	background: #fbfcfe;
	font-size: 11.5px;
	color: #8490a3;
}
.verilog-chip {
	border: 1px solid #dbe4ef;
	border-radius: 999px;
	background: #fff;
	color: #405168;
	padding: 4px 10px;
	font-size: 11.5px;
	line-height: 1.45;
	cursor: pointer;
	transition: .18s ease;
}
.verilog-chip:hover { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
.verilog-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.verilog-form > textarea {
	display: block;
	flex: 1 1 auto;
	width: 100%;
	min-height: 0;
	padding: 14px 16px;
	border: 0;
	background: #10161f;
	color: #e6edf7;
	font-family: "JetBrains Mono", "Cascadia Code", Consolas, "SFMono-Regular", monospace;
	font-size: 13px;
	line-height: 1.62;
	tab-size: 4;
	resize: none;
	outline: 0;
	caret-color: #7dd3fc;
}
.verilog-form .CodeMirror {
	flex: 1 1 auto;
	height: auto !important;
	min-height: 0;
	font-family: "JetBrains Mono", "Cascadia Code", Consolas, "SFMono-Regular", monospace;
	font-size: 13px;
	line-height: 1.62;
	background: #10161f;
	color: #e6edf7;
}
.verilog-form .CodeMirror-gutters { border-right-color: #243244; background: #0d131b; }
.verilog-form .CodeMirror-linenumber { color: #5b6b80; }
.verilog-form .CodeMirror-cursor { border-left-color: #7dd3fc; }
.verilog-form .CodeMirror-selected { background: rgba(56, 139, 253, .24); }
.verilog-form .CodeMirror-matchingbracket { color: #7dd3fc !important; border-bottom: 1px solid #7dd3fc; }
.verilog-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex: 0 0 auto;
	padding: 9px 12px;
	border-top: 1px solid var(--eeaccn-border, #e5e7eb);
	background: #f8fafc;
}
.verilog-actions-left { display: flex; flex-wrap: wrap; gap: 7px; }
.verilog-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 32px;
	padding: 0 12px;
	border: 1px solid #d7e0ec;
	border-radius: 9px;
	background: #fff;
	color: #405168;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: .18s ease;
}
.verilog-btn:hover { border-color: #93c5fd; background: #f2f8ff; color: #1d4ed8; }
.verilog-btn--primary {
	border-color: #2563eb;
	background: linear-gradient(135deg, #2563eb, #0ea5e9);
	color: #fff;
	box-shadow: 0 6px 16px rgba(37, 99, 235, .22);
}
.verilog-btn--primary:hover { border-color: #1d4ed8; background: linear-gradient(135deg, #1d4ed8, #0284c7); color: #fff; }
.verilog-actions-note { color: #98a2b3; font-size: 10.5px; white-space: nowrap; }

.verilog-console-pane {
	border-color: #263345;
	background: #0c1117;
	box-shadow: 0 14px 36px rgba(2, 6, 23, .2);
}
.verilog-console-head { border-bottom-color: #223042; background: #121a24; color: #9fb0c4; }
.verilog-console-title { display: flex; align-items: center; gap: 8px; color: #dbe7f5; font-weight: 650; font-size: 12.5px; }
.verilog-term-dots { display: inline-flex; gap: 4px; }
.verilog-term-dots i { width: 7px; height: 7px; border-radius: 50%; background: #f87171; }
.verilog-term-dots i:nth-child(2) { background: #fbbf24; }
.verilog-term-dots i:nth-child(3) { background: #34d399; }
.verilog-status {
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 650;
}
.verilog-status.is-ok { background: rgba(52, 211, 153, .14); color: #6ee7b7; }
.verilog-status.is-err { background: rgba(248, 113, 113, .15); color: #fca5a5; }
.verilog-console {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding: 14px 16px 18px;
	color: #cfe0f2;
	font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
	font-size: 12.5px;
	line-height: 1.7;
	scrollbar-color: #31415a #0c1117;
}
.verilog-console code { color: #7dd3fc; font-size: 12px; }
.verilog-alert {
	margin: 0 0 12px;
	padding: 9px 11px;
	border: 1px solid rgba(248, 113, 113, .35);
	border-radius: 9px;
	background: rgba(248, 113, 113, .1);
	color: #fecaca;
	font-size: 12px;
	line-height: 1.65;
}
.verilog-block-label {
	margin: 6px 0 5px;
	color: #7d90a8;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.verilog-block-label + .verilog-pre { margin-top: 0; }
.verilog-pre {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #d7e6f6;
	white-space: pre-wrap;
	word-break: break-word;
	font-family: inherit;
	font-size: 12.3px;
	line-height: 1.7;
}
.verilog-pre--run { color: #bfe9d2; }
.verilog-meta {
	padding-top: 9px;
	border-top: 1px solid #1f2c3b;
	color: #708399;
	font-size: 10.5px;
}
.verilog-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 240px;
	padding: 20px;
	text-align: center;
	color: #8093a8;
}
.verilog-empty__icon {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	margin-bottom: 10px;
	border: 1px solid #2a3a4e;
	border-radius: 14px;
	background: #121b26;
	color: #7dd3fc;
	font-size: 20px;
}
.verilog-empty b { color: #c7d7e8; font-size: 13.5px; margin-bottom: 4px; }
.verilog-empty p { max-width: 340px; margin: 0; font-size: 12px; line-height: 1.8; color: #8296ad; }

/* 通用说明卡 */
.tool-note-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 8px;
}
.tool-note {
	padding: 12px 14px;
	border: 1px solid var(--eeaccn-border, #e5e7eb);
	border-radius: 12px;
	background: var(--eeaccn-card, #fff);
	color: var(--eeaccn-text-2, #6b7280);
	font-size: 12.3px;
	line-height: 1.68;
}
.tool-note b { display: block; margin-bottom: 3px; color: var(--eeaccn-text, #111827); font-size: 12.8px; }
.tool-note code { color: #2563eb; font-size: 11.5px; }
.tool-source { margin: 12px 0 0; color: #8a94a6; font-size: 11.5px; line-height: 1.7; }
.tool-source a { color: #2563eb; text-decoration: none; }
.tool-source code { color: #2563eb; font-size: 11px; }

body.dark-theme .tool-hero,
html[data-night='night'] .tool-hero { border-color: #273850; }
body.dark-theme .verilog-pane,
html[data-night='night'] .verilog-pane { border-color: #2a3646; background: #161d27; }
body.dark-theme .verilog-pane-head,
html[data-night='night'] .verilog-pane-head { border-color: #2a3646; background: #1b2431; color: #9aa7b8; }
body.dark-theme .verilog-file b,
html[data-night='night'] .verilog-file b { color: #e7eef8; }
body.dark-theme .verilog-example-bar,
html[data-night='night'] .verilog-example-bar { border-color: #2a3646; background: #151d28; }
body.dark-theme .verilog-chip,
html[data-night='night'] .verilog-chip { border-color: #33445a; background: #1a2431; color: #b9c8da; }
body.dark-theme .verilog-actions,
html[data-night='night'] .verilog-actions { border-color: #2a3646; background: #1b2431; }
body.dark-theme .verilog-btn,
html[data-night='night'] .verilog-btn { border-color: #33445a; background: #1a2431; color: #b9c8da; }
body.dark-theme .tool-note,
html[data-night='night'] .tool-note { border-color: #2a3646; background: #161d27; color: #9aa7b8; }
body.dark-theme .tool-note b,
html[data-night='night'] .tool-note b { color: #e7eef8; }

@media (max-width: 1100px) {
	.verilog-workbench { grid-template-columns: 1fr; height: auto; min-height: 0; }
	.verilog-editor-pane { height: 64vh; min-height: 460px; }
	.verilog-console-pane { height: 380px; }
}
@media (max-width: 860px) {
	.tool-note-grid { grid-template-columns: 1fr; }
	.verilog-editor-pane { height: 62vh; min-height: 420px; }
	.verilog-actions { align-items: flex-start; }
	.verilog-actions-note { display: none; }
}
@media (max-width: 560px) {
	.tool-hero { padding: 18px; gap: 12px; border-radius: 16px; }
	.tool-hero__icon { flex-basis: 42px; width: 42px; height: 42px; border-radius: 12px; font-size: 19px; }
	.tool-hero h2 { font-size: 20px; }
	.tool-hero p { font-size: 12.5px; }
	.tool-hero__badges span { font-size: 10.5px; }
	.verilog-editor-pane { height: 58vh; min-height: 400px; }
	.verilog-btn { padding: 0 10px; font-size: 11.5px; }
	.verilog-pane-hint { display: none; }
}

/* 工具页 / 相册页：收紧顶部大图，把工作区提到首屏 */
body.tool-page-body .HeaderImg,
body.album-page-body .HeaderImg {
	height: 430px;
	min-height: 430px;
}
body.album-page-body .HeaderImg { height: 480px; min-height: 480px; }

/* 工具页不再重复文章标题与作者行，把画布/编辑器尽量提前 */
body.tool-page-body .eeaccn_detail > .eeaccn_detail__title,
body.tool-page-body .eeaccn_detail > .eeaccn_detail__count,
body.tool-page-body .eeaccn_detail > .relative {
	display: none;
}
body.tool-page-body .eeaccn_detail { padding-top: 18px; }
body.album-page-body .eeaccn_detail > .eeaccn_detail__title,
body.album-page-body .eeaccn_detail > .eeaccn_detail__count,
body.album-page-body .eeaccn_detail > .relative {
	display: none;
}
body.album-page-body .eeaccn_detail { padding-top: 18px; }
body.album-page-body .album-hero { padding: 18px; gap: 18px; }
body.album-page-body .album-hero__cover { min-height: 220px; max-height: 290px; }
body.album-page-body .album-hero__cover img { min-height: 220px; max-height: 290px; }

/* 电路页：统一的深色工具横幅 */
body .circuit-page__lead {
	gap: 18px;
	padding: 24px 26px;
	margin: 0 0 16px;
	border: 1px solid rgba(37, 99, 235, .18);
	border-radius: 20px;
	background:
		radial-gradient(900px 240px at 100% 0%, rgba(34, 193, 220, .18), transparent 60%),
		linear-gradient(135deg, #101827 0%, #16263d 58%, #0d2233 100%);
	color: #e8f0fb;
	box-shadow: 0 18px 46px rgba(15, 23, 42, .16);
	overflow: hidden;
	position: relative;
}
body .circuit-page__lead::after {
	content: "";
	position: absolute;
	right: -30px;
	top: -46px;
	width: 210px;
	height: 210px;
	border: 1px solid rgba(90, 180, 255, .2);
	border-radius: 50%;
	box-shadow: 0 0 0 28px rgba(90, 180, 255, .045), 0 0 0 56px rgba(90, 180, 255, .025);
	pointer-events: none;
}
body .circuit-page__lead-icon {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	font-size: 25px;
	box-shadow: 0 10px 24px rgba(37, 99, 235, .35);
	position: relative;
	z-index: 1;
}
body .circuit-page__lead-body { min-width: 0; position: relative; z-index: 1; }
body .circuit-page__lead .circuit-page__eyebrow {
	display: block;
	margin: 0 0 6px;
	color: #7dd3fc;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
}
body .circuit-page__lead-body b {
	margin: 0 0 7px;
	color: #fff;
	font-size: clamp(21px, 2vw, 27px);
	line-height: 1.35;
}
body .circuit-page__lead-body > span:not(.circuit-page__eyebrow) {
	display: block;
	max-width: 920px;
	color: #b8c7da;
	font-size: 13.5px;
	line-height: 1.8;
}
body .circuit-page__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 13px;
}
body .circuit-page__badges em {
	padding: 4px 9px;
	border: 1px solid rgba(148, 190, 235, .24);
	border-radius: 999px;
	background: rgba(148, 190, 235, .08);
	color: #c9d8e8;
	font-size: 11.5px;
	font-style: normal;
	line-height: 1.4;
}

body .circuit-page__embed { margin-top: 0; border-radius: 20px; }
body .circuit-page__embed-head { padding: 12px 16px; }
body .circuit-page__frame { height: min(78vh, 820px); }

/* 电路页说明放到工作区之后，避免把画布压到首屏以下 */
.circuit-page__about {
	margin: 18px 0 0;
	padding: 18px 20px;
	border: 1px solid var(--eeaccn-border, #e5e7eb);
	border-radius: 16px;
	background: var(--eeaccn-card, #fff);
}
.circuit-page__about-title {
	margin: 0 0 8px;
	color: var(--eeaccn-text, #111827);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}
body .circuit-page__intro { margin: 0; font-size: 12.8px; line-height: 1.85; }
body.dark-theme .circuit-page__about,
html[data-night='night'] .circuit-page__about { border-color: #2a3646; background: #161d27; }
body.dark-theme .circuit-page__about-title,
html[data-night='night'] .circuit-page__about-title { color: #e7eef8; }

@media (max-width: 900px) {
	body.tool-page-body .HeaderImg { height: 330px; min-height: 330px; }
	body.album-page-body .HeaderImg { height: 360px; min-height: 360px; }
	body .circuit-page__lead { gap: 12px; padding: 18px; border-radius: 16px; }
	body .circuit-page__lead-icon { flex-basis: 42px; width: 42px; height: 42px; border-radius: 12px; font-size: 19px; }
	body .circuit-page__lead-body b { font-size: 20px; }
	body .circuit-page__badges em { font-size: 10.5px; }
}
@media (max-width: 560px) {
	body.tool-page-body .HeaderImg { height: calc(35vh + 35px); min-height: 250px; }
	body.album-page-body .HeaderImg { height: calc(38vh + 40px); min-height: 280px; }
	body .circuit-page__lead-body > span:not(.circuit-page__eyebrow) { font-size: 12.5px; }
	.circuit-page__about { padding: 14px 15px; }
}

/* Verilog 语言切换与题库 */
.verilog-lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 2px;
	border: 1px solid #dbe3ef;
	border-radius: 8px;
	background: #fff;
}
.verilog-lang-switch button {
	padding: 4px 9px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #64748b;
	font-size: 11.5px;
	font-weight: 600;
	cursor: pointer;
}
.verilog-lang-switch button.is-active { background: #2563eb; color: #fff; }
.verilog-run-head {
	flex: none;
	padding: 5px 12px;
	border: 1px solid #2563eb;
	border-radius: 7px;
	background: #2563eb;
	color: #fff;
	font-size: 12px;
	font-weight: 650;
	cursor: pointer;
}
.verilog-run-head:hover { background: #1d4ed8; }
body.dark-theme .verilog-lang-switch,
html[data-night='night'] .verilog-lang-switch { border-color: #334155; background: #111c2e; }
body.dark-theme .verilog-lang-switch button,
html[data-night='night'] .verilog-lang-switch button { color: #94a3b8; }
body.dark-theme .verilog-lang-switch button.is-active,
html[data-night='night'] .verilog-lang-switch button.is-active { background: #3b82f6; color: #fff; }

.vq-bank {
	margin: 26px 0 18px;
	padding: 24px 26px 26px;
	border: 1px solid var(--eeaccn-border, #e5e7eb);
	border-radius: 18px;
	background: var(--eeaccn-card, #fff);
	box-shadow: 0 14px 36px rgba(15, 23, 42, .06);
}
.vq-bank__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.vq-kicker { color: #0891b2; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; }
.vq-bank__head h2 { margin: 6px 0 6px; color: #0f172a; font-size: 24px; }
.vq-bank__head p { margin: 0; max-width: 760px; color: #64748b; font-size: 12.5px; line-height: 1.8; }
.vq-bank__stat { flex: none; text-align: right; }
.vq-bank__stat b { display: block; color: #2563eb; font-size: 26px; line-height: 1; }
.vq-bank__stat span { color: #94a3b8; font-size: 11px; }
.vq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vq-card { display: flex; flex-direction: column; padding: 15px; border: 1px solid #e2e8f0; border-radius: 13px; background: #fbfdff; }
.vq-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.vq-card__head h3 { margin: 0 0 6px; color: #0f172a; font-size: 15px; }
.vq-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.vq-tags span { padding: 2px 7px; border-radius: 999px; background: #eef2f7; color: #64748b; font-size: 10.5px; }
.vq-tags .vq-level { background: #e0f2fe; color: #0369a1; font-weight: 700; }
.vq-reset { flex: none; padding: 3px 8px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #64748b; font-size: 11px; cursor: pointer; }
.vq-prompt { margin: 10px 0 9px; color: #475569; font-size: 12px; line-height: 1.75; }
.vq-code {
	width: 100%;
	min-height: 190px;
	box-sizing: border-box;
	padding: 11px 12px;
	border: 1px solid #cfd9e6;
	border-radius: 9px;
	background: #0f172a;
	color: #e2e8f0;
	font-family: Consolas, "SFMono-Regular", Menlo, monospace;
	font-size: 12px;
	line-height: 1.62;
	resize: vertical;
	tab-size: 4;
}
.vq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.vq-run { padding: 6px 14px; border: 1px solid #2563eb; border-radius: 7px; background: #2563eb; color: #fff; font-size: 12px; font-weight: 650; cursor: pointer; }
.vq-run:disabled { opacity: .6; cursor: wait; }
.vq-hint { color: #94a3b8; font-size: 10.5px; }
.vq-result { margin-top: 10px; padding: 10px 12px; border-radius: 9px; font-size: 12px; line-height: 1.7; }
.vq-result.is-pending { border: 1px solid #bae6fd; background: #f0f9ff; color: #0369a1; }
.vq-result.is-pass { border: 1px solid #a7f3d0; background: #ecfdf5; color: #047857; }
.vq-result.is-fail { border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c; }
.vq-result__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 3px; }
.vq-result__head b { font-size: 13px; }
.vq-result__head span { opacity: .7; font-size: 10.5px; }
.vq-result p { margin: 0; }
.vq-result details { margin-top: 7px; }
.vq-result summary { cursor: pointer; font-size: 11px; opacity: .8; }
.vq-result pre { max-height: 220px; overflow: auto; margin: 6px 0 0; padding: 9px; border-radius: 7px; background: rgba(15, 23, 42, .06); color: inherit; font-family: Consolas, monospace; font-size: 11px; line-height: 1.6; white-space: pre-wrap; }
body.dark-theme .vq-bank, html[data-night='night'] .vq-bank { border-color: #2a3646; background: #111c2e; box-shadow: none; }
body.dark-theme .vq-bank__head h2, html[data-night='night'] .vq-bank__head h2 { color: #e7eef8; }
body.dark-theme .vq-card, html[data-night='night'] .vq-card { border-color: #2a3646; background: #16202d; }
body.dark-theme .vq-card__head h3, html[data-night='night'] .vq-card__head h3 { color: #e7eef8; }
body.dark-theme .vq-prompt, html[data-night='night'] .vq-prompt { color: #9aa7b8; }
body.dark-theme .vq-tags span, html[data-night='night'] .vq-tags span { background: #243247; color: #9aa7b8; }
body.dark-theme .vq-reset, html[data-night='night'] .vq-reset { border-color: #334155; background: #1b2431; color: #94a3b8; }

@media (max-width: 980px) {
	.vq-grid { grid-template-columns: 1fr; }
	.vq-bank { padding: 18px; }
	.vq-bank__head { flex-direction: column; }
	.vq-bank__stat { text-align: left; }
	.verilog-pane-hint { display: none; }
}
@media (max-width: 620px) {
	.verilog-pane-head { flex-wrap: wrap; }
	.verilog-lang-switch { order: 3; margin-left: 0; }
	.verilog-run-head { margin-left: auto; }
	.vq-code { min-height: 160px; }
}

/* Verilog 波形与编辑器兜底 */
.verilog-wave { flex: 0 0 auto; margin-top: 8px; border: 1px solid #243244; border-radius: 10px; background: #0b1220; overflow: hidden; }
.verilog-wave__head { display: flex; align-items: center; justify-content: space-between; padding: 7px 11px; border-bottom: 1px solid #1c2a3a; color: #dbeafe; font-size: 11px; }
.verilog-wave__head b { font-weight: 650; }
.verilog-wave__head span { color: #7f8ea3; font-size: 10px; }
.verilog-wave__body { max-height: 300px; overflow: auto; padding: 4px 6px 7px; }
.verilog-wave-svg { display: block; width: 100%; height: auto; min-width: 640px; }
.vq-wave { margin-top: 8px; border: 1px solid #dbeafe; border-radius: 8px; background: #0b1220; overflow: hidden; }
.vq-wave__head { padding: 6px 9px; border-bottom: 1px solid #1c2a3a; color: #dbeafe; font-size: 10.5px; }
.vq-wave__body { max-height: 220px; overflow: auto; padding: 3px 5px 5px; }
.vq-wave__body .verilog-wave-svg { min-width: 580px; }
@media (max-width: 720px) { .verilog-wave__body, .vq-wave__body { overflow-x: auto; } }

/* 独立设计页版权行 */
.indie-copyright {
	margin: 18px 0 8px;
	padding-top: 14px;
	border-top: 1px dashed rgba(100, 116, 139, .22);
	color: #7b8798;
	font-size: 13px;
	line-height: 1.8;
	text-align: center;
}
.indie-copyright a {
	color: #2563eb;
	text-decoration: none;
}
.indie-copyright a:hover { text-decoration: underline; }
@media (max-width: 768px) {
	.indie-copyright { font-size: 12px; line-height: 1.7; padding-left: 12px; padding-right: 12px; }
}
