/* projects.css - 工程项目页面专属样式（新版推广区） */

.bem-categories {
    background: var(--bem-bg-secondary);
    padding: 0;
    border-bottom: none;
    position: relative;
    z-index: 99;
    height: 120px;
    display: flex;
    align-items: center;
}

.bem-categories__container {
    display: flex;
    align-items: center;
    gap: var(--bem-space-8);
    padding: 0;
    width: 100%;
    height: 100%;
}

.bem-categories__title {
    font-size: var(--bem-font-16);
    font-weight: var(--bem-font-600);
    color: var(--bem-text-primary);
    white-space: nowrap;
    position: relative;
    padding-right: var(--bem-space-8);
    line-height: 1.2;
    margin: 0;
}

.bem-categories__title::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: var(--bem-text-quinary);
}

.bem-categories__list {
    display: flex;
    gap: var(--bem-space-8);
    flex-wrap: wrap;
    align-items: center;
    height: 100%;
}

.bem-categories__link {
    color: var(--bem-text-primary);
    text-decoration: none;
    font-size: var(--bem-font-16);
    font-weight: var(--bem-font-500);
    padding: var(--bem-space-1) 0;
    position: relative;
    white-space: nowrap;
    transition: all var(--bem-transition-normal);
    cursor: pointer;
    outline: none;
    line-height: 1.2;
    display: inline-block;
}

.bem-categories__link:hover,
.bem-categories__link:focus {
    color: var(--bem-primary);
    outline: none;
}

.bem-categories__link[data-bem-state*='"active":true'] {
    color: var(--bem-primary);
    font-weight: var(--bem-font-600);
}

.bem-underline-hover {
    position: relative;
    display: inline-block;
}

.bem-underline-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width var(--bem-transition-normal);
}

.bem-underline-hover:hover::after,
.bem-underline-hover:focus::after {
    width: 100%;
}

.bem-project-showcase {
    display: none;
    padding: 120px 0;
    background: var(--bem-bg-primary);
    position: relative;
    min-height: 600px;
}

.bem-project-showcase[data-bem-state*='"active":true'] {
    display: block;
}

.bem-project-showcase__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--bem-space-10);
}

.bem-project-showcase__grid .bem-project-card {
    height: 100%;
}

.bem-project-card__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--bem-space-4) var(--bem-space-4);
    border-top: 1px solid var(--bem-bg-secondary);
    background: var(--bem-bg-primary);
    min-height: 60px;
}

.bem-project-card__title-wrapper {
    display: flex;
    align-items: center;
    gap: var(--bem-space-1);
    flex: 1;
    min-width: 0;
}

.bem-project-card__location-icon {
    color: var(--bem-primary);
    font-size: var(--bem-font-16);
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.bem-project-card__name {
    font-size: var(--bem-font-16);
    font-weight: var(--bem-font-400);
    color: var(--bem-text-primary);
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bem-project-card__image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 300px;
}

.bem-project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--bem-transition-slow) ease;
}

.bem-card-image-scale:hover .bem-project-card__image img {
    transform: scale(1.05);
}

.bem-project-card__detail {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 36px;
    height: 36px;
    background: transparent;
    color: var(--bem-text-quaternary);
    text-decoration: none;
    transition: all var(--bem-transition-normal);
    flex-shrink: 0;
    outline: none;
    border: none;
    margin-left: 0;
    cursor: pointer;
}

.bem-project-card__detail:hover,
.bem-project-card__detail:focus {
    background: transparent;
    color: var(--bem-primary);
    outline: none;
}

.bem-project-card__detail-icon {
    font-size: var(--bem-font-14);
}

.bem-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--bem-space-2);
    margin-top: 0;
    padding-top: 100px;
    flex-wrap: wrap;
}

.bem-pagination__btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--bem-bg-tertiary);
    background: var(--bem-bg-primary);
    border-radius: var(--bem-radius-sm);
    color: var(--bem-text-tertiary);
    cursor: pointer;
    transition: all var(--bem-transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--bem-font-15);
    font-weight: var(--bem-font-500);
    outline: none;
}

.bem-pagination__btn[data-bem-state*='"active":true'] {
    border-color: var(--bem-primary);
    color: var(--bem-primary);
    background: var(--bem-bg-primary);
}

.bem-pagination__btn:hover:not([data-bem-state*='"disabled":true']),
.bem-pagination__btn:focus:not([data-bem-state*='"disabled":true']) {
    border-color: var(--bem-primary);
    color: var(--bem-primary);
    outline: none;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
}

.loading-spinner i {
    color: var(--bem-primary);
}

.loading-spinner p {
    margin-top: 10px;
    color: var(--bem-text-tertiary);
}

.no-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--bem-text-quaternary);
    font-size: var(--bem-font-16);
}

@media (max-width: 1200px) {
    .bem-project-showcase__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--bem-space-8);
    }
    
    .bem-project-card__image {
        height: 250px;
    }
    
    .bem-project-card__detail {
        margin-left: var(--bem-space-6);
    }
}

@media (max-width: 992px) {
    .bem-categories__container {
        gap: var(--bem-space-6);
    }
    
    .bem-categories__list {
        gap: var(--bem-space-6);
    }
    
    .bem-project-showcase {
        padding: 80px 0;
        min-height: 900px;
    }
    
    .bem-project-showcase__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--bem-space-6);
    }
    
    .bem-project-card__info {
        min-height: 55px;
        padding: var(--bem-space-2) var(--bem-space-4);
    }
    
    .bem-project-card__detail {
        margin-left: var(--bem-space-6);
    }
    
    .bem-pagination {
        padding-top: 80px;
    }
}

@media (max-width: 768px) {
    .bem-categories {
        height: auto;
        min-height: 100px;
        padding: var(--bem-space-2) 0;
        align-items: flex-start;
    }
    
    .bem-categories__container {
        flex-direction: column;
        gap: var(--bem-space-4);
        align-items: flex-start;
        padding: 0;
        height: auto;
    }
    
    .bem-categories__title::after {
        display: none;
    }
    
    .bem-categories__list {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: var(--bem-space-2);
        gap: var(--bem-space-4);
        height: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--bem-primary) var(--bem-bg-secondary);
    }
    
    .bem-categories__list::-webkit-scrollbar {
        height: 4px;
    }
    
    .bem-categories__list::-webkit-scrollbar-track {
        background: var(--bem-bg-secondary);
        border-radius: 2px;
    }
    
    .bem-categories__list::-webkit-scrollbar-thumb {
        background: var(--bem-primary);
        border-radius: 2px;
    }
    
    .bem-project-showcase {
        padding: 60px 0;
        min-height: 800px;
    }
    
    .bem-project-showcase__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--bem-space-4);
    }
    
    .bem-project-card__image {
        height: 200px;
    }
    
    .bem-project-card__info {
        min-height: 50px;
        padding: var(--bem-space-1) var(--bem-space-4);
    }
    
    .bem-project-card__name {
        font-size: var(--bem-font-12);
    }
    
    .bem-project-card__location-icon {
        font-size: var(--bem-font-12);
        width: 16px;
    }
    
    .bem-project-card__detail {
        width: 30px;
        height: 30px;
        margin-left: var(--bem-space-4);
    }
    
    .bem-project-card__detail-icon {
        font-size: var(--bem-font-12);
    }
    
    .bem-pagination {
        padding-top: 60px;
    }
    
    .bem-pagination__btn {
        width: 36px;
        height: 36px;
        font-size: var(--bem-font-12);
    }
}