#card-moments .item-content {
  padding: 10px 16px 16px;
}
#card-moments .moments-timeline {
  height: 250px;
  min-height: 250px;
}
.moments-timeline {
  position: relative;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
}
.moments-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #e6e6e6;
  border-radius: 1px;
}
.moments-timeline .moment-item {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-bottom: 1px solid #eee;
  padding: 8px 0;
}
.moments-timeline .moment-item:last-child {
  border-bottom: none;
}
.moments-timeline .moment-item-empty {
  visibility: hidden;
  pointer-events: none;
  flex: 1;
  min-height: 0;
  border-bottom: 1px solid #eee;
  padding: 8px 0;
}
.moments-timeline .moment-dot {
  position: absolute;
  left: -16px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #49b1f5;
  border: 2px solid #fff;
  z-index: 1;
}
.moments-timeline .moment-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  padding: 0 4px;
  transition: background 0.15s;
  position: relative;
  overflow: hidden;
}
.moments-timeline .moment-link:hover {
  background: rgba(73,177,245,0.06);
}
.moments-timeline .moment-link:focus-within {
  outline: 2px solid rgba(73,177,245,0.45);
  outline-offset: -2px;
}
.moments-timeline .moment-date {
  display: inline-block;
  width: fit-content;
  font-size: 11px;
  color: #999;
  text-decoration: none;
  margin-bottom: 3px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.moments-timeline .moment-content {
  flex: 1;
  min-height: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #4c4948;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.moments-timeline .moment-content p {
  margin: 0;
  display: inline;
}
.moments-timeline .moment-content a {
  color: #49b1f5;
  text-decoration: none;
}
.moments-timeline .moment-content code {
  background: #f4f4f4;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 88%;
}
.moments-timeline .moment-content ul,
.moments-timeline .moment-content ol {
  display: none;
}
.moments-timeline .moment-img-link {
  color: #e67e22;
  font-size: 12px;
  cursor: pointer;
}
.moments-timeline .moment-img-link:hover {
  text-decoration: underline;
}
.moments-timeline .moment-img-link:focus-visible {
  outline: 2px solid #e67e22;
  outline-offset: 2px;
}
.moments-timeline .moment-readmore {
  position: absolute;
  right: 8px;
  bottom: 2px;
  color: #49b1f5;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  background: linear-gradient(to right, transparent 0%, var(--card-bg, #fff) 40%);
  padding-left: 18px;
  line-height: 1.8;
}
.moments-timeline .moment-readmore:hover {
  text-decoration: underline;
}
.moments-timeline .moment-readmore:focus-visible {
  outline: 2px solid #49b1f5;
  outline-offset: 2px;
}
.moments-more {
  text-align: center;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed #e0e0e0;
}
.moments-more a {
  font-size: 12px;
  color: #49b1f5;
  text-decoration: none;
}
.moments-more a:hover {
  opacity: 0.7;
}
#card-moments.card-light-notes .item-content {
  padding: 12px;
}
.light-notes-list {
  width: 100%;
}
.light-notes-empty {
  margin: 40px 0;
  color: #999;
  text-align: center;
}
.light-note-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.light-note-item .light-note-cover {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: 8px;
  background: #f2f2f2;
}
.light-note-item .light-note-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.light-note-item .light-note-cover:hover img {
  transform: scale(1.04);
}
.light-note-item .light-note-title {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 10px;
  color: var(--font-color, #4c4948);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.light-note-item .light-note-title:hover {
  color: #49b1f5;
}
.light-note-item .light-note-date {
  margin-top: 4px;
  color: #999;
  font-size: 11px;
  line-height: 1.5;
}
.moments-layout-wrap {
  position: relative;
}
body.moments-floating-ready #card-moments {
  display: none;
}
body.moments-floating-ready #floating-moments-area {
  display: block;
}
#floating-moments-area {
  position: absolute;
  top: 40px;
  left: 0;
  width: 310px;
  z-index: 10;
  display: none;
}
#floating-moments-bg {
  background: #f5f7fa;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.floating-moments-panel {
  background: var(--card-bg, #fff);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.floating-moments-panel .floating-moments-header {
  padding: 14px 18px 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--font-color, #4c4948);
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.floating-moments-panel .floating-moments-header i {
  margin-right: 8px;
  color: #49b1f5;
}
.floating-moments-panel .floating-moments-header a {
  color: inherit;
  text-decoration: none;
}
.floating-moments-panel .floating-moments-header a:hover {
  color: #49b1f5;
}
.floating-moments-panel .moments-timeline {
  padding: 0 18px 0;
  height: 500px;
  min-height: 300px;
}
.floating-moments-panel .moments-timeline .moment-item {
  margin-bottom: 0;
  padding: 6px 0;
}
.floating-moments-panel .moments-timeline .moment-dot {
  border-color: var(--card-bg, #fff);
}
.floating-moments-panel .moments-timeline .moment-content {
  font-size: 12.5px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
}
.floating-moments-panel .moments-pager {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 14px;
  font-size: 13px;
  border-top: 1px solid #eee;
}
.floating-moments-panel .moments-pager button {
  appearance: none;
  background: transparent;
  font: inherit;
  color: #49b1f5;
  padding: 2px 8px;
  border: 1px solid #49b1f5;
  border-radius: 3px;
  transition: all 0.15s;
  cursor: pointer;
}
.floating-moments-panel .moments-pager button:hover {
  background: #49b1f5;
  color: #fff;
}
.floating-moments-panel .moments-pager button:focus-visible {
  outline: 2px solid #49b1f5;
  outline-offset: 2px;
}
.floating-moments-panel .moments-pager .moments-page-num {
  color: #999;
}
@media screen and (max-width: 900px) {
  .moments-timeline {
    padding-left: 14px;
  }
  .moments-timeline::before {
    left: 4px;
    top: 6px;
    bottom: 6px;
  }
  .moments-timeline .moment-item {
    padding: 6px 0;
  }
  .moments-timeline .moment-dot {
    left: -12px;
    top: 10px;
    width: 8px;
    height: 8px;
  }
  .moments-timeline .moment-date {
    font-size: 10px;
    margin-bottom: 2px;
  }
  .moments-timeline .moment-content {
    font-size: 11.5px;
    line-height: 1.5;
    -webkit-line-clamp: 3;
  }
  .moments-timeline .moment-img-link {
    font-size: 10px;
  }
  .moments-timeline .moment-readmore {
    font-size: 10px;
  }
  .floating-moments-panel .moments-timeline {
    min-height: 250px;
  }
  .moments-more {
    margin-top: 8px;
    padding-top: 6px;
  }
}
.moment-page-item {
  padding: 20px 0;
}
.moment-page-item .moment-page-title {
  font-size: 20px;
  margin: 0 0 6px;
}
.moment-page-item .moment-page-title a {
  color: var(--font-color, #4c4948);
  text-decoration: none;
}
.moment-page-item .moment-page-title a:hover {
  color: #49b1f5;
}
.moment-page-item .moment-page-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 12px;
}
.moment-page-item .moment-page-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--font-color, #4c4948);
}
.moment-page-item .moment-page-content p {
  margin: 0 0 10px;
}
.moment-page-item .moment-page-content img {
  max-width: 100%;
  border-radius: 6px;
  margin: 8px 0;
}
.moment-page-item .moment-page-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: #49b1f5;
  text-decoration: none;
}
.moment-page-item .moment-page-more:hover {
  opacity: 0.7;
}
.moment-page-divider {
  border: none;
  border-top: 1px dashed #e0e0e0;
  margin: 0;
}
.moment-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
  font-size: 14px;
}
.moment-pagination a {
  color: #49b1f5;
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid #49b1f5;
  border-radius: 4px;
  transition: all 0.2s;
}
.moment-pagination a:hover {
  background: #49b1f5;
  color: #fff;
}
#recent-posts .recent-post-item .post_cover {
  margin: 16px;
  width: calc(42% - 32px);
  height: calc(100% - 32px);
  border-radius: 8px;
}
#recent-posts .recent-post-item .post_cover .post-bg {
  border-radius: 8px;
}
@media screen and (max-width: 768px) {
  #recent-posts .recent-post-item .post_cover {
    margin: 14px;
    width: calc(100% - 28px);
    height: 220px;
  }
}
.moment-pagination .page-info {
  color: #999;
}
