/* /inc/lawyer/css/lawyer-frontend.css */

.lawyer-profile-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.lawyer-left,
.lawyer-right {
    padding: 15px;
}

.lawyer-left {
    flex: 3;
    min-width: 250px;
}

.lawyer-right {
    flex: 7;
    /*min-width: 400px;*/
}

.lawyer-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.lawyer-name {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.5;
}

.lawyer-position {
    color: #999;
    font-size: 16px;
    line-height: 1.5;
}

.contact-info {
    margin: 20px 0;
    /*background: white;*/
    /*padding: 20px;*/
    /*border-radius: 8px;*/
    /*box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);*/
}

.professional-info-card {
    margin: 20px 0;
}

.lawyer-content {
    margin: 20px 0;
}

.contact-info p,
.professional-info p {
    line-height: 2.2;
    margin: 5px 0;
    border-bottom: 1px #ececec solid;
}

.lawyer-results {
    width: 100%;
}

.lawyer-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, 380px); /* 自动适应 */
    justify-items: center; /* 居中排列 */
    align-items: stretch;
    gap: 12px;
    padding: 0 15px;
    box-sizing: border-box;
    width: 95%;
    margin: 24px auto;
    overflow-x: hidden;
    justify-content: center;
}


.lawyer-card-item {
    width: 350px;
    border: 1px solid #ddd;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lawyer-card-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.lawyer-card-photo {
    flex-shrink: 0;
    width: 150px;
}

.lawyer-card-photo img {
    object-fit: cover; /* 保持图片原有比例，完整展示 */
    display: block;
    border-radius: 8px; /* 四个角带圆角 */
    width: 100%;
    height: auto;
}

.lawyer-card-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.lawyer-card-name {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.lawyer-card-position,
.lawyer-card-specialty {
    color: #999;
    font-size: 0.9em;
    line-height: 1.8;
}

.lawyer-card-position .dashicons,
.lawyer-card-specialty .dashicons {
    font-size: 1em;
    vertical-align: middle;
    margin-right: 6px;
    color: #999;
}

.lawyer-ajax-search-container {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

.lawyer-ajax-search {
    display: flex;
    flex-wrap: wrap; /* 允许在小屏幕上换行 */
    margin: 0 auto;
    width: 80%;
    justify-content: space-between;
}

.lawyer-ajax-search-condition {
    display: flex;
    flex-wrap: wrap; /* 允许在小屏幕上换行 */
    gap: 10px; /* 控件之间的间距 */
    align-items: center;
    padding: 10px 0;
}

.lawyer-ajax-search-condition select,
.lawyer-ajax-search-condition input[type="text"] {
    -webkit-appearance: none; /* 移除默认外观 */
    appearance: none;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    min-width: 150px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.lawyer-ajax-search-condition select:focus,
.lawyer-ajax-search-condition input[type="text"]:focus {
    border-color: #B58E67;
    outline: none;
}

.lawyer-ajax-search-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lawyer-ajax-search button {
    padding: 8px 16px;
    background-color: #B58E67;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lawyer-ajax-search button:hover {
    background-color: #B58E67;
    transform: scale(1.05); /* 稍微放大一点 */
}

.lawyer-ajax-separator {
    width: 100%;
    height: 1px;
    background-color: #ddd; /* 灰色线条 */
    margin: 15px 0; /* 上下留白 */
}

/* 移动端适配：最大宽度768px时启用 */
@media (max-width: 768px) {
    .lawyer-ajax-search {
        flex-direction: column;
        align-items: stretch;
        width: 80%;
        margin: 0 auto; /* 左右自动外边距实现整体居中 */
    }

    .lawyer-ajax-search select,
    .lawyer-ajax-search input,
    .lawyer-ajax-search button {
        flex: 1 1 100%;
    }

    .lawyer-card-item {
        flex: 1 1 100%;
        max-width: 100%;
        text-align: center;
    }

    /* 移动端每行只显示一个卡片 */
    .lawyer-list {
        grid-template-columns: 1fr; /* 强制每行只放一个卡片 */
        padding: 0;
        margin: 0 auto;
    }

    .lawyer-card-photo img {
        width: 100%;
        height: auto;
    }

    .lawyer-card-info {
        /*text-align: center;*/
    }

    .lawyer-card-position,
    .lawyer-card-specialty {
        font-size: 14px;
    }

    .lawyer-profile-container {
        gap: 0 !important;
    }
}

.contact-info p {
    display: flex;
    align-items: center; /* 垂直居中 */
    gap: 8px; /* 图标与文字间距 */
}

.contact-info .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px; /* 控制 Dashicons 大小 */
    vertical-align: middle;
    color: #999;
}

.contact-info strong {
    min-width: 80px;
    display: inline-block;
}
