/* ============================================================
   华冠绿植 · 客户实拍案例列表（portfolio.html）美化
   原始无内联 style，全部新增样式
   ============================================================ */

/* ============================================================
   面包屑
   ============================================================ */
.breadcrumb-wrapper {
    background-position: center !important;
    background-size: cover !important;
}

/* ============================================================
   筛选区
   ============================================================ */
.filter-section.py-5 {
    padding-top: 18px;
    padding-bottom: 16px;
    background: linear-gradient(180deg, #f8f9fc 0%, #fff 100%);
}
.filter-wrap {
    background: #fff;
    border-radius: 18px;
    padding: 28px 30px;
    box-shadow: 0 10px 30px rgba(56, 75, 255, 0.08);
    border: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: center;
}
.filter-wrap > * {
    flex: 1;
    min-width: 240px;
}
.filter-wrap h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--header);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* 分类筛选按钮 */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.filter-buttons li a {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    background: var(--bg);
    color: var(--text);
    border: 1px solid transparent;
    transition: all 0.3s;
    text-decoration: none;
}
.filter-buttons li a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--theme), var(--header));
    transform: translateY(-1px);
}
.filter-buttons li a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--theme), var(--header));
    box-shadow: 0 6px 16px rgba(56, 75, 255, 0.3);
}

/* 标签筛选 */
.filter-tags {
    display: none;
}

/* 搜索框 */
.filter-wrap .search-box {
    flex: 0 0 100%;
    min-width: 100%;
}
.filter-wrap .search-box form {
    position: relative;
}
.filter-wrap .search-box input {
    width: 100%;
    padding: 16px 56px 16px 26px;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 15px;
    background: var(--bg);
    transition: all 0.25s;
}
.filter-wrap .search-box input:focus {
    outline: none;
    border-color: var(--theme);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(56, 75, 255, 0.12);
}
.filter-wrap .search-box button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme), var(--header));
    color: #fff;
    cursor: pointer;
    transition: transform 0.25s;
}
.filter-wrap .search-box button:hover {
    transform: translateY(-50%) scale(1.05);
}

/* ============================================================
   瀑布流卡片
   ============================================================ */
.team-section {
    background: #fff;
    padding-top: 30px !important;
}
.masonry-grid {
    column-count: 3;
    column-gap: 24px;
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 24px;
}
.team-card-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.team-card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(56, 75, 255, 0.2);
    border-color: transparent;
}
.team-image {
    position: relative;
    overflow: hidden;
    background: var(--bg);
}
.team-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}
.team-card-item:hover .team-image img {
    transform: scale(1.03);
}
.team-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 13, 29, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}
.team-card-item:hover .team-image::after {
    opacity: 1;
}
.team-content {
    padding: 18px 22px 22px;
}
.team-content h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
}
.team-content h5 a {
    color: var(--header);
    transition: color 0.25s;
}
.team-content h5 a:hover {
    color: var(--theme);
}
.team-content p {
    font-size: 13.5px;
    color: var(--text);
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   分页
   ============================================================ */
.page-nav-wrap {
    margin-top: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

/* 响应式 */
@media (max-width: 1199px) {
    .masonry-grid {
        column-count: 2;
    }
}
@media (max-width: 575px) {
    .filter-wrap {
        padding: 20px;
        gap: 20px;
    }
    .masonry-grid {
        column-count: 1;
        column-gap: 0;
    }
    .masonry-item {
        margin-bottom: 18px;
    }
    .team-content {
        padding: 16px;
    }
}
