/*
Theme Name: 利乐娱乐主题
Theme URI: https://www.ky-sport.com
Description: 利乐娱乐官方WordPress主题，基于Bootstrap框架开发，响应式设计，适合体育博彩网站使用。
Version: 1.0
Author: 利乐娱乐
Author URI: https://www.ky-sport.com
License: GPL2
*/

/* 主题样式开始 */
body{
    font-family: 'Open Sans', sans-serif;
    color: #222;
    overflow-wrap: break-word;
    text-align: justify;
    word-break: break-all;
}

a{
    color: #33ccff;
    text-decoration: none;
}

a:hover{
    color: #3291e6;
    text-decoration: none;
}

h1,h2,h3,h4,h5,h6{
    font-family: 'Raleway', sans-serif;
}

/* 预加载器 */
#preloader{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow: hidden;
    background: #fff;
}

#preloader:before{
    content: "";
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    border: 6px solid #33ccff;
    border-top-color: #d1e6f9;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader{
    0%{transform: rotate(0deg)}
    100%{transform: rotate(360deg)}
}

/* 添加fadeIn动画 */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 返回顶部按钮 */
.back-to-top{
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 996;
    background: #33ccff;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.4s;
}

.back-to-top i{
    font-size: 28px;
    color: #fff;
    line-height: 0;
}

.back-to-top:hover{
    background: #298ce5;
    color: #fff;
}

.back-to-top.active{
    visibility: visible;
    opacity: 1;
}

/* 头部样式 */
#header{
    background: #fff;
    transition: all 0.5s;
    z-index: 997;
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(25,119,204,0.1);
}

#header.header-scrolled{
    top: 0;
}

#header .logo{
    font-size: 30px;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

#header .logo a{
    color: #000;
}

#header .logo img{
    max-height: 40px;
}

/* 预约按钮 */
.appointment-btn{
    margin-left: 25px;
    background: #33ccff;
    color: #fff;
    border-radius: 50px;
    padding: 8px 25px;
    white-space: nowrap;
    transition: 0.2s;
    font-size: 18px;
    display: inline-block;
}

.appointment-btn:hover{
    background: #166ab5;
    color: #fff;
}

@media(max-width: 768px){
    .appointment-btn{
        margin: 0 15px 0 0;
        padding: 6px 18px;
    }
}

/* 导航菜单 */
.navbar{
    padding: 0;
}

.navbar ul{
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
}

.navbar li{
    position: relative;
}

.navbar > ul > li{
    position: relative;
    white-space: nowrap;
    padding: 8px 0 8px 20px;
}

.navbar a{
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    color: #000;
    white-space: nowrap;
    transition: 0.3s;
    border-bottom: 2px solid #fff;
    padding: 5px 2px;
}

.navbar a i{
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
}

.navbar a:hover, .navbar .active, .active > a, .navbar li:hover > a{
    color: #33ccff;
    border-color: #33ccff;
}

/* 移动端导航 */
.mobile-nav-toggle{
    color: #000;
    font-size: 28px;
    cursor: pointer;
    display: none;
    line-height: 0;
    transition: 0.5s;
}

@media(max-width: 991px){
    .mobile-nav-toggle{
        display: block;
    }
    .navbar ul{
        display: none;
    }
}

/* Hero部分 */
#hero{
    width: 100%;
    height: 90vh;
    background: linear-gradient(60deg,rgba(84,58,183,1) 0%,rgba(0,172,193,1) 100%);
    color: #fff;
    margin-bottom: -140px;
}

#hero .container{
    position: relative;
}

#hero h1{
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
    text-transform: uppercase;
    color: #fff;
}

#hero h2{
    color: #fff;
    margin: 10px 0 0;
    font-size: 24px;
}

#hero .btn-get-started{
    font-family: 'Microsoft YaHei', '微软雅黑', STXihei, '华文细黑', sans-serif;
    text-transform: uppercase;
    font-weight: 550;
    font-size: 20px;
    letter-spacing: 0;
    display: inline-block;
    padding: 12px 28px;
    margin: 10px 15px;
    margin-top: 30px;
    border-radius: 50px;
    transition: 0.5s;
    color: #fff;
    background: #33ccff;
    min-width: 196px;
}

#hero .btn-get-started:hover{
    background: #3291e6;
}

/* 波浪效果 */
.waves{
    position: relative;
    width: 100%;
    height: 140px;
    margin-bottom: -7px;
    min-height: 140px;
    max-height: 140px;
}

.parallax > use{
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.parallax > use:nth-child(1){
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax > use:nth-child(2){
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax > use:nth-child(3){
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax > use:nth-child(4){
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0%{transform: translate3d(-90px,0,0)}
    100%{transform: translate3d(85px,0,0)}
}

/* 响应式设计 */
@media(max-width: 992px){
    #hero{
        margin-bottom: -80px;
        height: auto!important;
    }
    
    .waves{
        height: 80px;
        min-height: 80px;
        max-height: 80px;
    }
    
    #hero h1{
        font-size: 28px;
        line-height: 36px;
    }
    
    #hero h2{
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 30px;
    }
}

/* 背景色 */
.section-bg, .testimonials, .counts, #footer{
    background-color: #fffcf5;
}

/* 通用样式 */
section{
    padding: 60px 0;
    overflow: hidden;
}

.section-title{
    text-align: center;
    padding-bottom: 30px;
}

.section-title h2{
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
    color: #000;
}

.section-title h2::before{
    content: '';
    position: absolute;
    display: block;
    width: 120px;
    height: 1px;
    background: #ddd;
    bottom: 1px;
    left: calc(50% - 60px);
}

.section-title h2::after{
    content: '';
    position: absolute;
    display: block;
    width: 40px;
    height: 3px;
    background: #33ccff;
    bottom: 0;
    left: calc(50% - 20px);
}

/* 为什么选择我们 */
.why-us .content{
    padding: 25px;
    background: #66ccff;
    border-radius: 4px;
    color: #333;
    font-weight: 550;
}

.why-us .content h3{
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 30px;
}

.why-us .icon-boxes .icon-box{
    text-align: center;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 40px 30px;
    width: 100%;
}

.why-us .icon-boxes .icon-box h4{
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 30px;
}

/* 关于我们 */
.about .icon-box{
    margin-top: 40px;
}

.about .icon-box .icon{
    float: left;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: 2px solid #8dc2f1;
    border-radius: 50px;
    transition: 0.5s;
}

.about .icon-box .icon i{
    color: #33ccff;
    font-size: 32px;
}

.about .icon-box:hover .icon{
    background: #33ccff;
    border-color: #33ccff;
}

.about .icon-box:hover .icon i{
    color: #fff;
}

.about .icon-box .title{
    margin-left: 85px;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 18px;
}

.about .icon-box .description{
    margin-left: 85px;
    line-height: 24px;
    font-size: 15px;
}

/* 服务 */
.services .icon-box{
    text-align: center;
    border: 1px solid #d5e1ed;
    padding: 20px;
    transition: all ease-in-out 0.3s;
}

.services .icon-box:hover{
    background: #33ccff;
    border-color: #33ccff;
}

.services .icon-box:hover h4 a, .services .icon-box:hover p{
    color: #fff;
}

.services .icon-box h4{
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 24px;
}

.services .icon-box h4 a{
    color: #000;
}

.services .icon-box p{
    line-height: 24px;
    font-size: 15px;
    margin-bottom: 0;
}

/* 图片样式 */
.img-hd{
    width: 100%;
    height: auto;
    aspect-ratio: 6/4;
    object-fit: cover;
    margin-bottom: 15px;
}

.image-cover img{
    max-width: 100%;
    object-fit: cover;
    height: auto;
    aspect-ratio: 6/4;
    width: 366px;
}

/* 页脚 */
#footer{
    color: #444;
    font-size: 15px;
    background: #fffcf5;
}

#footer .credits{
    padding-top: 5px;
    font-size: 13px;
    color: #444;
}

/* 博客样式 */
.page-blog{
    padding-bottom: 60px;
}

.page-blog .post-item{
    margin-bottom: 20px;
}

.page-blog .post-item .box{
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.page-blog .post-item .box .box-text .meta-date{
    display: inline-block;
    background: #33ccff;
    color: #fff;
    padding: 4px 7px;
    font-size: 12px;
    margin-top: 10px;
}

.page-blog .post-item .box .box-text .post-title{
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0 15px;
}

.blog-post-inner .blog_excerpt{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
}

/* 轮播图 */
.testimonials{
    width: 100%;
    background: #fffcf5;
}

.testimonials .testimonial-item{
    box-sizing: content-box;
    padding: 30px 30px 30px 60px;
    margin: 30px 15px;
    min-height: 200px;
    box-shadow: 0 2px 12px rgba(44,73,100,0.08);
    position: relative;
    background: #fff;
    font-size: 18px;
}

.testimonials .testimonial-item .testimonial-img{
    width: 90px;
    border-radius: 10px;
    border: 6px solid #fff;
    position: absolute;
    left: -45px;
}

.testimonials .testimonial-item h3{
    font-size: 19px;
    font-weight: 700;
    margin: 10px 0 5px;
    color: #111;
}

.testimonials .testimonial-item h4{
    font-size: 16px;
    color: #999;
    margin: 0;
}

.testimonials .testimonial-item .quote-icon-left, .testimonials .testimonial-item .quote-icon-right{
    color: #badaf7;
    font-size: 26px;
}

/* 画廊 */
.gallery .gallery-item{
    overflow: hidden;
    border-left: 50px solid #fff;
    border-right: 50px solid #fff;
    border-bottom: 3px solid #fff;
}

.gallery .gallery-item img{
    transition: all ease-in-out 0.4s;
}

.gallery .gallery-item:hover img{
    transform: scale(1.1);
}

/* 计数器 */
.counts{
    background: #fffcf5;
    padding: 70px 0 60px;
}

.counts .count-box{
    padding: 30px 30px 25px;
    width: 100%;
    position: relative;
    text-align: center;
    background: #fff;
}

.counts .count-box i{
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    background: #33ccff;
    color: #fff;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.counts .count-box span{
    font-size: 36px;
    display: block;
    font-weight: 600;
    color: #082744;
}

.counts .count-box p{
    padding: 0;
    margin: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
}

/* FAQ */
.faq .faq-list{
    padding: 0 100px;
}

.faq .faq-list ul{
    padding: 0;
    list-style: none;
}

.faq .faq-list li + li{
    margin-top: 15px;
}

.faq .faq-list li{
    padding: 20px;
    background: #fff;
    border-radius: 4px;
    position: relative;
}

.faq .faq-list a{
    display: block;
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    padding: 0 30px;
    outline: none;
    cursor: pointer;
}

.faq .faq-list .icon-help{
    font-size: 24px;
    position: absolute;
    right: 0;
    left: 20px;
    color: #76b5ee;
}

.faq .faq-list .icon-show, .faq .faq-list .icon-close{
    font-size: 24px;
    position: absolute;
    right: 0;
    top: 0;
}

.faq .faq-list p{
    margin-bottom: 0;
    padding: 10px 0 0;
}

@media(max-width: 1200px){
    .faq .faq-list{
        padding: 0;
    }
}

/* 部门/游戏标签 */
.departments{
    overflow: hidden;
}

.departments .nav-tabs{
    border: 0;
}

.departments .nav-link{
    border: 0;
    padding: 12px 15px 12px 0;
    transition: 0.3s;
    color: #000;
    border-radius: 0;
    border-right: 2px solid #ebf1f6;
    font-weight: 600;
    font-size: 15px;
}

.departments .nav-link:hover{
    color: #33ccff;
}

.departments .nav-link.active{
    color: #33ccff;
    border-color: #33ccff;
}

.departments .tab-pane{
    display: none;
}

.departments .tab-pane.active{
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.departments .details h3{
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
}

.departments .details p{
    color: #777;
}

@media(max-width: 992px){
    .departments .nav-link{
        border: 0;
        padding: 15px;
    }
    .departments .nav-link.active{
        color: #fff;
        background: #33ccff;
    }
}

/* 面包屑导航 */
.breadcrumbs{
    padding: 20px 0;
    background-color: #fffcf5;
    min-height: 40px;
    margin-top: 120px;
}

.breadcrumbs h2{
    font-size: 24px;
    font-weight: 550;
    margin: 0;
}
.breadcrumbs a{
    color: #fff !important;
}
.breadcrumbs ol{
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 15px;
}

.breadcrumbs ol li + li{
    padding-left: 10px;
}

.breadcrumbs ol li + li::before{
    display: inline-block;
    padding-right: 10px;
    color: #6c757d;
    content: "/";
}

/* 分页 */
nav.pagination{
    display: block;
    width: 100%;
    text-align: center;
    margin: 30px 0;
}

nav.pagination .page-numbers{
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px 0 0;
    border: 1px solid #33ccff;
    line-height: 1;
    text-decoration: none;
    border-radius: 2px;
    color: #33ccff;
}

nav.pagination .page-numbers.current, nav.pagination a.page-numbers:hover{
    background: #33ccff;
    color: #fff;
}

/* 其他样式 */
.banner-single{
    margin-bottom: 60px;
    background-color: #33ccff;
    color: #fff;
    vertical-align: middle;
    text-align: center;
    padding: 60px 0;
    background-position: center center;
    background-size: cover;
    min-height: 30vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.banner-single .entry-title{
    color: #fff;
    font-size: 34px;
    margin-bottom: 20px;
}

.screen-reader-response{
    display: none;
}

/* WordPress特定样式 */
.wp-block-image{
    margin-bottom: 1em;
}

.wp-caption{
    max-width: 100%;
}

.wp-caption-text{
    text-align: center;
    font-size: 14px;
    margin-top: 5px;
}

.alignleft{
    float: left;
    margin-right: 1em;
}

.alignright{
    float: right;
    margin-left: 1em;
}

.aligncenter{
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 清除浮动 */
.clearfix::after{
    content: "";
    display: table;
    clear: both;
} 