/* 王勇的AI笔记 · 像素贴纸墙 */

:root {
  --paper: #fbfbf8;
  --grid: #dfe6f0;
  --ink: #141414;
  --muted: #3d3d3d;
  --accent: #ff5a36;
  --blue: #2b59ff;
  --yellow: #ffe066;
  --line: #c9d3e2;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
a { color: var(--blue); }
a:hover { color: var(--ink); }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }

.kl { font-family: 'ZCOOL KuaiLe', -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; font-weight: 400; }
.sk { font-family: 'Silkscreen', monospace; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mark { background: linear-gradient(transparent 55%, var(--yellow) 55%); padding: 0 4px; }

/* ---------- 贴纸 ---------- */
.stk { transform: rotate(var(--r, 0deg)); transition: transform .18s ease-out; }
.stk:hover { transform: rotate(0deg) scale(1.04); }
.die { filter: drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff) drop-shadow(3px 5px 0 rgba(20,20,20,.18)); }
.tape {
  position: absolute; width: 92px; height: 26px; top: -14px;
  background: rgba(255,224,102,.78);
  border-left: 2px dashed rgba(20,20,20,.12); border-right: 2px dashed rgba(20,20,20,.12);
}
.tape.white { background: rgba(255,255,255,.72); }
.label {
  display: inline-block; align-self: flex-start;
  font-family: 'Silkscreen', monospace; font-size: 13px; padding: 6px 12px;
  background: var(--ink); color: #fff;
}
.label.blue { background: var(--blue); }
.label.accent { background: var(--accent); color: var(--ink); }
.pill {
  display: inline-block; font-size: 13px; font-weight: 700;
  padding: 2px 10px; border: 2px solid var(--ink); border-radius: 999px; background: #fff;
}
.pill.yellow { background: var(--yellow); }

/* ---------- 按钮和链接 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 3px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink);
  background: #fff; color: var(--ink);
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); color: var(--ink); }
.btn.accent { background: var(--accent); }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.more {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none;
  border-bottom: 3px solid var(--ink);
}
.more:hover { color: var(--blue); border-color: var(--blue); }

/* ---------- 顶栏 ---------- */
.site-header .wrap {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 42px; height: 48px; }
.brand span { font-size: 26px; }
.header-right { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 3px solid transparent; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px;
}
.nav a:hover { border-color: var(--ink); }
.nav a[aria-current="page"] { background: var(--yellow); border-color: var(--ink); transform: rotate(-2deg); }

/* ---------- 区块 ---------- */
.section { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 32px; }
.section-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; }
.h1 { font-size: 72px; line-height: 1.1; }
.h2 { font-size: 52px; line-height: 1.2; }
.h3 { font-size: 36px; line-height: 1.3; }
.lead { font-size: 17px; line-height: 1.9; max-width: 34em; }
.page-head { padding-top: 40px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.page-head > div { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.page-head > .counter { flex: 0 0 140px; gap: 0; }
.counter {
  width: 140px; height: 140px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--accent); border: 4px solid var(--ink);
}
.counter .kl { font-size: 44px; line-height: 1; }
.counter small { font-size: 13px; font-weight: 700; }

/* ---------- 首屏 ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 32px; padding-bottom: 88px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-text h1 { font-size: 80px; line-height: 1.1; }
.nowrap { white-space: nowrap; }   /* 名字不拆成两行 */
.hero-text .sub { font-size: 34px; line-height: 1.4; }
.hero-text .actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 6px; }
.board-wrap { flex: 0 1 560px; min-width: 0; }
.board { position: relative; width: 560px; height: 440px; }
.board > * { position: absolute; }
.b-badge {
  left: 30px; top: 40px; width: 132px; height: 132px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--blue); border: 4px solid var(--ink); color: #fff; font-size: 26px; line-height: 1.2;
}
.b-yt {
  left: 360px; top: 40px; display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: var(--accent); border: 4px solid var(--ink); border-radius: 14px; color: var(--ink); text-decoration: none;
}
.b-yt span { display: flex; flex-direction: column; line-height: 1.2; }
.b-yt b { font-size: 13px; }
.b-heart { left: 40px; top: 228px; }
.b-heart svg { width: 70px; height: 60px; }
.b-me { left: 180px; top: 110px; }
.b-me img { width: 168px; height: 192px; }
.b-spark { left: 352px; top: 176px; }
.b-spark.two { left: 150px; top: 318px; animation-delay: .9s; }
.b-spark svg { width: 30px; height: 30px; }
.b-note {
  left: 380px; top: 210px; width: 160px; height: 140px; padding: 26px 16px 16px;
  background: var(--yellow); box-shadow: 4px 6px 0 rgba(20,20,20,.18); font-size: 22px; line-height: 1.35;
}
.b-label {
  left: 60px; top: 372px; padding: 10px 16px; background: var(--ink); color: #fff;
  font-size: 15px; letter-spacing: 2px; box-shadow: 3px 4px 0 rgba(20,20,20,.18);
}

/* ---------- 视频卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 48px 36px; padding-top: 12px; }
.pol {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 14px 14px 20px;
  background: #fff; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  color: var(--ink); text-decoration: none;
}
.pol .tape { left: 50%; margin-left: -46px; }
.pol h3 { font-size: 18px; font-weight: 700; line-height: 1.55; }
.pol p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.pol .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cover {
  position: relative; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
  background-color: var(--bg, var(--accent));
  background-image: linear-gradient(rgba(255,255,255,.2) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.2) 2px, transparent 2px);
  background-size: 16px 16px; border: 3px solid var(--ink);
}
.cover .ttl { background: #fff; border: 3px solid var(--ink); font-size: 18px; padding: 6px 12px; }
.cover .corner { position: absolute; background: var(--ink); color: #fff; font-size: 11px; padding: 3px 8px; }
.cover .tl { left: 8px; top: 8px; }
.cover .br { right: 8px; bottom: 8px; }
.pol[hidden] { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 3px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink);
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
}
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip .sk { font-size: 12px; }

/* ---------- 笔记本（文章列表） ---------- */
.notebook {
  position: relative; transform: rotate(-.6deg);
  background: #fff; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  padding: 12px 32px 12px 80px;
}
.notebook::before { content: ""; position: absolute; left: 56px; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.notebook .tape.l { left: 40px; }
.notebook .tape.r { right: 40px; }
.notebook .year { font-family: 'ZCOOL KuaiLe', sans-serif; font-size: 30px; padding: 24px 0 4px; }
.prow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 16px 0;
  border-bottom: 2px dashed var(--line); color: var(--ink); text-decoration: none;
}
.prow:last-child { border-bottom: 0; }
.prow svg { width: 22px; height: 22px; flex: 0 0 auto; }
.prow .date { flex: 0 0 110px; font-size: 13px; }
.prow .t { flex: 1 1 360px; min-width: 0; font-size: 17px; font-weight: 500; line-height: 1.7; }
.prow:hover .t { background: var(--yellow); }
.prow[hidden] { display: none; }

.search { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search label { font-weight: 700; }
.search input {
  flex: 1 1 280px; min-height: 52px; padding: 0 20px;
  border: 3px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink);
  font: inherit; font-size: 16px; background: #fff; color: var(--ink);
}

/* ---------- 小工具卡片 ---------- */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.tool {
  display: flex; flex-direction: column; gap: 12px; padding: 24px;
  background: var(--bg, #fff); color: var(--fg, var(--ink));
  border: 4px solid var(--ink); border-radius: 24px; text-decoration: none;
}
.tool:hover { color: var(--fg, var(--ink)); }
.tool svg { width: 36px; height: 36px; fill: currentColor; }
.tool .kl { font-size: 24px; }
.tool p { font-size: 14px; line-height: 1.7; font-weight: 500; }

/* ---------- 身份卡 ---------- */
.about-row { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.idcard {
  flex: 1 1 520px; min-width: 0; transform: rotate(-1deg); overflow: hidden;
  background: #fff; border: 4px solid var(--ink); border-radius: 20px; box-shadow: 8px 8px 0 var(--ink);
}
.idcard .top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 24px; background: var(--accent); border-bottom: 4px solid var(--ink);
}
.idcard .body { display: flex; flex-wrap: wrap; gap: 28px; padding: 28px; align-items: center; }
.avatar { flex: 0 0 auto; padding: 16px; background: var(--blue); border: 4px solid var(--ink); border-radius: 12px; }
.avatar img { width: 112px; height: 128px; }
.idcard dl { flex: 1 1 260px; min-width: 0; margin: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px 14px; font-size: 16px; line-height: 1.6; }
.idcard dt { font-weight: 900; }
.idcard dd { margin: 0; }

/* ---------- 蓝色横幅 ---------- */
.band {
  position: relative; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between;
  padding: 40px; background: var(--blue); color: #fff;
  border: 4px solid var(--ink); border-radius: 28px; box-shadow: 10px 10px 0 var(--ink);
}
.band > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.band .tape { left: 60px; }
.band .actions { flex: 0 1 auto; flex-direction: row; flex-wrap: wrap; gap: 14px; }

/* ---------- 便利贴 ---------- */
.note {
  position: relative; padding: 28px 32px; background: var(--yellow);
  box-shadow: 5px 7px 0 rgba(20,20,20,.18);
}
.note .tape { left: 40px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 3px solid var(--ink); background: #fff; margin-top: 40px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 40px 64px; padding-top: 48px; padding-bottom: 28px; }
.site-footer .intro { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.site-footer .intro p { font-size: 15px; line-height: 1.8; max-width: 26em; }
.stamp { font-size: 24px; border: 3px dashed var(--accent); padding: 4px 16px; border-radius: 12px; margin-top: 6px; }
.fcol { flex: 0 1 180px; display: flex; flex-direction: column; }
.fcol .sk { font-size: 13px; margin-bottom: 8px; }
.fcol a { color: var(--ink); text-decoration: none; font-size: 15px; line-height: 2.2; }
.fcol a:hover { color: var(--blue); text-decoration: underline; }
.site-footer .legal { border-top: 2px dashed var(--line); padding-top: 16px; padding-bottom: 28px; font-size: 13px; }

/* ---------- 详情页 ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 500; }
.crumbs a { color: var(--ink); }
.detail-head { padding-top: 24px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 18px; }
.detail-head h1 { font-size: 60px; line-height: 1.2; max-width: 16em; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 15px; }
.meta .sk { font-size: 13px; }
.layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-bottom: 64px; }
.layout > .main-col { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.layout > aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.player {
  aspect-ratio: 16 / 9; display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: center;
  background-color: var(--ink);
  background-image: linear-gradient(rgba(255,255,255,.06) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.06) 2px, transparent 2px);
  background-size: 20px 20px; border: 4px solid var(--ink); border-radius: 16px; box-shadow: 8px 8px 0 var(--accent);
}
.player a { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; background: var(--accent); border: 4px solid #fff; }
.player a svg { width: 44px; height: 44px; }
.player .sk { color: #fff; font-size: 13px; }
.tldr { display: flex; flex-direction: column; gap: 12px; }
.tldr p { font-size: 19px; line-height: 1.85; font-weight: 500; }
.learn { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.learn li { list-style: none; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; font-size: 16px; font-weight: 500; line-height: 1.6; }
.learn svg { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 3px; }
ul.learn { margin: 0; padding: 0; }
.paper {
  position: relative; background: #fff; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  padding: 48px 56px; display: flex; flex-direction: column; gap: 26px;
}
.paper .tape.l { left: 48px; }
.paper .tape.r { right: 48px; }
.paper p, .paper li { font-size: 17px; line-height: 1.95; }
.paper h2 { font-family: 'ZCOOL KuaiLe', sans-serif; font-weight: 400; font-size: 32px; line-height: 1.3; }
.paper .step { align-self: flex-start; background: var(--ink); color: #fff; font-size: 12px; padding: 4px 10px; margin-top: 12px; }
.paper .key { padding: 16px 20px; border: 3px solid var(--ink); border-radius: 14px; font-weight: 700; }
.shot {
  aspect-ratio: 16 / 8; display: flex; align-items: center; justify-content: center;
  background-color: #f2f4f8; background-image: repeating-linear-gradient(45deg, transparent 0 14px, #e3e8f0 14px 16px);
  border: 3px dashed var(--ink); border-radius: 12px;
}
.shot span { background: #fff; border: 2px solid var(--ink); font-size: 13px; padding: 6px 12px; }
.duo { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.duo > div { padding: 20px; border: 3px solid var(--ink); border-radius: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg, #fff); }
.duo .kl { font-size: 24px; }
.duo p { font-size: 15px; line-height: 1.8; }
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.modes > div { padding: 18px; background: var(--bg, #fff); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); display: flex; flex-direction: column; gap: 8px; }
.modes .kl { font-size: 22px; }
.modes .sk { font-size: 11px; }
.modes p { font-size: 14px !important; line-height: 1.75 !important; }
.prompt { background: var(--ink); color: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--accent); overflow: hidden; }
.prompt header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px 12px 20px; border-bottom: 2px solid #3a3a3a; font-weight: 700; font-size: 15px; }
.prompt .btn { box-shadow: none; border-width: 2px; }
.prompt pre { margin: 0; padding: 20px; white-space: pre-wrap; font-family: -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; font-size: 15px; line-height: 1.8; }
.linklist { display: flex; flex-direction: column; background: #fff; border: 3px solid var(--ink); border-radius: 16px; }
.linklist a { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 2px dashed var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.linklist a:last-child { border-bottom: 0; }
.linklist .sk { font-size: 12px; color: var(--blue); font-weight: 400; }
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq details { background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 0 20px; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { border-bottom: 2px dashed var(--line); }
.faq details p { padding: 16px 20px 20px; font-size: 16px; line-height: 1.85; }
.toc { padding: 22px 24px; background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); display: flex; flex-direction: column; }
.toc .sk { font-size: 13px; margin-bottom: 8px; }
.toc a { display: flex; align-items: center; gap: 10px; min-height: 40px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.toc a:hover { color: var(--blue); }
.toc a .sk { font-size: 11px; margin: 0; }
.author { padding: 22px 24px; background: #fff; border: 3px solid var(--ink); border-radius: 18px; display: flex; flex-direction: column; gap: 14px; }
.author .who { display: flex; gap: 14px; align-items: center; }
.author .avatar { padding: 8px; border-width: 3px; border-radius: 10px; }
.author .avatar img { width: 56px; height: 64px; }
.author b { font-size: 18px; font-weight: 900; }
.author a { font-weight: 700; color: var(--ink); }
.side-note { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; padding: 22px 24px; }
.side-note:hover { color: var(--ink); }

/* ---------- 文章阅读 ---------- */
.reading { max-width: 820px; margin: 0 auto; }
.post-body p { font-size: 18px; line-height: 2; }
.post-body h2 { margin-top: 12px; }
.post-body blockquote {
  margin: 0; padding: 20px 24px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 14px;
  font-size: 18px; line-height: 1.9; font-weight: 500;
}
.post-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.post-nav a { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px; background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.6; }
.post-nav a .sk { font-size: 12px; font-weight: 400; }
.post-nav a:hover { transform: translate(-2px, -2px); }

/* ---------- 生成页面用到的（site/build.py） ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.fitem { font-size: 15px; line-height: 2.2; }
.btn.plain { cursor: default; }
.btn.plain:hover { transform: none; box-shadow: 4px 4px 0 var(--ink); }
.player.has-poster { position: relative; overflow: hidden; padding: 0; }
.player.has-poster img { width: 100%; height: 100%; object-fit: contain; }
.player.has-poster .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.watch { display: flex; flex-wrap: wrap; gap: 14px; margin-top: -16px; }
.post-head h1 { font-size: 50px; }
.paper ul, .paper ol { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 10px; }
.paper li ul, .paper li ol { margin-top: 10px; }
.paper h3 { font-size: 22px; line-height: 1.5; }
.paper h4 { font-size: 18px; line-height: 1.6; }
.paper blockquote { margin: 0; padding: 16px 20px; border: 3px solid var(--ink); border-radius: 14px; font-weight: 700; }
.paper blockquote p { font-size: 17px; line-height: 1.9; }
.paper hr { width: 100%; border: 0; border-top: 2px dashed var(--line); margin: 8px 0; }
.paper figure { margin: 0; }
.paper figure img, .paper p img { max-width: 100%; height: auto; margin: 0 auto; border: 3px solid var(--ink); border-radius: 10px; }
.paper pre { margin: 0; padding: 18px 20px; overflow-x: auto; background: var(--ink); color: #fff; border-radius: 12px; font-size: 14px; line-height: 1.7; }
.paper pre code { font-family: ui-monospace, Menlo, Consolas, monospace; background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.paper code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; background: #eef2ff; padding: 1px 6px; border: 2px solid var(--ink); border-radius: 4px; }
.paper .table { overflow-x: auto; }
.paper table { border-collapse: collapse; min-width: 100%; font-size: 16px; line-height: 1.7; }
.paper th, .paper td { border: 2px solid var(--ink); padding: 8px 12px; text-align: left; vertical-align: top; }
.paper th { background: var(--yellow); }
.empty { font-weight: 700; font-size: 16px; }

/* ---------- 动画 ---------- */
@keyframes tw { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.7); } }
.tw { animation: tw 1.8s steps(3) infinite; }

/* ---------- 手机 ---------- */
@media (max-width: 700px) {
  .board { zoom: .6; }
  .hero-text h1 { font-size: 52px; }
  .hero-text .sub { font-size: 26px; }
  .h1 { font-size: 48px; }
  .h2 { font-size: 38px; }
  .h3 { font-size: 30px; }
  .detail-head h1, .post-head h1 { font-size: 32px; }
  .paper { padding: 28px 20px; }
  .notebook { padding: 8px 16px 8px 40px; }
  .notebook::before { left: 24px; }
  .band { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tw { animation: none; }
  .stk { transition: none; }
}
