/* Spark · 思想碰撞 */

.journal-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 100px;
}

.journal-header {
  padding: 16px 4px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.journal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-dark);
  letter-spacing: 0.5px;
}

.journal-subtitle {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.journal-fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-warm) 100%);
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(255, 138, 154, 0.4);
  position: fixed;
  right: 16px;
  bottom: 90px;
  z-index: 50;
  transition: transform 0.2s ease;
}

.journal-fab:active {
  transform: scale(0.92);
}

/* 时间轴 */
.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 138, 154, 0.3) 5%,
    rgba(255, 138, 154, 0.3) 95%,
    transparent 100%);
}

/* 时间分组标签 */
.timeline-group-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-fade);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 20px 0 12px -36px;
  padding-left: 36px;
  position: relative;
}

.timeline-group-label::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-cream);
  border: 2.5px solid var(--accent-coral);
  z-index: 1;
}

/* 帖子卡片 */
.post-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-xl);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  position: relative;
}

.post-card.post-hangzhou {
  border-left: 3px solid var(--accent-coral);
}

.post-card.post-shenyang {
  border-left: 3px solid var(--accent-warm);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.post-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-peach);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}

.post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-meta {
  flex: 1;
  min-width: 0;
}

.post-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dark);
}

.post-side-label {
  font-size: 10px;
  color: var(--ink-fade);
  letter-spacing: 0.5px;
  margin-top: 1px;
}

.post-time {
  font-size: 11px;
  color: var(--ink-fade);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.post-content {
  font-size: 14px;
  color: var(--ink-dark);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 引用块 */
.post-quote {
  background: var(--bg-pink);
  border-left: 3px solid var(--accent-coral);
  padding: 10px 12px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 10px 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  cursor: pointer;
  position: relative;
}

.post-quote-author {
  font-size: 11px;
  color: var(--accent-coral);
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 操作栏 */
.post-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(43, 38, 34, 0.06);
}

.post-action {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-soft);
  transition: background 0.2s ease;
}

.post-action:active {
  background: var(--bg-peach);
}

.post-action.active {
  color: var(--accent-coral);
  font-weight: 600;
}

/* 评论列表 */
.comment-list {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(43, 38, 34, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment {
  display: flex;
  gap: 8px;
}

.comment-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-peach);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  overflow: hidden;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-body {
  flex: 1;
  background: rgba(255, 244, 236, 0.5);
  border-radius: var(--r-md);
  padding: 8px 10px;
}

.comment-meta {
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 2px;
  font-weight: 600;
}

.comment-text {
  font-size: 13px;
  color: var(--ink-dark);
  line-height: 1.5;
  white-space: pre-wrap;
}

.comment-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.comment-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(43, 38, 34, 0.1);
  font-size: 13px;
  font-family: var(--font-cn);
  color: var(--ink-dark);
  transition: border-color 0.2s ease;
}

.comment-input:focus {
  outline: none;
  border-color: var(--accent-coral);
}

.comment-send {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-coral);
  color: white;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.comment-send:disabled {
  opacity: 0.5;
}

/* 引用某条时的提示 */
.quote-target {
  background: var(--bg-pink);
  border-radius: var(--r-md);
  padding: 10px 12px;
  margin: 10px 0;
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.quote-target-text {
  flex: 1;
  line-height: 1.5;
}

.quote-target-remove {
  font-size: 16px;
  color: var(--ink-fade);
  padding: 0 4px;
}

/* 空状态 */
.journal-empty {
  text-align: center;
  padding: 60px 24px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--r-xl);
  border: 1.5px dashed rgba(43, 38, 34, 0.1);
  margin-top: 24px;
}

.journal-empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.journal-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-dark);
  margin-bottom: 8px;
}

.journal-empty-sub {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}