/* ============================================================
   文章页专属样式 - 伤感忧郁版
   ============================================================ */

.qwq-single {
  width: min(900px, calc(100vw - 32px));
  margin: 20px auto 56px;
}

/* ---- 阅读进度条 ---- */
.qwq-reading-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 9999;
}
.qwq-reading-progress {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--qwq-midnight), var(--qwq-lavender), var(--qwq-moon));
  box-shadow: 0 0 8px rgba(180,167,214,0.4);
  transition: width 0.2s ease;
}

/* ---- 文章头图 ---- */
.qwq-single-thumbnail {
  margin-bottom: 24px;
  border-radius: 16px;
  overflow: hidden;
  animation: qwq-fade-in 1s ease-out;
}

.qwq-featured-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.85;
  transition: opacity 0.5s ease;
}

.qwq-featured-image:hover {
  opacity: 1;
}

/* ---- 文章 Hero ---- */
.qwq-single-hero {
  margin-bottom: 24px;
  padding: 40px;
  text-align: center;
}

.qwq-glass-panel {
  background: rgba(8,13,28,0.38);
  border: 1px solid rgba(180,167,214,0.15);
  border-radius: 20px;
  backdrop-filter: blur(12px);
}

.qwq-fade-in {
  animation: qwq-fade-in 0.8s ease-out;
}

.qwq-single-meta {
  font-size: 0.85rem;
  color: var(--qwq-lavender);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.qwq-single-meta a {
  color: var(--qwq-lavender);
  text-decoration: none;
  transition: color 0.3s ease;
}

.qwq-single-meta a:hover {
  color: var(--qwq-moon);
}

.qwq-meta-sep {
  color: rgba(180,167,214,0.4);
}

.qwq-single-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--qwq-midnight), var(--qwq-lavender), var(--qwq-moon));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.qwq-single-reading {
  font-size: 0.85rem;
  color: rgba(228,228,231,0.55);
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* ---- 文章内容 ---- */
.qwq-single-content {
  margin-bottom: 32px;
  padding: 40px;
}

.qwq-slide-in-up {
  animation: qwq-slide-in-up 0.8s ease-out 0.2s both;
}

/* 正文排版 - 精心的阅读体验 */
.qwq-article-body {
  font-size: 1.05rem;
  line-height: 2;
  color: rgba(228,228,231,0.82);
  max-width: 720px;
  margin: 0 auto;
}

.qwq-article-body p {
  margin-bottom: 1.5em;
}

.qwq-article-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 2em 0 0.8em;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(180,167,214,0.2);
}

.qwq-article-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 1.8em 0 0.6em;
}

.qwq-article-body h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(228,228,231,0.9);
  margin: 1.5em 0 0.5em;
}

.qwq-article-body a {
  color: var(--qwq-lavender);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}

.qwq-article-body a:hover {
  color: var(--qwq-moon);
}

.qwq-article-body strong {
  color: #fff;
  font-weight: 700;
}

.qwq-article-body em {
  color: var(--qwq-jp-text);
  font-style: italic;
}

.qwq-article-body blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  border-left: 3px solid var(--qwq-lavender);
  background: rgba(180,167,214,0.05);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: rgba(228,228,231,0.7);
}

.qwq-article-body blockquote p {
  margin: 0;
}

.qwq-article-body ul,
.qwq-article-body ol {
  margin: 1.5em 0;
  padding-left: 1.5em;
}

.qwq-article-body li {
  margin-bottom: 0.5em;
  color: rgba(228,228,231,0.75);
}

.qwq-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2em auto;
  display: block;
  opacity: 0.9;
  transition: opacity 0.5s ease;
}

.qwq-article-body img:hover {
  opacity: 1;
}

.qwq-article-body code {
  padding: 2px 8px;
  background: rgba(180,167,214,0.1);
  border: 1px solid rgba(180,167,214,0.2);
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--qwq-lavender);
}

.qwq-article-body pre {
  margin: 2em 0;
  padding: 20px 24px;
  background: rgba(8,13,28,0.6);
  border: 1px solid rgba(180,167,214,0.2);
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.7;
}

.qwq-article-body pre code {
  padding: 0;
  background: transparent;
  border: none;
  color: rgba(228,228,231,0.8);
}

.qwq-article-body hr {
  margin: 2.5em 0;
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--qwq-lavender), transparent);
  opacity: 0.3;
}

/* ---- 文章标签 ---- */
.qwq-single-tags {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(180,167,214,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.qwq-single-tags a {
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--qwq-lavender);
  background: rgba(180,167,214,0.06);
  border: 1px solid rgba(180,167,214,0.2);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.4s ease;
}

.qwq-single-tags a:hover {
  background: rgba(180,167,214,0.2);
  border-color: var(--qwq-lavender);
  color: #fff;
  transform: translateY(-2px);
}

/* ---- 前后文章导航 ---- */
.qwq-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.qwq-nav-prev a,
.qwq-nav-next a {
  display: block;
  padding: 24px;
  background: rgba(8,13,28,0.38);
  border: 1px solid rgba(180,167,214,0.15);
  border-radius: 14px;
  text-decoration: none;
  color: rgba(228,228,231,0.7);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: all 0.4s ease;
  backdrop-filter: blur(12px);
}

.qwq-nav-prev a:hover,
.qwq-nav-next a:hover {
  border-color: var(--qwq-lavender);
  background: rgba(180,167,214,0.08);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(180,167,214,0.2);
}

.qwq-nav-next {
  text-align: right;
}

/* ---- 评论区域 ---- */
.qwq-comments {
  margin-bottom: 32px;
  padding: 32px;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
  .qwq-single-hero,
  .qwq-single-content,
  .qwq-comments {
    padding: 28px;
  }

  .qwq-single-title {
    font-size: 1.6rem;
  }

  .qwq-article-body {
    font-size: 1rem;
    line-height: 1.85;
  }

  .qwq-article-body h2 {
    font-size: 1.4rem;
  }

  .qwq-post-nav {
    grid-template-columns: 1fr;
  }

  .qwq-nav-next {
    text-align: left;
  }
}
