/* 
 * 随记页面样式
 * 参考图片样式设计
 */

/* 随记内容容器 */
.notes-container {
  padding-top: 100px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  min-height: calc(100vh - 100px);
}

/* 随记列表 */
.notes-list {
  width: 100%;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  padding: 0 20px;
}

/* 随记项目样式 */
.note-item {
  display: contents;
}

/* 随记预览部分 */
.note-preview {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  height: fit-content;
}

.note-preview:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.note-date {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.note-star {
  color: #FFD700;
}

.note-weather {
  color: var(--text-gray);
}

.note-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.note-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-gray);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* 随记内容部分 */
.note-content {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.note-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.note-content-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-dark);
  flex-grow: 1;
}

.note-content-date {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-right: 1rem;
}

.note-content-star {
  color: #FFD700;
}

.note-content-weather {
  color: var(--text-gray);
}

.note-content-divider {
  height: 1px;
  background-color: var(--bg-secondary);
  margin: 1rem 0 2rem;
}

.note-content-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

.note-content-text p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.note-signature {
  display: flex;
  justify-content: flex-end;
  margin-top: 3rem;
}

.note-signature img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.8;
}

/* 激活状态的随记预览 */
.note-preview.active {
  background-color: rgba(52, 152, 219, 0.1);
  border-left: 3px solid var(--primary-color);
}

/* 深色模式适配 */
body.dark-mode .note-preview,
body.dark-mode .note-content {
  background-color: var(--bg-primary);
}

body.dark-mode .note-title,
body.dark-mode .note-content-title {
  color: var(--text-light);
}

body.dark-mode .note-content-text {
  color: var(--text-light);
}

body.dark-mode .note-preview.active {
  background-color: rgba(52, 152, 219, 0.2);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .notes-list {
    grid-template-columns: 1fr;
  }

  .note-content {
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .notes-container {
    padding: 80px 1rem 0;
  }

  .notes-list {
    padding: 0;
  }
}

@media (max-width: 576px) {

  .note-preview,
  .note-content {
    padding: 1rem;
  }

  .note-content-title {
    font-size: 1.5rem;
  }

  .note-content-text {
    font-size: 1rem;
  }
}