/* 
 * Feeds Page Styles - 友链动态页面样式
 * Version: 3.0 (重写版)
 * 
 * 基于 links.css 风格统一重构
 * 保持与友情链接页面的视觉一致性
 */

/* ============================================
   1. 基础重置
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ============================================
   2. 页面容器(与 links.css 保持一致)
   ============================================ */
.feeds-page {
  max-width: var(--container-width); /* 使用 CSS 变量: 1280px */
  /* 顶部留白统一由 header 的 --header-content-gap 控制，这里取消顶部外边距 */
  margin: 0 auto 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* ============================================
   3. Hero 区域（保持与 links 一致的边框和背景）
   ============================================ */
.feeds-hero {
  position: relative;
  padding: 48px 0;
  height: 450px;
  min-height: 450px;
  background: url("../../../static/images/banner/feeds.webp") center/cover
    no-repeat;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 32px;
  overflow: hidden;
}

[data-theme="dark"] .feeds-hero {
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)),
    url("../../../static/images/banner/feeds.webp") center/cover no-repeat;
}

.feeds-hero .hero-container {
  position: relative;
  z-index: 1;
  padding: 0 26px;
  max-width: 100%;
  margin: 0 auto;
}

.feeds-hero .hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  align-items: center; /* 改为垂直居中 */
  height: 100%; /* 占满父容器高度 */
}

/* 左侧内容区 */
.hero-left,
.hero-content {
  position: relative;
  min-height: 140px;
}

/* Hero 内容 */
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  /* 为固定标题预留空间 */
  padding-top: 72px;
  padding-left: 0;
}

.feeds-hero .page-title {
  position: absolute;
  top: -10px;
  left: 25px;
  margin: 0;
  font-size: 2rem;
  font-weight: 500;
  color: #ffffff;
  font-family: "KuaiKanShiJieTi", sans-serif;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.feeds-hero .page-title i {
  font-size: 2rem;
}

.hero-text {
  margin-top: 12px;
  margin-bottom: 12px;
  color: #ffffff;
  font-family: "Source Han Serif CN", var(--font-chinese);
  font-size: 0.9rem; /* 减小字号以适配更多内容 */
  font-weight: 500;
  line-height: 1.6; /* 减小行高以节省空间 */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.8),
    0 4px 12px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.4);
  padding: 12px 16px; /* 减小内边距以节省空间 */
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
  backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-height: calc(100% - 100px); /* 限制最大高度，为按钮和统计面板留出空间 */
  overflow-y: auto; /* 允许滚动 */
  /* 自定义滚动条 */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.hero-text::-webkit-scrollbar {
  width: 4px;
}
.hero-text::-webkit-scrollbar-track {
  background: transparent;
}
.hero-text::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}
.hero-text::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero-text p {
  margin: 0 0 10px; /* 减小段落间距 */
}
.hero-text p:last-child {
  margin-bottom: 0; /* 最后一个段落无底部间距 */
}

/* Hero 按钮区域 - 绝对定位到左下角 */
.hero-actions {
  position: absolute;
  bottom: 16px; /* 距离底部 16px */
  left: 26px; /* 距离左侧 26px，与容器 padding 对齐 */
  display: flex;
  justify-content: flex-start; /* 左对齐 */
  align-items: center;
  gap: 18px; /* 与 Links 页面保持一致 */
  z-index: 10;
}

/* ============================================
   4. 统计卡片（与 links 页面站点卡片风格一致）
   ============================================ */
.feeds-info-card {
  /* 基础视觉已全局统一，仅保留高度 */
  height: fit-content;
  width: 380px;
  flex-shrink: 0;
}

.feeds-info-card .card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 16px;
}

.feeds-info-card .card-header i {
  font-size: 1.25rem;
  color: #4d906d;
}

.feeds-info-card .card-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
}

/* 统计摘要 */
.feeds-info-card .stats-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feeds-info-card .summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  min-height: 60px;
  background: rgba(59, 130, 246, 0.06);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.feeds-info-card .summary-item:hover {
  background: rgba(59, 130, 246, 0.12);
  transform: translateX(4px);
}

.feeds-info-card .summary-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 8px;
  margin-right: 12px;
  flex-shrink: 0;
}

.feeds-info-card .summary-icon i {
  font-size: 1rem;
  color: #4d906d;
}

.feeds-info-card .summary-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feeds-info-card .summary-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.feeds-info-card .summary-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  transition: all 0.3s ease;
}

/* 分隔线 */
.feeds-info-card .card-divider {
  height: 1px;
  margin: 16px 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

/* 最后更新信息 */
.last-update-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.last-update-info i {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.last-update-info .btn-refresh-inline {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.last-update-info .btn-refresh-inline i {
  font-size: 14px;
}

.last-update-info .btn-refresh-inline:hover {
  color: #4d906d;
}

.last-update-info .btn-refresh-inline:hover i {
  animation: spin 1s linear infinite;
}

.last-update-info .btn-refresh-inline:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.last-update-info .btn-refresh-inline.is-refreshing i {
  animation: spin 1s linear infinite;
}

/* ============================================
   5. 按钮样式
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.btn.primary {
  color: var(--color-text-inverse);
  background: #4d906d;
  border-color: #4d906d;
}

.btn.primary:hover {
  background: #001d6b;
  border-color: #001d6b;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   6. 友链动态列表区域
   ============================================ */
.feeds-section {
  padding: 0 20px 40px;
}

.feeds-container {
  max-width: var(--container-width); /* 使用 CSS 变量: 1280px */
  margin: 0 auto; /* 居中对齐 */
}

/* 操作栏（与 links 页面保持一致） */
.feeds-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

/* 布局切换 */
.feeds-layout-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  background: #f3f4f6;
  border-radius: 8px;
}

.feeds-layout-toggle .lt-btn {
  padding: 6px 10px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.feeds-layout-toggle .lt-btn:last-child {
  margin-right: 0;
}

.feeds-layout-toggle .lt-btn i {
  font-size: 14px;
}

.feeds-layout-toggle .lt-btn:hover {
  background: #ffffff;
  color: #4d906d;
}

.feeds-layout-toggle .lt-btn[aria-pressed="true"] {
  background: #ffffff;
  color: #4d906d;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 时间轴网格 */
.feeds-timeline {
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
}

.feeds-timeline.layout-3 {
  grid-template-columns: repeat(3, 1fr);
}

.feeds-timeline.layout-2 {
  grid-template-columns: repeat(2, 1fr);
}

.feeds-timeline.layout-1 {
  grid-template-columns: 1fr;
}

/* ============================================
   7. 友链动态卡片
   ============================================ */
.feed-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.feed-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  border-color: #4d906d;
}

.feed-item-container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 标题 */
.feed-title {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

.feed-title a {
  color: #0f172a;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2; /* 标准属性补充 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-title a:hover {
  color: #4d906d;
}

/* 摘要 */
.feed-excerpt {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3; /* 标准属性补充 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 底部信息 */
.feed-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.feed-source {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.source-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: #f3f4f6;
}

.avatar-fallback {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.source-name {
  color: #6b7280;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-name:hover {
  color: #4d906d;
}

.feed-time {
  color: #9ca3af;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* 空状态 */
.no-feeds {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}

.no-feeds i {
  font-size: 3rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

/* ============================================
   8. 加载动画
   ============================================ */
.feeds-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.loader-rect {
  display: flex;
  gap: 4px;
  height: 32px;
}

.loader-rect > div {
  width: 4px;
  height: 100%;
  background: #4d906d;
  border-radius: 2px;
  animation: rect-anim 0.9s ease-in-out infinite;
}

.loader-rect > div:nth-child(1) {
  animation-delay: 0s;
}
.loader-rect > div:nth-child(2) {
  animation-delay: 0.05s;
}
.loader-rect > div:nth-child(3) {
  animation-delay: 0.1s;
}
.loader-rect > div:nth-child(4) {
  animation-delay: 0.15s;
}
.loader-rect > div:nth-child(5) {
  animation-delay: 0.2s;
}

@keyframes rect-anim {
  0%,
  100% {
    transform: scaleY(0.75);
  }
  50% {
    transform: scaleY(1.25);
  }
}

/* ============================================
   9. 响应式设计
   ============================================ */
@media (max-width: 1200px) {
  .feeds-hero .hero-inner {
    grid-template-columns: 1fr;
  }

  .feeds-timeline.layout-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .feeds-timeline.layout-3,
  .feeds-timeline.layout-2 {
    grid-template-columns: 1fr;
  }

  .feeds-hero .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feeds-info-card {
    max-width: none; /* 改为自适应整行宽度 */
    width: 100%;
    margin: 0; /* 去掉居中导致的左右留白 */
  }
}

@media (max-width: 768px) {
  .feeds-page {
    margin: 12px;
    border-radius: 0;
  }

  .feeds-hero {
    padding: 24px 0;
  }

  .feeds-container {
    padding: 0 16px 16px;
  }

  .feeds-timeline {
    gap: 16px;
  }

  .feeds-layout-toggle {
    display: none;
  }

  .feeds-timeline.layout-3,
  .feeds-timeline.layout-2 {
    grid-template-columns: 1fr;
  }

  .feeds-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .feeds-layout-toggle {
    justify-content: center;
  }

  /* 768px 以下保持统计卡片占满一行 */
  .feeds-info-card {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .feeds-hero .page-title {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 0.875rem;
  }

  .feed-item-container {
    padding: 16px;
  }

  .feeds-hero .hero-inner {
    padding: 0 16px;
  }

  .feeds-section {
    padding: 0 16px 32px;
  }

  .feeds-info-card {
    padding: 16px;
  }
  .feeds-info-card .summary-item {
    padding: 8px 10px;
  }
}

/* ============================================
   10. 深色模式
   ============================================ */
[data-theme="dark"] .feeds-page {
  background: var(--color-background);
  border-color: var(--color-border);
}

[data-theme="dark"] .feeds-hero {
  background: linear-gradient(
    135deg,
    rgba(var(--color-primary-rgb, 1, 102, 204), 0.05) 0%,
    rgba(var(--color-primary-rgb, 1, 102, 204), 0.02) 100%
  );
  border-bottom-color: var(--color-border);
}

[data-theme="dark"] .feeds-hero .page-title {
  color: #3b82f6;
}

[data-theme="dark"] .hero-text {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 1),
    /* 最深阴影 */ 0 2px 8px rgba(0, 0, 0, 0.9),
    /* 深色扩散 */ 0 4px 16px rgba(0, 0, 0, 0.7),
    /* 大范围阴影 */ 0 0 24px rgba(0, 0, 0, 0.5); /* 发光效果 */
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .feeds-info-card {
  background: var(--color-background);
  border-color: var(--color-border);
}

[data-theme="dark"] .feeds-info-card .card-header {
  border-bottom-color: var(--color-border);
}

[data-theme="dark"] .feeds-info-card .card-header h3 {
  color: var(--color-text);
}

[data-theme="dark"] .feeds-info-card .summary-item {
  background: var(--color-background-light);
}

[data-theme="dark"] .feeds-info-card .summary-item:hover {
  background: rgba(var(--color-primary-rgb, 1, 102, 204), 0.1);
}

[data-theme="dark"] .feeds-info-card .summary-icon {
  background: var(--color-background);
}

[data-theme="dark"] .feeds-info-card .summary-value {
  color: var(--color-text);
}

[data-theme="dark"] .feeds-info-card .card-divider {
  border-top-color: var(--color-border);
}

[data-theme="dark"] .btn {
  background: var(--color-background);
  border-color: var(--color-border);
  color: var(--color-text);
}

[data-theme="dark"] .btn:hover {
  background: var(--color-background-light);
}

[data-theme="dark"] .btn.primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}

[data-theme="dark"] .btn.primary:hover {
  background: #001d6b;
  border-color: #001d6b;
}

[data-theme="dark"] .feeds-layout-toggle {
  background: var(--color-background-light);
}

[data-theme="dark"] .feeds-layout-toggle .lt-btn {
  color: var(--color-text-light);
}

[data-theme="dark"] .feeds-layout-toggle .lt-btn:hover {
  background: var(--color-background);
  color: var(--color-primary);
}

[data-theme="dark"] .feeds-layout-toggle .lt-btn[aria-pressed="true"] {
  background: var(--color-background);
  color: var(--color-primary);
}

[data-theme="dark"] .feed-item {
  background: var(--color-background);
  border-color: var(--color-border);
}

[data-theme="dark"] .feed-item:hover {
  border-color: var(--color-primary);
}

[data-theme="dark"] .feed-title a {
  color: var(--color-text);
}

[data-theme="dark"] .feed-title a:hover {
  color: var(--color-primary);
}

[data-theme="dark"] .feed-excerpt {
  color: var(--color-text-light);
}

[data-theme="dark"] .feed-footer {
  border-top-color: var(--color-border);
}

[data-theme="dark"] .source-avatar,
[data-theme="dark"] .avatar-fallback {
  background: var(--color-background-light);
}

[data-theme="dark"] .source-name {
  color: var(--color-text-light);
}

[data-theme="dark"] .source-name:hover {
  color: var(--color-primary);
}

[data-theme="dark"] .no-feeds {
  color: var(--color-text-light);
}

[data-theme="dark"] .loader-rect > div {
  background: var(--color-primary);
}

/* ============================================
   7. 加载更多按钮
   ============================================ */
.load-more-btn {
  display: block;
  margin: 40px auto 20px;
  padding: 12px 32px;
  background: #ffffff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb, 1, 102, 204), 0.1);
}

.load-more-btn:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(var(--color-primary-rgb, 1, 102, 204), 0.2);
}

.load-more-btn:active {
  transform: translateY(0);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.load-more-btn i {
  margin-right: 8px;
  font-size: 0.9em;
}

/* 加载中状态 */
.load-more-btn .fa-spinner {
  animation: spin 1s linear infinite;
}

/* 深色模式 */
[data-theme="dark"] .load-more-btn {
  background: var(--color-background);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

[data-theme="dark"] .load-more-btn:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .load-more-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}

/* ============================================
   11. 与 JS 结构的选择器映射与补充样式
   - 适配 #feedsActions / #feedsTimeline 等 ID 选择器
   - 新增无数据提示、中心加载器、手动加载按钮、骨架屏
   ============================================ */

/* 统一缺失的旋转动画（供刷新/加载中图标使用） */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 操作栏（ID 映射） */
#feedsActions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

/* 时间轴容器（ID 映射） */
#feedsTimeline {
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
}
#feedsTimeline.layout-3 {
  grid-template-columns: repeat(3, 1fr);
}
#feedsTimeline.layout-2 {
  grid-template-columns: repeat(2, 1fr);
}
#feedsTimeline.layout-1 {
  grid-template-columns: 1fr;
}

/* 无数据/网络较慢的简洁提示块 */
.no-feeds-message {
  text-align: center;
  padding: 48px 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #6b7280;
}
.no-feeds-message p {
  margin: 0 0 12px;
}

/* 按钮别名，兼容 HTML 中的 btn-primary */
.btn.btn-primary {
  color: var(--color-text-inverse);
  background: #4d906d;
  border-color: #4d906d;
}
.btn.btn-primary:hover {
  background: #3a6f54;
  border-color: #3a6f54;
}

/* 手动加载更多（与 .load-more-btn 视觉接近） */
.manual-load-container {
  text-align: center;
  padding: 40px 20px;
}
.manual-load-btn {
  padding: 12px 24px;
  background: #4d906d;
  color: var(--color-text-inverse);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.manual-load-btn:hover {
  background: #3a6f54;
}
.manual-load-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.manual-load-btn .fa-spinner {
  animation: spin 1s linear infinite;
}
/* 手动按钮内图标间距 */
.manual-load-btn i {
  margin-right: 8px;
}

/* 中心矩形加载器（覆盖全局，保持居中） */
.feeds-center-loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
  padding: 40px 0 32px;
}
.feeds-center-loader .loader-rect {
  margin-bottom: 20px;
}
.feeds-center-loader p {
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  text-align: center;
}

/* 骨架屏（与 JS 结构匹配） */
.skeleton-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}
.skeleton-title {
  height: 20px;
  background: #e2e8f0;
  border-radius: 4px;
  margin-bottom: 12px;
  width: 75%;
}
.skeleton-desc {
  height: 16px;
  background: #e2e8f0;
  border-radius: 4px;
  margin-bottom: 8px;
  width: 100%;
}
.skeleton-desc:last-of-type {
  width: 60%;
  margin-bottom: 16px;
}
.skeleton-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}
.skeleton-avatar {
  width: 24px;
  height: 24px;
  background: #e2e8f0;
  border-radius: 50%;
}
.skeleton-source {
  height: 14px;
  background: #e2e8f0;
  border-radius: 4px;
  width: 120px;
}

/* 深色模式适配（新增元素） */
[data-theme="dark"] #feedsActions {
  border-bottom-color: var(--color-border);
}
[data-theme="dark"] .no-feeds-message {
  background: var(--color-background);
  border-color: var(--color-border);
  color: var(--color-text-light);
}
[data-theme="dark"] .btn.btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
[data-theme="dark"] .btn.btn-primary:hover {
  background: #001d6b;
  border-color: #001d6b;
}
[data-theme="dark"] .manual-load-btn {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
[data-theme="dark"] .manual-load-btn:hover {
  background: #001d6b;
}
[data-theme="dark"] .feeds-center-loader {
  background: rgba(0, 0, 0, 0.92);
  color: var(--color-text-inverse);
}
[data-theme="dark"] .feeds-center-loader p {
  color: #93c5fd;
}
[data-theme="dark"] .skeleton-item {
  background: var(--color-background);
  border-color: var(--color-border);
}
[data-theme="dark"] .skeleton-title,
[data-theme="dark"] .skeleton-desc,
[data-theme="dark"] .skeleton-avatar,
[data-theme="dark"] .skeleton-source {
  background: var(--color-background-light);
}

/* 统计卡片错误态 */
.stats-error {
  text-align: center;
  padding: 30px 20px;
}
.stats-error i {
  color: #ef4444;
  font-size: 24px;
  margin-bottom: 12px;
  display: block;
}
.stats-error p {
  margin: 0;
  color: #ef4444;
  font-size: 14px;
}
[data-theme="dark"] .stats-error i {
  color: #f87171;
}
[data-theme="dark"] .stats-error p {
  color: #fca5a5;
}

/* 响应式映射（ID 下同样生效） */
@media (max-width: 1200px) {
  #feedsTimeline.layout-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  #feedsTimeline.layout-3,
  #feedsTimeline.layout-2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  #feedsActions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  #feedsTimeline {
    gap: 16px;
  }
}

/* ============================================
   统计卡片样式 (Feeds Specific)
   ============================================ */
.feeds-info-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  position: relative;
}

.feeds-info-card .card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.feeds-info-card .card-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Summary items - 使用与 About 相同的结构 */
.feeds-info-card .summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
  position: relative;
}

.feeds-info-card .summary-item:hover {
  background: #f1f5f9;
  transform: translateX(4px);
}

.feeds-info-card .summary-item:focus-visible {
  outline: 2px solid #64748b;
  outline-offset: 2px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .feeds-info-card .summary-item {
    transition: none;
  }
}

/* Text styling - 直接在 summary-content 下 */
.feeds-info-card .summary-content .summary-label {
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
  color: #6b7280;
  font-weight: 400;
}

.feeds-info-card .summary-content .summary-value {
  font-weight: 700;
  font-size: 1.25rem;
  color: #1f2937;
}

/* Responsive padding */
@media (max-width: 768px) {
  .feeds-info-card {
    padding: 16px 18px;
  }
  .feeds-info-card .summary-item {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .feeds-info-card {
    padding: 14px 16px;
  }
  .feeds-info-card .summary-item {
    padding: 8px 10px;
  }
}

/* Dark mode - Feeds */
[data-theme="dark"] .feeds-info-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .feeds-info-card .summary-item {
  background: #24324a;
}

[data-theme="dark"] .feeds-info-card .summary-item:hover {
  background: #2e415d;
}

[data-theme="dark"] .feeds-info-card .summary-item:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

[data-theme="dark"] .feeds-info-card .summary-content .summary-label {
  color: #9ca3af;
}

[data-theme="dark"] .feeds-info-card .summary-content .summary-value {
  color: #f1f5f9;
}

/* 移动端 Hero 简化 - 只显示背景图和标题 */
@media (max-width: 768px) {
  /* 隐藏订阅状态卡片 */
  .feeds-hero-stats,
  .feeds-status-cards {
    display: none;
  }

  /* 隐藏副标题/描述 */
  .feeds-hero-subtitle,
  .feeds-hero-description {
    display: none;
  }

  /* 简化 Hero 区域 */
  .feeds-hero {
    min-height: 180px;
    padding: 20px 0;
  }

  /* 标题居中 */
  .feeds-hero .page-title,
  .feeds-hero h1 {
    text-align: center;
    margin: 0 auto;
    padding: 0 16px;
  }

  .feeds-hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
  }
}

/* 移动端 Hero 简化 - 只显示背景图和标题（更新版） */
@media (max-width: 768px) {
  .feeds-hero {
    min-height: 180px !important;
    padding: 20px 0 !important;
  }

  /* 隐藏所有介绍文字和统计卡片 */
  .feeds-hero .hero-text,
  .feeds-hero .intro-main,
  .feeds-hero .intro-sub,
  .feeds-hero .intro-detail,
  .feeds-hero .intro-footer,
  .feeds-hero .hero-stats,
  .feeds-hero .stat-card {
    display: none !important;
  }

  /* Hero 容器简化 */
  .feeds-hero .hero-container {
    padding: 0 16px;
  }

  .feeds-hero .hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
  }

  /* 左侧内容区域只显示标题 */
  .feeds-hero .hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
  }

  /* 标题居中 */
  .feeds-hero .page-title {
    margin: 0 auto;
    text-align: center;
    font-size: 1.5rem;
  }
}

/* 移动端 Hero 标题完美居中（增强版 - 垂直+水平） */
@media (max-width: 768px) {
  /* Hero 最外层 - Flexbox 垂直水平居中 */
  .about-hero,
  .vm-hero,
  .feeds-hero,
  .links-hero,
  .archive-hero,
  .posts-list-hero,
  .theme-info-hero {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Hero 容器层 - 继续居中传递 */
  .hero-container,
  .vm-hero-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
  }

  /* Hero 内层 - 确保居中 */
  .hero-inner,
  .vm-hero-inner,
  .hero-grid {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
  }

  /* Hero 内容区 - 最终居中层 */
  .hero-content,
  .vm-hero-content,
  .about-hero-content,
  .hero-title,
  .hero-title-block {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
  }

  /* 标题本身 - 完美居中 */
  .page-title,
  .vm-page-title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 auto !important;
  }
}
