body {
    padding-top: 50px;
    font-size: 15px;
    background: #f7f8f9;
    font-family: Arial, sans-serif;
}

body > .navbar {
    -webkit-transition: background-color .3s ease-in;
    transition: background-color .3s ease-in
}

@media (min-width: 768px) {
    body > .navbar-transparent {
        background-color: transparent
    }

    body > .navbar-transparent .navbar-nav > .open > a {
        background-color: transparent !important
    }
}

h1, .h1 {
    font-size: 26px
}

h2, .h2 {
    font-size: 24px
}

h3, .h3 {
    font-size: 22px
}

p {
    margin: 5px 0 10px;
    line-height: 1.75;
}

#home {
    padding-top: 0
}

#home .navbar-brand {
    padding: 13.5px 15px 12.5px
}

#home .navbar-brand > img {
    display: inline;
    margin: 0 10px;
    height: 100%
}

#banner {
    min-height: 300px;
    border-bottom: none
}

.table-of-contents {
    margin-top: 1em
}

.page-header h1 {
    font-size: 4em
}

.bs-docs-section {
    margin-top: 6em
}

.bs-docs-section h1 {
    padding-top: 100px
}

.bs-component {
    position: relative
}

.bs-component .modal {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    z-index: 1;
    display: block
}

.bs-component .modal-dialog {
    width: 90%
}

.bs-component .popover {
    position: relative;
    display: inline-block;
    width: 220px;
    margin: 20px
}

#source-button {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 100;
    font-weight: 700
}

.nav-tabs {
    margin-bottom: 15px
}

.progress {
    margin-bottom: 10px
}

footer {
    margin: 1.5em 0
}

footer li {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em
}

footer p {
    clear: left;
    margin-bottom: 0
}

.splash {
    padding: 9em 0 2em;
    background-color: #141d27;
    background-image: url(../img/bg.jpg);
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
    text-align: center
}

.splash .logo {
    width: 160px
}

.splash h1 {
    font-size: 3em
}

.splash #social {
    margin: 2em 0
}

.splash .alert {
    margin: 2em 0
}

.section-tout {
    padding: 4em 0 3em;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    background-color: #eaf1f1
}

.section-tout .fa {
    margin-right: .5em
}

.section-tout p {
    margin-bottom: 3em
}

.section-preview {
    padding: 4em 0 4em
}

.section-preview .preview {
    margin-bottom: 4em;
    background-color: #eaf1f1
}

.section-preview .preview .image {
    position: relative
}

.section-preview .preview .image:before {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: "";
    pointer-events: none
}

.section-preview .preview .options {
    padding: 1em 2em 2em;
    border: 1px solid rgba(0, 0, 0, .05);
    border-top: none;
    text-align: center
}

.section-preview .preview .options p {
    margin-bottom: 2em
}

.section-preview .dropdown-menu {
    text-align: left
}

.section-preview .lead {
    margin-bottom: 2em
}

@media (max-width: 767px) {
    .section-preview .image img {
        width: 100%
    }
}

.sponsor #carbonads {
    max-width: 240px;
    margin: 0 auto
}

.sponsor .carbon-text {
    display: block;
    margin-top: 1em;
    font-size: 12px
}

.sponsor .carbon-poweredby {
    float: right;
    margin-top: 1em;
    font-size: 10px
}

@media (max-width: 767px) {
    .splash {
        padding-top: 4em
    }

    .splash .logo {
        width: 100px
    }

    .splash h1 {
        font-size: 2em
    }

    #banner {
        margin-bottom: 2em;
        text-align: center
    }
}

.navbar-inverse {
    border-bottom: 0;
}

.breadcrumb {
    border-radius: 8px;
    background: transparent;
    padding: 0;
    margin: 2px 15px 21px 15px;
}

.jumbotron {
    background: #fff;
    margin: 48px auto;
    border: 1px solid #ededed;
    box-shadow: 0 1px 4px 0 rgb(0 0 0 / 5%);
    border-radius: 8px !important;
}

.jumbotron h1, .jumbotron .h1 {
    font-size: 43px;
    margin: 0 0 30px;
}

.jumbotron .btn-sm {
    font-size: 17px;
}

.panel {
    border-radius: 8px
}

.panel-heading {
    border-radius: 8px 8px 0 0
}

.panel-footer {
    border-radius: 0 0 8px 8px
}

.panel-title {
    font-size: 18px;
}

.panel-title small .more {
    padding-top: 4px;
    font-size: 14px
}

.nav-search {
    margin-top: 9px;
}

.nav-search .form-control {
    height: 30px;
    line-height: 30px;
    padding: 5px;
    border-radius: 4px;
}

.nav-search .btn {
    height: 31px;
    padding: 5px 10px;
    border-radius: 15px;
    outline: none;
}

.nav-search .btn:focus {
    outline: none;
}

.main {
    background: #fff;
    box-shadow: 0 1px 4px 0 rgb(0 0 0 / 8%);
    border-radius: 0 0 8px 8px;
    padding: 20px 10px;
    margin: 0 -1px
}

.main-list {
    border-radius: 8px;
}

.main-right::before {
    content: '';
    border-left: 1px solid #e6e6e6;
    position: absolute;
    height: 100%;
    left: -20px;
}

.article-list {
    padding: 5px;
    margin: 0;
}

.article-list li {
    list-style: none;
    padding: 8px 0;
}

.article-view {
    border-radius: 8px;
    padding: 30px 50px;
}

.article-title {
    color: #333;
    font-size: 30px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    padding: 15px 20px 20px 20px;
    margin-bottom: 30px;
}

.article-info {
    border-top: 1px solid #ddd;
    padding: 10px;
    margin: 30px 0 0;
}

.article-desc {
    padding: 8px 10px 8px;
    margin: 10px 20px 20px 35px;
    font-size: 14px;
}

.article-content {
    padding-top: 10px;
}

.pagination {
    margin: 8px 0;
    display: block; /* text-align:center; */
    font-size: 13px;
}

/* .pagination .controls a{border:0;} */
.pagination > li > a, .pagination > li > span {
    min-width: 37px;
    text-align: center;
    padding: 6px;
    border: 1px solid #ddd;
    background: transparent; /* border-radius:3px; */
}

.pagination > .active > a, .pagination > .active > a:focus, .pagination > .active > a:hover,
.pagination > .active > span, .pagination > .active > span:focus, .pagination > .active > span:hover {
    background: #eee;
    color: #333;
    border-color: #ddd
}

.pagination > .disabled > span, .pagination > .disabled > span:hover, .pagination > .disabled > span:focus,
.pagination > .disabled > a, .pagination > .disabled > a:hover, .pagination > .disabled > a:focus {
    cursor: default !important;
    color: #ccc;
}

.pagination .controls {
    float: left;
    border: 0;
    padding: 7px 0 0 15px;
    color: #777;
}

.pagination .controls input {
    border: 0;
    width: 22px;
    padding: 0;
    margin: -3px 0 0 0;
    text-align: center;
    font-size: 13px;
    background: transparent;
    box-shadow: none;
}

.game-card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: #f9f9f9;
    margin: 20px;
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 24px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.play-button:hover {
    background-color: #45a049;
}

.game-info {
    padding: 15px;
}

.rating {
    color: #FFD700;
    font-size: 14px;
}

.like-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #007bff;
    cursor: pointer;
}

.like-btn:hover {
    color: #0056b3;
}

.game-card-index {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 16px;
}

.game-card-index:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.game-image-index {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.game-image-index-category {
    width: 80px;
    height: 100%;
    object-fit: cover;
}

.game-info-index {
    padding: 12px;
    font-size: 14px;
}

.game-title-index {
    font-weight: bold;
    margin: 0;
    color: #333;
    height: 30px;
}

.game-meta-index {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-top: 5px;
}

.game-index-zan {
    display: flex;
    align-items: center;
}

.game-index-zan span {
    color: #333;
    height: 20px;
    line-height: 25px;
    margin-left: 10px;
}

.like-icon-index,
.rating-icon-index {
    color: #ff9800;
    margin-right: 4px;
}

.rating-number-index {
    color: #555;
}

.ad-text-index {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin: 30px 0;
}

.category-card {
    border-radius: 10px;
    border: 1px solid #e9ecef;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    margin-bottom: 20px;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #dee2e6;
}

.category-icon {
    width: 40px;
    height: 40px;
    border: 2px solid red;
    border-radius: 4px;
    margin-right: 12px;
    background-image: url('https://via.placeholder.com/40x40?text=ICON');
    background-size: cover;
    background-position: center;
}

.category-name {
    font-weight: 500;
    color: #333;
    font-size: 16px;
    margin-left: 20px;
}

.category-name a {
    display: block;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.index-about {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

.index-zan {
    display: block;
    width: 16px;
    height: 16px;
    background-image: url('../imgs/zan.png');
    background-size: 100% 100%;
}



.index-game {
    display: block;
    width: 30px;
    height: 30px;
    background-image: url('../imgs/game.png');
    background-size: 100% 100%;
}

.btnMore {
    display: block;
    line-height: 50px;
    color: #fff;
    text-align: center;
    margin: 16px auto 0 auto;
    width: 300px;
    height: 50px;
    background: #2780e3;
    font-size: 16px;
    border-radius: 6px
}

.iframe-default {
    display: none;
}

.iframe-fullscreen {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 29999;
}

.detail-back {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-image: url('../imgs/back.png');
    background-size: 100% 100%;
    z-index: 39999;
}

/* Swiper 容器大小 */
.swiper {
    width: 100%;
    height: 200px;    /* 固定高度，可根据内容调整 */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
}

/* 单个幻灯片样式 */
.swiper-slide {
    display: flex;
    flex-direction: column; /* 默认横向排列：左图右文 */
    background: #fff;
    overflow: hidden;
    position: relative;
}

/* 图片区域 */
.slide-image {
    flex: 5; /* 图片占较大比例 */
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例填充，不拉伸 */
    transition: transform 0.5s ease;
}

/* 鼠标悬停时图片微放大效果 */
.swiper-slide:hover .slide-image img {
    transform: scale(1.05);
}

/* 文字简介区域 */
.slide-content {
    flex: 1; /* 文字占较小比例 */
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /*background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);*/
    position: absolute;
    bottom: 40px;
    height: 40px;
    width: 100%;
}

.slide-content h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #ffffff;
}

.slide-content p {
    margin: 0;
    font-size: 16px;
    color: #ffffff;
    line-height: 1.6;
}

.slide-tag {
    display: inline-block;
    background-color: #007aff;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
    width: fit-content;
}

/* 分页器样式自定义 */
.swiper-pagination-bullet-active {
    background-color: #007aff !important;
}

/* --- 移动端适配 --- */
@media (max-width: 768px) {
    .swiper {
        height: 200px; /* 手机上增加高度 */
    }

    .swiper-slide {
        flex-direction: column; /* 手机上改为上图下文 */
    }

    .slide-image {
        flex: 1;
        height: 250px; /* 图片固定高度 */
    }

    .slide-content {
        flex: 1;
        padding: 20px;
    }

    .slide-content h2 {
        font-size: 20px;
    }

    .slide-content p {
        font-size: 14px;
    }
}
