/* Template 1 - Clean Blue Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #ffffff;
    line-height: 1.6;
}

.layout-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.layui-container {
    width: 100%; /* 默认宽度自适应屏幕 */
    margin: 0 auto;
    max-width: 1280px; /* 在大屏幕上限制最大宽度 */
}

/* 当屏幕宽度小于 768px 时（通常是移动端设备） */
@media screen and (max-width: 768px) {
    .layui-container {
        padding: 0 15px; /* 为小屏幕设备添加内边距 */
    }


}
/* header-box */
header {
    background-color: #fff;
    border-bottom:1px solid #f3f3f3;
    position: sticky;
    height: 56px;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-box {
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.header-box .logo h1 {
    font-size: 24px;
    color: #0066cc;
    font-weight: 600;
}

.header-box .nav {
    display: flex;
    gap: 30px;
    flex: 1;
    margin-left: 50px;
}

.header-box .nav-item {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.header-box .nav-item:hover,
.header-box .nav-item.active {
    color: #0066cc;
}

.header-box .search-box {
    display: flex;
    gap: 8px;
}

.header-box .search-input {
    width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.header-box .search-btn {
    padding: 8px 16px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.header-box .search-btn:hover {
    background-color: #0052a3;
}



/*轮播模块*/
.section-carousel{

}
.section-carousel .image{
    width: 100%;
    height: 100%;
    display: block;
    /*border-radius: 10px;*/
}



/*公用列表模块样式*/
.section-list{}
.section-list .section-header{
    height: 60px;
    line-height: 60px;
}
.popular-list-box {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid #f3f3f3;
    height: 290px;
}

.popular-list-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.popular-list-box .list-thumbnail {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
}
.popular-list-box .list-thumbnail img{
    width: 100%;
    height: 100%;
}

.popular-list-box .list-info {
    height: 60px;
    margin: 10px 10px 0 10px;
}

.popular-list-box .list-info h3{
    height: 26px;
    line-height: 26px;
    overflow: hidden;
    font-size: 16px;
    font-weight: 500;
}

.popular-list-box .list-info .time{
    height: 20px;
    line-height: 20px;
    overflow: hidden;
}

/** 播放页面**/
.play-box{
    background: #000000;
    height: 780px;
}
.play-box .box-header{
    height: 40px;
    /*line-height: 20px;*/
    /*overflow: hidden;*/
    background: #f3f3f3;
}
.play-box .box-content{
    height: 720px;
}
.play-box .box-content .my-video-player{
    height: 720px;
    width: 1280px;
}
.play-box .box-footer{
    margin-top: 20px;
}
.play-box .box-footer .line{
    height: 20px;
    line-height: 20px;
}
.play-box .box-footer .line .title{
    color: #c1c1c1;
    font-weight: bold;
    font-size: 14px;
}


.play-other{}



















/* Games List */
.games-list {
    background: white;
    border-radius: 8px;
    border: 1px solid #e8eef5;
    overflow: hidden;
}

.game-list-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
}

.game-list-item:last-child {
    border-bottom: none;
}

.game-list-item:hover {
    background-color: #f9fafb;
}

.game-list-thumbnail {
    width: 150px;
    height: 100px;
    background: linear-gradient(135deg, #e8eef5 0%, #d0dce8 100%);
    border-radius: 4px;
    flex-shrink: 0;
}

.game-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-list-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

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



/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
}

.footer-content p {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 20px;
    }

    .nav {
        margin-left: 0;
        gap: 15px;
        order: 3;
        width: 100%;
        margin-top: 12px;
    }

    .search-box {
        order: 2;
    }

    .search-input {
        width: 120px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .list-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .game-content {
        grid-template-columns: 1fr;
    }

    .game-embed {
    }
}
