/* 全局样式 */
body {
    font-family: 'Plix-Regular', sans-serif !important;
    color: #333;
    
}

/* 自定义容器宽度 */
@media (min-width: 1200px) {
    .container {
        max-width: 1240px !important;
    }
    
    /* 设置行业观察栏目的列宽度 */
    #industry .col-md-4 {
        width: 340px;
        flex: 0 0 340px;
    }
    
    /* 调整行的对齐方式，使列居中 */
    #industry .row {
        justify-content: space-between;
    }
}

/* 确保导航栏容器与页面容器宽度一致 */
.navbar > .container {
    max-width: 1240px;
}

/* Logo样式 */
.logo-container {
    position: relative;
    height: 40px;
    width: auto;
    display: inline-block;
}

.logo {
    position: absolute;
    left: 0;
    top: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.logo-white {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.logo-black {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

/* 滚动时的Logo效果 */
@keyframes logoSlideUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

@keyframes logoSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    }
}

.navbar.scrolled .logo-white {
    animation: logoSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.navbar.scrolled .logo-black {
    animation: logoSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.1s;
}

/* 导航栏样式 */
.navbar {
    transition: all 0.3s ease;
    background-color: transparent !important;
    box-shadow: none;
}

.navbar.scrolled {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.navbar-collapse {

    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px;
    
}

@supports not (backdrop-filter: blur(10px)) {
    .navbar.scrolled, .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95) !important;
    }
}

/* 当导航栏透明时，链接为白色 */
.navbar:not(.scrolled) .nav-link {
    color: white !important;
}

.navbar:not(.scrolled) .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}



/* 当导航栏透明时，折叠按钮为白色 */
.navbar:not(.scrolled) .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar:not(.scrolled) .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #FF8F1F !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* 视频背景样式 */
#hero {
    height: 100vh;
    min-height: 600px;
    margin-top: 0px; /* 抵消导航栏的padding-top */
}

.hero-video {
    object-fit: cover;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay h1 {
    
    animation: fadeInUp 1.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 卡片样式 */
.card {
    border: none;
   
    transition: transform 0.3s ease;
}

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

.card-title {
    color: #007bff;
    font-weight: 600;
}

.card-text {
    color: #666;
    line-height: 1.6;
}

/* 按钮样式 */
.btn-outline-primary {
    border-width: 2px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

/* 社会责任部分样式 */
#social .card {
    border-radius: 10px;
    overflow: hidden;
}

#social .card img {
    height: 200px;
    object-fit: cover;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    padding: 60px 0;
    color: #fff;
    position: relative;
    overflow: visible;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-info {
    flex: 1;
}

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
    width: 100%;
}

.footer-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.contact-info {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.contact-info::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.contact-info p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.copyright {
    margin-top: 40px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.copyright p {
    margin: 5px 0;
}

/* Footer社交媒体样式 */
.footer-social-item {
    text-align: center;
    height: auto;
    position: relative;
    padding: 10px;
    display: inline-block;
}

.footer-social-item .social-icon {
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.footer-social-item:hover .social-icon {
    transform: scale(1.1);
}

.footer-social-item .qr-code {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    padding: 4px;
    background: #ffffff00;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 0px;
    z-index: 9999;
}

.footer-social-item:hover .qr-code {
    opacity: 1;
    visibility: visible;
}

.footer-social-item span {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
}

/* 社交链接容器样式 */
.footer .social-links {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
}

/* 移动端样式 */
@media (max-width: 767px) {
    .footer-content {
        flex-direction: column;
        text-align: left;
    }

    .social-links {
        display: flex;
        gap: 20px;
        margin-bottom: 20px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto; /* 如果空间不够，允许横向滚动 */
        padding-bottom: 10px; /* 为可能的滚动条留出空间 */
    }

    .footer-social-item {
        flex: 0 0 auto;
        padding: 0;
        min-width: 60px; /* 确保图标不会被压缩 */
    }

    /* 隐藏滚动条但保持功能 */
    .social-links::-webkit-scrollbar {
        display: none;
    }
    .social-links {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    /* 在移动端隐藏footer中的分隔线 */
    .footer-info h3::after,
    .contact-info::after {
        display: none;
    }
    
    /* 仅移动端社交媒体图标平均分布 */
    .footer .footer-social {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        gap: 5px !important;
    }
    
    .footer .footer-social .footer-social-item {
        flex: 1 !important;
        text-align: center !important;
        min-width: auto !important;
    }
}

/* 桌面端样式 */
@media (min-width: 768px) {
    .footer-info h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background: rgba(255, 255, 255, 0.2);
    }

    .contact-info::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 270px;
        height: 1px;
        background: rgba(255, 255, 255, 0.2);
    }

    /* 添加flex容器用于contact-info和social-links的布局 */
    .footer-info-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 40px;
    }

    .contact-info {
        width: 270px;
        padding-bottom: 20px;
        margin-bottom: 20px;
        position: relative;
    }

    .footer .social-links {
        display: flex;
        gap: 20px;
        margin-top: 0;
    }

    .copyright {
        margin-top: 40px;
    }
}

@media (min-width: 1440px) {
    .footer .container {
        max-width: 1240px;
    }
}

/* 标题样式统一 */
section h2 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2rem;
    position: relative;
}

/* 行业观察样式 */
.industry-item {
    padding: 30px 0;
   /* background: #fff;*/
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

/* 添加竖线分隔符 */
@media (min-width: 768px) {
    /* 确保父元素有相对定位 */
    .industry-item.industry-divider {
        position: relative;
    }

    /* 添加分隔线 */
    .industry-item.industry-divider::before,
    .industry-item.industry-divider::after {
        content: '';
        position: absolute;
        width: 1px;
        top: 20px;  /* 与date对齐的位置 */
        height: 220px;  /* 固定高度 */
        background: rgba(0, 0, 0, 0.16);
        z-index: 1;
        margin-top:30px;
    }

    .industry-item.industry-divider::before {
        left: -10%;
    }

    .industry-item.industry-divider::after {
        right: -10%;
    }

    /* 确保行业观察内容等宽分布 */
    #industry .row {
        display: flex;
        justify-content: space-between;
    }
    
    #industry .col-md-4 {
        flex: 0 0 auto;
        width: 30%;
    }
}

.industry-item:hover {
    transform: translateY(-5px);
}

.industry-item .date {
    color: #999;
    font-size: 20px;
    margin-bottom: 20px;
}

.industry-item .title {
    font-size: 24px;
    color: #FF8F1F;
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.industry-item .content {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.industry-item .read-more {
    color: #FF8F1F;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transition: all 0.3s ease;
}

.industry-item .read-more:hover {
    color: #e67e0d;
    transform: translateX(5px);
}

.industry-item .read-more i {
    margin-left: 5px;
    font-size: 0.8rem;
}

.view-more {
    display: inline-flex;
    align-items: center;
    color: #ffa726;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.view-more:hover {
    color: #007bff;
}

.view-more i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* 移动端样式 */
@media (max-width: 767px) {
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }

    #industry .col-md-4 {
        position: relative;
        margin-bottom: 30px;  /* 添加底部间距 */
    }

    #industry .col-md-4::after {
        content: '';
        position: absolute;
        bottom: -15px;  /* 将线条放在margin-bottom的中间位置 */
        left: 0;
        width: 100%;
        height: 1px;
        background: rgba(0, 0, 0, 0.16);
    }

    /* 最后一个元素不需要底部分割线 */
    #industry .col-md-4:last-child::after {
        display: none;
    }
}

/* 桌面端样式 */
@media (min-width: 768px) {
    .footer-info h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 270px;
        height: 1px;
        background: rgba(255, 255, 255, 0.2);
    }

    .contact-info::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 270px;
        height: 1px;
        background: rgba(255, 255, 255, 0.2);
    }
}

/* 新闻动态样式 */
/* 容器宽度控制 */
@media (min-width: 1440px) {
    #news .container {
        max-width: 1240px;
    }
}

/* 新闻卡片布局 */
#news .row {
    display: flex;
    justify-content: space-between;
    margin: 0 -10px;  /* 抵消卡片padding造成的间距 */
}

#news .col-md-4 {
    width: 400px;
    padding: 0 10px;  /* 设置卡片间距 */
    margin-bottom: 20px;
    flex: 0 0 auto;  /* 防止卡片被压缩 */
}

#news .card {
    border: none;
    background: transparent;
}

#news .card-img-top {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

#news .card-body {
    padding: 20px 0;
    background: #fff;
}

#news .card-title {
    color: #FF8F1F;
    font-size: 20px;
    margin-bottom: 15px;
    padding-left: 25px;
    padding-right: 25px;
}

#news .card-text {
    font-size: 24px;
    color: #000;
    margin: 0;
    padding-left: 25px;
    padding-right: 25px;
}

/* 响应式调整 */
@media (max-width: 1439px) {
    #news .row {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    #news .col-md-4 {
        margin: 0 5px 20px;
    }
}

@media (max-width: 767px) {
    #news .col-md-4 {
        width: 100%;
        margin: 0 0 20px;
    }
}

/* 社会责任和加入许所样式 */
#social-join {
    background-color: #fff;
}

#social-join h2 {
    font-size: 24px;
    margin-bottom: 30px;
}

.social-grid,
.join-grid {
    display: flex;
    gap: 20px;
}

.social-item,
.join-item {
    position: relative;
    overflow: hidden;
    flex: 1;
    height: 180px;  /* 调整为180px高度 */
}

.social-item img,
.join-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.social-item:hover img,
.join-item:hover img {
    transform: scale(1.05);
}

.social-item .overlay,
.join-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-item .overlay .text-center,
.join-item .overlay .text-center {
    color: #fff;
    font-size: 20px;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .social-grid,
    .join-grid {
        flex-direction: column;
    }

    .social-item,
    .join-item {
        height: 200px;
    }

    #social-join .col-md-4 {
        margin-bottom: 20px;
    }
    
    #social-join .row {
        gap: 20px;
    }
}

@media (min-width: 1440px) {
    #social-join .container {
        max-width: 1240px;
    }
}

/* 联系我们样式 */
#contact {
    background-color: #fff;
    padding: 60px 0;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.contact-title {
    font-size: 36px;
    color: rgba(0, 0, 0, 0.85);  /* #d9000000 */
    margin: 0;
    line-height: 1;
}

.contact-link {
    font-size: 24px;
    color: #FF8F1F !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.8;
    color: #FF8F1F !important;
    text-decoration: none;
}

@media (min-width: 1440px) {
    #contact .container {
        max-width: 1240px;
    }
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem !important;
    transition: all 0.3s ease;
}

.search-btn svg {
    transition: transform 0.3s ease;
}

.search-btn:hover svg {
    transform: scale(1.1);
}

/* 当导航栏透明时的搜索按钮样式 */
.navbar:not(.scrolled) .search-btn svg {
    fill: white;
}

/* 当导航栏有背景时的搜索按钮样式 */
.navbar.scrolled .search-btn svg {
    fill: #333;
}

@media (max-width: 991px) {
    .search-btn {
        margin-left: 0;
        padding: 0.5rem 1rem !important;
    }
}

/* 操作按钮样式 */
.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #FF8F1F;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.action-btn:hover {
    background-color: #fff;
    color: #ff7c00;
    text-decoration: none;
}

.action-btn svg {
    flex-shrink: 0;
}

.action-btn span {
    font-size: 16px;
}

/* PC端样式 */
@media (min-width: 768px) {
    .action-buttons {
        position: fixed;
        right: 40px;
        bottom: 40px;
        flex-direction: column;
    }

    .action-btn {
        width: 140px;
        height: 44px;
    }

    /* 悬浮效果 */
    .action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 143, 31, 0.3);
    }
}

/* 移动端样式 */
@media (max-width: 767px) {
    .action-buttons {
        margin: 20px 0;
        justify-content: space-between;
    }

    .action-btn {
        flex: 1;
        padding: 12px;
    }

    .action-btn span {
        font-size: 14px;
    }
} 

/* 加载更多按钮样式 */
.btn-loadmore {
    display: inline-block;
    padding: 10px 30px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    margin-top: 50px;
    height: 50px;
    width: 100%;
    cursor: pointer;
}

.btn-loadmore:hover {
    background: #FF8F1F;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    border-color: #FF8F1F;
}

.btn-loadmore:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loadmore {
    margin: 2rem auto;
    text-align: center;
}

.loadmore-line {
    border-top: 1px solid #eee;
    margin-top: 2.5rem;
    position: relative;
}

.loadmore-tips {
    position: relative;
    top: -0.9em;
    background: #fff;
    padding: 0 0.55em;
    color: #999;
    font-size: 14px;
} 

/* 面包屑导航样式 */
.breadcrumb {
    margin: 0;
    padding: 20px 0;
    background: transparent;
    display: flex;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item.active {
    color: #FF8F1F;
}

.breadcrumb-item a:hover {
    color: #FF8F1F;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #666;
}

/* 律师卡片样式 */
.lawyer-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    min-height: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    margin-left: auto; /* 添加这行使卡片靠右 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lawyer-info {
    flex: 1;
    padding: 24px;
    position: relative;
    z-index: 2;
}

.lawyer-header {
    margin-bottom: 16px;
}

.lawyer-name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.lawyer-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.lawyer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.lawyer-tags .tag {
    padding: 4px 12px;
 /*   background: rgba(255, 143, 31, 0.1);  */
    color: #FF8F1F;
    border-radius: 20px;
    font-size: 12px;
}

.lawyer-image {
    width: 140px;
    position: relative;
    overflow: hidden;
}

.lawyer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-wrapper {
    position: relative;
    margin-top: auto;
}

.contact-btn {
    display: inline-block;
    padding: 8px 24px;
    background: #FF8F1F;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #ff7c00;
    color: white;
    transform: translateY(-2px);
}

.card-line {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #FF8F1F 0%, rgba(255, 143, 31, 0) 100%);
}

/* 律师卡片光晕效果 */
.lawyer-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 143, 31, 0.1),
        transparent 40%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lawyer-card:hover::before {
    opacity: 1;
}

.lawyer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}