/*--------------------- Copyright 2024 ----------------------- 
[Master Stylesheet] 
Project: LensLux
Version: 1.0.0 
Author: PixelNX
-------------------------------------------------------------------*/
/**********************************
 	1. Global CSS Start 
 **********************************/
:root {
    --lenslux-main-bg: #ffffff;
    --lenslux-alternate-bg: #ffffff; /* æç»çæçé£ä¸ä¸ª */
    --lenslux-font-color: #747474;
    --lenslux-title-color: #202020;
    --lenslux-white: #ffffff;
    --lenslux-primary-color: #ff9900;
    --lenslux-border-color: #efefef;
    --lenslux-input-border: #e5e5e5;
    --lenslux-input-bg: #ffffff;
    --lenslux-yellow: #ffaa17;
    --lenslux-green: #53d575;
    --lenslux-footer-bg: #121212;
    --lenslux-copyright-bg: #0c0b0b;
    --lenslux-placeholder: #b8bdc9;
    --lenslux-black: #000000;
    --lenslux-radius0: 0;
    --lenslux-radius-comman: 6px;
    --lenslux-radius10: 10px;
    --lenslux-font-size: 14px;
    --lenslux-title-size: 42px;
    --lenslux-sub-title-size: 26px;
    --lenslux-widgets-title-size: 22px;
    --lenslux-shadow: 0 0 30px 0 rgb(0 0 0 / 8%);
    --lenslux-transition: all 0.3s;
}




/**********************************
 	Category CSS Start
 **********************************/

.lens-game-catergoy {
    text-align: center;
    background: var(--lenslux-white);
    padding: 10px;
    min-height: 100px;
    margin: 0 0 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px 0 rgb(0 0 0 / 8%);
    border-radius: 10px;
}

.lens-game-catergoy:hover {
    -webkit-transform: translateY(-10px);
    -moz-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    -o-transform: translateY(-10px);
    transform: translateY(-10px);
}

.lens-game-catergoy:hover,
.lens-game-catergoy,
.lens-game-catergoy:hover h4,
.lens-game-catergoy h4,
.lens-game-catergoy:hover .lens-catergory-icon:before,
.lens-game-catergoy .lens-catergory-icon:before,
.lens-game-catergoy .lens-catergory-icon .lens-icon-sm,
.lens-game-catergoy:hover .lens-catergory-icon .lens-icon-sm {
    -webkit-transition: var(--lenslux-transition);
    -moz-transition: var(--lenslux-transition);
    -ms-transition: var(--lenslux-transition);
    -o-transition: var(--lenslux-transition);
    transition: var(--lenslux-transition);
}


.lens-game-catergoy h4 {
    font-size: 14px;
	font-weight:500;
    margin: 0;
    text-align: center;
    width: 100%;
    padding: 15px 10px 5px;
}
.lens-game-catergoy:hover h4 {
    color: var(--lenslux-primary-color);
}
.lens-catergory-icon {
    position: relative;
    width: 100%;
}
.lens-catergory-icon:before {
    content: "";
    position: absolute;
    background: #004c97;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: 6px;
    opacity: 0;
    transform: scale(0);
}
.lens-game-catergoy:hover .lens-catergory-icon:before {
    opacity: .6;
    transform: scale(1);
}
.lens-game-catergoy-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}
.lens-catergory-icon img {
    max-height: 230px;
    border-radius: 5px;
    width: 100%;
    object-fit: cover;
}
.lens-catergory-icon .lens-icon-sm {
    position: absolute;
    top: 0;
    transform: scale(0);
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    color: var(--lenslux-primary-color);
    justify-content: center;
    opacity: 0;
}
.lens-game-catergoy:hover .lens-catergory-icon .lens-icon-sm {
    transform: scale(1);
    opacity: 1;
}

/**********************************
 	Products Thumb Start
 **********************************/
.lens-category-wrapper { background:#FFF;}
.lens-spacer {
    padding: 20px 0 10px;
}

.lens-spacer-equal {
	background:#ffffff;
    padding: 10px 0;
}
/* Title Main */

.lens-has-bg {
    background: var(--lenslux-alternate-bg);
}



/** Read More Link **/

.lens-read-more {
    display: inline-block;
    color: var(--lenslux-title-color);
    position: relative;
    padding: 0;
    margin: 0 0 0;
    font-weight: 500;
}

.lens-read-more:hover {
    color: var(--lenslux-primary-color);
}

.lens-read-more:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--lenslux-title-color);
    height: 1px;
    width: 100%;
}

.lens-read-more:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--lenslux-primary-color);
    height: 1px;
    width: 0%;
}

.lens-read-more:hover:after {
    width: 100%;
}

.lens-read-more:after,
.lens-read-more:hover:after {
    -webkit-transition: var(--lenslux-transition);
    -moz-transition: var(--lenslux-transition);
    -ms-transition: var(--lenslux-transition);
    -o-transition: var(--lenslux-transition);
    transition: var(--lenslux-transition);
}


/**/


/* Title Style Two */

.lens-section-title {
    margin: 0 auto 41px;
    text-align: center;
    max-width: 680px;
}

.lens-section-title h4,
.lens-section-title h5 {
    height: 75px;
    line-height: 90px;
    margin: 0 auto;
    color: #000;
    border-bottom: 2px solid #004c97;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    position: relative;
}

.lens-section-title h4 { width: 200px; }
.lens-section-title h5 { width: 130px; }

@media (min-width: 1200px) {
    .container {
        max-width: 1180px;
    }
    /*Header*/
}

@media (min-width: 1440px) {
    .container {
        max-width: 1420px;
    }
}

@media (max-width: 1199.98px) {
	 .f_top .wrap .right dl {
        margin-right: 20px;
    }
    .foot_contact_text span {
        padding-left: 0 !important; /* 移除内联样式的左内边距 */
        display: inline-block;
        margin-top: 5px;
    }
    /* Newsletter*/
    .lens-blog-data h4 {
        font-size: 20px;
    }

}

@media (max-width: 991.98px) {
    .f_top .wrap {
        flex-direction: column;
        text-align: center;
    }
    .f_top .left,
    .f_top .right {
        width: 100%;
        text-align: center;
    }
    .f_top .left {
        margin-bottom: 30px;
    }
    .f_top .right {
        display: flex;
        justify-content: center;
        gap: 40px;
        flex-wrap: wrap;
    }
    .f_top .right dl {
        margin: 0 15px;
        text-align: left;
    }
    /* 联系信息中的内联块元素改为块级，便于换行 */
    .foot_contact_text br {
        display: none;
    }
    .foot_contact_text a,
    .foot_contact_text span {
        display: block;
        margin: 5px 0;
        padding-left: 0 !important;
    }
    .foot_contact_icon {
        margin-top: 15px;
    }
    .foot_contact_icon a {
        margin: 0 8px;
    }
    /* 版权区域 */
    .f_bott .wrap {
        text-align: center;
        padding: 15px;
    }
    /* 快捷链接（移动端常见折叠组件）*/
    .m_link .tab {
        cursor: pointer;
        background: #f5f5f5;
        padding: 12px;
        font-weight: bold;
    }
    .m_link .tab_con {
        display: none; /* 默认隐藏，可配合js点击展开，如需始终显示请删除此行 */
        padding: 10px 0;
    }
    /* 如果需要始终显示，请注释上面两行 */


}

@media (max-width: 767.98px) {
	.f_top .right {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .f_top .right dl {
        width: 80%;
        text-align: center;
        margin: 0 auto;
    }
    .f_top .right dl dt {
        font-size: 16px;
        margin-bottom: 8px;
    }
    .f_top .right dl dd {
        margin: 6px 0;
    }
    .foot_contact_text {
        font-size: 13px;
    }
    .foot_contact_text i.fa {
        width: 24px;
    }
    .foot_contact_icon a i {
        font-size: 28px !important;
    }
    .f_bott .left {
        font-size: 12px;
    }
    /* Header Logo */
    .logo {
        font-size: 14px;
    }
    /* Footer */
    /* Newsletter Modal CSS */
    /**/ 
}

/* Products Grid */
.lens-products-grid {
    display: flex;
    gap: 30px;
    width: 100%;
}

.lens-products-grid > * {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
}

.lens-product-card {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.lens-product-card {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.lens-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.lens-product-card .card-img {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.lens-product-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lens-product-card:hover .card-img img {
    transform: scale(1.08);
}

.lens-product-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,76,151,0.85) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lens-product-card:hover .card-overlay {
    opacity: 1;
}

.lens-product-card .card-content {
    padding: 25px;
    text-align: center;
}

.lens-product-card .card-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #202020;
}

.lens-product-card .card-content p {
    font-size: 14px;
    color: #747474;
    margin: 0 0 20px;
    line-height: 1.6;
}

.lens-product-card .card-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #004c97;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 25px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lens-product-card .card-btn:hover {
    background: #ff9900;
    color: #fff;
}

.lens-product-link {
    display: block;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .lens-products-grid {
        flex-direction: column;
    }
    
    .lens-product-card .card-img {
        height: 220px;
    }
}

@media (max-width: 575.98px) {
	   .f_top .left .title {
        font-size: 18px;
    }
    .foot_contact_text {
        font-size: 12px;
        line-height: 1.6;
    }
    .foot_contact_icon a i {
        font-size: 24px !important;
        margin: 0 5px;
    }
    .f_top .right dl dd a {
        font-size: 12px;
    }
    .f_bott .left {
        font-size: 10px;
    }
    /* 快捷链接区域 */
    .m_link .tab {
        font-size: 14px;
        padding: 10px;
    }
    .m_link .tab_con ul li a {
        font-size: 12px;
    }
    .lens-section-title h4 {
        font-size: 22px;
    }
}

/**********************************
 * Events Section - Featured + List Layout
 **********************************/
.lens-blog-wrapper{
	padding-bottom:50px;
	}
	
.lens-events-split {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: stretch;
}

/* Left Featured News - 2 Cards Side by Side */
.lens-events-featured {
    flex: 0 0 55%;
    max-width: 55%;
}

.lens-featured-grid {
	
    display: flex;
    flex-direction: row;    
	gap: 20px;  
    height: 100%;
}

.lens-featured-card {
    position: relative;
    flex: 1;
    min-height: 220px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--lenslux-shadow);
    display: block;
}

.lens-featured-card .lens-featured-img {
    position: relative;
    width: 100%;
    height: 100%;
	    min-height: 200px;
    overflow: hidden;
}

.lens-featured-card .lens-featured-img img {
	height: 200px;       /* 固定图片高度，让图片显示更充分 */
    object-fit: cover;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lens-featured-card:hover .lens-featured-img img {
    transform: scale(1.05);
}

.lens-featured-card .lens-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 18px 18px 18px; 
	  background: linear-gradient(to top, rgba(0, 76, 151, 0.95) 0%, rgba(0, 76, 151, 0.6) 90%, transparent 100%);
    transition: background 0.4s ease;
    text-align: left;     
    color: #fff;
}

.lens-featured-card:hover .lens-featured-overlay {
       background: linear-gradient(to top, rgba(255, 153, 0, 0.95) 0%, rgba(255, 153, 0, 0.6) 90%, transparent 100%);
    transition: background 0.3s ease;
}

.lens-featured-card .lens-featured-overlay {
    transition: background 0.3s ease;
	 padding: 30px 20px 20px 20px; 
}

.lens-featured-card .lens-blog-cat {
    position: absolute;
    top: 10px;
    left: 0;
    background: var(--lenslux-primary-color);
    color: var(--lenslux-white);
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.lens-featured-card .lens-blog-cat:after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    border-top: 13px solid var(--lenslux-primary-color);
    border-bottom: 13px solid var(--lenslux-primary-color);
    border-right: 8px solid transparent;
}

.lens-featured-card .lens-featured-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lens-featured-card .lens-featured-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lens-featured-card .lens-featured-date {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 20px;
    backdrop-filter: blur(2px);
    color: #fff;
    text-transform: uppercase;
}

.lens-featured-card .lens-featured-date::before { 
	content: "\f073";              
    font-family: 'FontAwesome';
    display: inline-block;
    width: auto;                     
    height: auto;
    background: none;               
    border-radius: 0;
    margin-right: 8px;
    font-size: 13px;               
    color: #fff;                     /* 改为白色，与文字同色 */
	 vertical-align: middle;
}

.lens-news-date::before {
    content: "\f073";                /* 日历图标 */
    font-family: 'FontAwesome';
    display: inline-block;
    margin-right: 6px;
    font-size: 12px;                /* 与日期文字大小匹配 */
    color: #999;                    /* 与日期文字颜色一致 */
    vertical-align: middle;
}

.lens-featured-card .lens-featured-img::after {
	    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent 60%);
    pointer-events: none;
	}


/* Right News List Wrapper */
.lens-events-list-wrapper {
    flex: 0 0 calc(45% - 30px);
    max-width: calc(45% - 30px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Left Featured News - 2 Cards Side by Side */
.lens-events-featured {
    flex: 0 0 55%;
    max-width: 55%;
}

/* Scrollable News List - Show only 4 items */
.lens-events-list {
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 15px;
    max-height: 280px;
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.lens-events-list::-webkit-scrollbar {
    width: 6px;
}

.lens-events-list::-webkit-scrollbar-track {
    background: transparent;
}

.lens-events-list::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.lens-events-list::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}

.lens-news-list-item {
    padding: 16px 0;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.lens-news-list-item:first-child {
    padding-top: 0;
}

.lens-news-list-item:last-child {
    border-bottom: none;
}

.lens-news-list-item:hover {
    padding-left: 10px;
}

.lens-news-list-item:hover .lens-news-list-title {
    color: var(--lenslux-primary-color);
}

.lens-news-list-item::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 50%;
    background: var(--lenslux-primary-color);
    transition: transform 0.3s ease;
}

.lens-news-list-item:hover::before {
    transform: translateY(-50%) scaleY(1);
}

.lens-news-list-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lens-news-list-meta .lens-news-cat {
    color: #004c97;
    font-weight: 500;
}

.lens-news-list-meta .lens-news-date {
    color: #999;
}

.lens-news-list-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.0;
    margin: 0;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
        overflow: visible;        /* 不隐藏溢出内容 */
    text-overflow: unset;     /* 移除省略号 */
    word-break: break-word;   /* 长单词或链接自动换行 */
    margin-bottom: 2px;       /* 增加一点底部间距 */
}

/* View All Button - Blue default, Yellow on hover */
.lens-view-all-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #004c97;
    color: #fff !important;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.lens-view-all-btn:hover {
    background: #ff9900;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,153,0,0.4);
}

/* Responsive */
@media (max-width: 991.98px) {
    .lens-events-split {
        flex-direction: column;
    }

    .lens-events-featured,
    .lens-events-list-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .lens-featured-grid {
        flex-direction: row;
        gap: 15px;
    }

    .lens-featured-card {
        min-height: 140px;
    }

    .lens-news-list-item:hover {
        padding-left: 5px;
    }

    .lens-news-list-item::before {
        left: -5px;
    }

    .lens-events-list {
        max-height: 280px;
    }
	
	 .lens-featured-card .lens-featured-img img {
        height: 180px;   /* 平板稍微降低 */
    }
    .lens-featured-card .lens-featured-overlay {
        padding: 16px 15px;
    }
    .lens-featured-card .lens-featured-title {
        font-size: 17px;
    }
}

@media (max-width: 575.98px) {
    .lens-featured-grid {
        flex-direction: column;
    }
.lens-featured-card .lens-featured-title {
        font-size: 15px;
    }
    .lens-featured-card .lens-featured-date,
    .lens-featured-card .lens-featured-desc {
        font-size: 12px;
    }
    .lens-featured-card {
        min-height: 120px;
    }

    .lens-featured-card .lens-featured-overlay {
        padding: 15px 12px 12px;
    }

    .lens-featured-card .lens-featured-title {
        font-size: 16px;
            color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }

    .lens-news-list-title {
        font-size: 14px;
    }

    .lens-events-list {
        max-height: 240px;
    }
	    .lens-featured-card .lens-featured-img img {
        height: 160px;
    }
    .lens-featured-card .lens-featured-title {
        font-size: 16px;
    }
    .lens-featured-card .lens-featured-desc {
        font-size: 12px;
    }
}


