/* 项目展示页面专用样式 - 简洁稳重设计 */

/* 项目展示区域 */
.projects-section {
    padding: 80px 0;
    background: #fafafa;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

/* 左侧过滤侧边栏 */
.section-header {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.section-title {
    font-size: 3.2rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 15px;
    opacity: 0;
    animation: slideInUp 1s ease-out 0.3s forwards;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 35px;
    opacity: 0;
    animation: slideInUp 1s ease-out 0.6s forwards;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-option {
    margin-bottom: 15px;
    opacity: 0;
    animation: slideInLeft 1s ease-out forwards;
}

.filter-option:nth-child(1) { animation-delay: 0.1s; }
.filter-option:nth-child(2) { animation-delay: 0.2s; }
.filter-option:nth-child(3) { animation-delay: 0.3s; }
.filter-option:nth-child(4) { animation-delay: 0.4s; }
.filter-option:nth-child(5) { animation-delay: 0.5s; }
.filter-option:nth-child(6) { animation-delay: 0.6s; }
.filter-option:nth-child(7) { animation-delay: 0.7s; }

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.filter-option label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.filter-option label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

.filter-option label:hover::before {
    left: 100%;
}

.filter-option label:hover {
    border-color: #999;
    color: #333;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #666;
    cursor: pointer;
}

/* 右侧项目列表 */
.projects-container {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.projects-count {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 30px;
    text-align: right;
    font-weight: 500;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* 项目卡片 */
.project-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #666;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    border-color: #ccc;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* 项目日期 */
.project-date {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 500;
}

/* 项目标题 */
.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: #333;
}

.project-card:hover .project-icon {
    background: #e9ecef;
    color: #333;
    transform: scale(1.05);
}

.project-card:hover .project-arrow {
    color: #666;
    transform: translateX(4px);
}

/* 项目作者 */
.project-authors {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

/* 项目描述 */
.project-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 项目信息容器 */
.project-info {
    flex: 1;
}

/* 项目图标 */
.project-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
    transition: all 0.3s ease;
}

.project-icon svg {
    width: 24px;
    height: 24px;
}

/* 项目箭头 */
.project-arrow {
    font-size: 1.2rem;
    color: #999;
    font-weight: 300;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* 项目标签 */
.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    background: #f0f0f0;
    color: #555;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.tag:hover {
    background: #e8e8e8;
    color: #333;
    transform: translateY(-1px);
}

/* 项目箭头 */
.project-arrow {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 1.2rem;
    color: #888;
    font-weight: bold;
    transition: all 0.2s ease;
}

.project-card:hover .project-arrow {
    color: #666;
    transform: translateX(3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section-header {
        position: static;
        order: 2;
    }
    
    .projects-container {
        order: 1;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.3rem;
    }
    
    .project-card {
        padding: 25px;
    }
    
    .filter-option label {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-arrow {
        top: 20px;
        right: 20px;
    }
}

/* 悬停效果增强 */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 0, 0, 0.02) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 1;
}

/* 微妙的3D效果 */
.projects-grid {
    perspective: 1000px;
}

.project-card {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-4px);
}

/* 过滤动画 */
.project-card.filtered-out {
    animation: filterOut 0.5s ease-out forwards;
}

@keyframes filterOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
        height: 0;
        margin: 0;
        padding: 0;
    }
}

.project-card.filtered-in {
    animation: filterIn 0.5s ease-out forwards;
}

@keyframes filterIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
} 

/* 分页控件 */
.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 18px 0 28px 0;
}

.page-link {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    background: #fff;
    color: #0070f3;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: #f5f8ff;
    border-color: #c9dcff;
}

.page-link.active {
    background: #0a66ff;
    color: #fff;
    border-color: #0a66ff;
}

.page-link.disabled {
    color: #aaa;
    pointer-events: none;
    background: #fafafa;
}

.page-ellipsis {
    color: #999;
    padding: 0 6px;
} 

/* 优秀案例展示 */
.featured-cases {
    margin-bottom: 28px;
}

.featured-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.featured-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2c2c2c;
}

.featured-skip-link {
    font-size: 0.9rem;
    color: #0a66ff;
    text-decoration: none;
}

.featured-skip-link:hover {
    text-decoration: underline;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.featured-card {
    display: grid;
    grid-template-rows: 140px auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.featured-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
    border-color: #d6d6d6;
}

.featured-thumb {
    background-size: cover;
    background-position: center;
}

.featured-info {
    padding: 12px 14px 14px 14px;
}

.featured-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: #0a66ff;
    background: #f0f6ff;
    border: 1px solid #e0efff;
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 6px;
    font-weight: 600;
}

.featured-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 4px 0 6px 0;
}

.featured-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    .featured-card {
        grid-template-rows: 160px auto;
    }
} 

/* 让优秀案例展示在两列之上横跨整行 */
.container > .featured-cases {
    grid-column: 1 / -1;
}

/* 顶部工具栏与内联过滤筹片 */
.projects-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.filter-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.filter-chip span {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-size: 0.9rem;
    line-height: 1;
    transition: all 0.2s ease;
    user-select: none;
}

.filter-chip span:hover {
    background: #f5f5f5;
    border-color: #cccccc;
}

.filter-chip input:checked + span {
    background: #0a66ff;
    border-color: #0a66ff;
    color: #fff;
}

@media (max-width: 768px) {
    .projects-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
} 