/**
 * Page Content 加载样式
 * 包含骨架屏、加载状态、错误状态等样式
 */

/* 骨架屏动画 */
@keyframes skeleton-loading {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* 页面标题骨架屏 */
.page-title .skeleton-title {
  background: linear-gradient(90deg, #eee 8%, #ddd 18%, #eee 33%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite linear;
  border-radius: 4px;
  height: 36px;
  width: 60%;
  display: inline-block;
}

/* 骨架屏基础样式 */
.entry-content.loading-state {
  opacity: 1;
  transition: opacity 0.3s ease;
  min-height: 400px;
}

.skeleton-container {
  padding: 20px 0;
}

.skeleton-paragraph,
.skeleton-image {
  background: linear-gradient(90deg, #eee 8%, #ddd 18%, #eee 33%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite linear;
  border-radius: 4px;
  margin-bottom: 20px;
}

.skeleton-paragraph {
  width: 100%;
  height: 16px;
}

.skeleton-paragraph:nth-child(1) {
  width: 90%;
}

.skeleton-paragraph:nth-child(2) {
  width: 95%;
}

.skeleton-paragraph:nth-child(3) {
  width: 85%;
}

.skeleton-image {
  width: 100%;
  height: 250px;
  margin: 30px 0;
}

/* 错误状态 */
.entry-content .page-error {
  width: 100%;
  padding: 50px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f8f8;
}

.entry-content .error-message {
  text-align: center;
  padding: 30px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 80%;
}

.entry-content .error-message p {
  margin-bottom: 20px;
  color: #666;
  font-size: 16px;
}

.entry-content .retry-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}

.entry-content .retry-button:hover {
  background-color: #0069d9;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .skeleton-image {
    height: 200px;
  }
  
  .page-title .skeleton-title {
    width: 80%;
  }
}

@media (max-width: 480px) {
  .skeleton-image {
    height: 150px;
  }
  
  .page-title .skeleton-title {
    width: 90%;
  }
}