@charset "utf-8";
/* * Project Category Archive Styles
 * 对应模板: taxonomy-project_category.php
 */

/* --- 页面整体容器 --- */
body {
    background-color: #f8f8f8; /* 浅灰背景提升质感 */
}

.project-archive-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    padding-top: 30px; /* 避开 Header */
    min-height: 60vh;
}

/* --- 0. 大标题 (Page Title) --- */
.page-main-title {
    font-size: 56px;      /* 字体够大才够气派 */
    font-weight: 300;     /* 使用细体 (Light) 更显高级感，XAL风格 */
    color: #000;
    margin-bottom: 40px;  /* 标题和 Filter 之间的间距 */
    line-height: 1.1;
    letter-spacing: -1px; /* 稍微紧凑一点的字间距 */
}

/* --- 1. 顶部筛选条 (Filter Bar) --- */
.project-filter-bar {
    margin-bottom: 50px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.filter-label {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    margin-right: 10px;
}

.filter-link {
    font-size: 15px;
    color: #888;
    text-decoration: none !important;
    position: relative;
    transition: color 0.3s ease;
}

.filter-link:hover {
    color: #000;
}

/* 选中状态 */
.filter-link.active {
    color: #000;
    font-weight: 500;
}

.filter-link.active::after {
    content: '';
    position: absolute;
    bottom: -16px; /* 贴合边框线 */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}

/* --- 2. 网格系统 (Grid System) --- */
.seeposh-project-grid {
    display: inline-block;
    width: 100%;
    margin-bottom: 40px;
    text-decoration: none;
    color: inherit;
    break-inside: avoid;
    vertical-align: top;
}

/* --- 3. 项目卡片 (Card Style) --- */
.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    /* 强制保持 4:3 比例 */
    padding-bottom: 0;
    height: auto;
    background-color: #e5e5e5;
    overflow: hidden;
    margin-bottom: 18px;
}

.card-image-wrapper img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 鼠标悬停交互 */
.project-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-info {
    padding-right: 10px;
}

.card-title {
    font-size: 18px;
    color: #000;
    font-weight: 500;
    margin: 0 0 6px;
    line-height: 1.3;
}

.card-meta {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- 4. 空状态 (Empty State) --- */
.empty-state-box {
    grid-column: 1 / -1; 
    text-align: center; 
    padding: 100px 0; 
    color: #999;
}
.empty-state-title {
    font-size: 24px; 
    font-weight: 300; 
    margin-bottom: 10px;
    color: #333;
}

/* --- 响应式适配 --- */
@media (max-width: 1024px) {
    .seeposh-project-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .page-main-title {
        font-size: 36px;  /* 手机上稍微小一点 */
        margin-bottom: 25px;
    }
    .project-archive-container {
        padding-top: 20px;
    }
    .seeposh-project-grid {
        column-count: 1; /* 手机 1 列 */
    }
    .project-filter-bar {
        gap: 20px;
        overflow-x: auto; /* 允许横向滑动 */
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 10px; 
        /* 隐藏滚动条美化 */
        -ms-overflow-style: none;  
        scrollbar-width: none;  
    }
    .project-filter-bar::-webkit-scrollbar { 
        display: none; 
    }
    .filter-link.active::after {
        bottom: -11px;
    }
}