/* ============================================================
   闲聊区专属样式 — 夜晚的独白 · 时间线布局
   ============================================================ */

/* ---- 容器 ---- */
.qwq-category-chat {
  width: min(800px, calc(100vw - 32px));
  margin: 0 auto 80px;
}

/* ---- 月相 ---- */
.qwq-cat-moon {
  width: 100px; height: 100px;
  margin: 0 auto 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--qwq-moon), var(--qwq-lavender));
  box-shadow: 0 0 40px rgba(180,167,214,0.25);
  animation: moonGlow 4s ease-in-out infinite, heroFloat 6s ease-in-out infinite;
  position: relative;
}
.qwq-cat-moon::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 48%; height: 100%;
  border-radius: 50%;
  background: var(--qwq-bg);
  transform: translateX(25%);
}

/* ---- Hero ---- */
.qwq-cat-hero {
  padding: 80px 0 60px;
  text-align: center;
}
.qwq-cat-hero-inner {
  max-width: 640px; margin: 0 auto;
}

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

.qwq-cat-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--qwq-lavender); opacity: 0.6;
  margin-bottom: 16px;
  border: 1px solid rgba(180,167,214,0.25);
  padding: 4px 14px; border-radius: 999px;
}

.qwq-cat-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; margin: 0 0 12px;
  background: linear-gradient(135deg, var(--qwq-moon), var(--qwq-lavender), var(--qwq-midnight));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.qwq-cat-jp {
  font-size: 1rem; color: var(--qwq-jp-text);
  font-style: italic; margin: 0 0 20px; opacity: 0.85;
}

.qwq-cat-desc {
  font-size: 0.95rem; color: var(--qwq-muted);
  line-height: 1.9; margin: 0 0 30px;
}

/* ---- 统计 ---- */
.qwq-cat-stats { margin-top: 20px; }
.qwq-cat-stat {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 16px 32px;
  background: rgba(8,13,28,0.38);
  border: 1px solid var(--qwq-border);
  border-radius: 16px;
}
.qwq-stat-num {
  font-size: 2rem; font-weight: 700;
  color: var(--qwq-lavender);
}
.qwq-stat-label {
  font-size: 0.78rem; color: var(--qwq-mist); margin-top: 4px;
}

/* ============================================
   时间线
   ============================================ */
.qwq-chat-timeline {
  position: relative;
  padding: 20px 0;
}

/* 单条记录 */
.qwq-chat-entry {
  display: flex; gap: 24px;
  margin-bottom: 16px;
  position: relative;
}

.qwq-scroll-fade {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.qwq-scroll-fade.visible {
  opacity: 1; transform: translateY(0);
}

/* ---- 时间线节点 ---- */
.qwq-chat-timeline-node {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; width: 32px;
  padding-top: 28px;
}

.qwq-chat-node-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--qwq-lavender);
  border: 2px solid rgba(180,167,214,0.4);
  box-shadow: 0 0 8px rgba(180,167,214,0.3);
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.qwq-chat-entry:hover .qwq-chat-node-dot {
  transform: scale(1.4);
  box-shadow: 0 0 16px rgba(180,167,214,0.6);
}

.qwq-chat-node-line {
  width: 1px;
  flex: 1; min-height: 20px;
  background: linear-gradient(180deg, rgba(180,167,214,0.3), rgba(180,167,214,0.05));
  margin-top: 8px;
}

/* ---- 内容卡片 ---- */
.qwq-chat-card {
  flex: 1; min-width: 0;
}

.qwq-chat-card-link {
  display: block;
  padding: 24px 28px;
  background: rgba(8,13,28,0.32);
  border: 1px solid var(--qwq-border);
  border-radius: 16px;
  transition: all 0.4s ease;
  text-decoration: none;
}

.qwq-chat-card-link:hover {
  border-color: rgba(180,167,214,0.3);
  background: rgba(180,167,214,0.05);
  box-shadow: 0 8px 32px rgba(180,167,214,0.12);
  transform: translateX(4px);
}

/* 顶部信息条 */
.qwq-chat-card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}

.qwq-chat-meta {
  display: flex; align-items: center; gap: 12px;
}

.qwq-chat-meta time {
  font-size: 0.78rem; color: var(--qwq-mist); opacity: 0.7;
}

.qwq-chat-time {
  font-size: 0.72rem; color: var(--qwq-lavender); opacity: 0.5;
  font-family: 'Courier New', monospace;
}

.qwq-chat-mood {
  font-size: 0.72rem; color: var(--qwq-lavender); opacity: 0.6;
  padding: 3px 12px;
  border: 1px solid rgba(180,167,214,0.15);
  border-radius: 999px;
  transition: all 0.4s ease;
}

.qwq-chat-card-link:hover .qwq-chat-mood {
  opacity: 0.8; border-color: rgba(180,167,214,0.35);
}

/* 标题 */
.qwq-chat-title {
  font-size: 1.15rem; font-weight: 700; color: #fff;
  margin: 0 0 10px; line-height: 1.4;
  transition: color 0.3s ease;
}

.qwq-chat-card-link:hover .qwq-chat-title {
  color: var(--qwq-moon);
}

/* 摘要 */
.qwq-chat-excerpt {
  font-size: 0.88rem; color: var(--qwq-muted);
  line-height: 1.75; margin: 0 0 14px;
}

/* 底部 */
.qwq-chat-card-bottom {
  display: flex; align-items: center; justify-content: flex-end;
}

.qwq-chat-read-more {
  font-size: 0.8rem; color: var(--qwq-lavender); opacity: 0.5;
  transition: all 0.3s ease;
}

.qwq-chat-card-link:hover .qwq-chat-read-more {
  opacity: 0.8; transform: translateX(4px);
}

/* ============================================
   分页
   ============================================ */
.qwq-pagination {
  margin-top: 48px; text-align: center;
}

.qwq-pagination .nav-links {
  display: inline-flex; gap: 8px; align-items: center;
}

.qwq-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 12px;
  font-size: 0.85rem; color: var(--qwq-muted);
  background: rgba(8,13,28,0.32);
  border: 1px solid var(--qwq-border);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.qwq-pagination .page-numbers.current {
  background: linear-gradient(135deg, var(--qwq-midnight), var(--qwq-lavender));
  border-color: var(--qwq-lavender);
  color: #fff; font-weight: 600;
}

.qwq-pagination .page-numbers:hover:not(.current) {
  border-color: var(--qwq-lavender);
  color: #fff;
}

/* ---- 空状态 ---- */
.qwq-empty-state {
  text-align: center; padding: 80px 20px;
}
.qwq-empty-jp {
  font-size: 1.1rem; color: var(--qwq-jp-text);
  font-style: italic; margin: 0 0 12px;
}
.qwq-empty-cn {
  font-size: 0.9rem; color: var(--qwq-muted); margin: 0;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 768px) {
  .qwq-category-chat {
    width: calc(100vw - 24px);
  }

  .qwq-cat-hero { padding: 48px 0 40px; }
  .qwq-cat-moon { width: 70px; height: 70px; margin-bottom: 28px; }
  .qwq-cat-hero h1 { font-size: 1.8rem; }

  .qwq-chat-entry { gap: 14px; }
  .qwq-chat-timeline-node { width: 24px; padding-top: 24px; }
  
  .qwq-chat-card-link { padding: 20px; }
  .qwq-chat-card-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .qwq-chat-title { font-size: 1.05rem; }
}
