/* ===== 骨架屏样式 ===== */
.home-skeleton {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* 暗色主题骨架屏 */
body.dark-theme .home-skeleton {
  background: #1e1e1e;
  border-color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.skeleton-title {
  height: 32px;
  width: 200px;
  background-color: #e5e7eb;
  border-radius: 4px;
  margin-bottom: 24px;
}

body.dark-theme .skeleton-title {
  background-color: #374151;
}

.skeleton-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skeleton-item {
  height: 64px;
  width: 100%;
  background-color: #e5e7eb;
  border-radius: 4px;
}

body.dark-theme .skeleton-item {
  background-color: #374151;
}

.skeleton-buttons {
  margin-top: 32px;
  display: flex;
  gap: 16px;
}

.skeleton-button {
  height: 40px;
  width: 96px;
  background-color: #e5e7eb;
  border-radius: 4px;
}

body.dark-theme .skeleton-button {
  background-color: #374151;
}

/* ===== 错误消息样式 ===== */
.error-message, .loading-message {
  text-align: center;
  padding: 40px 20px;
  margin: 20px 0;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* 暗色主题错误和加载消息 */
body.dark-theme .error-message,
body.dark-theme .loading-message {
  background: #1e1e1e;
  color: #e0e0e0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.error-message {
  background: #fee;
  color: #c33;
  border: 1px solid #fcc;
  transition: all 0.3s ease;
}

/* 暗色主题错误消息 */
body.dark-theme .error-message {
  background: #2d1b1b;
  color: #ff6b6b;
  border-color: #4a2626;
}

.loading-message {
  background: #e3f2fd;
  color: #1976d2;
  border: 1px solid #bbdefb;
  transition: all 0.3s ease;
}

/* 暗色主题加载消息 */
body.dark-theme .loading-message {
  background: #1a2332;
  color: #64b5f6;
  border-color: #2d3748;
}

.error-message h3, .loading-message h3 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.error-message p, .loading-message p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.9;
}

/* ===== 页脚样式 ===== */
footer {
  background: white;
  color: #333;
  padding: 30px 20px;
  text-align: center;
  margin-top: 50px;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* 暗色主题页脚 */
body.dark-theme footer {
  background: #1e1e1e;
  color: #e0e0e0;
  border-top-color: #333;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-link {
  color: #666;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #007bff;
}

/* 暗色主题页脚链接 */
body.dark-theme .footer-link {
  color: #b0b0b0;
}

body.dark-theme .footer-link:hover {
  color: #64b5f6;
}

.footer-text {
  font-size: 0.9rem;
  color: #888;
  transition: color 0.3s ease;
}

/* 暗色主题页脚文本 */
body.dark-theme .footer-text {
  color: #888;
}

/* 包含 cards, pages 的所有样式 */