:root {
  --bg: #f3f5f9;
  --bg-2: #e8eef8;
  --card: #ffffff;
  --ink: #121826;
  --ink-soft: #3d4b60;
  --muted: #5c6b80;
  --line: #e6ebf3;
  --blue: #2457d6;
  --blue-soft: #eaf0ff;
  --teal: #0f9b8e;
  --violet: #6d5efc;
  --amber: #f59e0b;
  --shadow: 0 10px 30px rgba(18, 24, 38, 0.06);
  --shadow-sm: 0 4px 14px rgba(18, 24, 38, 0.05);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: calc(60px + env(safe-area-inset-bottom, 0px));
  --max: 1120px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  touch-action: manipulation;
  overscroll-behavior: none;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
}
#app {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
img, video {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: none; }
.brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-desk { display: none; gap: 8px; align-items: center; }
.nav-desk a {
  color: var(--ink-soft);
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav-desk a.on {
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 600;
}
.search-desk {
  display: none;
  align-items: center;
  width: min(320px, 34vw);
  height: 40px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0 6px 0 16px;
}
.search-desk input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
}
.search-desk button {
  flex-shrink: 0;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.main {
  flex: 1;
  min-height: 0;
  width: min(var(--max), calc(100% - 16px));
  margin: 0 auto;
  padding: 14px 0 24px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}
.page { animation: in 240ms ease; }
@keyframes in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.finder {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin: 0 0 12px;
  padding: 0 6px 0 14px;
  background: #eef1f5;
  border-radius: 20px;
  color: var(--muted);
}
.finder button {
  flex-shrink: 0;
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.finder input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--ink);
  font-size: 15px;
}
.finder input::placeholder { color: var(--muted); }
.seek { margin: 0 0 12px; }
.seek .finder { margin: 0; }
.seek-hist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: calc(28px * 2 + 8px);
  overflow: hidden;
  margin-top: 8px;
}
.seek-word {
  max-width: 70%;
  height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: #eef1f5;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seek-word.on {
  background: #dce4f5;
  color: var(--blue);
}
.banner {
  position: relative;
  overflow: hidden;
  margin: 12px 0 0;
  border-radius: 16px;
  color: #fff;
  touch-action: pan-y;
}
.banner-track {
  display: flex;
  transition: transform .35s ease;
}
a.banner-slide {
  display: block;
  flex: 0 0 100%;
  min-height: 132px;
  padding: 16px 16px 28px;
  color: #fff;
  text-decoration: none;
}
.banner-slide.mysql { background: linear-gradient(135deg, #1f4fd0, #3b66e8); }
.banner-slide.redis { background: linear-gradient(135deg, #8d1d32, #c23b45); }
.banner-slide.linux { background: linear-gradient(135deg, #1c2836, #34506a); }
.banner-top { display: flex; align-items: center; justify-content: space-between; }
.banner small { font-size: 13px; opacity: .86; }
.banner-top em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
}
.banner b { display: block; margin-top: 8px; font-size: 22px; letter-spacing: -.03em; }
.banner p { margin: 6px 0 0; max-width: 34em; font-size: 14px; line-height: 1.55; }
.dots { position: absolute; right: 14px; bottom: 12px; z-index: 2; display: flex; gap: 4px; }
.home-card {
  margin-top: 12px;
  padding: 4px 2px 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.home-card .entries { padding: 10px 0 4px; }
.home-card .block-head { margin: 12px 12px 0; }
.note-kicker { margin: 8px 0 0; font-size: 13px; font-weight: 700; }
.note-kicker.mysql { color: #1f4fd0; }
.note-kicker.redis { color: #a12638; }
.note-kicker.linux { color: #34506a; }
.dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255,255,255,.4);
}
.dots button.on { width: 14px; background: #fff; }
.entries {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 0;
  padding: 16px 0 4px;
}
.entries-fit { grid-template-columns: repeat(var(--cols, 6), 1fr); }
.entry { text-align: center; font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
button.entry { border: 0; background: none; padding: 0; width: 100%; }
.entry .bubble {
  width: 46px;
  height: 46px;
  margin: 0 auto 6px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}
.entries-fit .entry { font-size: 12px; }
.entries-fit .entry .bubble {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}
.entries-fit .entry .bubble svg { width: 18px; height: 18px; }
.entry.is-hold { cursor: default; }
.c1 { background: #3d6df0; } .c2 { background: #14a39a; } .c3 { background: #ef9b2f; }
.c4 { background: #7464ee; } .c5 { background: #3a9ad8; } .c6 { background: #ef6b6b; }
.c7 { background: #35a86a; } .c8 { background: #e07a32; } .c9 { background: #d45d8c; } .c0 { background: #8b95a5; }
.hold-note { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.shelf {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.shelf::-webkit-scrollbar { display: none; }
.poster {
  position: relative;
  flex: 0 0 168px;
  height: 118px;
  border-radius: 16px;
  color: #fff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.poster small { position: relative; z-index: 1; font-size: 13px; }
.poster b { position: relative; z-index: 1; font-size: 16px; line-height: 1.35; }
.poster::after { content: none; }
.k1 { background: linear-gradient(160deg, #2a4f86, #1d3558); }
.k2 { background: linear-gradient(160deg, #1d7a68, #14584c); }
.k3 { background: linear-gradient(160deg, #8a6233, #5c4122); }
.k4 { background: linear-gradient(160deg, #b57412, #8a5a10); }
.k5 { background: linear-gradient(160deg, #5a4db8, #3d347e); }
.k0 { background: #8b95a5; }
.sys-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sys {
  background: var(--card);
  border-radius: 14px;
  padding: 12px;
  min-height: 92px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  border: 1px solid var(--line);
}
.pill {
  display: inline-block;
  font-style: normal;
  font-size: 12px;
  border-radius: 999px;
  padding: 2px 7px;
  font-weight: 600;
}
.p1 { color: #2457d6; background: #eaf0ff; }
.p2 { color: #0d6b63; background: #e5f6f4; }
.p3 { color: #8a5208; background: #fbf1e2; }
.p4 { color: #4c3db5; background: #efedfb; }
.p5 { color: #5b4630; background: #f6efe6; }
.p6 { color: #6b4b2e; background: #f6eedc; }
.p0 { color: #6b7280; background: #eef1f5; }
.sys b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 8px 0 4px;
  font-size: 15px;
  line-height: 1.4;
}
.sys span { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }
.count { margin: 2px 0 8px; font-size: 13px; color: var(--muted); }
.catalog { display: flex; flex-direction: column; gap: 10px; }
.shot {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 8px 10px 8px;
}
.shot-cover {
  width: 152px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef2f8;
}
.shot-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 56%;
  transform: scale(1.22);
}
.shot-cover.fit-map { background: #fff; }
.shot-cover.fit-map img { object-fit: cover; object-position: center; transform: none; }
.shot-cover.fit-ui img { object-fit: cover; object-position: center; transform: none; }
.shot-cover.zoomable { cursor: zoom-in; }
.shot-body {
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.shot b {
  display: block;
  max-height: calc(1.4em * 2);
  overflow: hidden;
  font-size: 16px;
  line-height: 1.4;
  word-break: break-word;
}
.shot b .shot-stars {
  display: inline-flex;
  vertical-align: -2px;
  margin-left: 0;
  gap: 1px;
}
.shot b .shot-stars i {
  width: 12px;
  height: 12px;
}
.shot b .shot-stars svg { width: 12px; height: 12px; }
.shot b .shot-stars[hidden] { display: none !important; }
.shot p {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shot-meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
.shot-labels {
  position: relative;
  display: block;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}
.pill.scene { color: #3f4f63; background: #eef3f8; }
.shot-labels .pill.scene {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  padding: 1px 6px;
  font-size: 11px;
}
.shot-labels .pill.scene:last-child { margin-right: 0; }
.shot-labels .pill.scene[hidden],
.post-kicker span[hidden] { display: none !important; }
.shot-labels.is-clip::after,
.post-kicker.is-clip::after {
  content: "…";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding-left: 18px;
  color: #8b95a5;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(to right, transparent, var(--card) 12px, var(--card));
  pointer-events: none;
}
.sys .pill.scene { margin: 0 4px 0 0; }
.stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #d3dae4;
}
.stars i {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  font-style: normal;
}
.stars svg { width: 16px; height: 16px; }
.stars .on { color: #e39b12; }

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 22px 0 12px;
}
.block-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.block-head a { color: var(--blue); font-size: 14px; font-weight: 600; }

.topics { display: flex; gap: 8px; overflow: auto; padding-bottom: 2px; scrollbar-width: none; }
.topics::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-soft);
}
.chip.on {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  min-width: 0;
  box-shadow: var(--shadow-sm);
}
.card .cover {
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  overflow: hidden;
}
.card .cover img, .cover-img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 12px 12px 14px; }
.card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.meta .stars { margin-left: auto; }
.meta em {
  font-style: normal;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.list { display: flex; flex-direction: column; gap: 12px; }
.row {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  min-height: 108px;
  box-shadow: var(--shadow-sm);
}
.row .cover { min-height: 108px; background: var(--bg-2); }
.row .cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.row .body { padding: 12px 12px 12px 0; display: flex; flex-direction: column; justify-content: center; }
.row h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.4; }
.row p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.search-bar input {
  flex: 1;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
}
.search-bar button {
  border: 0;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 600;
}

.detail-cover {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  aspect-ratio: 16 / 8;
  box-shadow: var(--shadow-sm);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.detail-cover.fit-map { background: #fff; }
.detail-cover.fit-map img { object-fit: cover; object-position: center; }
.detail-cover.fit-ui img { object-fit: cover; object-position: center; }
.detail-cover.zoomable { cursor: zoom-in; }
.domains h1 {
  margin: 4px 0 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.domains .entries { padding-top: 12px; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  padding: 0 12px 0 6px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.back svg { flex: none; }
.detail h1 {
  font-size: clamp(24px, 6vw, 38px);
  line-height: 1.25;
  margin: 16px 0 10px;
  letter-spacing: -0.03em;
}
.article { margin-top: 8px; }
.article h2 {
  font-size: 18px;
  margin: 28px 0 10px;
}
.article p { line-height: 1.85; color: var(--ink-soft); margin: 0 0 12px; }
.post {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 0 0;
}
.post-head h1 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  width: 100%;
  margin: 10px 0 8px;
  font-size: clamp(22px, 5.6vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.03em;
}
.post-tools {
  display: flex;
  flex: none;
  gap: 8px;
  margin-top: 0;
}
.share-btn {
  flex: none;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.share-btn.on {
  border-color: #1e2a3a;
  background: #1e2a3a;
  color: #fff;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 16px);
  z-index: 40;
  max-width: min(86vw, 360px);
  padding: 10px 14px;
  border-radius: 999px;
  background: #121826;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
}
.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.share-og {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.share-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(10, 14, 24, 0.58);
}
.share-mask.on { display: block; }
.share-arrow {
  position: absolute;
  top: 8px;
  right: 18px;
  width: 26px;
  height: 48px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  border-radius: 0 14px 0 0;
}
.share-arrow::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 40px;
  border: 7px solid transparent;
  border-top-color: #fff;
}
.share-sheet {
  margin: 78px 16px 0;
  padding: 22px 20px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.share-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.share-name {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.share-hint {
  margin: 0 0 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  font-size: 15px;
}
.share-url {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
}
.share-actions {
  display: flex;
  gap: 8px;
}
.share-copy,
.share-close {
  flex: 1;
  height: 42px;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
}
.share-copy { background: var(--blue); color: #fff; }
.share-close { background: var(--bg-2); color: var(--ink); }
.share-mask.wechat .copy-only,
.share-mask.wechat .share-url,
.share-mask.wechat .share-copy { display: none; }
.share-mask:not(.wechat) .wechat-only,
.share-mask:not(.wechat) .share-arrow { display: none; }
.post-kicker {
  position: relative;
  display: block;
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
}
.post-kicker span {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
}
.post-kicker span:last-child { margin-right: 0; }
.post-lead {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.toc {
  display: block;
  margin: 0 0 16px;
  padding: 14px 16px 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.toc b {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc li { border-top: 1px solid var(--line); }
.toc button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 15px;
  text-align: left;
}
.toc em {
  flex: none;
  width: 22px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}
.toc.chapters em {
  width: auto;
  min-width: 3.2em;
  font-weight: 650;
  color: var(--ink-soft);
}
.post-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post-body .block {
  padding: 18px 16px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.post-body h2 {
  margin: 0 0 14px;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.post-body p {
  margin: 0 0 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.post-body p:last-child { margin-bottom: 8px; }
.people, .bits {
  display: grid;
  gap: 0;
  margin: 0 -16px 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.people article, .bits li {
  list-style: none;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 16px;
}
.people article:nth-child(odd),
.bits li:nth-child(odd) { background: #f8fafd; }
.people article:last-child,
.bits li:last-child { border-bottom: 0; }
.people b { display: block; margin-bottom: 6px; }
.people ul { margin: 0; padding-left: 18px; color: var(--ink-soft); line-height: 1.7; }
.bits {
  list-style: none;
}
.bits li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}
.bits-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}
.bits li:nth-child(1) .bits-mark { background: #eaf0ff; color: #2457d6; }
.bits li:nth-child(2) .bits-mark { background: #e7f7f5; color: #0f7d73; }
.bits li:nth-child(3) .bits-mark { background: #efedff; color: #5b4de6; }
.bits li:nth-child(4) .bits-mark { background: #fff1e8; color: #c05621; }
.bits-body b {
  display: block;
  margin: 2px 0 6px;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.bits-body p,
.post-body .bits p {
  margin: 0;
  line-height: 1.7;
}
.tech {
  list-style: none;
  margin: 4px -16px -10px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.tech li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.tech li:nth-child(odd) { background: #f8fafd; }
.tech li:last-child { border-bottom: 0; }
.tech-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tech li:nth-child(1) .tech-mark { background: #eaf0ff; color: #2457d6; }
.tech li:nth-child(2) .tech-mark { background: #e7f7f5; color: #0f7d73; }
.tech li:nth-child(3) .tech-mark { background: #efedff; color: #5b4de6; }
.tech li:nth-child(4) .tech-mark { background: #fff1e8; color: #c05621; }
.tech li:nth-child(5) .tech-mark { background: #eef2f7; color: #1d3b66; }
.tech-body b {
  display: block;
  margin: 2px 0 6px;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.tech-body p,
.post-body .tech p {
  margin: 0;
  text-indent: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}
.bits p,
.post-body .bits p,
.post-body .people p { margin: 0; text-indent: 0; }
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 16px;
}
.media-row .media { margin: 0; }
.media-row .media:first-child { grid-column: 1 / -1; }
.article .code, .post-body .code {
  margin: 0 0 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #121826;
  color: #d7deea;
}
.post-body .code figcaption,
.article .code figcaption {
  padding: 8px 12px 0;
  color: #8b98ad;
  font-size: 12px;
}
.post-body .code pre,
.article .code pre {
  margin: 0;
  padding: 10px 14px 16px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.65;
}
.skin-board .post-kicker span { background: #121826; color: #d7deea; border-color: #121826; }
.skin-board .post-body h2 { color: #1a3f8a; }
.skin-folio {
  --card: #fffaf1;
  --bg: #f6f1e8;
  --line: #e4d3bc;
  --ink: #2b2418;
  --ink-soft: #5c4c36;
  --muted: #8a6233;
}
.skin-folio .post-head h1 {
  font-family: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  font-weight: 600;
}
.skin-folio .post-lead,
.skin-folio .post-body p { line-height: 2; }
.skin-folio .post-body h2 {
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-weight: 600;
  padding-left: 10px;
  border-left: 3px solid #c48a3a;
}
.skin-folio .toc button,
.skin-folio .people article,
.skin-folio .bits li { background: #fffaf1; }
body:has(.skin-folio) { background: #f6f1e8; }
body:has(.skin-folio) .dock { background: rgba(246, 241, 232, 0.94); }
.article .media {
  position: relative;
  margin: 0 0 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}
.article .media.zoomable { cursor: zoom-in; }
.article .media img,
.article .media video {
  display: block;
  width: 100%;
  max-height: 420px;
  background: #111;
  pointer-events: none;
}
.article .media img { object-fit: contain; background: var(--bg-2); }
.article .media video { max-height: 480px; }
.article .media figcaption {
  padding: 8px 12px 10px;
  color: var(--muted);
  font-size: 13px;
}
body.viewing-media { overflow: hidden; touch-action: none; }
.media-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: rgba(8, 10, 16, 0.92);
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}
.media-viewer img,
.media-viewer video {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  touch-action: none;
  -webkit-user-drag: none;
}
.media-viewer img {
  pointer-events: auto;
  cursor: zoom-out;
}
.media-viewer video { pointer-events: none; }
.tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 8px;
}
.tile, .struct-col, .arch-layer, .table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 12px;
}
.tile b, .struct-col h3, .table-wrap h3 {
  display: block;
  margin: 0 0 8px;
  font-size: 16px;
}
.tile p { margin: 0; }
.tile ul, .struct-col ul { margin: 0; padding-left: 18px; color: var(--ink-soft); line-height: 1.7; }
.struct {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.fnmap {
  --fn-line: #2b3d5a;
  --fn-n: 3;
  --fn-gap: 12px;
  margin: 0 -4px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.fnmap-tree {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fnmap-root,
.fnmap-head,
.fnmap-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1.5px solid var(--fn-line);
  position: relative;
  z-index: 1;
  line-height: 1.2;
}
.fnmap-root {
  width: min(220px, 84%);
  height: 36px;
  padding: 0 8px;
  background: #1d3b66;
  color: #fff;
  border-color: #1d3b66;
  font-size: 13px;
  font-weight: 600;
}
.fnmap-stem {
  width: 2px;
  height: 18px;
  background: var(--fn-line);
}
.fnmap-cols {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(var(--fn-n), 1fr);
  gap: var(--fn-gap);
  align-items: start;
  position: relative;
  padding-top: 22px;
}
.fnmap-cols::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(100% / var(--fn-n) / 2);
  right: calc(100% / var(--fn-n) / 2);
  height: 2px;
  background: var(--fn-line);
}
.fnmap-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 0;
}
.fnmap-col::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -22px;
  width: 2px;
  height: 22px;
  transform: translateX(-50%);
  background: var(--fn-line);
}
.fnmap-head {
  width: calc(100% - 4px);
  max-width: 200px;
  height: 34px;
  padding: 0 4px;
  color: #fff;
  border-color: transparent;
  font-size: 12px;
  font-weight: 600;
}
.fnmap-head.blue { background: #2b6cb0; }
.fnmap-head.green { background: #2f7d32; }
.fnmap-head.orange { background: #c05621; }
.fnmap-head::after,
.fnmap-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 12px;
  transform: translateX(-50%);
  background: var(--fn-line);
}
.fnmap-items {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 12px;
  gap: 12px;
}
.fnmap-item {
  width: calc(100% - 4px);
  max-width: 188px;
  min-height: 30px;
  padding: 5px 4px;
  background: #f7f8fa;
  color: #1a2740;
  font-size: 11px;
}
.fnmap-pic {
  margin: 0;
  padding: 6px 4px 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.post-body .block .fnmap-pic {
  margin: 0 -16px -10px;
  padding: 10px 10px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.fnmap-pic img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.fnmap-pic.zoomable { cursor: zoom-in; }
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flow li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}
.flow em {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
}
.arch { display: flex; flex-direction: column; gap: 8px; }
.arch-layer { display: flex; flex-direction: column; gap: 4px; }
.arch-layer b { color: var(--blue); }
.table-wrap { overflow: auto; }
.table-wrap small { margin-left: 8px; color: var(--muted); font-weight: 400; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap th, .table-wrap td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table-wrap th { color: var(--muted); font-weight: 600; }

.mine { padding-top: 8px; }
.mine-home {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-bottom: 8px;
}
.mine-top { flex: 1 0 auto; }
.mine h1 {
  margin: 8px 0 4px;
  font-size: 26px;
  letter-spacing: -.03em;
}
.login-card {
  margin-top: 8px;
  padding: 26px 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.login-card h1 { margin: 0 0 18px; }
.login-lead {
  margin: -8px 0 4px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}
.login-field > span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.login-field > input,
.login-pass {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f8fb;
}
.login-field > input {
  padding: 0 14px;
  outline: none;
}
.login-field > input:focus,
.login-pass:focus-within { border-color: #9aa8bf; background: #fff; }
.login-pass {
  display: flex;
  align-items: center;
  padding-right: 6px;
}
.login-pass input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 14px;
  outline: none;
}
.eye {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 4px;
  display: grid;
  place-items: center;
}
.login-go {
  width: 100%;
  height: 48px;
  margin-top: 22px;
  border: 0;
  border-radius: 12px;
  background: #1e2a3a;
  color: #fff;
  font-weight: 650;
}
.mine .err { margin: 12px 0 0; color: #b42318; line-height: 1.6; }
.mine-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.mine-label {
  margin: 18px 4px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.mine-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #1e2a3a;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
}
.mine-head p { margin: 0; font-size: 13px; color: var(--muted); }
.mine-head b { display: block; margin-top: 4px; font-size: 22px; letter-spacing: -.02em; }
.mine-login {
  display: inline-flex;
  align-items: center;
  height: 32px;
  margin-top: 8px;
  padding: 0 16px;
  border-radius: 999px;
  background: #1e2a3a;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}
.mine-menu {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.mine-menu + .mine-menu { margin-top: 10px; }
.mine-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 14px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}
.mine-menu a:first-child { border-top: 0; }
.mine-ico {
  width: 28px;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
}
.mine-txt { flex: 1; min-width: 0; }
.mine-menu em {
  margin-right: 4px;
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
}
.mine-menu svg:last-child { color: #9aa8bf; flex: none; }
.mine-foot {
  margin-top: auto;
  padding-top: 28px;
}
.mine-out {
  display: block;
  width: 100%;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
}
.keep-list { display: flex; flex-direction: column; gap: 10px; }
.swipe {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  touch-action: pan-y;
}
.swipe-track {
  display: flex;
  align-items: stretch;
  width: 100%;
  transform: translateX(0);
  transition: transform .22s ease;
}
.swipe.open .swipe-track { transform: translateX(-76px); }
.swipe-front {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
}
.swipe .shot {
  min-width: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.swipe-del {
  flex: 0 0 76px;
  width: 76px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #e23c3c;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
}
.swipe-del:active { background: #c62828; }
.shot-at {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.auth .upload {
  display: block;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eef1f5;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}
.auth .upload input { display: block; margin-top: 8px; width: 100%; }
.auth .media-note {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: #f3f5f9;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}
.auth code { font-size: 12px; }
.list-end {
  margin: 18px 0 4px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.empty {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
  text-align: center;
  line-height: 1.8;
  color: var(--ink-soft);
}

.dock {
  flex: none;
  position: relative;
  z-index: 10;
  height: var(--nav-h);
  padding: 6px 20px var(--safe-bottom);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
}
.dock a.on { color: var(--blue); font-weight: 600; }
.dock svg { width: 22px; height: 22px; }

.notice {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

@media (min-width: 820px) {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
  }
  .nav-desk, .search-desk { display: flex; }
  .main { width: min(var(--max), calc(100% - 64px)); padding: 28px 0 48px; }
  .toc { position: static; overflow: visible; }
  .entries { grid-template-columns: repeat(10, 1fr); }
  .entries.entries-fit { grid-template-columns: repeat(var(--cols, 6), 1fr); }
  .sys-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .poster { flex-basis: 220px; height: 132px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .card h3 { font-size: 17px; }
  .row { grid-template-columns: 200px 1fr; }
  .dock { display: none; }
  .topics { flex-wrap: wrap; overflow: visible; }
  .tile-grid, .struct { grid-template-columns: 1fr 1fr; }
  .fnmap-root { width: 320px; height: 48px; font-size: 16px; }
  .fnmap-head { height: 42px; font-size: 15px; max-width: 240px; }
  .fnmap-item { max-width: 220px; min-height: 38px; font-size: 14px; }
  .flow { flex-direction: row; flex-wrap: wrap; }
  .flow li { flex: 1 1 180px; }
  .detail.skin-post,
  .detail.skin-board,
  .detail.skin-folio {
    width: min(860px, calc(100% - 64px));
  }
  .toc {
    position: sticky;
    top: 72px;
    z-index: 5;
    flex-wrap: wrap;
    overflow: visible;
    padding: 10px 0;
    background: var(--bg);
  }
  .people {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 8px;
    border-top: 0;
  }
  .people article {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafd;
  }
}

