* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Microsoft YaHei", sans-serif;
  background-color: #f9f4e8;
  color: #333;
  overflow-x: hidden;
}
ul,
li {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
  /* 不允许拖动图片 */
  user-drag: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-drag: none;
  -moz-user-select: none;
  -ms-user-drag: none;
  -ms-user-select: none;
}
/* 滚动条样式 */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: #d7b16a;
  border-radius: 5px;
}
::-webkit-scrollbar-track {
  background: #ebeae6;
  border-radius: 5px;
}
.main {
  width: 100%;
  height: 6000px;
  background: #0e0e0e url("../images/main_bg.jpg") no-repeat top center;
}
.container {
  width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* 头图 */
.header {
  height: 1110px;
  position: relative;
}
.top-qr {
  position: absolute;
  bottom: 145px;
  left: 50%;
  transform: translateX(-50%);
  width: 727px;
  height: 261px;
}

/* 公共样式 */
.section {
  position: relative;
}
.section-title {
  text-align: center;
}
.section-title img {
  margin: 0 auto;
}

/* 游戏资讯 */
.section-news {
  height: 1080px;
}

.news-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 1920px;
  height: 977px;
  background: url("../images/news_bg.png") no-repeat center center;
  position: absolute;
  left: 50%;
  top: 70px;
  transform: translateX(-50%);
}
.news-container .carousel-main {
  width: 1180px;
  height: 580px;
  display: flex;
  justify-content: center;
  position: absolute;
  top: 225px;
  left: 368px;
}
.news-container .carousel-box {
  padding-top: 50px;
  width: 588px;
}
.news-container .carousel-title {
  padding-left: 8px;
  font-size: 24px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 10px;
}
#current-slide {
  color: #db672e;
  font-weight: bold;
}
.news-container .carousel-slides {
  width: 588px;
  height: 344px;
  background: url("../images/slide_border.png") no-repeat center center;
  display: flex;
  justify-content: center;
  align-items: center;
}
.news-container .carousel-dots {
  padding-top: 10px;
  padding-right: 10px;
  width: 588px;
  height: 25px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.news-container .carousel-dots img {
  width: 15px;
  height: 15px;
  object-fit: cover;
  margin: 0 4px;
}

.news-box {
  width: 570px;
  margin-left: 20px;
  padding-top: 20px;
}
.tab-container {
  display: flex;
  padding-bottom: 10px;
  align-items: flex-end; /* Align bottom to handle height diff */
}
.tab-item {
  cursor: pointer;
  position: relative;
  width: 101px;
  height: 65px;
  margin: 0 10px;
  position: relative;
}
.tab-item img {
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
}
.tab-item img:nth-child(1) {
  display: none;
}
.tab-item img:nth-child(2) {
  display: block;
  bottom: 8px;
  right: 3px;
}
.tab-item.active img:nth-child(1) {
  display: block;
}
.tab-item.active img:nth-child(2) {
  display: none;
}

.news-list {
  border-top: 2px solid #000000;
  border-bottom: 2px solid #000000;
  height: 417px;
}
.news-list .news-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding-left: 30px;
  height: 59px;
  line-height: 59px;
  cursor: pointer;
}
.news-list .news-item:hover {
  font-weight: bold;
}
/* 最后一个没有下边框 */
.news-list .news-item:last-child {
  /* border-bottom: none; */
}
.news-item .news-item-title {
  font-size: 16px;
  color: #000000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-item .news-item-time {
  width: 160px;
  text-align: right;
  font-size: 14px;
  color: #808080;
}

.news-list-control {
  display: flex;
  justify-content: right;
  align-items: center;
  margin-top: 22px;
  margin-right: 8px;
}
.prev-page,
.next-page {
  cursor: pointer;
  width: 74px;
  height: 41px;
}
.prev-page img,
.next-page img {
  width: 100%;
}
.prev-page img:nth-child(1),
.next-page img:nth-child(1) {
  display: block;
}
.prev-page img:nth-child(2),
.next-page img:nth-child(2) {
  display: none;
}
.prev-page.enabled img:nth-child(1),
.next-page.enabled img:nth-child(1) {
  display: none;
}
.prev-page.enabled img:nth-child(2),
.next-page.enabled img:nth-child(2) {
  display: block;
}

.page-number-container {
  display: flex;
  margin: 0 10px;
}
.page-number {
  font-weight: bold;
  margin: 0 5px;
  cursor: pointer;
  font-size: 16px;
  color: #000;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
}
.page-number.active {
  color: #fff;
  background: url("../images/page_num_bg.png") no-repeat center center;
}

/* 仙门盛景 */
.section-scene {
  height: 1115px;
}
.section-scene .scene-scroll {
  position: absolute;
  text-align: center;
  width: 1618px;
  height: 770px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}
.scene-text {
  padding-top: 700px;
  font-size: 18px;
  text-align: center;
  z-index: 1;
  position: relative;
  width: 1000px;
  margin: 0 auto;
  line-height: 30px;
}

/* 游戏特色 */
.section-features {
  height: 1045px;
}

.features-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 70px;
}
.features-item {
  position: relative;
  width: 126px;
  height: 637px;
  transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}
.features-item.active {
  width: 668px;
}
.features-item-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 126px;
  height: 100%;
  z-index: 1;
  transition: opacity 0.4s;
}
.features-item-img img {
  max-width: none;
  width: 126px;
  height: 100%;
}

.features-item-open {
  position: absolute;
  top: 0;
  left: 0;
  width: 668px;
  height: 100%;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s;
  display: block;
  pointer-events: none;
}
.features-item-open img {
  max-width: none;
  width: 668px;
  height: 100%;
}

.features-item.active .features-item-open {
  opacity: 1;
}
.features-item.active .features-item-img {
  opacity: 0;
}

/* 萌趣表情 */
.section-emoticons {
  height: 1050px;
}
.emoticons-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.emoticons-box {
  width: 1369px;
  height: 725px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: url("../images/emoticons_bg.png") no-repeat center center;
}
.emoticons-grid {
  width: 1035px;
  height: 550px;
  padding: 10px;
  margin-top: 90px;
  margin-left: 190px;
  display: flex;
  flex-wrap: wrap;
  overflow-y: auto;
}
.emoticons-grid img {
  width: 180px;
  height: 180px;
  margin: 0 10px;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 10px;
}
.bottom-qr {
  width: 642px;
  height: 362px;
  margin: 0 auto;
}
.copyright {
    margin-top: 145px;
    letter-spacing: 0.05em;
    color: #d1d5db;
}

.beian-info {
    margin-top: 10px;
    transition: color 0.15s;
}

.beian-info:hover {
    color: #fff;
}

.beian-link {
    color: #d7b16a;
    transition: color 0.15s;
}

.beian-link:hover {
    color: #e7c483;
}

/* Swiper Styles */
.swiper.mySwiper {
  width: 550px;
  height: 310px;
}
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-dots .swiper-pagination-bullet {
  width: 15px;
  height: 15px;
  opacity: 1;
  background: url("../images/dot_inactive.png") no-repeat center center;
  background-size: cover;
  margin: 0 4px !important;
  border-radius: 0;
  display: inline-block;
}
.carousel-dots .swiper-pagination-bullet-active {
  background: url("../images/dot_active.png") no-repeat center center;
  background-size: cover;
}

/* 游戏资讯页面 */
.news-body .main{
  height: auto;
  min-height: 100vh;
}

.news-body .section-news {
  padding: 40px 0;
  min-height: auto;
  height: auto;
}

.news-body .section-title {
  margin-bottom: 40px;
}

.news-body .news-data {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 60px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-height: 4160px;
  overflow-y: auto;
}

.news-text-content {
  font-size: 18px;
  line-height: 2;
  color: #333;
  margin-bottom: 30px;
  text-align: justify;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.news-table-wrapper {
  margin: 40px 0;
}

.news-table-title {
  font-size: 20px;
  color: #d7b16a;
  margin-bottom: 8px;
  text-align: left;
}

.news-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.news-table thead {
  background: linear-gradient(135deg, #d7b16a 0%, #c9a05a 100%);
}

.news-table th {
  padding: 15px 20px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.news-table th:last-child {
  border-right: none;
}

.news-table tbody tr {
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s;
}

.news-table tbody tr:hover {
  background-color: #f9f9f9;
}

.news-table tbody tr:last-child {
  border-bottom: none;
}

.news-table td {
  padding: 15px 20px;
  text-align: center;
  font-size: 16px;
  color: #333;
  border-right: 1px solid #eee;
}

.news-table td:last-child {
  border-right: none;
}

.news-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.news-table tbody tr:nth-child(even):hover {
  background-color: #f5f5f5;
}

.news-body  .news-detail-footer {
  text-align: center;
  padding: 60px 0;
}

.news-body .btn-back {
  display: inline-block;
  width: 150px;
  height: 50px;
  line-height: 50px;
  background-color: #d7b16a;
  color: white;
  font-size: 20px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(227, 214, 97, 0.4);
}

.news-body .btn-back:hover {
  background-color: #e7c483;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(227, 214, 97, 0.4);
  color: white;
}

.news-body .footer{
  margin-top: 0px;
}
.news-body .footer .copyright{
  margin-top: 0px;
  padding: 40px 0;
  background: #000;
}


@media screen and (max-width: 768px) {
  body {
      overflow: auto;
      width: 1920px;          /* 改为100%让宽度自适应视口，避免横向滚动 */
      background: #fff5f5 url(../images/main_bg.jpg) no-repeat;
  }
}
