/*
 * 全站样式（geek 风格实验稿）。全部为 CSS 与内联 SVG，只用系统字体。
 * 首页的 --accent 随圆脸表情切换（见 home.js），其余颜色固定。
 */

:root {
  color-scheme: dark;
  --bg: #0a0c0f;
  --panel: #0e1115;
  --line: rgb(255 255 255 / 0.1);
  --grid: rgb(255 255 255 / 0.035);
  --grid-major: rgb(255 255 255 / 0.06);
  --ink: #d5dbe2;
  --muted: #7b8591;
  --faint: #4b535d;
  --accent: #b48cff;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono",
    "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", monospace;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  font: 15px/1.75 var(--mono);
  /* 方格纸：24px 细格 + 120px 粗格，纯 CSS 渐变绘制。 */
  background:
    radial-gradient(ellipse 70% 55% at 70% 18%, rgb(255 255 255 / 0.04), transparent 70%),
    linear-gradient(var(--grid-major) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: underline dashed 1px;
  text-underline-offset: 4px;
  transition: color 0.4s;
}

a:hover {
  text-decoration-style: solid;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  color: var(--bg);
  background: var(--ink);
}

/* ---------- 顶栏 ---------- */

.site-header,
.site-main,
.statusline {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap; /* 窄屏放不下时整项换行，不在词中间断开 */
  gap: 4px 18px;
  font-size: 14px;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav a::before {
  content: "[ ";
  color: var(--faint);
}

.site-header nav a::after {
  content: " ]";
  color: var(--faint);
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--ink);
}

.site-header nav a[aria-current="page"]::before,
.site-header nav a[aria-current="page"]::after {
  color: var(--accent);
}

.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 0.12em;
  vertical-align: -0.16em;
  background: var(--accent);
  transition: background-color 0.4s;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- 首屏 ---------- */

.site-main {
  flex: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 48px;
  padding: clamp(40px, 8vh, 88px) 0 clamp(48px, 9vh, 96px);
}

.prompt {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.ps1 {
  color: var(--accent);
  transition: color 0.4s;
}

.ps-path {
  color: var(--ink);
}

.hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(48px, 6.4vw, 92px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.hero h1 .caret {
  width: 0.42em;
  height: 0.86em;
  margin-left: 0.08em;
  vertical-align: -0.04em;
}

/* neofetch 式的站点信息，数值由 Hugo 生成 */
.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 2px 3ch;
  margin: 0;
  font-size: 14px;
}

.facts div {
  display: contents;
}

.facts dt {
  color: var(--accent);
  transition: color 0.4s;
}

.facts dd {
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  padding: 9px 16px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition:
    border-color 0.2s,
    color 0.4s,
    background-color 0.4s;
}

.button::before {
  content: "$ ";
  color: var(--muted);
}

.button:hover {
  border-color: var(--accent);
}

.button-primary {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.button-primary::before {
  color: inherit;
  opacity: 0.6;
}

/* ---------- 蓝图面板 ---------- */

.plate {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  background: linear-gradient(rgb(14 17 21 / 0.86), rgb(14 17 21 / 0.86));
}

/* 四角定位标记 */
.plate::before,
.plate::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--accent);
  transition: border-color 0.4s;
  pointer-events: none;
}

.plate::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.plate::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.plate-canvas {
  position: relative;
  aspect-ratio: 600 / 440;
}

.blueprint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.blueprint path {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.bp-structure path {
  stroke: rgb(213 219 226 / 0.55);
  stroke-width: 1.1;
}

.bp-details path {
  stroke: rgb(213 219 226 / 0.22);
  stroke-width: 1;
}

.bp-dims path {
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.7;
  transition: stroke 0.4s;
}

.bp-axis {
  stroke: rgb(213 219 226 / 0.2);
  stroke-dasharray: 14 4 2 4;
}

.bp-ground {
  stroke: rgb(213 219 226 / 0.35);
  stroke-dasharray: 2 5;
}

.bp-labels text {
  fill: var(--muted);
  font: 10.5px var(--mono);
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: no-preference) {
  /* 载入时描线一次 */
  .bp-structure path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
  }

  .bp-details,
  .bp-dims,
  .bp-labels {
    opacity: 0;
    animation: fade-in 0.8s ease-out 1.3s forwards;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

/* 圆脸站在神庙右前方，压住台阶 */
.plate .agent {
  position: absolute;
  top: 44.6%;
  left: 50.9%;
  width: 44%;
}

.plate-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 9px 14px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}

.plate-status b {
  color: var(--accent);
  font-weight: 500;
  transition: color 0.4s;
}

/* 随机款式画好之前，模式名与表情一起隐藏，避免先显示预先渲染的 designing。 */
.plate:has(.agent[data-agent-phase="pending"]) [data-agent-mode] {
  visibility: hidden;
}

.plate-hint {
  color: var(--faint);
}

[data-pointer] {
  font-variant-numeric: tabular-nums;
  white-space: pre;
}

/* ---------- 内容区块 ---------- */

.block {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
}

.block > .prompt {
  margin-bottom: 22px;
}

.man {
  max-width: 78ch;
}

.man-rule {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.man-rule span:nth-child(2) {
  text-align: center;
}

/* 手册页正文按 Markdown 渲染结果排版：小节标题顶格，其余缩进。 */
.man-page h3 {
  margin: 26px 0 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.man-page > :not(h3) {
  padding-left: 7ch;
}

.man footer.man-rule {
  margin-top: 30px;
}

/* 比贴纸正文的列表规则更具体，保持手册页缩进、不加列表符号。 */
.prose.man-page ul {
  margin: 0;
  padding-left: 7ch;
  list-style: none;
}

.man-page li a:first-child {
  display: inline-block;
  min-width: 18ch;
}

.man-page code {
  font: inherit;
}

.listing {
  max-width: 78ch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.listing a {
  display: grid;
  grid-template-columns: 17ch minmax(0, 1fr) auto;
  gap: 24px;
  padding: 10px 12px;
  margin: 0 -12px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 2px;
}

.listing a:hover {
  background: rgb(255 255 255 / 0.04);
}

.listing a:hover .listing-title {
  color: var(--accent);
}

.listing time,
.listing-tags {
  color: var(--muted);
}

.listing-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}

.more {
  display: inline-block;
  margin-top: 18px;
  padding: 0 4px;
  color: var(--bg);
  font-size: 14px;
  text-decoration: none;
  background: var(--ink);
  transition: background-color 0.2s;
}

.more:hover {
  background: var(--accent);
}

/* ---------- 贴纸页面：标题 ---------- */

.page-heading {
  padding: clamp(32px, 6vh, 56px) 0 26px;
}

.page-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: 12px;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.page-heading-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 搜索（Pagefind 默认界面，改成一行 grep） ---------- */

.search-panel {
  margin: 0 0 30px;
}

.search-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.search-note:empty {
  display: none;
}

#search {
  --pagefind-ui-scale: 0.8;
  --pagefind-ui-primary: var(--accent);
  --pagefind-ui-text: var(--ink);
  --pagefind-ui-background: var(--panel);
  --pagefind-ui-border: var(--line);
  --pagefind-ui-tag: rgb(255 255 255 / 0.06);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 2px;
  --pagefind-ui-font: var(--mono);
}

#search .pagefind-ui__form::before {
  content: "$ grep -ri";
  /* 表单也包着结果列表，前缀高度须与输入框一致，不能用 100%。 */
  top: 0;
  left: 14px;
  width: auto;
  height: 46px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  background: none;
  opacity: 1;
  -webkit-mask-image: none;
  mask-image: none;
}

#search .pagefind-ui__search-input {
  height: 46px;
  padding-left: 12ch;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  caret-color: var(--accent);
  outline: none;
  transition: border-color 0.2s;
}

#search .pagefind-ui__search-input:focus {
  border-color: var(--accent);
}

#search .pagefind-ui__search-input::placeholder {
  color: var(--faint);
  opacity: 1;
}

#search .pagefind-ui__search-clear {
  top: 1px;
  right: 1px;
  height: 44px;
  color: var(--muted);
  font-size: 13px;
}

#search .pagefind-ui__search-clear:hover {
  color: var(--ink);
}

#search .pagefind-ui__message {
  height: auto;
  padding: 14px 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

#search .pagefind-ui__results {
  margin: 0;
  padding: 0;
}

#search .pagefind-ui__result {
  padding: 14px 0 16px;
  border-color: var(--line);
}

#search .pagefind-ui__result-inner {
  margin-top: 0;
}

#search .pagefind-ui__result-title {
  font-size: 16px;
  font-weight: 600;
}

#search .pagefind-ui__result-link {
  color: var(--ink);
}

#search .pagefind-ui__result-link:hover {
  color: var(--accent);
  text-decoration: none;
}

#search .pagefind-ui__result-excerpt {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

#search mark {
  padding: 0 2px;
  color: var(--bg);
  background: var(--accent);
}

#search .pagefind-ui__button {
  height: 40px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 400;
}

#search .pagefind-ui__button::before {
  content: "$ ";
  color: var(--muted);
}

/* 标签搜索范围由所在页面决定，不显示可改变范围的筛选面板。 */
#search .pagefind-ui__filter-panel {
  display: none;
}

/* ---------- 贴纸墙 ---------- */

.wall {
  columns: 3;
  column-gap: 20px;
}

.fragment {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 20px;
  padding: 0 20px 20px;
  overflow-wrap: anywhere;
  break-inside: avoid;
  background: rgb(14 17 21 / 0.92);
  border: 1px solid var(--line);
  border-radius: 2px;
}

/* 每张贴纸的顶栏像一个窗口标题栏：时间在左，标记在右。 */
.fragment-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0 -20px;
  padding: 7px 20px;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px dashed var(--line);
}

.fragment-meta a {
  color: inherit;
  text-decoration: none;
}

.sample {
  color: var(--faint);
}

.sample::before {
  content: "[";
}

.sample::after {
  content: "]";
}

.fragment h2 {
  margin: 16px 0 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.fragment-title-link {
  color: var(--ink);
  text-decoration: none;
}

.fragment-modified {
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 12px;
}

.fragment .prose {
  margin-top: 14px;
  font-size: 14px;
}

.fragment h2 + .prose,
.fragment-modified + .prose {
  margin-top: 10px;
}

/* 长贴纸在墙上只显示前 20 行，溢出时渐隐（cards.js 判断是否溢出）。 */
.wall .prose {
  --preview-lines: 20;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--preview-lines);
  overflow: hidden;
}

.wall .prose.is-truncated {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 3.6em), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 3.6em), transparent);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 16px;
  font-size: 13px;
}

.tags a {
  text-decoration: none;
}

.tags a:hover {
  text-decoration: underline dashed 1px;
}

.clickable-fragment {
  cursor: pointer;
  transition: border-color 0.15s;
}

/* 悬停时亮出与首页蓝图面板相同的四角标记。 */
.clickable-fragment::before,
.clickable-fragment::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 0 solid var(--accent);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

.clickable-fragment::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.clickable-fragment::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.clickable-fragment:focus-within {
  border-color: rgb(255 255 255 / 0.22);
}

.clickable-fragment:focus-within::before,
.clickable-fragment:focus-within::after {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .clickable-fragment:hover {
    border-color: rgb(255 255 255 / 0.22);
  }

  .clickable-fragment:hover::before,
  .clickable-fragment:hover::after {
    opacity: 1;
  }

  .clickable-fragment:hover .fragment-title-link {
    color: var(--accent);
  }
}

@media (hover: none), (pointer: coarse) {
  .clickable-fragment:active {
    border-color: var(--accent);
  }
}

.empty {
  margin: 0;
  color: var(--muted);
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 56px;
  padding: 10px 0;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.pagination a {
  text-decoration: none;
}

/* ---------- 贴纸正文排版（墙上与单页共用） ---------- */

.prose p {
  margin: 0 0 1em;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose blockquote {
  margin: 1.2em 0;
  padding-left: 2ch;
  color: var(--muted);
  border-left: 2px solid var(--accent);
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 3ch;
}

.prose ul {
  list-style: "- ";
}

.prose code {
  font: inherit;
  color: var(--accent);
}

.prose pre {
  overflow-x: auto;
  margin: 1.2em 0;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  background: rgb(0 0 0 / 0.35);
  border: 1px solid var(--line);
}

/* 覆盖 Hugo 代码高亮写在行内的 monokai 底色，与页面统一。 */
.prose pre[style] {
  background-color: rgb(0 0 0 / 0.35) !important;
}

.prose pre code {
  color: var(--ink);
}

.prose img {
  max-width: 100%;
  height: auto;
}

.prose table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}

.prose th,
.prose td {
  padding: 4px 12px;
  border: 1px solid var(--line);
}

.prose hr {
  border: 0;
  border-top: 1px dashed var(--line);
}

/* ---------- 单张贴纸 ---------- */

.single-wrap {
  max-width: 72ch;
  padding: clamp(32px, 6vh, 56px) 0 56px;
}

.single-fragment {
  margin-top: 20px;
}

/* Markdown 文件头：上下两条 --- 之间列出 date、tags 等字段。 */
.frontmatter {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0 2ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.frontmatter::before,
.frontmatter::after {
  content: "---";
  grid-column: 1 / -1;
  color: var(--faint);
}

.frontmatter div {
  display: contents;
}

.frontmatter dt {
  color: var(--accent);
}

.frontmatter dt::after {
  content: ":";
  color: var(--faint);
}

.frontmatter dd {
  margin: 0;
  color: var(--ink);
}

.frontmatter .tags {
  margin: 0;
  font-size: inherit;
}

.fm-comment {
  color: var(--faint);
}

.single-fragment h1 {
  margin: 30px 0 22px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.single-fragment h1.sr-only + .prose {
  margin-top: 30px;
}

.single-fragment .prose {
  font-size: 16px;
  line-height: 1.85;
}

.back-link {
  display: inline-block;
  margin-top: 44px;
}

/* ---------- 标签索引 ---------- */

.tag-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(22ch, 1fr));
  gap: 0 32px;
  margin: 0 0 56px;
  padding: 0;
  list-style: none;
}

.tag-index a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
}

.tag-count {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tag-index a:hover .tag-count {
  color: var(--ink);
}

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 32px;
  padding: clamp(40px, 10vh, 120px) 0;
}

.not-found h1 {
  margin: 14px 0 6px;
  font-size: clamp(64px, 10vw, 128px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.not-found-error {
  margin: 0 0 16px;
  color: var(--accent);
}

.not-found p:not([class]) {
  margin: 0;
  color: var(--muted);
}

.not-found-face .agent {
  width: min(100%, 360px);
  margin-inline: auto;
}

/* ---------- 状态栏页脚 ---------- */

.statusline {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0 18px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.statusline-mode {
  padding: 0 10px;
  color: var(--bg);
  font-weight: 700;
  background: var(--accent);
  transition: background-color 0.4s;
}

.statusline-fill {
  flex: 1;
}

.statusline > span:last-child {
  padding-right: 10px;
}

/* ---------- 窄屏 ---------- */

@media (max-width: 1050px) {
  .wall {
    columns: 2;
  }
}

@media (max-width: 899px) {
  .not-found {
    grid-template-columns: minmax(0, 1fr);
  }

  .not-found-face {
    order: -1;
  }

  .not-found-face .agent {
    width: min(60%, 260px);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 36px;
  }

  .hero h1 {
    font-size: clamp(48px, 13vw, 96px);
  }
}

@media (max-width: 599px) {
  body {
    font-size: 14px;
  }

  .site-header {
    padding: 16px 0;
  }

  .man-rule span:nth-child(2),
  .plate-hint,
  .statusline-file {
    display: none;
  }

  .man-page > :not(h3),
  .prose.man-page ul {
    padding-left: 3ch;
  }

  .man-page li a:first-child {
    display: block;
  }

  .listing a {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .listing-tags:empty {
    display: none;
  }

  .wall {
    columns: 1;
  }

  .single-fragment .prose {
    font-size: 15px;
  }
}

/* 触屏没有悬停指针，坐标读数无意义 */
@media (hover: none) {
  [data-pointer] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .caret {
    animation: none;
  }

  .clickable-fragment,
  .clickable-fragment::before,
  .clickable-fragment::after {
    transition: none;
  }
}
