/* 主要内容区域 */
.consultants-main {
    padding-top: 80px;
}

/* Banner样式 */
.consultants-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('../images/consultants-banner.jpg') no-repeat center;
    background-size: cover;
    padding: 80px 0;
    color: white;
    text-align: center;
}

.banner-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.banner-content p {
    font-size: 18px;
    opacity: 0.9;
}

/* 内容区域 */
.consultants-content {
    padding: 60px 0;
    background: #f5f5f5;
}

/* 筛选标签 */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    border: 1px solid #b38d54;
    background: transparent;
    color: #b38d54;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #b38d54;
    color: white;
}

/* 律师卡片网格 */
.lawyers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* 律师卡片样式 */
.lawyer-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.lawyer-card:hover {
    transform: translateY(-5px);
}

.recommend-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #b38d54;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1;
}

.lawyer-image {
    position: relative;
    height: 0;
    padding-bottom: 133%; /* 3:4 比例 */
    overflow: hidden;
}

.lawyer-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lawyer-card:hover .lawyer-image img {
    transform: scale(1.05);
}

.lawyer-info {
    padding: 15px;
}

.name-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.name-title h3 {
    font-size: 18px;
    color: #333;
}

.detail-btn {
    color: #b38d54;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.detail-btn:hover {
    color: #9a7945;
}

.firm {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.description {
    font-size: 14px;
    color: #999;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a {
    text-decoration: none;
    color: #666;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination .page-num {
    background: white;
}

.pagination .page-num.active {
    background: #b38d54;
    color: white;
}

.pagination a:hover:not(.active) {
    background: rgba(179, 141, 84, 0.1);
}

.page-dots {
    color: #666;
    padding: 8px 15px;
}

/* 响应式布局 */
@media (max-width: 1400px) {
    .lawyers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .lawyers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .lawyers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filter-tabs {
        flex-wrap: wrap;
    }

    .filter-btn {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .lawyers-grid {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        flex: 1 1 100%;
    }
} 