.none {
    display: none;
}
.banner {
}
.banner img {
    display: block;
    width: 100%;
}
.items-title {
    margin-bottom: 24px;
    text-align: center;
}
.items-title h5 {
    margin: 0;
    padding: 0;
    color: #444;
}
.items-title span {
    display: block;
    text-align: center;
    padding: 4px 0;
    font-size: 15px;
    font-weight: bold;
    color: var(--primary-color);
}
.items-title .d {
    position: relative;
    height: 10px;
}
.items-title .d::after {
    position: absolute;
    top: 50%;
    left: 50%;
    content: '';
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
}
.items-title .d::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    right: 0;
    width: 200px;
    height: 2px;
    background: #eee;
    transform: translate(-50%, -50%);
}

.news-nav .news-category {
    padding-left: 0;
    margin-bottom: 10px;
    display: flex;
}

.news-nav .news-category li {
    margin-right: 10px;
    position: relative;
    padding: 10px;
    font-size: 18px;
    color: #cacaca;
    cursor: pointer;
}

.news-nav .news-category li::before {
    position: absolute;
    left: 0;
    bottom: 0;
    content: '';
    width: 100%;
    height: 3px;
    background: #cacaca;
    display: inline-block;
    margin-right: 10px;
}

.news-nav .news-category li.active {
    color: var(--primary-color);
}

.news-nav .news-category li.active::before {
    background: var(--primary-color);
}
.news-list-wrap {
    position: relative;
}
.news-list-wrap .list-group {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}
.list-group {
    /* margin-top: 15px; */
    border: none;
}

.list-group a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: none;
    border-bottom: 1px solid #dddddd !important;
    border-radius: 0 !important;
}

.list-group a > span:first-child {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.list-group a > span:last-child {
    flex-shrink: 0;
}


.main-content h3 {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 15px;
}
.main-content h3 span {
    padding: 10px 15px;
    display: inline-block;
    color: #fff;
    background: var(--primary-color);
    position: relative;
}

.main-content h3 span::after {
    content: '';
    position: absolute;
    right: -27px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 27px solid var(--primary-color);
    border-right: 27px solid transparent;
    border-bottom: 27px solid var(--primary-color);
}

.main-content .item {
    width: var(--width);
    margin: 0 auto;
}

.main-content .item + .item {
    margin-top: 4rem;
}

.carousel {
    border-radius: 10px;
    overflow: hidden;
}

.item-2 {

}

.item-2 .box {
    position: relative;
    overflow: hidden;
    height: 380px;
}
.item-2 .box .content-text {
    padding-top: 40px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    background-color: rgba(161, 50, 31, .8);
}
.item-2 .box .content-text-title {
    text-align: center;
}
.item-2 .box .content-text-title h5 {
    margin: 0;
    padding: 0;
}
.item-2 .box .content-text-title span {
    font-size: 14px;
    color: #fff;
}
.item-2 .box .content-text-title .d {
    position: relative;
    height: 10px;
}
.item-2 .box .content-text-title .d::after {
    position: absolute;
    top: 50%;
    left: 50%;
    content: '';
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
}
.item-2 .box .content-text-title .d::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    right: 0;
    width: 200px;
    height: 2px;
    background: #fff;
    transform: translate(-50%, -50%);
}
.item-2 .box .introduction {
    padding: 40px 60px 20px;
}
.item-2 .box .introduction p {
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: inherit;
    text-indent: 2rem;
    line-height: 2;
}
.item-2 .box .introduction p.s {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.item-2 .box img {
    z-index: -1;
    display: block;
    width: 100%;
    transform: translateY(-14px);
}
.item-2 .box .more {
    margin-right: 60px;
    float: right;
    padding: 10px;
    background: var(--primary-color);
    text-align: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #fff;
    cursor: pointer;
    opacity: .8;
    text-decoration: none;
}
.item-3 {
}
.item-3 h5{
    text-align: center;
}
.item-3 .cases-list{
    display: flex;
    flex-direction: column;
}
.item-3 .cases-list a {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    font-size: 13px;
    text-decoration: none;
    color: #666;
}
.item-3 .cases-list a span:first-child {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.item-3 .cases-list a span:last-child {
    flex-shrink: 0;
}
.item-4 .row + .row {
    margin-top: 15px;
}
.item-4 .card-title {
    margin-bottom: 0;
}

.item-4 .card {
    border: none;
    box-shadow: 0 1px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.item-4 .card-body {
    position: relative;
    color: #444;
    border: 0 !important;
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.1); */
}

.item-4 .card-body .bi {
    font-size: 2rem;
}

.item-4 .card-body .card-title {
    margin-top: 20px;
    font-size: 14px;
}
.item-4 .card-body .card-title-en {
    color: #888;
    font-size: 12px;
}
.item-4 .card-body .d {
    margin: 6px auto;
    width: 22px;
    height: 2px;
    background-color: #999;
}
.item-4 .card-body a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.item-4 .card:hover {
    background-color: var(--primary-color);
}
.item-4 .card:hover .card-body .bi {
    color: #fff;
}
.item-4 .card:hover .card-body .card-title {
    color: #fff;
}
.item-4 .card:hover .card-body .card-title-en {
    color: #fff;
}
.item-4 .card:hover .card-body .d {
    background-color: rgba(255, 255, 255, .8);
}

.item-5 .card {
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.item-5 .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.item-5 .lawyer-img {
    width: 120px;
    margin: 20px auto;
    object-fit: cover;
    /* border-radius: 10px; */
}

.item-5 .card-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: left;
    max-height: 100px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-5 .lawyer-card {
    background: #f9f9f9;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
    margin-bottom: 20px;
}

.item-5 .lawyer-card:hover {
    transform: scale(1.05);
}

.item-5 .lawyer-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.item-5 .lawyer-card .card-body {
    padding: 15px;
    text-align: center;
}

.item-6 {
    margin-top: 30px;
}
.item-6 .items-title {
    margin-bottom: 0;
}

.lawyer-photos {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    background: #fff;
}

.lawyer-photos .photo-container {
    display: flex;
    animation: scrollLeft 30s linear infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.lawyer-photo {
    flex: 0 0 auto;
    width: 200px;
    height: 260px;
    margin: 0 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

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

.lawyer-photo .lawyer-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    font-size: 18px;
    z-index: 1;
}

.lawyer-photo a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.lawyer-photo:hover {
    transform: translateY(-5px);
    transition: transform 0.3s;
}

@keyframes scrollLeft {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.photo-container {
    display: flex;
    width: fit-content;
}

.photo-container .photo-group {
    display: flex;
    flex-shrink: 0;
}

.lawyer-photos:hover .photo-container {
    animation-play-state: paused;
}


#carouselExampleIndicators .carousel-inner {
    overflow: hidden;
    height: 309px;
}

#carouselExampleIndicators .carousel-inner .carousel-item {
    height: 100%;
}

#carouselExampleIndicators .carousel-item img {
    object-fit: cover;
}
.floating-window .wechat {
    margin-top: 10px;
    text-align: center;
}

.floating-window .wechat img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.floating-window {
  position: fixed;
  right: 20px;
  top: 100px;
  width: 170px;
  padding: 20px 15px;
  background: linear-gradient(135deg, #a13215 0%, #c14628 100%);
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(161, 50, 21, 0.4);
  z-index: 1000;
  transition: none;
}

.floating-window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  border-radius: 8px;
  z-index: -1;
}

.floating-window p {
  margin: 0;
  font-size: 15px;
  text-align: center;
  color: #fff;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.floating-window p:last-child {
  font-size: 18px;
  font-weight: bold;
  margin-top: 5px;
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  padding: 0 5px;
}

.close-btn:hover {
  color: #fff;
}