/* “简约博客”视觉系统：极简侧栏、文章流与蓝色强调色 */
:root {
  color-scheme: light;
  --paper: #fff;
  --paper-soft: #f6f8fa;
  --ink: #1f2937;
  --ink-soft: #606a79;
  --ink-faint: #6b7280;
  --line: #edf0f4;
  --accent: #3b82f6;
  --accent-deep: #2563eb;
  --shadow: 0 11px 23px rgba(31, 41, 55, .11);
  --cover-ink: #111827;
  --cover-mark-bg: rgba(255, 255, 255, .68);
  --cover-mark-ink: rgba(31, 41, 55, .72);
  --cover-orb: rgba(255, 255, 255, .28);
  --cover-shadow: rgba(31, 41, 55, .1);
  --sans: "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171a1f;
  --paper-soft: #20242b;
  --ink: #edf1f5;
  --ink-soft: #b6bdc7;
  --ink-faint: #858e9a;
  --line: #2b3038;
  --accent: #60a5fa;
  --accent-deep: #93c5fd;
  --shadow: 0 11px 23px rgba(0, 0, 0, .3);
  --cover-ink: #ecf2f8;
  --cover-mark-bg: rgba(13, 16, 20, .42);
  --cover-mark-ink: rgba(236, 242, 248, .82);
  --cover-orb: rgba(255, 255, 255, .08);
  --cover-shadow: rgba(0, 0, 0, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; scrollbar-gutter: stable both-edges; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.75; transition: color .28s ease, background-color .28s ease; }
a { color: inherit; }
img { max-width: 100%; }
button, input { font: inherit; }
::selection { color: #fff; background: var(--accent); }
.icon { display: block; width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 1000; padding: 8px 14px; color: #fff; background: var(--accent); text-decoration: none; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* 全站外壳 */
.blog-shell { display: grid; grid-template-columns: 360px minmax(0, 1fr); width: min(100%, 1600px); min-height: 100vh; margin: 0 auto; }
.sidebar { position: sticky; top: 0; display: flex; height: 100vh; padding: 32px 38px 40px; overflow-y: auto; flex-direction: column; background: var(--paper); scrollbar-gutter: stable; scrollbar-width: thin; transition: background-color .28s ease; }
.theme-button { position: absolute; top: 28px; left: 110px; display: grid; width: 40px; height: 40px; padding: 0; color: var(--ink-soft); background: transparent; border: 0; border-radius: 10px; cursor: pointer; place-items: center; transition: color .2s, background .2s; }
.theme-button:hover { color: var(--ink); background: var(--paper-soft); }
[data-theme="dark"] .theme-button { color: #e9c979; }
.theme-button .icon { width: 21px; height: 21px; }
.profile { padding-left: 82px; margin-block: auto; }
.avatar { position: relative; display: block; width: 96px; height: 96px; overflow: hidden; background: linear-gradient(145deg, #dce9f5 0%, #f2dfd3 100%); border-radius: 12px; box-shadow: var(--shadow); text-decoration: none; transition: transform .22s ease, box-shadow .22s ease; }
.avatar:hover { box-shadow: 0 16px 30px rgba(31, 41, 55, .16); transform: translateY(-3px); }
.avatar span { position: absolute; bottom: -2px; left: 14px; z-index: 1; color: #fff; font: 700 67px/1 var(--serif); text-shadow: 0 4px 18px rgba(31, 41, 55, .14); }
.avatar i { position: absolute; top: -7px; right: -8px; width: 34px; height: 34px; background: #f0a68a; border-radius: 50%; opacity: .8; }
.profile h1 { margin: 32px 0 24px; color: var(--ink); font-size: 36px; font-weight: 700; line-height: 1.15; letter-spacing: -.035em; }
.profile > p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.profile-socials { display: flex; gap: 10px; margin: 18px 0 26px; }
.profile-socials a { display: grid; width: 24px; height: 28px; color: var(--ink-faint); border-radius: 6px; text-decoration: none; place-items: center; transition: color .2s, background .2s; }
.profile-socials a:hover { color: var(--ink); background: var(--paper-soft); }
.profile-socials .icon { width: 16px; height: 16px; }
.side-nav { display: flex; width: 190px; flex-direction: column; align-items: stretch; gap: 4px; }
.side-nav a { position: relative; display: flex; min-height: 48px; align-items: center; padding: 0; color: #687181; font-size: 17px; border-radius: 0; text-decoration: none; }
[data-theme="dark"] .side-nav a { color: var(--ink-soft); }
.side-nav a .icon { display: none; width: 18px; height: 18px; color: var(--ink-faint); }
.side-nav a::before { position: absolute; top: 50%; left: -7px; display: none; width: 5px; height: 5px; border-radius: 50%; content: ""; transform: translateY(-50%); }
.side-nav a.active { padding: 0 12px; margin-left: -12px; color: var(--ink); background: transparent; font-weight: 700; border-radius: 8px; }
.side-nav a.active .icon { color: var(--accent); }
.side-nav a.active::before { display: block; background: var(--accent); }
.side-nav a:hover { color: var(--ink); background: var(--paper-soft); }

.feed { min-width: 0; padding: 31px 48px 70px 72px; }
.feed-header { display: grid; grid-template-columns: 64px 1fr; align-items: center; min-height: 50px; }
.feed-header h2 { grid-column: 2; display: flex; align-items: center; gap: 9px; margin: 0; font-size: 18px; font-weight: 400; line-height: 1.4; }
.feed-header h2 .icon { width: 17px; height: 17px; color: var(--ink-soft); }
.feed-search { position: fixed; top: 35px; left: calc(50% - min(800px, 50vw) + 432px); z-index: 20; display: grid; width: 42px; height: 42px; color: var(--ink-soft); border-radius: 10px; text-decoration: none; place-items: center; transition: color .2s, background .2s; }
.feed-search:hover { color: var(--ink); background: var(--paper-soft); }
.feed-search .icon { width: 21px; height: 21px; }
.feed-content { min-height: 55vh; }

/* 搜索弹窗 */
.search-dialog { width: min(580px, calc(100vw - 32px)); height: fit-content; max-width: none; max-height: calc(100dvh - 48px); padding: 12px; color: var(--ink); background: var(--paper-soft); border: 0; border-radius: 10px; box-shadow: 0 24px 70px rgba(17, 24, 39, .28); }
.search-dialog::backdrop { background: rgba(70, 78, 91, .55); }
.search-dialog[open] { animation: search-dialog-in .2s cubic-bezier(.22, 1, .36, 1) both; }
.search-dialog[open]::backdrop { animation: search-backdrop-in .2s ease-out both; }
.search-dialog.is-closing { animation: search-dialog-out .16s ease-in both; }
.search-dialog.is-closing::backdrop { animation: search-backdrop-out .16s ease-in both; }
@keyframes search-dialog-in { from { opacity: 0; transform: translateY(-10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes search-dialog-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-8px) scale(.985); } }
@keyframes search-backdrop-in { from { background: rgba(70, 78, 91, 0); } to { background: rgba(70, 78, 91, .55); } }
@keyframes search-backdrop-out { from { background: rgba(70, 78, 91, .55); } to { background: rgba(70, 78, 91, 0); } }
.search-dialog-shell { display: grid; grid-template-rows: auto auto auto auto; height: auto; min-height: 0; }
.search-dialog-form { display: grid; grid-template-columns: 32px minmax(0, 1fr) 40px; align-items: center; min-height: 58px; padding: 0 6px 0 12px; color: #334155; background: var(--paper); border: 2px solid #45c9a5; border-radius: 9px; }
.search-dialog-search-icon { width: 24px; height: 24px; color: #32bb98; }
.search-dialog-form input { width: 100%; min-width: 0; height: 52px; padding: 0 4px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 18px; }
.search-dialog-form input::-webkit-search-cancel-button { display: none; }
.search-dialog-close { position: relative; display: grid; width: 40px; height: 40px; padding: 0; color: var(--ink-soft); background: transparent; border: 0; border-radius: 50%; cursor: pointer; place-items: center; }
.search-dialog-close::before, .search-dialog-close::after { position: absolute; width: 19px; height: 2px; background: currentColor; border-radius: 2px; content: ""; transform: rotate(45deg); }
.search-dialog-close::after { transform: rotate(-45deg); }
.search-dialog-status { min-height: 26px; margin: 0; padding: 8px 4px 2px; color: var(--ink-faint); font-size: 12px; line-height: 1.4; }
.search-dialog-results { min-height: 0; max-height: calc(100dvh - 190px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.search-result { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 13px 14px; margin: 6px 0; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.search-result > .icon { width: 19px; height: 19px; margin-top: 4px; color: var(--ink-soft); }
.search-result-copy { min-width: 0; }
.search-result-title { display: block; font-size: 16px; font-weight: 500; line-height: 1.45; }
.search-result-excerpt { display: -webkit-box; margin-top: 3px; overflow: hidden; color: var(--ink-soft); font-size: 13px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.search-result-meta { display: block; margin-top: 5px; color: var(--ink-faint); font-size: 11px; }
.search-result mark { color: #13866a; background: transparent; font-weight: 600; }
.search-result.is-active { color: #fff; background: #45c9a5; border-color: #45c9a5; }
.search-result.is-active > .icon, .search-result.is-active .search-result-excerpt, .search-result.is-active .search-result-meta, .search-result.is-active mark { color: #fff; }
.search-dialog-empty { display: grid; min-height: 180px; margin: 6px 0; color: var(--ink-faint); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; place-items: center; text-align: center; }
.search-dialog-footer { display: flex; justify-content: flex-end; gap: 18px; padding: 12px 4px 0; color: var(--ink-soft); border-top: 1px solid var(--line); font-size: 12px; }
.search-dialog-footer span { display: inline-flex; align-items: center; gap: 5px; }
.search-dialog-footer kbd { min-width: 28px; padding: 2px 6px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 1px rgba(17, 24, 39, .08); font: inherit; text-align: center; }
.search-open { overflow: hidden; scrollbar-gutter: auto; }
[data-theme="dark"] .search-dialog { box-shadow: 0 24px 70px rgba(0, 0, 0, .55); }

/* 首页 */
.home-page-content { margin-left: 62px; }
.post-list { display: flex; flex-direction: column; }
.home-page .post-row { min-height: 208px; padding: 8px 0 39px; border: 0; }
.home-post-link { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 31px; align-items: start; color: inherit; text-decoration: none; }
.home-post-cover { position: relative; display: block; height: 161px; overflow: hidden; background: linear-gradient(145deg, #b8dcfa, #f2eafb); border-radius: 10px; box-shadow: var(--shadow); transition: transform .28s ease, box-shadow .28s ease, background .28s ease; }
.post-row:nth-of-type(6n + 2) .home-post-cover { background: linear-gradient(145deg, #ffd4c4, #fff0dc); }
.post-row:nth-of-type(6n + 3) .home-post-cover { background: linear-gradient(145deg, #c4eee8, #def4ff); }
.post-row:nth-of-type(6n + 4) .home-post-cover { background: linear-gradient(145deg, #d8d1f7, #f4e5ef); }
.post-row:nth-of-type(6n + 5) .home-post-cover { background: linear-gradient(145deg, #f2d7a6, #f8eee1); }
.post-row:nth-of-type(6n) .home-post-cover { background: linear-gradient(145deg, #bfe8f0, #d8e3ff); }
[data-theme="dark"] .post-row:nth-of-type(6n + 1) .home-post-cover { background: linear-gradient(145deg, #294b65, #443f58); }
[data-theme="dark"] .post-row:nth-of-type(6n + 2) .home-post-cover { background: linear-gradient(145deg, #754a42, #604e3f); }
[data-theme="dark"] .post-row:nth-of-type(6n + 3) .home-post-cover { background: linear-gradient(145deg, #2e5c58, #315265); }
[data-theme="dark"] .post-row:nth-of-type(6n + 4) .home-post-cover { background: linear-gradient(145deg, #4d496c, #604656); }
[data-theme="dark"] .post-row:nth-of-type(6n + 5) .home-post-cover { background: linear-gradient(145deg, #695535, #5c4b42); }
[data-theme="dark"] .post-row:nth-of-type(6n) .home-post-cover { background: linear-gradient(145deg, #315f67, #3b4f73); }
.home-post-link:hover .home-post-cover { box-shadow: 0 16px 30px rgba(31, 41, 55, .16); transform: translateY(-4px); }
.home-post-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-post-cover > span { position: absolute; top: 50px; left: 16px; z-index: 2; color: var(--cover-ink); font-size: 17px; font-weight: 700; line-height: 1.4; transition: color .28s ease; }
.home-post-cover > b { position: absolute; right: 18px; bottom: 20px; z-index: 2; display: grid; width: 48px; height: 48px; color: var(--cover-mark-ink); background: var(--cover-mark-bg); border-radius: 10px; box-shadow: 0 7px 18px var(--cover-shadow); font: 600 24px/1 var(--serif); place-items: center; transition: color .28s ease, background-color .28s ease, box-shadow .28s ease; }
.home-post-cover > i { position: absolute; top: -34px; right: -30px; width: 120px; height: 120px; background: var(--cover-orb); border-radius: 50%; transition: background-color .28s ease; }
.home-post-body { display: block; min-width: 0; }
.home-post-body h3 { margin: 0 0 14px; color: var(--ink); font-size: 22px; font-weight: 700; line-height: 1.4; letter-spacing: -.02em; transition: color .2s; }
.home-post-link:hover h3 { color: var(--accent); }
.home-post-excerpt { display: -webkit-box; max-width: 760px; margin: 0 0 12px; overflow: hidden; color: var(--ink-soft); font-size: 17px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; color: var(--ink-faint); font-size: 11px; }
.home-post-meta > span, .home-post-meta > time { display: inline-flex; align-items: center; gap: 5px; }
.home-post-meta .icon { width: 11px; height: 11px; }
.home-pager { display: flex; justify-content: center; align-items: center; padding-top: 24px; margin-top: 42px; border-top: 1px solid var(--line); }
.home-pager-more { justify-content: flex-start; }
.home-pager > div { display: flex; gap: 6px; }
.home-more-link { display: inline-flex; min-height: 36px; align-items: center; gap: 6px; color: var(--accent-deep); font-size: 13px; text-decoration: none; }
.home-more-link span { font-size: 16px; }
.pager-number, .pager-ellipsis, .pager-step { display: grid; min-width: 36px; height: 36px; padding: 0 10px; color: var(--ink-soft); border-radius: 9px; font-size: 12px; text-decoration: none; place-items: center; }
.pager-number:hover, .pager-step:hover { color: var(--ink); background: var(--paper-soft); }
.pager-number.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); font-weight: 700; }
.pager-step { display: flex; align-items: center; gap: 5px; }
.pager-step.disabled { color: var(--ink-faint); opacity: .55; cursor: default; }
.pager-step .icon { width: 12px; height: 12px; }

/* 文章归档和内容内页 */
.wrap { width: 100%; margin: 0 auto; }
.page-head { max-width: 900px; padding: 28px 0 34px; border-bottom: 1px solid var(--line); }
.sec-kicker { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.sec-title { margin: 8px 0 0; color: var(--ink); font-size: clamp(30px, 5vw, 45px); line-height: 1.3; letter-spacing: -.03em; }
.page-head p { max-width: 680px; margin: 12px 0 0; color: var(--ink-soft); }
.section { max-width: 900px; padding: 34px 0 60px; }
.section.tinted { background: transparent; }
.empty-tip { padding: 40px 0; color: var(--ink-faint); border-block: 1px solid var(--line); text-align: center; }
.archive-search { display: flex; gap: 10px; max-width: 620px; margin-top: 22px; }
.archive-search input { flex: 1; min-width: 0; padding: 10px 13px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 9px; }
.archive-search button { padding: 0 20px; color: #fff; background: var(--accent); border: 0; border-radius: 9px; cursor: pointer; }
.page-page .post-list { display: block; }
.page-page .post-row { display: block; padding: 24px 0; border-top: 1px solid var(--line); text-decoration: none; }
.page-page .post-row:last-child { border-bottom: 1px solid var(--line); }
.page-page .post-row .cover { display: none; }
.page-page .post-row h3 { margin: 0; color: var(--ink); font-size: 22px; line-height: 1.45; transition: color .2s; }
.page-page .post-row:hover h3 { color: var(--accent); }
.page-page .post-row p { margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; }
.page-page .post-row .meta { display: flex; gap: 15px; margin-top: 11px; color: var(--ink-faint); font-size: 11px; }
.pager { margin-top: 34px; }
.pager-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.pg-btn, .pg-ellipsis { display: grid; min-width: 38px; min-height: 38px; padding: 6px 11px; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; text-decoration: none; place-items: center; }
.pg-btn:hover, .pg-btn.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.pg-btn.disabled { color: var(--ink-faint); background: var(--paper-soft); }

/* 项目、专题、瞬间、关于 */
.projects-grid, .topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project, .topic-card { display: block; overflow: hidden; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.project:hover, .topic-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.project > img, .topic-card > img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.project h3, .topic-card h2 { margin: 20px 20px 0; font-size: 19px; }
.project p, .topic-card p { margin: 8px 20px 18px; color: var(--ink-soft); font-size: 13px; }
.project .tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 20px 20px; }
.project .tags span, .skills span { padding: 4px 8px; color: var(--ink-soft); background: var(--paper-soft); border-radius: 6px; font-size: 11px; }
.project .tape, .avatar-frame .tape, .tape-mini { display: none; }
.topic-index { display: block; margin: 18px 20px 0; color: var(--accent); font-size: 10px; font-weight: 700; }
.topic-more { display: block; margin: 0 20px 20px; color: var(--accent); font-size: 12px; }
.topic-article-row { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); text-decoration: none; }
.topic-article-row:last-child { border-bottom: 1px solid var(--line); }
.topic-article-number { color: var(--accent); font-size: 18px; }
.topic-article-row h2 { margin: 0; font-size: 21px; }
.topic-article-row p { margin: 7px 0 0; color: var(--ink-soft); font-size: 14px; }
.topic-article-row .meta { display: flex; gap: 16px; margin-top: 10px; color: var(--ink-faint); font-size: 11px; }
.moment { display: grid; grid-template-columns: 110px 1fr; gap: 22px; padding: 22px 0; border-top: 1px solid var(--line); }
.moment:last-child { border-bottom: 1px solid var(--line); }
.moment-time { color: var(--accent); font-size: 12px; }
.moment-card { color: var(--ink); font-size: 16px; }
.about-grid { display: grid; grid-template-columns: 190px 1fr; gap: 45px; align-items: start; }
.avatar-frame { padding: 0; }
.avatar-frame img { display: block; width: 100%; border-radius: 14px; box-shadow: var(--shadow); }
.avatar-frame .caption { display: block; padding-top: 11px; color: var(--ink-faint); font-size: 11px; text-align: center; }
.about-text p { margin: 0 0 20px; color: var(--ink-soft); font-size: 16px; }
.skills, .socials { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.socials a { color: var(--accent); font-weight: 700; text-decoration: none; }
.about-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 45px; }
.side-card { padding: 22px; background: var(--paper-soft); border-radius: 12px; }
.side-title { font-weight: 700; }
.side-card p, .now-list { color: var(--ink-soft); font-size: 14px; }
.now-list { padding-left: 20px; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; min-height: 42px; padding: 0 18px; align-items: center; justify-content: center; color: var(--accent); border: 1px solid var(--accent); border-radius: 9px; font-size: 13px; text-decoration: none; }
.btn-primary { color: #fff; background: var(--accent); }

/* 文章页与页脚 */
.post-header { max-width: 900px; padding: 28px 0 32px; border-bottom: 1px solid var(--line); }
.post-label { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.post-title { max-width: 820px; margin: 12px 0 0; color: var(--ink); font-size: clamp(32px, 5vw, 48px); line-height: 1.35; letter-spacing: -.035em; }
.post-sub { max-width: 700px; margin: 13px 0 0; color: var(--ink-soft); }
.post-byline { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; color: var(--ink-faint); font-size: 12px; }
.post-byline .sep { color: var(--line); }
.post-cover { display: block; width: min(900px, 100%); max-height: 520px; margin: 28px 0 0; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); }
.site-footer { max-width: 900px; padding: 25px 0 10px; margin-top: 30px; color: var(--ink-faint); border-top: 1px solid var(--line); font-size: 12px; text-align: center; }
.site-footer > a { color: var(--accent-deep); text-decoration: none; }
.site-footer p { margin: 7px 0 0; }
.site-footer p a { color: inherit; }

@media (max-width: 1050px) {
  .blog-shell { grid-template-columns: 270px minmax(0, 1fr); }
  .sidebar { padding-inline: 28px; }
  .theme-button { left: 44px; }
  .profile { padding-left: 16px; }
  .profile h1 { font-size: 30px; }
  .feed { padding-right: 28px; padding-left: 38px; }
  .feed-search { left: calc(50% - min(525px, 50vw) + 308px); }
  .home-page-content { margin-left: 0; }
  .home-page .post-row { min-height: 180px; padding: 12px 0 36px; }
  .home-post-link { grid-template-columns: 190px minmax(0, 1fr); gap: 22px; }
  .home-post-cover { height: 132px; }
  .home-post-body h3 { font-size: 19px; }
  .home-post-excerpt { font-size: 14px; }
}

@media (min-width: 761px) and (max-height: 760px) {
  .sidebar { padding-top: 24px; padding-bottom: 24px; }
  .theme-button { top: 24px; }
  .profile h1 { margin-top: 20px; font-size: 30px; }
  .profile-socials { margin-top: 12px; margin-bottom: 20px; }
  .side-nav { gap: 4px; }
  .side-nav a { min-height: 40px; }
}

@media (max-width: 760px) {
  html { scrollbar-gutter: auto; }
  .blog-shell { display: block; }
  .sidebar { position: relative; height: auto; padding: 22px 20px 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .theme-button { position: absolute; top: 19px; right: 18px; left: auto; margin-left: 0; }
  .profile { display: grid; grid-template-columns: 72px 1fr; column-gap: 18px; padding-left: 0; margin: 0; }
  .avatar { grid-row: 1/4; width: 72px; height: 72px; border-radius: 11px; }
  .avatar span { bottom: -1px; left: 10px; font-size: 50px; }
  .avatar i { top: -6px; right: -7px; width: 28px; height: 28px; }
  .profile h1 { margin: 6px 48px 2px 0; font-size: 25px; }
  .profile > p { font-size: 13px; }
  .profile-socials { gap: 14px; margin: 10px 0 0; }
  .side-nav { grid-column: 1/-1; width: auto; flex-direction: row; gap: 12px; margin-top: 22px; overflow-x: auto; }
  .side-nav a { min-height: 40px; flex: 0 0 auto; gap: 11px; padding: 0; margin-left: 0; font-size: 14px; background: transparent; }
  .side-nav a.active { padding: 0; margin-left: 0; }
  .side-nav a .icon { display: block; width: 17px; height: 17px; }
  .side-nav a::before { display: none; }
  .side-nav a.active::before { display: none; }
  .feed { padding: 28px 20px 50px; }
  .feed-header { grid-template-columns: 46px 1fr; min-height: 70px; }
  .feed-header h2 { font-size: 18px; }
  .feed-search { position: static; grid-column: 1; grid-row: 1; width: 36px; }
  .search-dialog { width: calc(100vw - 16px); height: fit-content; max-height: calc(100dvh - 16px); padding: 8px; margin: auto; border-radius: 8px; }
  .search-dialog-form { grid-template-columns: 30px minmax(0, 1fr) 40px; min-height: 54px; padding-left: 10px; }
  .search-dialog-form input { height: 48px; font-size: 16px; }
  .search-result { padding: 12px 10px; }
  .search-dialog-footer { justify-content: space-between; gap: 6px; }
  .search-dialog-footer span { gap: 3px; }
  .search-dialog-footer kbd { min-width: 24px; padding-inline: 4px; }
  .home-page .post-row { min-height: 0; padding: 18px 0 34px; border-bottom: 1px solid var(--line); }
  .home-post-link { grid-template-columns: 1fr; gap: 22px; }
  .home-post-cover { height: auto; aspect-ratio: 16/10; }
  .home-post-cover > span { top: 72px; left: 18px; font-size: 19px; }
  .home-post-cover > b { right: 24px; bottom: 26px; width: 58px; height: 58px; border-radius: 12px; font-size: 29px; }
  .home-post-cover > i { top: -38px; right: -34px; width: 150px; height: 150px; }
  .home-post-body h3 { font-size: 21px; }
  .projects-grid, .topic-grid, .about-extra { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 140px 1fr; gap: 26px; }
}

@media (max-width: 520px) {
  .home-post-cover { aspect-ratio: 16/11; }
  .home-pager { gap: 4px; }
  .home-pager > div { min-width: 0; max-width: 100%; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .home-pager > div::-webkit-scrollbar { display: none; }
  .pager-number, .pager-ellipsis { min-width: 30px; padding: 0 6px; }
  .pager-step { min-width: auto; padding: 0 2px; white-space: nowrap; }
  .archive-search { flex-direction: column; }
  .archive-search button { min-height: 42px; }
  .about-grid { grid-template-columns: 1fr; }
  .avatar-frame { max-width: 150px; }
  .moment { grid-template-columns: 1fr; gap: 5px; }
  .topic-article-row { grid-template-columns: 38px 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.subscription-status button{padding:7px 10px;border:0;border-radius:6px;background:#477b5d;color:#fff;cursor:pointer}
.subscribe-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important}
.subscription-status{display:grid;gap:18px;max-width:680px;margin:40px auto;padding:28px;border:1px solid #e5e9e6;border-radius:12px;background:#fff}
.subscription-status label{display:grid;gap:7px}
.subscription-status input{width:100%;padding:10px;border:1px solid #d7ddd9;border-radius:7px}
.subscription-status button{border-radius:7px}
