/* ==========================================================================
   PORTFOLIO PAGE STYLES (瑞士排版风格 - 作品集)
   ========================================================================== */

/* 页面主容器 */
.portfolio-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* 1. Hero 引言区 */
.portfolio-hero {
  border-bottom: 2px solid #1A1A1A;
  padding-bottom: 32px;
  margin-bottom: 40px;
}

.hero-tag {
  font-size: 0.85rem;
  font-weight: 800;
  color: #E63946;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: #1A1A1A;
  letter-spacing: -1px;
  line-height: 1.0;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 1.1rem;
  color: #4A4A4A;
  max-width: 680px;
  line-height: 1.6;
}

/* 2. 分类筛选操作栏 (上下细红线包裹) */
/* 2. 分类筛选操作栏 (上下细红线包裹，支持搜索框) */
.portfolio-filter-bar {
  display: flex;
  justify-content: space-between; /* 让分类按钮在左，搜索框在右 */
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid #E63946;
  border-bottom: 1px solid #E63946;
  padding: 12px 0;
  margin-bottom: 40px;
}

.search-wrapper input {
  background: transparent;
  border: 1px solid #1A1A1A;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1A1A1A;
  width: 250px;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-wrapper input:focus {
  border-color: #E63946;
}

.search-wrapper input::placeholder {
  color: #999;
  letter-spacing: 0.5px;
}

.filter-wrapper {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #1A1A1A;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 16px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: #E63946;
}

.filter-btn.active {
  background: #1A1A1A;
  color: #F7F5F0;
  border-color: #1A1A1A;
}

/* 3. 作品网格布局 */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px 32px;
}

/* 4. 作品卡片设计 (无边框/无阴影/强调负空间) */
.portfolio-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
  background: transparent;
}

.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 16px;
}

/* 占位图/预览图样式 */
.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: transform 0.4s ease;
}

.card-image-wrap:hover .card-image-placeholder {
  transform: scale(1.03);
}

.placeholder-icon {
  font-size: 2.2rem;
}

.placeholder-text {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #E63946;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 8px;
  letter-spacing: 0.5px;
}

/* 卡片文本内容 */
.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #E63946;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-title a {
  color: #1A1A1A;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-title a:hover {
  color: #E63946;
}

.card-summary {
  font-size: 0.92rem;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 16px;
}

.card-footer {
  border-top: 1px dashed #DDD;
  padding-top: 12px;
}

.card-link {
  font-size: 0.8rem;
  font-weight: 800;
  color: #1A1A1A;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.card-link:hover {
  color: #E63946;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}