.post-item {
  position: relative;
  transition: all 0.3s ease;
}

.post-item:hover {
  background-color: #f8f9ff;
  border-radius: 4px;
}

/* 移除CSS hover控制，改用JavaScript精确控制 */

.post-preview {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  margin-top: 5px;
  max-width: 600px;
}

.preview-content {
  padding: 20px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #e1e5e9;
  padding-bottom: 10px;
}

.preview-title {
  margin: 0;
  font-size: 18px;
  color: #333;
  flex: 1;
}

.preview-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.preview-close:hover {
  background-color: #f0f0f0;
}

.preview-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.preview-footer {
  text-align: center;
}

.read-full-btn {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.read-full-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.section-title {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #667eea;
  font-weight: 600;
  border-bottom: 1px solid #e1e5e9;
  padding-bottom: 5px;
}

.preview-contribution {
  color: #555;
  line-height: 1.6;
  font-size: 14px;
  max-height: 200px;
  overflow-y: auto;
}

.preview-loading {
  text-align: center;
  color: #666;
  font-style: italic;
}

.preview-error {
  text-align: center;
  color: #e53e3e;
}

.retry-btn {
  background: #e53e3e;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

.retry-btn:hover {
  background: #c53030;
}

/* Slides链接样式 */
.slides-link {
  display: block;
  padding: 8px 12px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 8px 0;
  text-align: center;
}

.slides-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .post-preview {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: none;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .preview-content {
    padding: 15px;
  }
  
  .preview-title {
    font-size: 16px;
  }
}

