/* ============================================================
   Jz52_qingshan · 极致·青山
   天青色系水墨博客主题样式
   配色变量由后台「主题配置」注入：--qs-paper / --qs-accent
   ============================================================ */ 
:root {
  --qs-paper: #f2f4f5;
  --qs-accent: #5b8fa3;
  --qs-paper-soft: #f8fafb;
  --qs-paper-deep: #e3e9ec;
  --qs-ink: #22303a;
  --qs-ink-soft: #455560;
  --qs-muted: #74828c;
  --qs-faint: #c8d4da;
  --qs-accent-dark: #3f7186;
  --qs-serif: "LXGW WenKai Mono Lite", "HY XinRenWenSong", "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
  --qs-kai: "LXGW WenKai Mono Lite", "Shanhai Jiangnan", "STXingkai", "Xingkai SC", "STKaiti", "KaiTi", "Kaiti SC", serif;
  --qs-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
/* ---------- 基础 ---------- */
*, *:before, *:after {
  box-sizing: border-box;
}
html {
  background: var(--qs-paper);
  scroll-behavior: smooth;
}
body {
  min-width: 320px;
  margin: 0;
  color: var(--qs-ink);
  background-color: var(--qs-paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .7), transparent 30rem), radial-gradient(circle at 88% 46%, rgba(91, 143, 163, .05), transparent 28rem), repeating-linear-gradient(0deg, rgba(34, 48, 58, .02) 0 1px, transparent 1px 4px);
  font-family: var(--qs-serif);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .015em;
  -webkit-text-size-adjust: 100%;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .18s, opacity .18s;
}
a:hover {
  color: var(--qs-accent-dark);
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
html {
  opacity: 0;
  overflow: hidden;
}
::selection {
  background: rgba(91, 143, 163, .22);
  color: var(--qs-ink);
}
:focus-visible {
  outline: 1px solid var(--qs-accent);
  outline-offset: 4px;
}
.qs-container {
  width: min(100% - 48px, 1160px);
  margin: 0 auto;
}
/* ---------- 页头 ---------- */
.qs-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 21px 0 17px;
  background: rgba(242, 244, 245, .88);
  -webkit-backdrop-filter: blur(12px) saturate(.75);
  backdrop-filter: blur(12px) saturate(.75);
}
.qs-header:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(63, 113, 134, .32) 20% 80%, transparent);
}
.qs-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}
.qs-logo a {
  position: relative;
  display: inline-block;
  padding: .2rem .15rem .26rem;
  font-family: var(--qs-serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: .16em;
  color: var(--qs-ink);
}
.qs-logo a:after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 1.2rem;
  height: 2px;
  background: var(--qs-accent);
  box-shadow: -.35rem 1px 0 rgba(91, 143, 163, .45);
}
.qs-logo a:hover {
  color: var(--qs-accent-dark);
}
.qs-logo h1 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}
.qs-logo-img {
  padding: .1rem 0;
}
.qs-logo-img:after {
  display: none;
}
.qs-logo-img img {
  display: block;
  max-height: 40px;
  width: auto;
}
.qs-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: clamp(16px, 2.2vw, 30px);
}
.qs-nav a {
  position: relative;
  display: block;
  padding: .35rem .08rem;
  color: var(--qs-ink-soft);
  font-size: .92rem;
  letter-spacing: .11em;
}
.qs-nav a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 1px;
  background: var(--qs-accent);
  transition: left .18s, right .18s;
}
.qs-nav a:hover:after, .qs-nav a:focus-visible:after {
  left: 12%;
  right: 12%;
}
.qs-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.qs-nav-item.has-sub > a {
  padding-right: 1.3rem;
}
/* 导航小三角（统一方案）：em.dot 由 jQuery 插入 a 之后 sub-menu 之前；
   桌面定位以一级菜单 a 行高中心为基准（li top:50% translateY(-50%)） */
.qs-nav-item > em.dot {
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  z-index: 31;
  width: 14px;
  height: 14px;
  color: var(--qs-muted);
  cursor: pointer;
}
.qs-nav-item > em.dot svg {
  display: block;
  width: 14px;
  height: 14px;
  transition: transform .25s ease;
}
.qs-nav .qs-sub-nav {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  display: none;
  min-width: 9rem;
  padding: .5rem 0;
  background: var(--qs-paper-soft);
  border: 1px solid var(--qs-faint);
  box-shadow: 0 8px 22px rgba(34, 48, 58, .12);
}
.qs-nav .qs-sub-nav a {
  display: block;
  padding: .42rem .95rem;
  white-space: nowrap;
}
.qs-nav .qs-sub-nav a:after {
  display: none;
}
/* 桌面：hover / 键盘聚焦展开子菜单并旋转小三角（仅桌面生效，移动端不受 hover 影响） */
@media (min-width: 721px) {
  .qs-nav-item:hover > .qs-sub-nav, .qs-nav-item:focus-within > .qs-sub-nav {
    display: block;
  }
  .qs-nav-item:hover > em.dot svg, .qs-nav-item:focus-within > em.dot svg {
    transform: rotate(180deg);
  }
}
.qs-header-actions {
  display: flex;
  gap: .4rem;
}
.qs-btn, .qs-nav-close {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  border: 1px solid var(--qs-faint);
  border-radius: 3px;
  background: transparent;
  color: var(--qs-ink-soft);
  cursor: pointer;
  transition: color .18s, border-color .18s, background-color .18s;
}
.qs-btn:hover, .qs-nav-close:hover {
  color: var(--qs-accent-dark);
  border-color: var(--qs-accent);
}
.qs-btn svg, .qs-nav-close svg {
  width: 1.05rem;
  height: 1.05rem;
}
.qs-search-toggle .qs-ico-close {
  display: none;
}
.qs-search-toggle.is-open .qs-ico-search {
  display: none;
}
.qs-search-toggle.is-open .qs-ico-close {
  display: block;
}
.qs-menu-toggle {
  display: none;
}
.qs-nav-close {
  display: none;
}
.qs-search-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-bottom: 1px solid transparent;
  transition: max-height .3s ease, opacity .3s ease, border-color .3s ease;
}
.qs-search-panel.is-open {
  max-height: 160px;
  opacity: 1;
}
.qs-search-form {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.1rem 0 1.3rem;
}
.qs-search-form svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--qs-muted);
  flex: none;
}
.qs-search-form input {
  flex: 1;
  min-width: 0;
  padding: .55rem .2rem;
  border: 0;
  border-bottom: 1px solid var(--qs-faint);
  background: transparent;
  color: var(--qs-ink);
  font-family: var(--qs-serif);
  font-size: 1rem;
  outline: none;
}
.qs-search-form input:focus {
  border-color: var(--qs-accent);
}
.qs-search-form button {
  padding: .45rem 1.1rem;
  border: 1px solid var(--qs-accent);
  border-radius: 3px;
  background: transparent;
  color: var(--qs-accent-dark);
  font-family: var(--qs-serif);
  cursor: pointer;
  transition: background-color .18s, color .18s;
}
.qs-search-form button:hover {
  background: var(--qs-accent-dark);
  color: var(--qs-paper-soft);
}
html.selected {
  opacity: 1;
  overflow: auto;
}
/* ---------- 阅读进度 ---------- */
.qs-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 2px;
  pointer-events: none;
}
.qs-reading-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(91, 143, 163, .35), var(--qs-accent));
  transform: scaleX(0);
  transform-origin: 0;
}
/* ---------- 首页水墨大图 ---------- */
.qs-home-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(480px, 55vw, 660px);
  padding: 0 0 clamp(42px, 7vw, 84px);
  overflow: clip;
}
.qs-home-hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  height: calc(max(1160px, 100vw) / 2.92769);
  margin-left: -50vw;
  background: var(--qs-home-bg, url(images/background.png)) center top / max(1160px, 100vw) auto no-repeat;
}
.qs-home-hero:after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  margin-left: -50vw;
  height: calc(max(1160px, 100vw) / 2.92769);
  background: linear-gradient(180deg, rgba(242, 244, 245, .18), transparent 30%, transparent 62%, var(--qs-paper));
}
.qs-hero-title {
  display: flex;
  margin: 0;
  font-family: var(--qs-serif);
  font-size: clamp(6.4rem, 12vw, 10rem);
  font-weight: 400;
  line-height: .88;
}
.qs-hero-mark {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .34em;
  min-width: 2.2em;
}
.qs-hero-mark em {
  font-family: var(--qs-kai);
  font-style: normal;
  font-weight: 400;
  font-size: .86em;
  line-height: .82;
  color: var(--qs-accent);
  text-shadow: .035em .035em 0 rgba(91, 143, 163, .14);
  transform: translateY(-.04em);
}
.qs-hero-mark small {
  font-family: var(--qs-kai);
  font-size: clamp(1.05rem, 1.7vw, 1.42rem);
  line-height: 1.7;
  letter-spacing: .13em;
  text-align: center;
  white-space: pre-line;
  color: var(--qs-accent);
}
.qs-hero-summary {
  position: absolute;
  bottom: clamp(20px, 4vw, 52px);
  left: max(24px, 50vw - 580px);
  max-width: min(34rem, 100vw - 48px);
  margin: 0;
  padding-left: 1.1rem;
  border-left: 2px solid rgba(91, 143, 163, .62);
  color: var(--qs-ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.85;
}
/* ---------- 页首（分类/标签/搜索等） ---------- */
.qs-main {
  padding: clamp(64px, 8vw, 112px) 0 clamp(84px, 10vw, 132px);
}
.qs-page-head {
  position: relative;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  padding-left: 1.2rem;
}
.qs-page-head:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(var(--qs-accent), transparent);
}
.qs-page-kicker, .qs-kicker {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 1rem;
  color: var(--qs-accent-dark);
  font-size: .92rem;
  letter-spacing: .16em;
}
.qs-kicker:after {
  content: "";
  width: min(12rem, 24vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(91, 143, 163, .55), transparent);
}
.qs-page-head h1 {
  margin: 0;
  font-family: var(--qs-serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .035em;
  color: var(--qs-ink);
}
.qs-page-head .qs-page-desc {
  margin: .8rem 0 0;
  color: var(--qs-muted);
  font-size: .98rem;
  line-height: 1.8;
}
/* ---------- 文章列表 ---------- */
.qs-posts {
  scroll-margin-top: 72px;
  padding-top: clamp(54px, 8vw, 92px);
}
.qs-posts-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: .5rem;
}
.qs-posts-header .qs-kicker {
  margin-bottom: 0;
}
.qs-posts-count {
  margin: 0;
  color: var(--qs-muted);
  font-size: .82rem;
  letter-spacing: .14em;
}
.qs-posts-count strong {
  color: var(--qs-accent-dark);
  font-weight: 400;
}
.qs-post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.qs-post-item {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(220px, 318px);
  gap: clamp(18px, 3vw, 38px);
  padding: clamp(30px, 4.5vw, 52px) 0;
  background: linear-gradient(90deg, transparent, rgba(34, 48, 58, .16) 16% 84%, transparent) bottom / 100% 1px no-repeat;
  transition: transform .22s;
}
.qs-post-item:hover {
  transform: translate(4px);
}
.qs-post-item:last-child {
  background: none;
}
.qs-post-item-nocover {
  grid-template-columns: 54px minmax(0, 1fr);
}
.qs-post-index {
  margin: .32rem 0 0;
  color: var(--qs-accent);
  font-family: var(--qs-mono);
  font-size: .76rem;
  letter-spacing: .08em;
}
.qs-post-index:after {
  content: "";
  display: block;
  width: 1px;
  height: 2.2rem;
  margin: .7rem 0 0 .45em;
  background: linear-gradient(var(--qs-accent), transparent);
  transition: height .26s;
}
.qs-post-item:hover .qs-post-index:after {
  height: 3.4rem;
}
.qs-post-title {
  margin: 0 0 .55rem;
  font-family: var(--qs-serif);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: .035em;
  color: var(--qs-ink);
}
.qs-post-title a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color .18s, background-size .32s;
}
.qs-post-title a:hover {
  color: var(--qs-accent-dark);
  background-size: 100% 1px;
}
.qs-post-pinned {
  display: inline-grid;
  place-items: center;
  width: 1.45em;
  height: 1.45em;
  margin-right: .45em;
  border: 1px solid var(--qs-accent);
  border-radius: 2px;
  color: var(--qs-accent);
  font-size: .5em;
  line-height: 1;
  vertical-align: .35em;
  transform: rotate(-6deg);
}
.qs-post-meta, .qs-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin: 0 0 .75rem;
  color: var(--qs-muted);
  font-size: .82rem;
  letter-spacing: .08em;
}
.qs-post-meta > span {
  white-space: nowrap;
  min-height: 1.55rem;
}
.qs-post-meta > span + span:before {
  content: "｜";
  flex: none;
  margin: 0 .45rem 0 .08rem;
  color: rgba(34, 48, 58, .22);
}
.qs-post-meta-cate a, .qs-post-category-link {
  padding: .08rem .12rem;
  border-bottom: 1px solid rgba(34, 48, 58, .28);
  color: var(--qs-ink-soft);
  line-height: 1.35;
  transition: border-color .18s, color .18s;
}
.qs-post-meta-cate a:hover {
  border-color: var(--qs-ink);
  color: var(--qs-ink);
}
.qs-post-meta-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .38rem;
}
.qs-post-tag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .12rem .46rem;
  border: 1px solid rgba(91, 143, 163, .38);
  border-radius: 2px;
  background: rgba(91, 143, 163, .05);
  color: var(--qs-accent-dark);
  font-size: .72rem;
  letter-spacing: .04em;
  line-height: 1.35;
  transition: border-color .18s, background-color .18s, color .18s;
}
.qs-post-tag-badge:hover {
  border-color: var(--qs-accent-dark);
  background: var(--qs-accent-dark);
  color: var(--qs-paper-soft);
}
.qs-post-excerpt {
  max-width: 42rem;
  margin: 0;
  color: var(--qs-ink-soft);
  font-size: 1.03rem;
  line-height: 1.95;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qs-post-more {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  color: var(--qs-muted);
  font-size: .82rem;
  letter-spacing: .16em;
  opacity: 0;
  transform: translate(-6px);
  transition: color .18s, opacity .26s, transform .26s;
}
.qs-post-more:after {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--qs-accent);
  transition: width .26s;
}
.qs-post-item:hover .qs-post-more, .qs-post-item:focus-within .qs-post-more {
  opacity: 1;
  transform: none;
}
.qs-post-more:hover {
  color: var(--qs-accent-dark);
}
.qs-post-more:hover:after {
  width: 2.6rem;
}
.qs-post-cover {
  margin: 0;
}
.qs-post-cover a {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(34, 48, 58, .1);
  border-radius: 5px;
  background: var(--qs-paper-soft);
  aspect-ratio: 16 / 9;
}
.qs-post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.7) contrast(.96) sepia(.06);
  transition: filter .3s, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.qs-post-cover a:hover img {
  filter: none;
  transform: scale(1.035);
}
.qs-empty {
  color: var(--qs-muted);
}
/* ---------- 分页 ---------- */
.qs-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 4vw, 2.4rem);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  color: var(--qs-muted);
  font-size: .82rem;
  letter-spacing: .08em;
}
.qs-page {
  padding-bottom: .2rem;
}
a.qs-page {
  border-bottom: 1px solid rgba(91, 143, 163, .5);
  color: var(--qs-ink-soft);
}
a.qs-page:hover {
  border-color: var(--qs-accent);
  color: var(--qs-accent-dark);
}
.qs-page-current {
  color: var(--qs-accent);
  font-size: 1.3rem;
}
.qs-page-disabled {
  color: rgba(116, 130, 140, .45);
  cursor: default;
}
/* ---------- 文章页 ---------- */
.qs-article-layout {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 clamp(.5rem, 2vw, 1.5rem);
}
.qs-article {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
}
.qs-article-header {
  position: relative;
  margin-bottom: clamp(2.6rem, 6vw, 4.5rem);
  padding: 0 0 clamp(1.8rem, 4vw, 2.8rem);
  background: linear-gradient(90deg, transparent, rgba(34, 48, 58, .16) 16% 84%, transparent) bottom / 100% 1px no-repeat;
}
.qs-article-header:before {
  content: "";
  display: block;
  width: 2.2rem;
  height: 3px;
  margin-bottom: 1.1rem;
  background: var(--qs-accent);
  box-shadow: .5rem 2px 0 rgba(91, 143, 163, .3);
}
.qs-article-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  color: var(--qs-accent-dark);
  font-size: .88rem;
  letter-spacing: .16em;
}
.qs-article-kicker i {
  font-style: normal;
  color: var(--qs-muted);
}
.qs-article-kicker a:hover {
  color: var(--qs-accent);
}
.qs-article-title {
  max-width: 15em;
  margin: 0 0 1.5rem;
  font-family: var(--qs-serif);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .035em;
  color: var(--qs-ink);
}
.qs-article-meta {
  margin: 0;
  font-size: .82rem;
}
.qs-article-cover {
  margin: 0 0 clamp(2.4rem, 6vw, 4rem);
  overflow: hidden;
  border: 1px solid rgba(34, 48, 58, .1);
  border-radius: 5px;
  background: var(--qs-paper-soft);
}
.qs-article-cover img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
/* 目录 */
.qs-article-toc {
  margin: 0 0 2.4rem;
  padding: .9rem 1.1rem;
  background: rgba(248, 250, 251, .7);
  box-shadow: inset 2px 0 0 rgba(91, 143, 163, .6);
  font-family: var(--qs-serif);
}
.qs-article-toc summary {
  color: var(--qs-accent-dark);
  font-size: .88rem;
  letter-spacing: .2em;
  list-style: none;
  cursor: pointer;
}
.qs-article-toc summary::-webkit-details-marker {
  display: none;
}
.qs-article-toc summary:after {
  content: "展开";
  margin-left: .5rem;
  color: var(--qs-muted);
  font-size: .75rem;
  letter-spacing: .1em;
}
.qs-article-toc[open] summary:after {
  content: "收起";
}
.qs-article-toc ol {
  margin: .8rem 0 0;
  padding: 0;
  list-style: none;
}
.qs-article-toc li {
  line-height: 1.5;
}
.qs-article-toc li + li {
  margin-top: .45rem;
}
.qs-article-toc .toc-level-h3 {
  padding-left: 1em;
  font-size: .92em;
}
.qs-article-toc a {
  display: block;
  position: relative;
  color: var(--qs-ink-soft);
  font-size: .88rem;
  letter-spacing: .04em;
}
.qs-article-toc a:hover {
  color: var(--qs-accent-dark);
}
.qs-article-toc a.is-active {
  color: var(--qs-accent);
}
/* 桌面端（≥1280px）：目录固定于文章右侧 */
@media (min-width: 1280px) {
  .qs-article-toc {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(100% + clamp(2rem, 3vw, 3.5rem));
    width: min(15rem, 50vw - 425px - 5rem);
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
  }
  .qs-article-toc summary {
    display: none;
  }
  .qs-article-toc-inner {
    position: sticky;
    top: 110px;
  }
  .qs-article-toc nav {
    max-height: calc(100vh - 160px);
    padding-left: 1rem;
    border-left: 1px solid rgba(34, 48, 58, .12);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .qs-article-toc nav:before {
    content: "目录";
    display: block;
    margin-bottom: .9rem;
    color: var(--qs-accent-dark);
    font-size: .82rem;
    letter-spacing: .3em;
  }
  .qs-article-toc ol {
    margin: 0;
  }
  .qs-article-toc a.is-active:before {
    content: "";
    position: absolute;
    top: .2em;
    bottom: .2em;
    left: calc(-1rem - 1px);
    width: 2px;
    background: var(--qs-accent);
  }
}
/* 正文 */
.qs-article-content {
  max-width: 100%;
  color: rgba(34, 48, 58, .92);
  font-size: clamp(1.05rem, 1.4vw, 1.13rem);
  line-height: 2.02;
  text-align: justify;
  text-justify: inter-ideograph;
}
.qs-article-content > :first-child {
  margin-top: 0;
}
.qs-article-content > :last-child {
  margin-bottom: 0;
}
.qs-article-content h1, .qs-article-content h2, .qs-article-content h3, .qs-article-content h4, .qs-article-content h5, .qs-article-content h6 {
  position: relative;
  margin: .7em 0 .45em;
  font-family: var(--qs-serif);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: .035em;
  color: var(--qs-ink);
  scroll-margin-top: 96px;
}
.qs-article-content h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}
.qs-article-content h2 {
  margin-top: 2.2em;
  padding-bottom: .5rem;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  background: linear-gradient(90deg, rgba(91, 143, 163, .45), transparent) bottom left / 8rem 1px no-repeat;
}
.qs-article-content h3 {
  margin-top: 1.8em;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}
.qs-article-content h4 {
  font-size: 1.18rem;
}
.qs-article-content h5, .qs-article-content h6 {
  font-family: var(--qs-serif);
  font-size: 1rem;
}
.qs-article-content h2:before, .qs-article-content h3:before {
  content: "";
  display: inline-block;
  width: .22em;
  height: .22em;
  margin-right: .45em;
  background: var(--qs-accent);
  transform: translateY(-.15em) rotate(8deg);
}
.qs-article-content p, .qs-article-content ul, .qs-article-content ol, .qs-article-content blockquote, .qs-article-content pre, .qs-article-content table {
  margin: 0 0 1.2rem;
}
.qs-article-content ul, .qs-article-content ol {
  padding-left: 1.6rem;
}
.qs-article-content ul {
  list-style: outside;
}
.qs-article-content ol {
  list-style: decimal;
}
.qs-article-content ul ul, .qs-article-content ol ul {
  list-style: circle;
}
.qs-article-content li > ul, .qs-article-content li > ol {
  margin: .35rem 0 0;
}
.qs-article-content li + li {
  margin-top: .35rem;
}
.qs-article-content a {
  color: var(--qs-accent-dark);
  text-decoration: underline;
  text-underline-offset: .18em;
}
.qs-article-content blockquote {
  position: relative;
  margin: 1.8rem 0;
  padding: 1.35rem 1.6rem 1.35rem 2.1rem;
  background: radial-gradient(ellipse at 0 50%, rgba(34, 48, 58, .1), transparent 65%), rgba(248, 250, 251, .65);
  color: var(--qs-ink-soft);
}
.qs-article-content blockquote:before {
  content: "“";
  position: absolute;
  top: 1rem;
  left: .75rem;
  color: var(--qs-accent);
  font-family: var(--qs-serif);
  font-size: 2rem;
  line-height: 1;
}
.qs-article-content code {
  padding: .12rem .35rem;
  border-radius: 2px;
  background: rgba(227, 233, 236, .72);
  color: var(--qs-accent-dark);
  font-family: var(--qs-mono);
  font-size: .9em;
}
.qs-article-content pre {
  padding: 1rem;
  border-radius: 2px;
  background: #2d3135;
  color: #eee9df;
  box-shadow: inset 3px 0 0 var(--qs-accent);
  line-height: 1.65;
  overflow-x: auto;
}
.qs-article-content pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: .9rem;
}
.qs-article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .96rem;
}
.qs-article-content th, .qs-article-content td {
  padding: .6rem .75rem;
  border: 1px solid var(--qs-faint);
  text-align: left;
}
.qs-article-content th {
  background: rgba(227, 233, 236, .68);
  font-weight: 700;
}
.qs-article-content hr {
  height: 1px;
  margin: 2rem 0;
  border: 0;
  background: var(--qs-faint);
}
.qs-article-content img {
  display: block;
  max-width: 100%;
  margin: 1.5rem auto;
  padding: 6px;
  border-radius: 2px;
  background: var(--qs-paper-soft);
  box-shadow: 0 12px 36px rgba(34, 48, 58, .1);
}
.qs-article-content figure {
  margin: 1.5rem 0;
}
.qs-article-content figure img {
  margin: 0 auto;
}
.qs-article-content figcaption {
  margin-top: .25rem;
  color: var(--qs-muted);
  font-size: .85rem;
  line-height: 1.45;
}
/* 代码复制按钮 */
.code-block {
  position: relative;
  margin: 0 0 1.2rem;
}
.code-block pre {
  margin: 0;
}
.code-copy {
  position: absolute;
  top: .5rem;
  right: .5rem;
  padding: .15rem .55rem;
  border: 1px solid rgba(238, 233, 223, .22);
  border-radius: 2px;
  background: rgba(45, 49, 53, .85);
  color: rgba(238, 233, 223, .72);
  font-family: var(--qs-serif);
  font-size: .72rem;
  letter-spacing: .1em;
  cursor: pointer;
  opacity: 0;
  transition: opacity .18s, color .18s, border-color .18s;
}
.code-block:hover .code-copy, .code-copy:focus-visible {
  opacity: 1;
}
.code-copy:hover {
  border-color: var(--qs-accent);
  color: #eee9df;
}
/* 结尾印章 */
.qs-article-end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: clamp(3rem, 7vw, 4.5rem) 0 0;
}
.qs-article-end:before, .qs-article-end:after {
  content: "";
  width: min(6rem, 22vw);
  height: 1px;
}
.qs-article-end:before {
  background: linear-gradient(90deg, transparent, rgba(34, 48, 58, .28));
}
.qs-article-end:after {
  background: linear-gradient(90deg, rgba(34, 48, 58, .28), transparent);
}
.qs-article-end span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--qs-accent);
  border-radius: 2px;
  box-shadow: inset 0 0 0 2px rgba(91, 143, 163, .12);
  color: var(--qs-accent);
  font-family: var(--qs-serif);
  font-size: .95rem;
  transform: rotate(-6deg);
}
/* 上下篇 */
.qs-post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding: 2rem 0 0;
  background: linear-gradient(90deg, transparent, rgba(34, 48, 58, .16) 16% 84%, transparent) top / 100% 1px no-repeat;
}
.qs-post-nav-item {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-width: 0;
  padding: 1rem 1.2rem;
  background: rgba(248, 250, 251, .55);
  transition: background-color .22s, box-shadow .22s;
}
.qs-post-nav-item small {
  color: var(--qs-muted);
  font-size: .78rem;
  letter-spacing: .18em;
}
.qs-post-nav-item span {
  color: var(--qs-ink);
  font-size: 1.05rem;
  line-height: 1.55;
  letter-spacing: .04em;
  text-align: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qs-post-nav-prev:hover {
  box-shadow: inset 2px 0 0 var(--qs-accent);
}
.qs-post-nav-next {
  text-align: right;
  align-items: flex-end;
}
.qs-post-nav-next:hover {
  box-shadow: inset -2px 0 0 var(--qs-accent);
}
a.qs-post-nav-item:hover span {
  color: var(--qs-accent-dark);
}
.qs-post-nav-empty {
  background: none;
}
/* ---------- 评论 ---------- */
.qs-comments {
  max-width: 850px;
  margin: clamp(3.5rem, 8vw, 5rem) auto 0;
  padding: 0 clamp(.5rem, 2vw, 1.5rem);
}
.qs-comment-card {
  margin-top: 1.5rem;
}
.qs-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.qs-comment-title {
  margin: 0;
  font-family: var(--qs-serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--qs-ink);
}
.qs-comment-count {
  margin-left: .4rem;
  color: var(--qs-accent);
  font-size: .85em;
}
.qs-comment-head #cancel-reply,
.qs-comment-submit #cancel-reply {
  color: var(--qs-muted);
  font-size: .82rem;
  vertical-align: middle;
}
.qs-comment-submit #cancel-reply {
  margin-right: .9rem;
}
.qs-comment-head #cancel-reply:hover,
.qs-comment-submit #cancel-reply:hover {
  color: var(--qs-accent-dark);
}
.qs-comment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.qs-comment-item {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 0;
  background: linear-gradient(90deg, rgba(34, 48, 58, .12), transparent) bottom / 100% 1px no-repeat;
}
.qs-comment-item:last-child {
  background: none;
}
.qs-comment-avatar {
  flex: none;
}
.qs-comment-avatar img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--qs-faint);
  background: var(--qs-paper-soft);
}
.qs-comment-main {
  flex: 1;
  min-width: 0;
}
.qs-comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .8rem;
  margin-bottom: .45rem;
  color: var(--qs-muted);
  font-size: .8rem;
}
.qs-comment-name {
  color: var(--qs-ink-soft);
  font-weight: 700;
}
.qs-comment-name a:hover {
  color: var(--qs-accent-dark);
}
.qs-comment-floor {
  color: var(--qs-accent);
  font-family: var(--qs-mono);
  font-size: .75rem;
}
.qs-comment-reply {
  margin-left: auto;
  padding: .1rem .5rem;
  border: 1px solid var(--qs-faint);
  border-radius: 2px;
  color: var(--qs-muted);
  font-size: .78rem;
  transition: color .18s, border-color .18s;
}
.qs-comment-reply:hover {
  color: var(--qs-accent-dark);
  border-color: var(--qs-accent);
}
.qs-comment-quote {
  margin-bottom: .4rem;
  padding: .35rem .6rem;
  border-left: 2px solid var(--qs-faint);
  background: rgba(248, 250, 251, .6);
  color: var(--qs-muted);
  font-size: .85rem;
  line-height: 1.6;
}
.qs-comment-quote span {
  color: var(--qs-accent-dark);
  margin-right: .3rem;
}
.qs-comment-content {
  color: var(--qs-ink);
  font-size: .98rem;
  line-height: 1.9;
}
.qs-comment-children {
  margin: .9rem 0 0;
  padding: 0;
  list-style: none;
}
.qs-comment-item.is-owner .qs-comment-name {
  color: var(--qs-accent);
}
.qs-comments-empty {
  color: var(--qs-muted);
  padding: .4rem 0 1rem;
}
/* 评论表单 */
.qs-comment-form {
  margin-top: 1.4rem;
  padding-top: 1.6rem;
  background: linear-gradient(90deg, transparent, rgba(34, 48, 58, .16) 16% 84%, transparent) top / 100% 1px no-repeat;
}
.qs-comment-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 1.2rem;
}
.qs-comment-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: .9rem;
}
.qs-comment-field label {
  color: var(--qs-muted);
  font-size: .82rem;
  letter-spacing: .08em;
}
.qs-comment-field label i {
  color: var(--qs-accent);
  font-style: normal;
}
.qs-comment-field input, .qs-comment-field textarea {
  padding: .5rem .7rem;
  border: 1px solid var(--qs-faint);
  border-radius: 3px;
  background: var(--qs-paper-soft);
  color: var(--qs-ink);
  font-family: var(--qs-serif);
  font-size: .92rem;
  outline: none;
  transition: border-color .18s;
}
.qs-comment-field input:focus, .qs-comment-field textarea:focus {
  border-color: var(--qs-accent);
}
.qs-comment-field-textarea textarea {
  min-height: 6rem;
  resize: vertical;
}
.qs-comment-captcha {
  width: 90px;
  height: 30px;
  cursor: pointer;
  border: 1px solid var(--qs-faint);
  border-radius: 3px;
}
.qs-comment-submit {
  margin-top: .4rem;
  text-align: right;
}
.qs-btn-primary {
  padding: .5rem 1.4rem;
  border: 1px solid var(--qs-accent);
  border-radius: 3px;
  background: var(--qs-accent);
  color: var(--qs-paper-soft);
  font-family: var(--qs-serif);
  font-size: .92rem;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background-color .18s, color .18s;
}
.qs-btn-primary:hover {
  background: var(--qs-accent-dark);
  border-color: var(--qs-accent-dark);
  color: var(--qs-paper-soft);
}
.qs-btn-ghost {
  padding: .5rem 1.4rem;
  border: 1px solid var(--qs-faint);
  border-radius: 3px;
  background: transparent;
  color: var(--qs-ink-soft);
  font-family: var(--qs-serif);
  font-size: .92rem;
  letter-spacing: .1em;
  cursor: pointer;
  transition: color .18s, border-color .18s;
}
.qs-btn-ghost:hover {
  color: var(--qs-accent-dark);
  border-color: var(--qs-accent);
}
/* ---------- 归档页 ---------- */
.qs-archive-year {
  margin-top: 3.5rem;
}
.qs-archive-year > h2 {
  margin: 0;
  font-family: var(--qs-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--qs-accent-dark);
}
.qs-archive-year > h3 {
  margin: 2rem 0 0;
  font-family: var(--qs-serif);
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--qs-muted);
}
.qs-archive-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.4rem 0;
}
.qs-archive-item .qs-post-title {
  font-size: 1.15rem;
  margin: 0;
}
.qs-archive-item .qs-post-meta {
  margin: 0;
  white-space: nowrap;
}
/* ---------- 404 ---------- */
.qs-404 {
  padding: clamp(3rem, 8vw, 6rem) 0;
  text-align: center;
}
.qs-404-code {
  margin: 0;
  font-family: var(--qs-kai);
  font-size: clamp(6rem, 16vw, 11rem);
  line-height: 1;
  color: var(--qs-accent);
  letter-spacing: .05em;
}
.qs-404-text {
  margin: 1.2rem 0 1.8rem;
  color: var(--qs-muted);
}
.qs-404-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
/* ---------- 页脚 ---------- */
.qs-footer {
  position: relative;
  padding: 2.5rem 0 2rem;
  color: var(--qs-muted);
  font-size: .875rem;
  letter-spacing: .08em;
  text-align: center;
}
.qs-footer:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 48, 58, .22) 24% 76%, transparent);
}
.qs-footer p {
  margin: .25rem 0;
}
.qs-footer p:after {
  content: "";
  display: inline-block;
  width: .48rem;
  height: .48rem;
  margin-left: .6rem;
  border: 1px solid var(--qs-accent);
  transform: rotate(8deg);
}
.qs-footer p:last-child:after {
  display: none;
}
.qs-footer a {
  color: var(--qs-muted);
}
.qs-footer a:hover {
  color: var(--qs-accent-dark);
}
/* ---------- 返回顶部 ---------- */
.qs-back-top {
  position: fixed;
  right: clamp(16px, 3vw, 36px);
  bottom: clamp(16px, 3vw, 36px);
  z-index: 25;
  display: none;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(91, 143, 163, .45);
  border-radius: 2px;
  background: rgba(242, 244, 245, .88);
  color: var(--qs-accent-dark);
  box-shadow: 0 8px 22px rgba(34, 48, 58, .08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color .18s, color .18s;
}
.qs-back-top.is-show {
  display: grid;
}
.qs-back-top:hover {
  background: var(--qs-accent-dark);
  color: var(--qs-paper-soft);
}
.qs-back-top svg {
  width: 1.1rem;
  height: 1.1rem;
}
/* ---------- 移动端导航 ---------- */
.qs-nav-mask {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  background: rgba(34, 48, 58, .35);
}
.qs-nav-mask.is-show {
  display: block;
}
/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .qs-container {
    width: min(100% - 30px, 1160px);
  }
  .qs-header {
    padding: 14px 0 10px;
    background-color: var(--qs-paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .qs-menu-toggle {
    display: grid;
  }
  .qs-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    width: min(78vw, 300px);
    padding: 1rem;
    background: var(--qs-paper-soft);
    border-left: 1px solid var(--qs-faint);
    box-shadow: -12px 0 30px rgba(34, 48, 58, .12);
    transform: translateX(100%);
    transition: transform .26s;
    overflow-y: auto;
  }
  .qs-nav.is-open {
    transform: translateX(0);
  }
  .qs-nav-close {
    display: grid;
  }
  .qs-nav ul {
    flex-direction: column;
    gap: 0;
    margin-top: .6rem;
  }
  .qs-nav a {
    padding: .6rem .2rem;
  }
  .qs-nav-item {
    display: block;
  }
  .qs-nav-item.has-sub > a {
    padding-right: .2rem;
  }
  /* 移动端小三角：top:22px 固定，li 展开变高箭头不动；仅 .on 控制旋转（不受 hover 影响） */
  .qs-nav-item > em.dot {
    top: 22px;
    right: 10px;
  }
  .qs-nav-item.on > em.dot svg {
    transform: rotate(180deg);
  }
  .qs-nav .qs-sub-nav {
    position: static;
    display: none;
    padding: 0 0 .3rem .8rem;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .qs-nav-item.on > .qs-sub-nav {
    display: block;
  }
  .qs-main {
    padding: 54px 0 76px;
  }
  .qs-home-hero {
    align-items: flex-end;
    min-height: 500px;
    padding-bottom: 74px;
  }
  .qs-home-hero:before, .qs-home-hero:after {
    background-position: 58% 0;
    background-size: auto 510px;
    height: 510px;
  }
  .qs-hero-title {
    font-size: clamp(5.8rem, 30vw, 8rem);
  }
  .qs-hero-mark small {
    font-size: 1rem;
  }
  .qs-hero-summary {
    right: 15px;
    left: 15px;
    bottom: 20px;
    max-width: none;
    font-size: 1rem;
  }
  .qs-posts {
    padding-top: 44px;
  }
  .qs-post-item, .qs-post-item-nocover {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 2rem 0;
  }
  .qs-post-item:hover {
    transform: none;
  }
  .qs-post-cover {
    grid-column: 2;
    margin-top: .6rem;
  }
  .qs-post-index:after {
    height: 1.4rem;
  }
  .qs-post-more {
    display: none;
  }
  .qs-article-detail {
    padding: 0;
  }
  .qs-article-content {
    text-align: left;
  }
  .qs-article-content blockquote {
    padding-right: 1rem;
  }
  .qs-article-meta > span + span:before {
    display: none;
  }
  .qs-post-nav {
    grid-template-columns: minmax(0, 1fr);
  }
  .qs-post-nav-empty {
    display: none;
  }
  .qs-comments {
    padding: 0;
  }
  .qs-comment-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .qs-archive-item {
    grid-template-columns: minmax(0, 1fr);
  }
  .qs-archive-item .qs-post-meta {
    margin-top: .45rem;
  }
  .code-copy {
    opacity: 1;
  }
}
@media (max-width: 460px) {
  .qs-logo a {
    font-size: .96rem;
  }
  .qs-home-hero {
    min-height: 470px;
  }
  .qs-hero-title {
    font-size: clamp(4.6rem, 26vw, 6.4rem);
  }
  .qs-post-title {
    font-size: 1.5rem;
  }
  .qs-post-meta {
    gap: .4rem .6rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *:before, *:after {
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}