/*
Theme Name:     B2子主题-BT游戏
Theme URI:      http: //7b2.com/
Description:    Child theme for the B2 PRO
Author:         子主题模版
Author URI:     http: //7b2.com/
Template:       b2
Version:        0.1.5
*/

/*下面是您自己DIY的css样式代码*/
.top-style .ym-menu {
    padding: 0;
}
.entry-content > p, .content-show-roles > p {
    line-height: 1.7!important;
}
[data-mark="game"] { display: none; }
.post-breadcrumb {
  padding: 5px 2px;
  line-height: 22px;
}
.social-top .header {
  display: none;
}
.site-header.social-top {
  height: 64px;
}
.entry-content img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.header-banner-content .header-banner-left {margin-left: -8px;}
.header-banner-content .header-banner-right{margin-right: -5px;}
/*禁止移动端顶部导航滚动*/
.site-header-in {
  position: static !important;
  transform: none !important;
}
.post-list .module-title {
    margin-left: 5px;
}
/*禁止移动端底部导航隐藏*/
.mobile-footer-menu.footer-down {
  transform: none !important;
}
/*移动底部导航字体不加粗*/
.mobile-footer-menu a b {
  font-weight: normal;
  margin-top: 2px !important;
}
.mobile-footer-menu a {
  padding: 0 !important;
}
.mobile-footer-menu img {
  height: 20px !important;
}
.entry-content p {
  font-size: 14px !important;
}
/****移动顶部导航****/
.social-top .header-user {
  display: none;
}
.social-top .top-search {
  margin-right: 0;
}
/****移动顶部导航end****/
.single-article {
  padding: 15px !important;
}
.b2-widget-post-thumb-img img {
    border-radius: 4px;
}
.site-footer-nav {
    padding: 0 5px!important;
}
.site-footer-widget-in {
    margin: 0!important;
}
input, textarea , .button, button  {
    border-radius: 4px!important;
}
.footer-bottom-right {
    margin-right: 3px;
}
#colophon .site-footer .widget {
    padding: 0 5px;
}
.footer-bottom-left {
    margin-left: 2px;
}
@media screen and (max-width: 768px) {
.post-3 .post-info h2 {
    font-size: 14px!important;
}	
.post-list .module-title {
    margin-left: -5px;
}
.mg-b {
    margin-bottom: 5px;
}
.widget-area section + section {
    margin-top: 0;
}
.sidebar-innter section {
    margin-top: 0;
}
.single-article {
    margin-bottom: 5px;
}
.home_row {
    margin-bottom: 5px;
}
.single-article {
  padding: 10px !important;
}	
.header-banner-content .header-banner-left {margin-left: 0;}
.header-banner-content .header-banner-right{margin-right: 0;}	
  .social-top .header {
    display: block;
  }
  .site-header.social-top {
    height: 89px !important;
  }
  .slider-mgame .uk-grid img {
    height: 130px;
  }
  .shouyou_menus-pc .classify {
    display: none;
  }
  .widget-shouyou .b2-widget-post-thumb-img {
    left: 10px;
  }
  .widget-shouyou .widget_tag_cloud > div {
    padding: 6px 8px 5px 8px;
  }
  .widget-shouyou .widget-more {
    padding: 16px 10px 0px;
    font-size: 12px;
  }
  .widget-shouyou .widget-more .b2font {
    font-size: 12px;
    line-height: 12px;
  }
  .widget-shouyou .b2-widget-title h2 {
    padding: 20px 10px 8px;
  }
  .widget-shouyou .shouyou-widget-mtopic ul li {
    padding: 16px 8px !important;
  }
  .widget-shouyou .widget ul li {
    padding: 16px 10px;
  }
  .widget-shouyou-tag .tag-list {
    display: grid;
    text-align: center;
    grid-template-columns: repeat(4, 75px);
  }
  .widget-shouyou-hot .b2-widget-post-title h2 {
    font-size: 14px;
  }
  .widget-shouyou-tag .tagcloud a {
    width: 75px;
  }
  .widget-shouyou-tag .tag-list a:nth-child(3n) {
    margin-right: 10px;
  }
  /****移动顶部导航****/
.social-top .menu-icon .line-1, .social-top .menu-icon .line-2, .social-top .menu-icon .line-3 {
    background: #ffffff!important;
}	
  .social-top .header-user {
    margin-right: 50px;
  }
  .social-top .top-style-menu {
    bottom: 90px;
  }
  .social-top .header-user {
    display: flex;
  }
  .top-user-info {
    display: none;
  }
  .menu-icon {
    background: none;
  }
  .change-theme button {
    margin-right: 5px;
  }


	
	
}

.cat-group-page .cg-bg {
    padding-top: 25%;
}	


    /* 游戏详情页样式 */
    .recomtop {
        margin: 0 auto;
        width: 1100px;
        display: flex;
        align-items: center;
    }
    .container {
      width: 1100px;
        margin: 0 auto;
        padding: 0 15px;
    }

    .breadcrumbs {
        background-color: #f8f9fa;
        padding: 15px 0;
        font-size: 14px;
        color: #6c757d;
        border-bottom: 1px solid #e9ecef;
    }

    .breadcrumbs a {
        color: #6c757d;
        text-decoration: none;
    }

    .breadcrumbs a:hover {
        color: #007bff;
    }

    .loading-state {
        text-align: center;
        padding: 50px 0;
    }

    .spinner {
        display: inline-block;
        width: 40px;
        height: 40px;
        border: 4px solid rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        border-top-color: #007bff;
        animation: spin 1s ease-in-out infinite;
        margin-bottom: 15px;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    .not-found-state {
        text-align: center;
        padding: 50px 0;
    }

    .not-found-icon {
        font-size: 60px;
        color: #6c757d;
        margin-bottom: 20px;
    }

    .not-found-state h3 {
        font-size: 24px;
        margin-bottom: 10px;
        color: #343a40;
    }

    .not-found-state p {
        color: #6c757d;
        margin-bottom: 20px;
    }

    .back-btn {
        display: inline-block;
        padding: 10px 20px;
        background-color: #007bff;
        color: white;
        text-decoration: none;
        border-radius: 4px;
        transition: background-color 0.3s;
    }

    .back-btn:hover {
        background-color: #0069d9;
        color: white;
    }

    .game-header {
        display: flex;
        gap: 30px;
        margin: 16px 0;
        padding: 25px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
        color: white;
    }

    .game-icon-container {
        flex-shrink: 0;
    }

    .game-icon {
        width: 200px;
        height: 200px;
        border-radius: 20px;
        object-fit: cover;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .game-info {
        flex-grow: 1;
    }

    .game-title {
        font-size: 38px;
        margin: 0 0 20px 0;
        color: #fff;
        font-weight: 600;
    }

    .game-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        margin-bottom: 40px;
    }

    .game-meta-item {
        display: flex;
        align-items: center;
        color: #6c757d;
        font-size: 14px;
        padding: 4px 12px;
        border-radius: 20px;
        font-weight: bold;
        background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    }
    .meta-text {
      color: #fff;
    }
    #game-type {
    
    background: #ff3366;
    color: white;
    }
    #game-downloads {
      background: #ff690069;

    }
    .game-meta-item i {
        margin-right: 5px;
        color: #fff;
    }

    .game-actions {
        display: flex;
        gap: 15px;
        margin-top: 20px;
    }

    .download-btn {
      display: inline-flex;
      align-items: center;
      padding: 15px 30px;
      background: linear-gradient(90deg, #ff6600, #ff9d00);
      color: white;
      text-decoration: none;
      border-radius: 50px;
      font-size: 18px;
      font-weight: bold;
      box-shadow: 0 5px 15px rgb(255 102 0 / 30%);
      transition: all 0.3s;
    }

    .download-btn i {
        margin-right: 8px;
    }

    .download-btn:hover {
        background-color: #218838;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .wishlist-btn {
      display: inline-flex;
      align-items: center;
      padding: 12px 20px;
      background-color: white;
      color: #6c757d;
      border: 1px solid #dee2e6;
      border-radius: 50px!important;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s;
      font-size: 16px;
    }

    .wishlist-btn i {
        margin-right: 8px;
    }

    .wishlist-btn:hover {
        background-color: #f8f9fa;
        border-color: #ced4da;
    }

    .game-content {
        margin-top: 20px;
    }

    .game-section {
        background-color: white;
        border-radius: 8px;
        padding: 25px;
        margin-bottom: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .section-title {
        font-size: 20px;
        margin-top: 0;
        margin-bottom: 20px;
        color: #212529;
        font-weight: 600;
        display: flex;
        align-items: center;
    }

    .section-title i {
        margin-right: 10px;
        color: #007bff;
    }

    .game-description,
    .game-benefits,
    .game-notice {
        font-size: 15px;
        color: #495057;
        line-height: 1.8;
    }

    .game-description p,
    .game-benefits p,
    .game-notice p {
        margin-bottom: 15px;
    }

    .game-screenshots {
        display: flex;
        gap: 20px;
    }

    .game-screenshot {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s;
    }

    .game-screenshot:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }

    .game-screenshot img {
        width: 100%;
        height: auto;
        display: block;
    }

    .video-container {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 */
        height: 0;
        overflow: hidden;
        border-radius: 8px;
        background-color: #000;
    }

    .video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    /* 游戏礼包样式 */
    .game-gifts-container {
      margin-top: 20px;
        display: grid;
        gap: 16px;
        grid-template-columns: repeat(2, 1fr);
    }

    .gift-item {
        background-color: #f8f9fa;
        border-radius: 6px;
        padding: 15px;
    }

    .gift-name {
        font-weight: 600;
        font-size: 16px;
        margin-bottom: 10px;
        color: #212529;
    }

    .gift-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 10px;
        font-size: 13px;
        color: #6c757d;
    }

    .gift-code {
        background-color: #e9ecef;
        padding: 8px 12px;
        border-radius: 4px;
        font-family: monospace;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .gift-code .code-text {
        margin-right: 10px;
    }

    .copy-btn {
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 4px;
        padding: 4px 8px;
        font-size: 12px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .copy-btn:hover {
        background-color: #0069d9;
    }

    .no-gifts {
        text-align: center;
        padding: 20px;
        color: #6c757d;
    }

    .loading-gifts {
        text-align: center;
        padding: 20px;
        color: #6c757d;
    }

    @media (max-width: 768px) {
        .recomtop {
            width: 100%;
            margin: 10px 0;
        }
      .game-gifts-container {
        display: flex;
        gap: 16px;
        flex-direction: column;
    }
        .gift-item {
            padding: 12px;
        }
        
        .gift-meta {
            flex-direction: column;
            gap: 8px;
        }
    }
    /* 响应式设计 */
    @media (max-width: 768px) {

        .game-detail-page {
            width: 100%;
        }
        .game-header {
            flex-direction: column;
            gap: 20px;
        }
        .game-icon-container {
        display: flex;
        }
        .game-icon {
          width: 80px;
        height: 80px;
        margin-right: 10px;
        }
        
        .game-title {
            font-size: 24px;
        }
        
        .game-meta {
            gap: 15px;
        }
        
        .game-screenshots {
          display: block;
          overflow-x: auto;
          overflow-y: hidden; 
          white-space: nowrap;
          -webkit-overflow-scrolling: touch; 
          scrollbar-width: thin; 
          scrollbar-color: #888 transparent; 
        }
        .game-actions {
            gap: 15px;
            height: 35px;
        }
        .download-btn {
        padding: 5px 25px;
        
        }
        /* 针对 WebKit 浏览器（Chrome/Safari）自定义滚动条 */
        .game-screenshots::-webkit-scrollbar {
          height: 6px; 
        }
        .game-screenshots::-webkit-scrollbar-thumb {
          background: #888; 
          border-radius: 3px;
        }
        .game-screenshots::-webkit-scrollbar-track {
          background: transparent; 
        }

        /* 游戏截图项样式 */
        .game-screenshot {

          display: inline-block; 
          width: auto; /
          margin-right: 10px; 
        }
        .game-screenshot img {
          width: 100%;
          height: 200px; 
          border-radius: 5px; 
        }
        .container {
            max-width: 100%;
            margin: 0 auto;
            padding: 0;
        }
        .game-section.mb {
          padding: 0;
        }
        .game-section, .game-header {
            padding: 12px;
        }

    }
    @media (max-width:540px) {
      .download-btn, .wishlist-btn {
        font-size: 14px;
      }
      .game-icon-container {
        align-items: center;
    }
      .game-title {
        margin: 0;
    }
      .game-meta-item {
        font-weight: 400;
      }
      .game-meta {
        margin-bottom: 26px;
      }
      .game-icon {
        border-radius: 17px;
    }
    }
