/* ============================================================
   UCAS 高级操作系统 · 期中报告主题
   浅色学术版式：暖纸底、深墨字、单一结构色 + 单一强调色
   ============================================================ */

:root {
	--paper: #f7f6f3;
	--card: #ffffff;
	--ink: #14171c;
	--ink-2: #333a44;
	--muted: #616a76;
	--faint: #8a919c;
	--rule: #d8d5ce;
	--rule-soft: #e7e4dd;
	--accent: #0b4f6c;
	--accent-soft: #e2ecf1;
	--hot: #b3541e;
	--hot-soft: #f6e7dd;
	--mono: "DejaVu Sans Mono", "Noto Sans Mono CJK SC", monospace;
	--sans: Inter, "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
}

html,
body {
	background: var(--paper);
}

.reveal-viewport {
	background: var(--paper);
}

.reveal {
	font-family: var(--sans);
	font-size: 24px;
	color: var(--ink);
	letter-spacing: 0.005em;
}

.reveal .slides {
	text-align: left;
}

.reveal .slides section {
	height: 720px;
	box-sizing: border-box;
	line-height: 1.5;
}

/* ---------- 版心 ---------- */
.pad {
	position: absolute;
	inset: 0;
	padding: 44px 62px 44px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.pad.center {
	justify-content: center;
}

/* ---------- 标题层级 ---------- */
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4 {
	font-family: var(--sans);
	color: var(--ink);
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.25;
	margin: 0;
	text-shadow: none;
}

.kicker {
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: 0.10em;
	color: var(--accent);
	text-transform: uppercase;
	margin-bottom: 14px;
}

.kicker .idx {
	color: var(--hot);
	margin-right: 10px;
	font-variant-numeric: tabular-nums;
}

.reveal h2.title {
	font-size: 37px;
	font-weight: 700;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--ink);
	margin-bottom: 26px;
}

.reveal h2.title::after {
	content: "";
}

.reveal h2.title .sub {
	font-size: 19px;
	font-weight: 400;
	color: var(--muted);
	margin-left: 14px;
	letter-spacing: 0;
}

/* ---------- 正文 ---------- */
.reveal p {
	font-size: 23px;
	line-height: 1.62;
	margin: 0 0 14px;
	color: var(--ink-2);
}

.reveal p.lead {
	font-size: 27px;
	color: var(--ink);
	line-height: 1.55;
}

.reveal b,
.reveal strong {
	color: var(--ink);
	font-weight: 700;
}

.reveal em {
	font-style: normal;
	color: var(--hot);
	font-weight: 600;
}

.reveal a {
	color: var(--accent);
	text-decoration: none;
	border-bottom: 1px solid var(--accent-soft);
}

.small {
	font-size: 18px;
	color: var(--muted);
	line-height: 1.5;
}

.tiny {
	font-size: 15px;
	color: var(--faint);
	line-height: 1.45;
}

/* ---------- 列表 ---------- */
.reveal ul,
.reveal ol {
	margin: 0 0 10px;
	padding-left: 0;
	list-style: none;
}

.reveal ul li,
.reveal ol li {
	font-size: 23px;
	line-height: 1.58;
	color: var(--ink-2);
	margin-bottom: 9px;
	padding-left: 26px;
	position: relative;
}

.reveal ul li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 13px;
	width: 9px;
	height: 2px;
	background: var(--accent);
}

.reveal ol {
	counter-reset: n;
}

.reveal ol li {
	counter-increment: n;
	padding-left: 34px;
}

.reveal ol li::before {
	content: counter(n);
	position: absolute;
	left: 0;
	top: 1px;
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 700;
	color: var(--paper);
	background: var(--accent);
	width: 22px;
	height: 22px;
	line-height: 22px;
	text-align: center;
	border-radius: 3px;
}

.reveal li b {
	font-weight: 700;
}

/* ---------- 分栏 ---------- */
.cols {
	display: flex;
	gap: 34px;
	align-items: flex-start;
	flex: none;
}

.cols.tight {
	gap: 22px;
}

.cols.g20 {
	gap: 20px;
}

.cols.g26 {
	gap: 26px;
}

.cols > * {
	flex: 1 1 0;
	min-width: 0;
}

/* 一排卡片等高：把卡片纵向撑满，避免底部参差 */
.cols.stretch {
	align-items: stretch;
}

.cols.stretch > .card {
	display: flex;
	flex-direction: column;
}

.cols.c6040 > *:first-child {
	flex: 0 0 58%;
}

.cols.c4060 > *:first-child {
	flex: 0 0 40%;
}

.cols.c3565 > *:first-child {
	flex: 0 0 33%;
}

/* ---------- 卡片 ---------- */
.card {
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: 3px;
	padding: 18px 20px 16px;
	box-sizing: border-box;
}

.card h3 {
	font-size: 20px;
	margin-bottom: 8px;
	color: var(--ink);
}

.card h3 .tag {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--accent);
	background: var(--accent-soft);
	padding: 2px 7px;
	border-radius: 2px;
	margin-right: 8px;
	vertical-align: 2px;
}

.card p,
.card li {
	font-size: 18.5px;
	line-height: 1.5;
	margin-bottom: 6px;
}

.card ul li {
	font-size: 18.5px;
	padding-left: 18px;
	margin-bottom: 5px;
}

.card ul li::before {
	width: 7px;
	top: 12px;
}

.card.hot {
	border-color: var(--hot);
	background: var(--hot-soft);
}

.card.flat {
	background: transparent;
}

/* ---------- 数字 ---------- */
.kpis {
	display: flex;
	gap: 26px;
	margin: 8px 0 4px;
}

.kpi {
	flex: 1 1 0;
	border-top: 3px solid var(--accent);
	padding-top: 12px;
}

.kpi.hot {
	border-top-color: var(--hot);
}

.kpi .v {
	font-size: 46px;
	font-weight: 700;
	line-height: 1;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.kpi .v .u {
	font-size: 22px;
	font-weight: 600;
	margin-left: 2px;
	color: var(--accent);
}

.kpi.hot .v .u {
	color: var(--hot);
}

.kpi .l {
	font-size: 16px;
	color: var(--muted);
	margin-top: 8px;
	line-height: 1.4;
}

/* ---------- 图表（图片） ---------- */
.figure {
	margin: 0;
	text-align: center;
}

.figure img {
	max-width: 100%;
	max-height: 430px;
	background: #fff;
	border: 1px solid var(--rule);
	box-shadow: none;
	margin: 0 auto;
	display: block;
}

.figure figcaption {
	font-size: 15.5px;
	color: var(--muted);
	margin-top: 10px;
	line-height: 1.45;
	text-align: left;
}

.figure figcaption .src {
	color: var(--faint);
}

/* ---------- 代码 ---------- */
pre.code {
	font-family: var(--mono);
	tab-size: 2;
	font-size: 15.5px;
	line-height: 1.5;
	background: #fbfaf7;
	border: 1px solid var(--rule);
	border-left: 3px solid var(--accent);
	border-radius: 2px;
	padding: 13px 15px;
	margin: 0 0 10px;
	overflow: hidden;
	white-space: pre;
	color: #2b3038;
	box-shadow: none;
	width: auto;
}

pre.code.tight {
	font-size: 14.5px;
	line-height: 1.46;
	padding: 12px 14px;
}

pre.code.dense {
	font-size: 14px;
	line-height: 1.42;
	padding: 11px 13px;
}

.reveal ul.dense li,
.reveal ol.dense li {
	font-size: 20px;
	line-height: 1.5;
	margin-bottom: 7px;
}

pre.code .cm {
	color: #8a919c;
	font-style: italic;
}

pre.code .kw {
	color: var(--accent);
	font-weight: 600;
}

pre.code .hl {
	color: var(--hot);
	font-weight: 600;
}

pre.code .lbl {
	color: var(--muted);
	font-weight: 600;
}

.codecaption {
	font-size: 14.5px;
	color: var(--faint);
	margin: -4px 0 10px;
}

/* ---------- 流程/链式图 ---------- */
.flow {
	display: flex;
	align-items: stretch;
	gap: 0;
	margin: 6px 0 12px;
}

.flow .box {
	flex: 1 1 0;
	border: 1px solid var(--rule);
	background: var(--card);
	padding: 10px 8px;
	text-align: center;
	font-size: 16px;
	line-height: 1.35;
	color: var(--ink-2);
	border-radius: 2px;
}

.flow .box b {
	display: block;
	font-size: 17px;
	color: var(--ink);
	margin-bottom: 3px;
}

.flow .box.acc {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.flow .box.hot {
	border-color: var(--hot);
	background: var(--hot-soft);
}

.flow .arw {
	flex: 0 0 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--faint);
	font-size: 18px;
}

/* 纵向层级（L0/L1/L2） */
.levels {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.level {
	display: flex;
	align-items: center;
	gap: 14px;
	border: 1px solid var(--rule);
	background: var(--card);
	padding: 9px 14px;
	border-radius: 2px;
}

.level .tag {
	font-family: var(--mono);
	font-size: 15px;
	font-weight: 700;
	color: var(--paper);
	background: var(--accent);
	padding: 2px 8px;
	border-radius: 2px;
}

.level.hot .tag {
	background: var(--hot);
}

.level span {
	font-size: 18px;
	color: var(--ink-2);
}

/* ---------- 时间轴 ---------- */
.timeline {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	margin-top: 26px;
}

.tl-item {
	border-top: 2px solid var(--rule);
	padding: 22px 12px 0 0;
	position: relative;
}

.tl-item::before {
	content: "";
	position: absolute;
	top: -7px;
	left: 0;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--faint);
}

.tl-item.hero::before {
	background: var(--hot);
	width: 13px;
	height: 13px;
	top: -8px;
}

.tl-item .yr {
	display: block;
	font-size: 21px;
	font-weight: 700;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
}

.tl-item.hero .yr {
	color: var(--hot);
}

.tl-item .who {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: var(--ink);
	margin: 5px 0 2px;
	line-height: 1.3;
}

.tl-item .venue {
	display: block;
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--faint);
	margin-bottom: 6px;
}

.tl-item .what {
	display: block;
	font-size: 15px;
	color: var(--muted);
	line-height: 1.42;
}

/* ---------- 条形量级图 ---------- */
.bars {
	margin: 10px 0 6px;
}

.bar-row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
}

.bar-row .name {
	flex: 0 0 132px;
	font-size: 17px;
	color: var(--ink-2);
	text-align: right;
}

.bar-wrap {
	flex: 1 1 0;
	background: var(--rule-soft);
	height: 26px;
	border-radius: 2px;
	position: relative;
}

.bar {
	height: 100%;
	background: var(--accent);
	border-radius: 2px;
}

.bar.hot {
	background: var(--hot);
}

.bar-row .val {
	flex: 0 0 108px;
	font-family: var(--mono);
	font-size: 17px;
	font-weight: 700;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
}

/* ---------- 表格 ---------- */
.reveal table {
	width: 100%;
	border-collapse: collapse;
	font-size: 17px;
	margin: 6px 0 8px;
}

.reveal table th {
	font-size: 16px;
	font-weight: 700;
	color: var(--ink);
	text-align: left;
	border-bottom: 2px solid var(--ink);
	padding: 8px 12px 8px 0;
	vertical-align: bottom;
}

.reveal table td {
	color: var(--ink-2);
	border-bottom: 1px solid var(--rule-soft);
	padding: 9px 12px 9px 0;
	line-height: 1.45;
	vertical-align: top;
}

.reveal table td:first-child {
	font-weight: 700;
	color: var(--ink);
	white-space: nowrap;
}

.reveal table tr:last-child td {
	border-bottom: 1px solid var(--rule);
}

/* ---------- 引语 / 结论条 ---------- */
.takeaway {
	border-left: 4px solid var(--hot);
	background: var(--hot-soft);
	padding: 13px 18px;
	font-size: 20px;
	line-height: 1.5;
	color: var(--ink);
	margin: 14px 0 0;
}

.takeaway b {
	color: var(--hot);
}

.axis-note {
	font-size: 13px;
	color: var(--faint);
	margin-top: -2px;
}

/* ---------- 封面 ---------- */
.cover {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	padding: 0 62px;
	position: relative;
}

.cover .meta-top {
	font-size: 15px;
	letter-spacing: 0.16em;
	color: var(--accent);
	text-transform: uppercase;
	margin-bottom: 26px;
}

.cover h1 {
	font-size: 54px;
	line-height: 1.2;
	letter-spacing: -0.01em;
	max-width: 15em;
}

.cover h1 .thin {
	font-weight: 300;
	color: var(--ink-2);
}

.cover .deck-sub {
	font-size: 25px;
	color: var(--ink-2);
	margin-top: 20px;
	max-width: 26em;
	line-height: 1.5;
}

.cover .rule {
	width: 96px;
	height: 4px;
	background: var(--hot);
	margin: 30px 0 22px;
}

.cover .who {
	font-size: 19px;
	color: var(--ink-2);
	line-height: 1.7;
}

.cover .who b {
	font-weight: 700;
}

.cover .who .sep {
	color: var(--rule);
	margin: 0 10px;
}

/* ---------- 章节扉页 ---------- */
.divider {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	padding: 0 62px;
}

.divider .no {
	font-family: var(--mono);
	font-size: 17px;
	letter-spacing: 0.18em;
	color: var(--hot);
	margin-bottom: 16px;
}

.divider h2 {
	font-size: 46px;
	line-height: 1.24;
	max-width: 18em;
}

.divider .line {
	width: 100%;
	height: 1px;
	background: var(--rule);
	margin: 26px 0 18px;
}

.divider p {
	font-size: 21px;
	color: var(--muted);
	max-width: 30em;
}

/* ---------- 页脚/页码 ---------- */
.reveal .slide-number {
	background: transparent;
	color: var(--faint);
	font-family: var(--mono);
	font-size: 14px;
	right: 18px;
	bottom: 12px;
	padding: 0;
}

.reveal .controls {
	color: var(--faint);
	right: 16px;
	bottom: 44px;
	transform: scale(0.65);
}

.reveal .progress {
	color: var(--hot);
	height: 3px;
}

.reveal .progress span {
	background: var(--hot);
}

/* ---------- 引用文献列表 ---------- */
.refs {
	list-style: none;
	padding: 0;
	margin: 0;
}

.refs li {
	font-size: 14px;
	line-height: 1.45;
	color: var(--muted);
	padding-left: 40px !important;
	margin-bottom: 7px;
	position: relative;
}

.refs li::before {
	content: none !important;
}

.refs li .n {
	position: absolute;
	left: 0;
	top: 1px;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--accent);
	font-weight: 700;
}

.refs li b {
	color: var(--ink);
	font-weight: 700;
}

/* ---------- 打印 ---------- */
.print-pdf .reveal .slides section,
.reveal.print-pdf .slides section {
	height: 720px;
}

.print-pdf .pad,
.print-pdf .cover,
.print-pdf .divider {
	position: relative;
	height: 720px;
}
