.header-box .navbox {
    background-color: #fff;
    height: 42px;
    width: 100%;
    position: fixed;
    z-index: 9999;
    box-shadow: 0 1px 25px 0 rgba(0, 0, 0, .5);
}

.header-box .navbox a {
    color: #FF9800;
}

.header-box {
    margin-bottom: 0;
}

.item-logo img {
    height: 38px;
}

.navbox .dis-flex div {
    margin: 0;
}

.ellipsis-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* 限制显示的行数 */
    -webkit-box-orient: vertical;
    /* 设置文本的排列方式为纵向排列 */
    overflow: hidden;
    /* 超出部分隐藏 */
    text-overflow: ellipsis;
    /* 超出部分显示省略号 */
}

.ellipsis-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* 限制显示的行数 */
    -webkit-box-orient: vertical;
    /* 设置文本的排列方式为纵向排列 */
    overflow: hidden;
    /* 超出部分隐藏 */
    text-overflow: ellipsis;
    /* 超出部分显示省略号 */
}

.ellipsis-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* 限制显示的行数 */
    -webkit-box-orient: vertical;
    /* 设置文本的排列方式为纵向排列 */
    overflow: hidden;
    /* 超出部分隐藏 */
    text-overflow: ellipsis;
    /* 超出部分显示省略号 */
}

.ellipsis-8 {
    display: -webkit-box;
    -webkit-line-clamp: 8;
    /* 限制显示的行数 */
    -webkit-box-orient: vertical;
    /* 设置文本的排列方式为纵向排列 */
    overflow: hidden;
    /* 超出部分隐藏 */
    text-overflow: ellipsis;
    /* 超出部分显示省略号 */
}

.focus-container {
    width: 100%;
    text-align: center;
}

.focus-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 20px;
}

.focus-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    text-align: center;
}

.focus-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
    transform: translate3d(0, -2px, 0);
}

.focus-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.focus-item p {
    color: #333;
    text-align: left;
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
}

.focus-item a {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: #007BFF;
    text-decoration: none;
}

.focus-item a:hover {
    color: #FF9800;
}

.masonry-container {
    column-count: 3;
    /* 默认三列 */
    column-gap: 1em;
    /* 列之间的间距 */
}

/* 每个瀑布流项 */
.masonry-item {
    background: #fff;
    margin-bottom: 1em;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px;
    break-inside: avoid;
    /* 避免分割 */
}

/* 图片样式 */
.item-image img {
    width: 100%;
    border-radius: 5px;
    display: block;
}

/* 内容样式 */
.item-content h3 {
    font-size: 18px;
    margin: 10px 0 5px;
}

.item-content a {
    text-decoration: none;
    color: #007BFF;
    font-size: 14px;
}

/* .item-content a:hover {
    text-decoration: underline;
} */

.mySwiper1 .swiper-slide {
    float: unset;
    height: auto !important;
}

.mySwiper1 .swiper-wrapper {
    height: auto !important;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    width: calc(25% - 20px);
    /* 4个元素每行，间距20px */
    margin-right: 20px;
    text-align: center;
    background-color: #f0f0f0;
    padding: 20px;
    box-sizing: border-box;
}

.carousel-item a {
    display: block;
    width: 100%;
    height: 100%;
    color: #333;
    text-decoration: none;
    background-color: #ddd;
    line-height: 150px;
}

.carousel-item:last-child {
    background-color: #f4f4f4;
}

.carousel-item a.more {
    background-color: #4CAF50;
    color: white;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.itemtit-dim {
    position: relative;
}
.itemtit-dim:before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 39%;
    height: 1px;
    background: #008de2;
}
.itemtit-dim span {
    display: block;
    width: 22%;
    margin: 0 auto;
    border: 1px solid #008de2;
    font-size: 46px;
    font-weight: bold;
    color: #008de2;
    background-image: none;
    padding: 5px 0;
    text-align: center;
}
.itemtit-dim:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 39%;
    height: 1px;
    background: #008de2;
}
.scale {
    position: relative;
}
.scale .video-icon {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -25px;
    margin-left: -25px;
    width: 50px;
    height: 50px;
    background: url(https://www.orangenews.hk/static/orange/img/video-icon.png?v=1.1) no-repeat;
    background-size: 50px 50px;
}

.swiper-button-next:after, .swiper-button-prev:after{
    display: none;
}

.nextpage img {
    height: 35px;
}
.bdy_wrapper {
    position: relative;
}
.left-banner img,.right-banner img{
    width: 5rem;
    position: absolute;
    top: 30px;
}
.left-banner img {
    left: -5rem;
}
.right-banner img {
    right: -5rem;
}
.topNews .font_24 {
    font-size: 22px;
    line-height: 28px;
}
#btn-up {
    width: 30px;
    background: rgba(0, 0, 0, .3);
    position: fixed;
    bottom: 10%;
    right: 10%;
    border-radius: 5px;
    display: none;
    cursor: pointer;
}

.swiper-video .swiper-slide {
    margin-left: 0 !important;
}

@media (max-width: 768px) {
    .carousel-item {
        width: calc(50% - 20px);
        /* 小屏幕显示2个元素 */
    }
    .itemtit-dim span {
        padding: 10px 0;
        font-size: 14px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .carousel-item {
        width: 100%;
        /* 手机屏幕每行一个元素 */
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .focus-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .masonry-container {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .focus-grid {
        grid-template-columns: 1fr;
    }

    .focus-title {
        font-size: 24px;
    }

    .focus-item p {
        font-size: 12px;
    }

    .masonry-container {
        column-count: 1;
    }
}

@media (max-width:992px) {
    .header-box .item-logo img {
        width: 340px;
    }
}