/* 项目列表页面样式 - 浅色主题 */

/* 内页不需要固定版权栏的底部边距 */
body {
    padding-bottom: 0 !important;
}

/* 内页导航栏 - 始终白色背景，固定高度 */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 12px 0 !important;
}

.navbar .nav-link,
.navbar .logo-text {
    color: #1a2332 !important;
    text-shadow: none !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #3498db !important;
}

:root {
    --primary-color: #1a2332;
    --secondary-color: #2c3e50;
    --accent-color: #3498db;
    --accent-gold: #d4af37;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-muted: #999999;
    --border-color: #e8e8e8;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
}

/* 项目筛选区域 */
.projects-filter-section {
    padding: 40px 0 30px;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    margin-top: 104px; /* 导航栏高度: padding 12px*2 + nav-container 80px */
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

/* 背景装饰 */
.projects-filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(52, 152, 219, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(52, 152, 219, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* 筛选头部 */
.filter-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.filter-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.filter-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #5dade2);
    margin: 12px auto 0;
    border-radius: 2px;
}

.filter-subtitle {
    font-size: clamp(13px, 1.5vw, 15px);
    color: var(--text-muted);
    letter-spacing: 3px;
}

/* 筛选标签 */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.filter-tab {
    padding: 10px 28px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.08), transparent);
    transition: left 0.5s ease;
}

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

.filter-tab:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.filter-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(26, 35, 50, 0.25);
}

/* 项目列表 */
.projects-list-section {
    padding: 50px 0 80px;
    background: var(--bg-light);
    min-height: 50vh;
}

.projects-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

/* 项目卡片 */
.project-list-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.project-list-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px var(--shadow-medium);
    border-color: #ddd;
}

/* 项目图片 */
.project-list-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    cursor: pointer;
}

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

.project-list-card:hover .project-list-image img {
    transform: scale(1.08);
}

/* 图片遮罩 */
.project-list-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* 项目类别标签 */
.project-list-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 2px 8px var(--shadow-light);
    z-index: 2;
}

/* 项目状态标签（在建）*/
.project-list-image .project-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
    z-index: 10;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(39, 174, 96, 0.5);
    }
}

.project-list-card:hover .project-status-badge {
    animation: none;
}

/* 项目内容 */
.project-list-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-list-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.project-list-card:hover .project-list-title {
    color: var(--accent-color);
}

.project-list-category {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.project-list-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 18px;
    flex: 1;
}

/* 项目元信息 */
.project-list-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.project-list-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.project-list-meta svg {
    opacity: 0.5;
    color: var(--text-gray);
}

/* 查看详情按钮 */
.project-list-btn {
    padding: 12px 0;
    background: var(--bg-light);
    color: var(--text-gray);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.project-list-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.project-list-btn:hover::before {
    left: 0;
}

.project-list-btn:hover {
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 35, 50, 0.2);
}

/* 页脚 */
.footer {
    background: var(--primary-color);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    overflow: visible !important;
    height: auto !important;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
}

/* 页脚版权区域 */
.footer-copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 5px 0;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: #ffffff;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .projects-list-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .projects-filter-section {
        padding: 80px 0 40px;
        margin-top: 70px;
    }
    
    .filter-header {
        margin-bottom: 30px;
    }

    .filter-tabs {
        gap: 10px;
    }

    .filter-tab {
        padding: 10px 20px;
        font-size: 13px;
    }

    .projects-list-section {
        padding: 40px 0 60px;
    }

    .projects-list-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-list-image {
        height: 200px;
    }

    .project-list-content {
        padding: 20px;
    }

    .project-list-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .filter-tabs {
        gap: 8px;
    }

    .filter-tab {
        padding: 8px 16px;
        font-size: 12px;
    }

    .project-list-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* 筛选动画 */
.project-list-card.hidden {
    display: none;
}

.project-list-card.show {
    animation: cardFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载状态 */
.projects-list-grid:empty::after {
    content: '加载中...';
    display: block;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
    font-size: 16px;
    grid-column: 1 / -1;
}
