/* 文章列表页样式 */
/* 面包屑导航样式调整 */
.article-main .breadcrumb {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.article-main .breadcrumb a {
    color: #666;
    transition: var(--transition);
}

.article-main .breadcrumb a:hover {
    color: var(--primary-color);
}

/* 主要内容区布局 */
.article-content {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.article-main {
    flex: 1;
}

.article-sidebar {
    width: 320px;
}

/* 筛选区域 */
.article-filter {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 30px;
}

.filter-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.filter-item:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 500;
    color: var(--text-color);
    width: 60px;
    flex-shrink: 0;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-options a {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    background-color: #f5f5f5;
    transition: var(--transition);
}

.filter-options a:hover,
.filter-options a.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* 置顶文章 - 继续前面的样式 */
.article-featured {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
    transition: var(--transition);
}

.article-featured:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.article-featured-img {
    width: 50%;
    position: relative;
    overflow: hidden;
}

.article-featured-img img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
	max-height: 210px;
}

.article-featured:hover .article-featured-img img {
    transform: scale(1.05);
}

.article-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.article-featured-content {
    width: 50%;
    padding: 15px 25px;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-size: 13px;
}

.article-category {
    display: inline-block;
    padding: 3px 10px;
    background-color: #f0f7ff;
    color: var(--primary-color);
    border-radius: 4px;
    margin-right: 15px;
}

.article-date, .article-views {
    color: #999;
    display: flex;
    align-items: center;
    margin-right: 15px;
}
.f14{
	font-size:14px;
}
.article-date i, .article-views i {
    margin-right: 5px;
}

.article-title {
    margin-bottom: 15px;
    font-size: 22px;
}

.article-title a {
    color: var(--text-color);
    transition: var(--transition);
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.article-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.article-author span {
    font-size: 14px;
    color: #666;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
    align-self: flex-start;
}

.read-more-btn i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more-btn:hover {
    background-color: #122a50;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

/* 普通文章列表 */
.article-item {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
}
.article-item-two {
    margin-bottom: 0px;
}
.article-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.article-column2{
	display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.article-img {
    width: 50%;
    overflow: hidden;
	position: relative;	
}
.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
	max-height:300px;
}
.no-image{
	background-color: #f5f5f5;
}
.no-image img {
    opacity: 0;
}
.article-img.no-image::before,.hot-article-img.no-image::before {
    content: "暂无图片";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: 500;
    z-index: 1;
}
.hot-article-img.no-image::before {
    font-size: 14px;
}
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(196, 30, 58, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}
.video-play-btn:hover {
    background-color: var(--secondary-color);
    transform: translate(-50%, -50%) scale(1.1);
}
.article-item:hover .article-img img {
    transform: scale(1.05);
}

.article-info {
    width: 70%;
    padding: 20px;
}
.article-info-two {
    width: 50%;
    padding: 20px;
}

.article-info .article-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

.read-more {
    font-size: 14px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(3px);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
}

.page-num {
    background-color: #f5f5f5;
    color: #666;
}

.page-num:hover,
.page-num.active {
    background-color: var(--primary-color);
    color: #fff;
}

.page-prev,
.page-next {
    background-color: #f5f5f5;
    color: #666;
}

.page-prev:hover,
.page-next:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.page-prev.disabled,
.page-next.disabled {
    background-color: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.page-ellipsis {
    color: #666;
}

/* 侧边栏样式 */
.sidebar-widget {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

/* 搜索框 */
.search-widget .search-box {
    display: flex;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
	margin: 0 auto 10px;
}

.search-widget input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
}

.search-widget button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    transition: var(--transition);
}

.search-widget button:hover {
    background-color: #122a50;
}
/* 热门搜索标签单行显示样式 */
.hot-search-tags {
    margin-top: 10px;
    display: flex;
	flex-direction:column;
	gap:6px;
    overflow: hidden;
}

.hot-search-label {
    font-size: 13px;
    color: #666;
    flex-shrink: 0;
}

.hot-search-list.single-line {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}

.hot-search-item {
    font-size: 12px;
    color: #555;
    background-color: #f5f5f5;
    padding: 3px 10px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 8px;
    flex-shrink: 0;
    display: inline-block;
}

.hot-search-item:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* 确保只显示三个关键词 */
.hot-search-list.single-line .hot-search-item:nth-child(n+4) {
    display: none;
}

/* 热门文章 */
.hot-article-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hot-article-item {
    display: flex;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.hot-article-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.hot-article-img {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
	position: relative;
}

.hot-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hot-article-item:hover .hot-article-img img {
    transform: scale(1.05);
}

.hot-article-info {
    flex: 1;
}

.hot-article-info h4 {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.hot-article-info h4 a {
    color: var(--text-color);
    transition: var(--transition);
}

.hot-article-info h4 a:hover {
    color: var(--primary-color);
}

.hot-article-meta {
    display: flex;
    font-size: 12px;
    color: #999;
}

.hot-article-meta span {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.hot-article-meta i {
    margin-right: 3px;
}

/* 推荐律师 */
.recommended-lawyers .lawyer-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 侧边栏推荐律师样式优化 */
.sidebar-lawyer {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-lawyer:last-child {
    border-bottom: none;
}

.lawyer-avatar-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #fff;
    flex-shrink: 0;
}

.lawyer-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-lawyer:hover .lawyer-avatar-wrapper img {
    transform: scale(1.05);
}

.lawyer-info {
    flex: 1;
}

.lawyer-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #333;
}

.lawyer-info p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #666;
}

.consult-btn2 {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 15px;
    font-size: 12px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.consult-btn2:hover {
    background-color: #0056b3;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .lawyer-avatar-wrapper {
        width: 60px;
        height: 60px;
    }
}




/* 标签云 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 4px;
    font-size: 13px;
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* 推荐法律产品样式 */
.recommended-products {
    margin-bottom: 30px;
}

.sidebar-product-list {
    margin-top: 20px;
}

.sidebar-product-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-product-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.product-thumb {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sidebar-product-item:hover .product-thumb img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 3px;
    z-index: 1;
}

.product-info {
    padding: 15px;
}

.product-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.3;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-price3 {
    display: flex;
    align-items: baseline;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.price-value {
    font-size: 18px;
    font-weight: 600;
}

.price-period {
    font-size: 13px;
    color: #777;
    margin-left: 2px;
}

.product-brief {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-detail-link {
    display: inline-block;
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
}

.product-detail-link i {
    font-size: 11px;
    margin-left: 3px;
    transition: transform 0.3s;
}

.product-detail-link:hover {
    color: var(--secondary-color);
}

.product-detail-link:hover i {
    transform: translateX(3px);
}
.product-thumb img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-thumb:hover img {
    transform: scale(1.05);
}

/* 小部件标题和查看更多链接的布局 */
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.widget-header .widget-title {
    margin: 0;
}

.view-more-link {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.view-more-link:hover {
    color: var(--primary-color);
}

.view-more-link i {
    font-size: 12px;
    margin-left: 3px;
    transition: transform 0.3s;
}

.view-more-link:hover i {
    transform: translateX(3px);
}

/* 法律服务广告 */
.service-ad {
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
}

.service-ad img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.service-ad:hover img {
    transform: scale(1.03);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .article-content {
        flex-direction: column;
    }
    
    .article-sidebar {
        width: 100%;
    }
    
    .article-featured {
        flex-direction: column;
    }
    
    .article-featured-img,
    .article-featured-content {
        width: 100%;
    }
    
    .article-featured-img {
        height: 250px;
    }
    
    .recommended-lawyers .lawyer-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .sidebar-lawyer {
        width: 48%;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .filter-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-label {
        margin-bottom: 10px;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-img,
    .article-info {
        width: 100%;
    }
    
    .article-img {
        height: 200px;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sidebar-lawyer {
        width: 100%;
    }
    
    .pagination a,
    .pagination span {
        width: 35px;
        height: 35px;
        margin: 0 3px;
    }
}

@media (max-width: 576px) {
    .article-featured-content {
        padding: 15px;
    }
    
    .article-title {
        font-size: 18px;
    }
    
    .article-featured-img {
        height: 200px;
    }
    
    .article-meta {
        flex-wrap: wrap;
    }
    
    .page-title h1 {
        font-size: 24px;
    }
    
    .pagination .page-num:nth-child(4),
    .pagination .page-num:nth-child(5) {
        display: none;
    }
}


/* 纯文字文章列表项样式 */
.article-item-text {
    padding: 25px;
}

.article-item-text .article-info {
    width: 100%;
    padding: 0;
}

.article-tags {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.tag-label {
    color: #666;
    font-size: 14px;
    margin-right: 10px;
}

.article-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: #f0f7ff;
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 13px;
    margin-right: 8px;
    margin-bottom: 5px;
    transition: var(--transition);
}

.article-tag:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-item-text {
        padding: 20px;
    }
    
    .article-tags {
        margin: 12px 0;
    }
}

@media (max-width: 576px) {
    .article-item-text {
        padding: 15px;
    }
}

/* 法律产品列表项样式 */
.legal-product-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legal-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
	max-height:450px;
}
#paymentModal .product-image img {
	max-height:102px;
}

.legal-product-item:hover .product-image:hover img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-content {
    padding: 25px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.product-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.product-title a {
    color: #333;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-description {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e0e0e0;
}

.feature-item {
    display: flex;
    align-items: center;
    width: 50%;
    margin-bottom: 10px;
}

.feature-item i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 16px;
}

.feature-item span {
    font-size: 14px;
    color: #444;
}

.product-footer {
    display: flex;
    gap: 15px;
}

.product-detail-btn, .product-buy-btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.product-detail-btn {
    flex: 1;
    background-color: #f0f7ff;
    color: var(--primary-color);
    border: 1px solid #e0e0e0;
}

.product-detail-btn:hover {
    background-color: #e0f0ff;
}

.product-buy-btn {
    flex: 1;
    background-color: var(--primary-color);
    color: #fff;
}

.product-buy-btn:hover {
    background-color: var(--secondary-color);
}

/* 简洁版产品价格样式 */
.product-price2 {
    display: flex;
    align-items: baseline;
    font-weight: bold;
    color: var(--secondary-color);
    margin-top: 5px;
}

.price-value {
    font-size: 24px;
    letter-spacing: -0.5px;
}

.price-period {
    font-size: 14px;
    color: #666;
    margin-left: 3px;
    font-weight: normal;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-price {
        margin-top: 10px;
    }
}
/* 服务律所样式 */
.product-law-firm {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 10px 15px;
    background-color: #f8f8f8;
    border-radius: 6px;
    border-left: 3px solid #e0e0e0;
}

.product-law-firm i {
    color: #666;
    margin-right: 8px;
    font-size: 16px;
}

.product-law-firm span {
    color: #555;
    font-weight: 500;
    margin-right: 5px;
}

.law-firm-link {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.law-firm-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.law-firm-rating {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.law-firm-rating i {
    color: #ffb400;
    margin-right: 2px;
    font-size: 14px;
}

.rating-value {
    color: #666;
    font-weight: 600;
    margin-left: 5px;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .product-law-firm {
        flex-wrap: wrap;
    }
    
    .law-firm-rating {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
    }
}

/* @keyframes pulse { */
    /* 0% { */
        /* box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7); */
    /* } */
    /* 70% { */
        /* box-shadow: 0 0 0 6px rgba(255, 107, 107, 0); */
    /* } */
    /* 100% { */
        /* box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); */
    /* } */
/* } */



/* 响应式调整 */
@media (max-width: 768px) {
    .product-header {
        flex-direction: column;
    }
}

/* 响应式调整 */
@media (min-width: 768px) {
    .legal-product-item {
        flex-direction: row;
    }
    
    .product-image {
        width: 35%;
        height: auto;
    }
    
    .product-content {
        width: 65%;
    }
}

@media (max-width: 767px) {
    .feature-item {
        width: 100%;
    }
}

/* 法律法规列表项样式 */
.law-regulation-item {
    display: flex;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.law-regulation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.law-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    background-color: var(--primary-color);
    color: #fff;
}

.law-icon i {
    font-size: 32px;
}

.law-content {
    flex: 1;
    padding: 20px;
}

.law-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.law-type {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 15px;
}

.law-date {
    color: #666;
    font-size: 14px;
}

.law-date i {
    margin-right: 5px;
}

.law-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
}

.law-title a {
    color: #333;
    transition: color 0.3s ease;
}

.law-title a:hover {
    color: var(--primary-color);
}

.law-description {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.law-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
}

.law-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.law-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: #f0f7ff;
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 13px;
    transition: var(--transition);
}

.law-tag:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.law-footer .read-more {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.law-footer .read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.law-footer .read-more:hover {
    color: var(--secondary-color);
}

.law-footer .read-more:hover i {
    transform: translateX(3px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .law-regulation-item {
        flex-direction: column;
    }
    
    .law-icon {
        width: 100%;
        height: 60px;
    }
    
    .law-content {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .law-title {
        font-size: 16px;
    }
    
    .law-description {
        font-size: 14px;
    }
    
    .law-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .law-tags {
        margin-bottom: 10px;
    }
}

/* 文书范本列表样式 */
.document-templates {
    margin: 30px 0;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.template-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.template-item {
    width: calc(50% - 20px);
    margin: 0 10px 20px;
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.template-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.template-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 8px;
    margin-right: 15px;
}

.template-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.template-info {
    flex: 1;
}

.template-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.template-title a {
    color: #333;
    transition: color 0.3s ease;
}

.template-title a:hover {
    color: var(--primary-color);
}

.template-meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.template-category {
    background-color: #f0f7ff;
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 10px;
}

.template-downloads {
    display: flex;
    align-items: center;
}

.template-downloads i {
    margin-right: 5px;
    color: #999;
}

.view-more-templates {
    text-align: center;
    margin-top: 10px;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-more-btn i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.view-more-btn:hover {
    color: var(--secondary-color);
}

.view-more-btn:hover i {
    transform: translateX(3px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .document-templates {
        padding: 20px;
    }
    
    .template-item {
        width: calc(100% - 20px);
    }
}

@media (max-width: 576px) {
    .document-templates {
        padding: 15px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .template-item {
        padding: 12px;
    }
    
    .template-icon {
        width: 40px;
        height: 40px;
    }
    
    .template-icon i {
        font-size: 20px;
    }
    
    .template-title {
        font-size: 15px;
    }
}

/* 带封面缩略图的文书范本样式 - 纵向图片3列布局 */
.document-template-cover {
    margin: 30px 0;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.template-cover-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.template-cover-item {
    width: calc(33.333% - 20px);
    margin: 0 10px 20px;
    transition: transform 0.3s ease;
}

.template-cover-item:hover {
    transform: translateY(-5px);
}

.template-cover-img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    /* 设置固定宽高比例，确保纵向图片显示 */
    padding-bottom: 140%; /* 纵横比约为5:7 */
}

.template-cover-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.template-cover-item:hover .template-cover-img img {
    transform: scale(1.05);
}

.template-hover-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-cover-item:hover .template-hover-info {
    opacity: 1;
}

.template-downloads-count {
    color: #fff;
    font-size: 14px;
    margin-bottom: 15px;
}

.template-downloads-count i {
    margin-right: 5px;
    color: #fff;
}

.template-view-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.template-view-btn:hover {
    background-color: var(--secondary-color);
}

.template-cover-info {
    padding: 15px 0;
}

.template-cover-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.template-cover-title a {
    color: #333;
    transition: color 0.3s ease;
}

.template-cover-title a:hover {
    color: var(--primary-color);
}

.template-cover-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.template-cover-tags .template-tag {
    display: inline-block;
    padding: 2px 8px;
    background-color: #f0f7ff;
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 12px;
    transition: var(--transition);
}

.template-cover-tags .template-tag:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.view-more-templates {
    text-align: center;
    margin-top: 15px;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-more-btn i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.view-more-btn:hover {
    color: var(--secondary-color);
}

.view-more-btn:hover i {
    transform: translateX(3px);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .template-cover-item {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .document-template-cover {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .template-cover-item {
        width: calc(100% - 20px);
    }
    
    .document-template-cover {
        padding: 15px;
    }
}


/* 文件检索结果样式 */
.file-search-results {
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.search-info {
    display: flex;
    flex-direction: column;
}

.search-keyword {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.search-count {
    color: #666;
    font-size: 14px;
}

.search-filter select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    margin-left: 10px;
    color: #555;
    font-size: 14px;
    cursor: pointer;
}

.file-result-list {
    margin-bottom: 20px;
}

.file-result-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.file-result-item:hover {
    background-color: #f9f9f9;
}

.file-icon {
    font-size: 28px;
    color: #666;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.file-icon i.fa-file-pdf {
    color: #e74c3c;
}

.file-icon i.fa-file-word {
    color: #3498db;
}

.file-icon i.fa-file-powerpoint {
    color: #e67e22;
}

.file-info {
    flex: 1;
}

.file-title {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.file-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.file-title a:hover {
    color: var(--primary-color);
}

.file-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #777;
}

.file-type, .file-size, .file-date, .file-downloads {
    display: flex;
    align-items: center;
}

.file-meta i {
    margin-right: 5px;
}

.file-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.file-tag {
    background-color: #f0f0f0;
    color: #555;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.file-tag:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.file-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    margin-left: 20px;
}

.file-preview-btn, .file-download-btn {
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.file-preview-btn {
    background-color: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
}

.file-preview-btn:hover {
    background-color: #eee;
}

.file-download-btn {
    background-color: var(--primary-color);
    color: #fff;
}

.file-download-btn:hover {
    background-color: var(--secondary-color);
}

.file-actions i {
    margin-right: 5px;
}

.view-more-results {
    text-align: center;
    margin-top: 20px;
}

.view-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f5f5f5;
    color: #555;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.view-more-btn:hover {
    background-color: #eee;
    color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-filter {
        margin-top: 15px;
        width: 100%;
        display: flex;
    }
    
    .search-filter select {
        margin-left: 0;
        margin-right: 10px;
        flex: 1;
    }
    
    .file-result-item {
        flex-direction: column;
    }
    
    .file-icon {
        margin-bottom: 15px;
    }
    
    .file-actions {
        flex-direction: row;
        margin-left: 0;
        margin-top: 15px;
    }
}

/* 站内检索结果样式 */
.site-search-results {
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.site-result-list {
    margin-bottom: 20px;
}

.site-result-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.site-result-item:hover {
    background-color: #f9f9f9;
}

.result-type-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    margin-right: 15px;
    padding: 8px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    text-align: center;
}

.result-type-badge i {
    font-size: 18px;
    margin-bottom: 5px;
}

.article-badge {
    background-color: #3498db;
}

.qa-badge {
    background-color: #9b59b6;
}

.case-badge {
    background-color: #e67e22;
}

.law-badge {
    background-color: #27ae60;
}

.result-content {
    flex: 1;
}

.result-title {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.result-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.result-title a:hover {
    color: var(--primary-color);
}

.result-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.highlight-keyword {
    background-color: #fff3cd;
    padding: 0 3px;
    font-weight: 500;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #777;
}

.result-category, .result-date, .result-views, .result-author, 
.result-lawyer, .result-court, .result-publisher {
    display: flex;
    align-items: center;
}
/* 文书范本徽章样式 */
.result-type-badge.template-badge {
    background-color: #5c6bc0;
}
.result-type-badge.template-badge i {
    color: #e8eaf6;
}

.result-meta i {
    margin-right: 5px;
}

.result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.result-tag {
    background-color: #f0f0f0;
    color: #555;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.result-tag:hover {
    background-color: var(--primary-color);
    color: #fff;
}



/* 问答内容样式 */
.qa-content {
    margin-bottom: 12px;
}

.qa-question {
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid #9b59b6;
    color: #555;
    font-size: 14px;
}

.qa-answer {
    padding-left: 10px;
    border-left: 3px solid #27ae60;
    color: #333;
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .site-result-item {
        flex-direction: column;
    }
    
    .result-type-badge {
        flex-direction: row;
        width: auto;
        margin-bottom: 15px;
        padding: 5px 10px;
        justify-content: flex-start;
    }
    
    .result-type-badge i {
        margin-bottom: 0;
        margin-right: 5px;
    }
}

/* 律师团队列表项样式 */
.lawyer-team-item {
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.lawyer-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.lawyer-card {
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.lawyer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.lawyer-avatar {
    position: relative;
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a90e2 100%);
}

.lawyer-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
}

.lawyer-specialty {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.lawyer-info {
    padding: 20px;
    text-align: center;
}

.lawyer-name {
    margin: 10px 0 5px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.lawyer-title {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 5px;
}

.lawyer-experience {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
}

.lawyer-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 0 15px;
    border-right: 1px solid #eee;
}

.stat-item:last-child {
    border-right: none;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

.lawyer-contact-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lawyer-contact-btn:hover {
    background-color: #0056b3;
}

/* 律师个人介绍样式 */
.lawyer-intro {
    margin: 10px 0;
    padding: 0 5px;
}

.lawyer-intro p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    text-align: left;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 调整律师卡片整体高度 */
.lawyer-card {
    height: auto;
    min-height: 420px;
}

/* 调整律师头像图片样式，确保统一尺寸和比例 */
.lawyer-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 992px) {
    .lawyer-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .lawyer-team-grid {
        grid-template-columns: 1fr;
    }
}


