/* tag.css —— 从 photography.css 拆出（原第 920-1195 行）
   摄影标签页
   拆分日期：2026-10-30 */

/* ====== 摄影标签页 ====== */
.tag-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.tag-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(210, 105, 30, 0.05));
  border-radius: 12px;
  border: 2px solid rgba(139, 69, 19, 0.2);
}

.tag-badge-large {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.8rem;
  background: linear-gradient(135deg, #8B4513, #A0522D);
  color: white;
  border-radius: 30px;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  box-shadow: 0 6px 15px rgba(139, 69, 19, 0.3);
}

.tag-post-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 500;
}

.tag-description {
  max-width: 800px;
  margin: 1rem auto 0;
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

/* 相关标签 */
.related-tags-section {
  margin: 2rem 0 3rem;
  padding: 1.5rem;
  background: var(--tag-card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: var(--tag-card-border);
}

.related-tags-section h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.related-tag {
  padding: 0.4rem 0.9rem;
  background: #f8f5f0;
  color: #8B4513;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(139, 69, 19, 0.2);
  transition: all 0.2s ease;
}

.related-tag:hover {
  background: #8B4513;
  color: white;
  transform: translateY(-2px);
}

/* 标签下文章列表 */
.tag-posts-header {
  margin-bottom: 1.5rem;
}

.tag-posts-header h2 {
  font-size: 1.4rem;
  color: #333;
}

.tag-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.tag-post-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.tag-post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tag-post-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f5f5f5;
}

.tag-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tag-post-item:hover .tag-post-image img {
  transform: scale(1.05);
}

.tag-post-content {
  padding: 1.2rem;
}

.tag-post-title {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.tag-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  color: #666;
}

.tag-post-excerpt {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-post-link {
  display: inline-block;
  color: #8B4513;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.tag-post-link:hover {
  border-bottom-color: #8B4513;
}

/* 返回按钮 */
.tag-action-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.tag-action-btn {
  padding: 0.8rem 1.8rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tag-action-btn.primary {
  background: #8B4513;
  color: white;
}

.tag-action-btn.primary:hover {
  background: #A0522D;
  transform: translateY(-2px);
}

.tag-action-btn.secondary {
  background: white;
  color: #8B4513;
  border: 2px solid #8B4513;
}

.tag-action-btn.secondary:hover {
  background: #f8f5f0;
  transform: translateY(-2px);
}

/* 无文章 */
.no-tag-posts {
  text-align: center;
  padding: 3rem 2rem;
  color: #666;
}

.no-tag-posts .icon {
  width: 64px;
  height: 64px;
  color: #ccc;
  margin-bottom: 1rem;
}

.no-tag-posts h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

/* 默认图片 */
.default-tag-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
}

.tag-post-image img.loaded {
  opacity: 1;
  transition: opacity 0.5s ease;
}



/* 响应式 */
@media (max-width: 768px) {
  .tag-page-container { padding: 1rem; }
  .tag-header { padding: 1.5rem; }
  .tag-badge-large { font-size: 1.1rem; padding: 0.6rem 1.5rem; }
  .tag-posts-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
  .tag-action-buttons { flex-direction: column; align-items: center; }
  .tag-action-btn { width: 100%; max-width: 300px; justify-content: center; }
}

@media (max-width: 480px) {
  .tag-posts-grid { grid-template-columns: 1fr; }
  .related-tags { justify-content: center; }
}

