/* 合并优化后的样式文件 */

/* 基础样式和盒模型 */
*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* 全局样式重置 */
body {
  font-family:
    'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #f0f2f5;
  margin: 0;
  padding: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.428571429;
}

/* 容器样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 响应式网格系统 */
.row {
  margin-right: -15px;
  margin-left: -15px;
}

.row:before,
.row:after {
  display: table;
  content: ' ';
}

.row:after {
  clear: both;
}

/* 列样式 */
.col-md-3,
.col-xs-6,
.col-md-12 {
  position: relative;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
  float: left;
}

.col-xs-6 {
  width: 50%;
}

.col-md-3 {
  width: 25%;
}

.col-md-12 {
  width: 100%;
}

/* 分页组件样式 */
.pager {
  padding-left: 0;
  margin: 20px 0;
  text-align: center;
  list-style: none;
}

.pager:before,
.pager:after {
  display: table;
  content: ' ';
}

.pager:after {
  clear: both;
}

.pager li {
  display: inline;
}

.pager li > a,
.pager li > span {
  display: inline-block;
  padding: 8px 15px;
  background-color: white;
  color: #666;
  text-decoration: none;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.pager li > a:hover {
  background-color: #f8f9fa;
  border-color: #dee2e6;
}

.pager li.disabled > a,
.pager li.disabled > a:hover {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
}

/* 轮播图组件样式 */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: 400px;
  width: 100%;
  box-sizing: border-box;
  background-color: #f0f0f0;
  margin: 0 auto;
  max-width: 100%;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: opacity;
}

.carousel-slide.top {
  z-index: 2;
  opacity: 1;
}

.carousel-slide.bottom {
  z-index: 1;
  opacity: 0;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
  will-change: transform;
}

.carousel-image-button {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.carousel-slide:hover .carousel-image {
  transform: scale(1.05);
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  color: white;
  padding: 30px 20px 20px;
  box-sizing: border-box;
  transform: translateY(20px);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  will-change: transform, opacity;
}

.carousel-slide:hover .carousel-caption {
  transform: translateY(0);
  opacity: 1;
}

.carousel-caption h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
  margin: 0;
  font-size: 14px;
  opacity: 0.95;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.indicator:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.indicator.active {
  background-color: white;
  transform: scale(1.3);
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0;
  outline: none;
}

.carousel-container:hover .carousel-control {
  opacity: 1;
}

.carousel-control:hover {
  background-color: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

/* 游戏卡片样式 */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.12),
    0 6px 6px rgba(0, 0, 0, 0.18);
}

.card-blog {
  margin-bottom: 30px;
  height: 309px;
}

.card-image {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}

.card-image img {
  width: 100%;
  height: 233px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-image:hover img {
  transform: scale(1.05);
}

.card-caption {
  padding: 15px;
  background-color: #fff;
}

.card-caption h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.card-caption a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.card-caption a:hover {
  color: #007bff;
}

.img-raised {
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.12),
    0 6px 6px rgba(0, 0, 0, 0.18);
}

.ripple-cont {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.table {
  display: table;
  width: 100%;
  height: 76px;
  padding: 10px;
  background-color: #fff;
}

.label {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  margin-right: 5px;
  margin-bottom: 5px;
}

.label-success {
  background-color: #28a745;
}

.label-line-height {
  display: inline-block;
  margin-bottom: 5px;
}

/* 页头样式 */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background-color: #2c3e50;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  display: inline-block;
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  line-height: inherit;
  white-space: nowrap;
  color: white;
  text-decoration: none;
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.navbar-nav .nav-item {
  margin-right: 15px;
}

.navbar-nav .nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #17a2b8;
}

.menu-icon {
  width: 24px;
  height: 24px;
  margin-right: 5px;
  vertical-align: middle;
}

/* 页脚样式 */
.footer {
  background-color: #2c3e50;
  color: white;
  padding: 30px 0;
  margin-top: 50px;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer .row {
  margin-bottom: 20px;
}

.footer img {
  max-width: 100px;
  margin: 10px auto;
}

.footer p {
  margin: 0;
  line-height: 1.5;
}

.credits {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.foot-font {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.foot-font:hover {
  color: #17a2b8;
}

.credits.love {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 10px;
}

/* 游戏历史样式 */
#game-history {
  margin-bottom: 80px;
  margin-top: 180px;
}

.tm_list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.hot-li {
  position: relative;
  margin: 0 10px 10px 0;
  transition: transform 0.3s ease;
}

.hot-li:hover {
  transform: translateY(-5px);
}

.tm_list-img {
  width: 100px;
  height: 100px;
  display: block;
  overflow: hidden;
  border-radius: 4px;
}

.tm_list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tm_list-img:hover img {
  transform: scale(1.1);
}

/* 标签部分样式 */
.tag-section {
  margin: 20px 0;
}

.tag-type {
  display: inline-block;
  padding: 6px 12px;
  margin: 5px;
  background-color: white;
  color: #666;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tag-type:hover {
  background-color: #007bff;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 回到顶部按钮样式 */
#back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  display: none;
}

#back-top a {
  display: block;
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

#back-top a:hover {
  background-color: rgba(0, 0, 0, 0.7);
  transform: translateY(-5px);
}

/* 标题样式 */
h2 {
  text-align: left;
  margin-top: 30px;
  margin-bottom: 30px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

h3 {
  text-align: left;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .carousel-container {
    height: 250px;
  }

  .carousel-caption h3 {
    font-size: 16px;
  }

  .carousel-caption p {
    font-size: 12px;
    display: none; /* 在小屏幕上隐藏描述文本 */
  }

  .carousel-control {
    width: 35px;
    height: 35px;
    font-size: 16px;
    opacity: 0.7; /* 在移动端始终显示控制按钮 */
  }

  .carousel-indicators {
    bottom: 15px;
  }

  .indicator {
    width: 10px;
    height: 10px;
    gap: 6px;
  }

  .col-md-3 {
    width: 50%;
  }

  .card-blog {
    height: auto;
    margin-bottom: 20px;
  }

  .card-image img {
    height: 180px;
  }

  #game-history {
    margin-top: 100px;
    margin-bottom: 50px;
  }
}

/* 平板设备的响应式调整 */
@media (min-width: 769px) and (max-width: 1024px) {
  .carousel-container {
    height: 300px;
  }

  .col-md-3 {
    width: 33.33333333%;
  }
}

/* 大屏幕响应式调整 */
@media (min-width: 1025px) {
  .navbar-nav {
    flex-direction: row;
  }
}


