/* archive.css —— 从 photography.css 拆出（原第 594-919 行）
   摄影归档页
   拆分日期：2026-10-30 */

/* ====== 摄影归档页 ====== */
.photo-archive-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.archive-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(139, 69, 19, 0.1);
}
.archive-header h1 {
  font-size: 2.2rem;
  color: #8B4513;
  margin-bottom: 0.5rem;
}
.archive-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background: rgba(139, 69, 19, 0.05);
  border-radius: 8px;
  min-width: 100px;
}
.stat-number {
  font-size: 1.5rem;
  font-weight: 600;
  color: #8B4513;
}
.stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.3rem;
}

/* 筛选控件 */
.archive-filters {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(139, 69, 19, 0.1);
}
.filter-group { margin-bottom: 1rem; }
.filter-group:last-child { margin-bottom: 0; }
.filter-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-btn {
  padding: 0.5rem 1.2rem;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}
.filter-btn:hover { background: #e9e9e9; }
.filter-btn.active {
  background: #8B4513;
  color: white;
  border-color: #8B4513;
}

/* 年份导航 */
.year-navigation {
  background: rgba(139, 69, 19, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}
.year-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.year-btn {
  padding: 0.5rem 1.5rem;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #666;
  text-decoration: none;
  transition: all 0.2s ease;
}
.year-btn:hover {
  background: #f5f5f5;
  border-color: #8B4513;
  color: #8B4513;
}
.year-btn.active {
  background: #8B4513;
  color: white;
  border-color: #8B4513;
}

/* 瀑布流网格 */
.photo-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.photo-archive-item {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.photo-main-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.photo-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.photo-archive-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}
.photo-archive-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.photo-archive-item:hover img { transform: scale(1.05); }
.photo-meta { padding: 1.2rem; }
.photo-meta h4 {
  min-height: 2.8em;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.photo-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  color: #666;
}
.photo-tags-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0 1.2rem 1.2rem 1.2rem;
  margin-top: auto;
}
.work-tags {
  margin-top: auto;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding-top: 0.8rem;
}
a.tag-warm {
  display: inline-block;
  background: rgba(139, 69, 19, 0.1);
  color: #8B4513;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
  line-height: 1.2;
}
a.tag-warm:hover {
  background: rgba(139, 69, 19, 0.2);
  color: #6b320d;
}

/* 内容类型指示器 */
.content-type-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
}
.type-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
.video-badge {
  background: rgba(220, 53, 69, 0.9);
  color: white;
}
.multi-badge {
  background: rgba(13, 110, 253, 0.9);
  color: white;
}
.default-archive-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
}

/* 视图切换 */


.view-btn:hover { border-color: #8B4513; color: #8B4513; }
.view-btn.active {
  background: #8B4513;
  color: white;
  border-color: #8B4513;
}

/* 列表视图 */
.photo-list-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.photo-list-view .photo-archive-item {
  display: flex;
  align-items: center;
}
.photo-list-view .photo-archive-item img {
  width: 150px;
  height: 100px;
  flex-shrink: 0;
}
.photo-list-view .photo-meta { flex: 1; }

/* 紧凑视图 */
.photo-compact-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.photo-compact-view .photo-archive-item img { height: 150px; }
.photo-compact-view .photo-meta h4 { font-size: 0.9rem; }

/* 归档分页 */
.archive-pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}
.pagination-list {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination-item a,
.pagination-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  text-decoration: none;
  color: #666;
  font-weight: 500;
  transition: all 0.2s ease;
}
.pagination-item a:hover { background: #f5f5f5; color: #8B4513; }
.pagination-item.active a,
.pagination-item.active span {
  background: #8B4513;
  color: white;
}

/* 无内容 */
.no-photos {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
}
.no-photos h3 { font-size: 1.5rem; margin-bottom: 1rem; color: #333; }

/* 归档页响应式 */
@media (max-width: 768px) {
  .photo-archive-container { padding: 1rem; }
  .photo-masonry-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  .archive-stats { gap: 1rem; }
  .stat-item { min-width: 80px; padding: 0.6rem 1rem; }
  
}
@media (max-width: 480px) {
  .photo-masonry-grid { grid-template-columns: 1fr; }
  .filter-buttons { justify-content: center; }
  .year-buttons { justify-content: center; }
}



/* =========================================
   深色模式适配（2026-10-31 补充）
   参考“按主题浏览”的暗色质感
   ========================================= */
body.dark-theme .archive-header h1,
body.dark-theme .stat-number {
  color: #e67e22; /* 亮橙色，保证在暗色下醒目 */
}

body.dark-theme .page-subtitle,
body.dark-theme .stat-label,
body.dark-theme .filter-label {
  color: #d1d5db; /* 浅灰色，替换看不清的深灰 */
}

body.dark-theme .stat-item {
  background: rgba(139, 69, 19, 0.15); /* 深色微棕底 */
  border: 1px solid rgba(139, 69, 19, 0.3);
}

body.dark-theme .year-navigation {
  background: rgba(0, 0, 0, 0.2); /* 黑色半透明底 */
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-theme .year-btn {
  background: rgba(255, 255, 255, 0.05); /* 去掉刺眼白底 */
  border-color: rgba(255, 255, 255, 0.1);
  color: #d1d5db;
}

body.dark-theme .year-btn:hover {
  background: rgba(139, 69, 19, 0.2);
  border-color: #e67e22;
  color: #e67e22;
}

body.dark-theme .year-btn.active {
  background: #8B4513;
  color: white;
  border-color: #8B4513;
}

body.dark-theme .photo-archive-item {
  background: rgba(30, 34, 41, 0.4);
}

body.dark-theme .photo-meta h4 {
  color: #f3f4f6;
}

body.dark-theme .photo-info {
  color: #9ca3af;
}
