2026-07-18 00:51:43 +08:00
|
|
|
/* ============================================================
|
2026-07-19 21:40:24 +08:00
|
|
|
Datasheet Theme
|
2026-07-18 00:51:43 +08:00
|
|
|
============================================================ */
|
|
|
|
|
|
|
|
|
|
:root {
|
|
|
|
|
--bg: #fff;
|
2026-07-19 21:40:24 +08:00
|
|
|
--text: #000;
|
|
|
|
|
--text-muted: #333;
|
2026-07-18 00:51:43 +08:00
|
|
|
--heading: #000;
|
|
|
|
|
--accent: #003d7c;
|
2026-07-19 21:40:24 +08:00
|
|
|
--th-bg: #f2f2f2;
|
|
|
|
|
--th-border: #ccc;
|
|
|
|
|
--stripe: #fafafa;
|
|
|
|
|
--link: #000;
|
|
|
|
|
--note-bg: #f7f7f7;
|
|
|
|
|
--note-border: #999;
|
2026-07-18 00:51:43 +08:00
|
|
|
|
|
|
|
|
--font-body: "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", Georgia, serif;
|
|
|
|
|
--font-heading: "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
|
|
|
|
|
--font-mono: "Cascadia Code", "Fira Code", Consolas, monospace;
|
2026-07-19 21:40:24 +08:00
|
|
|
--size: 16px;
|
|
|
|
|
--line: 1.75;
|
2026-07-18 00:51:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
|
|
|
|
|
|
html { font-size: var(--size); }
|
|
|
|
|
|
|
|
|
|
body {
|
|
|
|
|
font-family: var(--font-body);
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
line-height: var(--line);
|
|
|
|
|
color: var(--text);
|
|
|
|
|
background: var(--bg);
|
|
|
|
|
max-width: 900px;
|
|
|
|
|
margin: 0 auto;
|
2026-07-19 20:56:15 +08:00
|
|
|
padding: 0;
|
2026-07-18 00:51:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ---------- Cover ---------- */
|
|
|
|
|
.cover-page {
|
2026-07-19 20:56:15 +08:00
|
|
|
min-height: 100vh;
|
2026-07-19 21:40:24 +08:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 4em 2.5em;
|
|
|
|
|
margin: 0 0 3em 0;
|
2026-07-19 20:56:15 +08:00
|
|
|
position: relative;
|
2026-07-18 00:51:43 +08:00
|
|
|
text-align: center;
|
2026-07-19 20:56:15 +08:00
|
|
|
}
|
2026-07-19 21:40:24 +08:00
|
|
|
|
|
|
|
|
.cover-top { margin-bottom: 4em; }
|
|
|
|
|
|
|
|
|
|
.cover-top .product-family {
|
2026-07-18 00:51:43 +08:00
|
|
|
font-family: var(--font-heading);
|
2026-07-19 21:40:24 +08:00
|
|
|
font-size: 0.8rem;
|
2026-07-19 20:56:15 +08:00
|
|
|
letter-spacing: 0.5em;
|
2026-07-18 00:51:43 +08:00
|
|
|
text-transform: uppercase;
|
2026-07-19 20:56:15 +08:00
|
|
|
color: var(--text-muted);
|
2026-07-19 21:40:24 +08:00
|
|
|
font-weight: 700;
|
2026-07-18 00:51:43 +08:00
|
|
|
}
|
2026-07-19 21:40:24 +08:00
|
|
|
|
|
|
|
|
.cover-body { max-width: 100%; }
|
|
|
|
|
|
|
|
|
|
.cover-body h1 {
|
2026-07-18 00:51:43 +08:00
|
|
|
font-family: var(--font-heading);
|
2026-07-19 21:40:24 +08:00
|
|
|
font-size: 2.6rem;
|
2026-07-18 00:51:43 +08:00
|
|
|
font-weight: 700;
|
2026-07-19 21:40:24 +08:00
|
|
|
line-height: 1.3;
|
|
|
|
|
margin-bottom: 0.5em;
|
2026-07-19 20:56:15 +08:00
|
|
|
color: var(--heading);
|
2026-07-18 00:51:43 +08:00
|
|
|
border: none;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
2026-07-19 21:40:24 +08:00
|
|
|
|
|
|
|
|
.cover-body h1 .model { font-weight: 800; display: inline; }
|
|
|
|
|
|
|
|
|
|
.cover-body h1 .zh-name {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
display: inline;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.cover-body .subtitle {
|
2026-07-18 00:51:43 +08:00
|
|
|
font-family: var(--font-heading);
|
2026-07-19 21:40:24 +08:00
|
|
|
font-size: 1.05rem;
|
2026-07-19 20:56:15 +08:00
|
|
|
font-weight: 400;
|
|
|
|
|
color: var(--text-muted);
|
2026-07-19 21:40:24 +08:00
|
|
|
letter-spacing: 0.1em;
|
2026-07-18 00:51:43 +08:00
|
|
|
}
|
2026-07-19 21:40:24 +08:00
|
|
|
|
|
|
|
|
.cover-bottom {
|
2026-07-19 20:56:15 +08:00
|
|
|
position: absolute;
|
2026-07-19 21:40:24 +08:00
|
|
|
bottom: 3.5em;
|
|
|
|
|
left: 0; right: 0;
|
|
|
|
|
font-size: 0.85rem;
|
2026-07-19 20:56:15 +08:00
|
|
|
color: var(--text-muted);
|
2026-07-19 21:40:24 +08:00
|
|
|
font-family: var(--font-heading);
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 0.2em;
|
2026-07-18 00:51:43 +08:00
|
|
|
}
|
2026-07-19 21:40:24 +08:00
|
|
|
|
|
|
|
|
.cover-bottom .rev { font-weight: 700; color: var(--heading); }
|
|
|
|
|
.cover-bottom .author { white-space: nowrap; }
|
2026-07-19 20:56:15 +08:00
|
|
|
|
|
|
|
|
/* ---------- Chapters ---------- */
|
|
|
|
|
.chapter { padding: 2em 2.5em; }
|
2026-07-18 00:51:43 +08:00
|
|
|
|
|
|
|
|
/* ---------- Headings ---------- */
|
|
|
|
|
h1 {
|
|
|
|
|
font-family: var(--font-heading);
|
2026-07-19 21:40:24 +08:00
|
|
|
font-size: 1.6rem;
|
|
|
|
|
font-weight: 800;
|
2026-07-18 00:51:43 +08:00
|
|
|
color: var(--heading);
|
|
|
|
|
margin: 2em 0 0.8em;
|
2026-07-19 21:40:24 +08:00
|
|
|
padding-bottom: 8px;
|
|
|
|
|
border-bottom: 2px solid var(--heading);
|
2026-07-18 00:51:43 +08:00
|
|
|
}
|
|
|
|
|
h2 {
|
|
|
|
|
font-family: var(--font-heading);
|
2026-07-19 21:40:24 +08:00
|
|
|
font-size: 1.3rem;
|
2026-07-18 00:51:43 +08:00
|
|
|
font-weight: 700;
|
2026-07-19 21:40:24 +08:00
|
|
|
color: var(--heading);
|
2026-07-18 00:51:43 +08:00
|
|
|
margin: 1.5em 0 0.6em;
|
|
|
|
|
padding-bottom: 4px;
|
|
|
|
|
border-bottom: 1px solid var(--th-border);
|
|
|
|
|
}
|
|
|
|
|
h3 {
|
|
|
|
|
font-family: var(--font-heading);
|
2026-07-19 21:40:24 +08:00
|
|
|
font-size: 1.15rem;
|
|
|
|
|
font-weight: 700;
|
2026-07-18 00:51:43 +08:00
|
|
|
color: var(--heading);
|
|
|
|
|
margin: 1.2em 0 0.5em;
|
|
|
|
|
}
|
|
|
|
|
h4 {
|
|
|
|
|
font-family: var(--font-heading);
|
2026-07-19 21:40:24 +08:00
|
|
|
font-size: 1.05rem;
|
|
|
|
|
font-weight: 700;
|
2026-07-18 00:51:43 +08:00
|
|
|
color: var(--text);
|
|
|
|
|
margin: 1em 0 0.4em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ---------- Body ---------- */
|
2026-07-19 21:40:24 +08:00
|
|
|
p { margin: 0.6em 0; text-align: justify; color: var(--text); }
|
|
|
|
|
ul, ol { margin: 0.6em 0; padding-left: 2em; color: var(--text); }
|
2026-07-18 00:51:43 +08:00
|
|
|
li { margin: 2px 0; }
|
|
|
|
|
a { color: var(--link); text-decoration: none; }
|
|
|
|
|
a:hover { text-decoration: underline; }
|
2026-07-19 21:40:24 +08:00
|
|
|
strong { font-weight: 700; color: var(--heading); }
|
2026-07-18 00:51:43 +08:00
|
|
|
|
|
|
|
|
/* ---------- Tables ---------- */
|
|
|
|
|
table {
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
margin: 1em 0;
|
|
|
|
|
font-size: 0.92rem;
|
|
|
|
|
}
|
|
|
|
|
thead th {
|
|
|
|
|
background-color: var(--th-bg);
|
|
|
|
|
font-family: var(--font-heading);
|
2026-07-19 21:40:24 +08:00
|
|
|
font-weight: 700;
|
2026-07-18 00:51:43 +08:00
|
|
|
font-size: 0.88rem;
|
|
|
|
|
text-align: left;
|
|
|
|
|
padding: 6px 10px;
|
|
|
|
|
border: 1px solid var(--th-border);
|
2026-07-19 21:40:24 +08:00
|
|
|
border-bottom: 2px solid var(--heading);
|
2026-07-18 00:51:43 +08:00
|
|
|
white-space: nowrap;
|
2026-07-19 21:40:24 +08:00
|
|
|
color: var(--heading);
|
2026-07-18 00:51:43 +08:00
|
|
|
}
|
|
|
|
|
tbody td {
|
|
|
|
|
padding: 5px 10px;
|
|
|
|
|
border: 1px solid var(--th-border);
|
|
|
|
|
vertical-align: top;
|
|
|
|
|
}
|
|
|
|
|
tbody tr:nth-child(even) { background-color: var(--stripe); }
|
2026-07-19 21:40:24 +08:00
|
|
|
table.compact { font-size: 0.85rem; }
|
|
|
|
|
table.compact thead th { font-size: 0.82rem; padding: 3px 7px; }
|
2026-07-18 00:51:43 +08:00
|
|
|
table.compact tbody td { padding: 3px 7px; }
|
|
|
|
|
td.addr, td.bits, td.reset-val { font-family: var(--font-mono); font-size: 0.85em; white-space: nowrap; }
|
|
|
|
|
td.bits { text-align: center; }
|
|
|
|
|
|
2026-07-19 21:40:24 +08:00
|
|
|
.perm-rw { color: var(--text); font-weight: 700; }
|
|
|
|
|
.perm-ro { color: var(--text); font-weight: 700; }
|
|
|
|
|
.perm-wc { color: var(--text); font-weight: 700; }
|
2026-07-18 00:51:43 +08:00
|
|
|
|
|
|
|
|
/* ---------- Code ---------- */
|
|
|
|
|
code {
|
|
|
|
|
font-family: var(--font-mono);
|
|
|
|
|
font-size: 0.9em;
|
|
|
|
|
background: var(--note-bg);
|
|
|
|
|
padding: 1px 5px;
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
border: 1px solid var(--th-border);
|
2026-07-19 21:40:24 +08:00
|
|
|
color: var(--text);
|
2026-07-18 00:51:43 +08:00
|
|
|
}
|
|
|
|
|
pre {
|
|
|
|
|
font-family: var(--font-mono);
|
2026-07-19 21:40:24 +08:00
|
|
|
font-size: 0.85rem;
|
2026-07-18 00:51:43 +08:00
|
|
|
background: var(--note-bg);
|
|
|
|
|
border: 1px solid var(--th-border);
|
2026-07-19 21:40:24 +08:00
|
|
|
border-left: 3px solid var(--heading);
|
2026-07-18 00:51:43 +08:00
|
|
|
padding: 12px;
|
|
|
|
|
margin: 1em 0;
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
line-height: 1.5;
|
2026-07-19 21:40:24 +08:00
|
|
|
color: var(--text);
|
2026-07-18 00:51:43 +08:00
|
|
|
}
|
|
|
|
|
pre code { background: none; padding: 0; border: none; font-size: inherit; }
|
|
|
|
|
|
2026-07-19 20:56:15 +08:00
|
|
|
.code-block {
|
|
|
|
|
margin: 1em 0;
|
|
|
|
|
border: 1px solid var(--th-border);
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
.code-header {
|
|
|
|
|
background: var(--th-bg);
|
|
|
|
|
font-family: var(--font-heading);
|
2026-07-19 21:40:24 +08:00
|
|
|
font-size: 0.8rem;
|
2026-07-19 20:56:15 +08:00
|
|
|
padding: 4px 10px;
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
border-bottom: 1px solid var(--th-border);
|
2026-07-19 21:40:24 +08:00
|
|
|
font-weight: 700;
|
2026-07-19 20:56:15 +08:00
|
|
|
}
|
|
|
|
|
.code-lines {
|
2026-07-19 21:40:24 +08:00
|
|
|
margin: 0; border: none; border-left: none;
|
|
|
|
|
font-size: 0.82rem; line-height: 1.55;
|
|
|
|
|
padding: 8px 0; background: var(--stripe);
|
|
|
|
|
color: var(--text);
|
2026-07-19 20:56:15 +08:00
|
|
|
}
|
|
|
|
|
.code-lines .ln {
|
2026-07-19 21:40:24 +08:00
|
|
|
display: inline-block; width: 40px;
|
|
|
|
|
text-align: right; color: var(--text-muted);
|
|
|
|
|
user-select: none; padding-right: 12px;
|
|
|
|
|
margin-right: 8px; border-right: 1px solid var(--th-border);
|
2026-07-19 20:56:15 +08:00
|
|
|
}
|
2026-07-19 21:40:24 +08:00
|
|
|
.code-lines .lc { color: var(--text); }
|
2026-07-19 20:56:15 +08:00
|
|
|
|
2026-07-18 00:51:43 +08:00
|
|
|
/* ---------- Figures ---------- */
|
2026-07-19 21:40:24 +08:00
|
|
|
figure { margin: 1.2em auto; text-align: center; max-width: 75%; }
|
|
|
|
|
figure img { max-width: 100%; max-height: 420px; height: auto; border-radius: 2px; }
|
2026-07-18 00:51:43 +08:00
|
|
|
figure figcaption {
|
2026-07-19 21:40:24 +08:00
|
|
|
font-family: var(--font-heading); font-size: 0.85rem;
|
|
|
|
|
color: var(--text-muted); margin-top: 4px; font-weight: 700;
|
2026-07-18 00:51:43 +08:00
|
|
|
}
|
2026-07-19 21:40:24 +08:00
|
|
|
p img { max-width: 75%; max-height: 400px; height: auto; display: block; margin: 0.8em auto; border-radius: 2px; }
|
|
|
|
|
td img { max-width: 100%; max-height: 180px; margin: 0; }
|
|
|
|
|
.img-row { display: flex; gap: 1em; justify-content: center; align-items: flex-start; margin: 1em 0; }
|
|
|
|
|
.img-row img { flex: 0 0 auto; margin: 0; border-radius: 2px; }
|
2026-07-18 00:51:43 +08:00
|
|
|
|
2026-07-19 21:40:24 +08:00
|
|
|
/* ---------- Notes ---------- */
|
2026-07-18 00:51:43 +08:00
|
|
|
blockquote {
|
2026-07-19 21:40:24 +08:00
|
|
|
margin: 1em 0; padding: 10px 16px;
|
|
|
|
|
border-left: 3px solid var(--heading);
|
|
|
|
|
background: var(--note-bg); font-size: 0.92rem;
|
|
|
|
|
color: var(--text);
|
2026-07-18 00:51:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.reg-summary { font-size: 0.9rem; }
|
|
|
|
|
.reg-summary strong { margin-right: 4px; }
|
|
|
|
|
.reg-summary code { margin-right: 12px; }
|
|
|
|
|
|
|
|
|
|
.warning {
|
2026-07-19 21:40:24 +08:00
|
|
|
background: #f5f5f5; border: 1px solid #999;
|
|
|
|
|
padding: 10px; margin: 10px 0; color: var(--text);
|
2026-07-18 00:51:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ---------- Utility ---------- */
|
|
|
|
|
.text-center { text-align: center; }
|
|
|
|
|
.text-mono { font-family: var(--font-mono); }
|
|
|
|
|
.page-break { margin: 2em 0; }
|
|
|
|
|
|
|
|
|
|
/* ---------- Auto-numbering ---------- */
|
|
|
|
|
body.auto-numbering { counter-reset: section; }
|
2026-07-19 20:56:15 +08:00
|
|
|
body.auto-numbering .chapter h1 { counter-increment: section; counter-reset: subsection; }
|
2026-07-19 21:40:24 +08:00
|
|
|
body.auto-numbering .chapter h1::before { content: counter(section) ". "; font-weight: 800; }
|
2026-07-19 20:56:15 +08:00
|
|
|
body.auto-numbering .chapter h2 { counter-increment: subsection; counter-reset: subsubsection; }
|
2026-07-19 21:40:24 +08:00
|
|
|
body.auto-numbering .chapter h2::before { content: counter(section) "." counter(subsection) " "; font-weight: 700; }
|
2026-07-19 20:56:15 +08:00
|
|
|
body.auto-numbering .chapter h3 { counter-increment: subsubsection; }
|
2026-07-19 21:40:24 +08:00
|
|
|
body.auto-numbering .chapter h3::before { content: counter(section) "." counter(subsection) "." counter(subsubsection) " "; font-weight: 700; }
|