/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; word-wrap: break-word; }
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, button, textarea, p, blockquote, th, td { margin: 0; padding: 0; }
body {
  font-family: "Microsoft Yahei", 微软雅黑, "MicrosoftJhengHei", 华文细黑, STHeiti, Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #ddd;
  background: #202020;
  min-width: 1260px;
}
a { text-decoration: none; color: #ddd; transition: all 0.25s ease-in-out; }
ul, li { list-style: none; }
img { border: 0; }

/* ===== 工具类 ===== */
.fl { float: left; }
.fr { float: right; }
.text-c { text-align: center; }
.text-l { text-align: left; }
.text-r { text-align: right; }
.clearfix::after { content: ""; display: block; height: 0; clear: both; visibility: hidden; }
.clearfix { zoom: 1; }

.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

.w1200 { width: 1200px; margin: 0 auto; padding: 0 30px; overflow: hidden; }

/* ===== hover放大 ===== */
.evenflow_scale { transition: transform 0.35s ease; }
.evenflow_scale:hover {
  transform: scale(1.05, 1.05);
  box-shadow: 0 2px 15px #8c2023;
  position: relative;
  z-index: 101;
}

/* ===== 顶部导航 ===== */
#hearder {
  width: 100%;
  overflow: hidden;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
}
.top {
  width: 100%;
  height: 90px;
  background-color: rgba(0, 0, 0, 0.75);
}
.top, .top a { color: #FFF; }
.logo {
  width: 270px;
  height: 90px;
  display: flex;
  align-items: center;
}
.logo-icon {
  width: 36px;
  height: 36px;
  margin-right: 10px;
}
.logo-icon svg { width: 100%; height: 100%; }
.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: #e9ae6d;
  letter-spacing: 2px;
}
.menu { width: auto; height: 90px; }
.menu ul { width: 100%; }
.menu ul li {
  max-width: 140px;
  height: 90px;
  float: left;
}
.menu ul li a {
  display: inline-table;
  width: auto;
  height: 86px;
  line-height: 86px;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  padding: 0 12px;
  margin: 0 10px;
  color: #FFF;
  position: relative;
}
.menu ul li a svg {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 4px;
  opacity: 0.6;
}
.menu ul .currclass a, .menu ul li a:hover {
  border-bottom: 4px solid #e9ae6d;
}

/* ===== Banner ===== */
.flicker-example {
  position: relative;
  width: 100%;
  height: 340px;
  background: linear-gradient(135deg, #1a1a3e 0%, #0f3460 50%, #16213e 100%);
  overflow: hidden;
  margin-top: 90px;
}
.gonggao {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 100;
  color: #ffc688;
  font-size: 22px;
  line-height: 1.6;
}
.gonggao p { margin-bottom: 15px; }

/* ===== 内容区 ===== */
#content { width: 100%; height: auto; overflow: hidden; position: relative; }
.main { width: 100%; height: auto; margin: 0 auto; overflow: hidden; }
.advantage {
  width: 100%;
  background: #202020;
  color: #ddd;
  padding-bottom: 50px;
}

/* ===== 分类标签 ===== */
.classwrap {
  margin: 30px auto 0;
  width: 100%;
  max-width: 1200px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.6);
  padding: 1px;
  height: 52px;
  line-height: 52px;
}
.classwrap1 { display: flex; width: 100%; box-sizing: border-box; }
.classitem {
  width: 25%;
  text-align: center;
  color: #FFF;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.classitem img { vertical-align: middle; height: 24px; }
.classitem svg { width: 22px; height: 22px; }
.classitem span { font-weight: 700; }
.classitem.active {
  background: rgba(0, 0, 0, 0.5);
  color: #e9ae6d;
}
.listwrap { display: none; }
.active2 { display: block; }

/* ===== 大banner ===== */
.cf-buy-a { display: block; }
.cf-buy {
  height: 75px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a4e, #2d1b69);
  border-radius: 4px;
  overflow: hidden;
}
#nr {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin: 0;
  background: -webkit-linear-gradient(left, #ffffff, #ff0000 6.25%, #ff7d00 12.5%, #ffff00 18.75%, #00ff00 25%, #00ffff 31.25%, #0000ff 37.5%, #ff00ff 43.75%, #ffff00 50%, #ff0000 56.25%, #ff7d00 62.5%, #ffff00 68.75%, #00ff00 75%, #00ffff 81.25%, #0000ff 87.5%, #ff00ff 93.75%, #ffff00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: masked-animation 2s infinite linear;
}
@keyframes masked-animation {
  0% { background-position: 0 0; }
  100% { background-position: -100% 0; }
}

/* ===== 商品卡片 ===== */
.advantage-box {
  overflow: hidden;
  margin-top: 30px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #000;
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
}
.advantage-box-img {
  width: 300px;
  flex-shrink: 0;
}
.advantage-box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.advantage-box-info {
  flex: 1;
  padding: 20px;
}
.advantage-box-info h3 {
  font-size: 18px;
  color: #e9ae6d;
  margin-bottom: 10px;
}
.advantage-box-info p {
  font-size: 13px;
  color: #999;
  line-height: 1.8;
}
.advantage-box-btn {
  width: 180px;
  flex-shrink: 0;
  padding: 30px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}
.advantage-info2 {
  flex: 1;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #000;
  font-size: 20px;
  line-height: 36px;
  display: flex;
  gap: 20px;
  position: relative;
}
.advantage-info2 .photo {
  width: 272px;
  height: 212px;
  flex-shrink: 0;
  background: #151515;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #333;
}
.advantage-info2 .photo svg {
  width: 60px;
  height: 60px;
  color: #e9ae6d;
  opacity: 0.8;
}
.advantage-info2 .fr {
  flex: 1;
  word-break: break-all;
  font-weight: bold;
}
.index-advantage-info2 .fr div { line-height: 30px; }

.game-title {
  font-size: 30px;
  color: #e9ae6d;
  margin-bottom: 20px;
  font-weight: bold;
}
.gongneng, .xitong { color: #fff; font-weight: bold; }
.shouquan { color: #d00000; font-weight: bold; }
.txtEndTime { color: #19B340; font-weight: bold; }

/* 特色说明白色加粗 */
.teshu { color: #fff; font-weight: bold; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  text-align: center;
  cursor: pointer;
  background-image: linear-gradient(to bottom, rgb(187, 18, 18) 0%, rgb(134, 12, 14) 100%);
  color: #FFF;
  border: 1px solid #fffff;
  text-shadow: 0 1px 0 rgba(255,255,255,.1);
  padding: 10px 40px;
  font-size: 16px;
  transition: none;
}
.btn:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
  box-shadow: 0 0 10px rgba(0,0,0,.6);
  text-decoration: none;
}
.btn span { display: inline-block; font-size: 24px; }

/* ===== FAQ 区 ===== */
.ask {
  width: 100%;
  min-height: 400px;
  padding: 50px 0;
  background: #1a1a1a;
  overflow: hidden;
  margin-top: 30px;
}
.ask-box {
  border: 1px solid #000;
  background: rgba(0,0,0,0.5);
  width: 838px;
  margin: 0 auto;
  min-height: 390px;
  color: #ddd;
  font-size: 14px;
  padding: 40px 60px;
  line-height: 2em;
}
.ask-box h2 {
  font-size: 24px;
  color: #e9ae6d;
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #333;
}
.ask-box p { margin-bottom: 10px; }
.ask-box .red { color: #ff6b6b; font-weight: bold; }
.ask-box hr { border: none; border-top: 1px solid #333; margin: 15px 0; }
.ask-box a { color: #4cc9f0; }

/* ===== 底部 ===== */
#footer {
  width: 100%;
  height: 80px;
  padding: 25px 0;
  background: #000;
  color: #ddd;
  border-top: 1px solid #e9ae6d;
  text-align: center;
  font-size: 12px;
}

/* ===== 回到顶部按钮 ===== */
#back-to-top {
  position: fixed;
  right: 30px;
  bottom: 160px;
  width: 45px;
  height: 45px;
  background: linear-gradient(90deg, #e9ae6d, #d4874a);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(212, 135, 74, 0.4);
  transition: all 0.3s;
  z-index: 998;
}
#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(212, 135, 74, 0.5);
}
#back-to-top.show {
  display: flex;
}

/* ===== QQ客服悬浮窗 ===== */
#qq-float {
  position: fixed;
  right: 30px;
  bottom: 100px;
  width: 50px;
  height: 50px;
  background: #12b7f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(18, 183, 245, 0.4);
  z-index: 997;
  transition: all 0.3s;
}
#qq-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(18, 183, 245, 0.5);
}

/* ===== 页面淡入动画 ===== */
.fade-in {
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Toast提示 ===== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

/* ===== 手机端适配 ===== */
@media (max-width: 768px) {
  * {
    box-sizing: border-box !important;
  }
  body {
    min-width: 100% !important;
    max-width: 100% !important;
    font-size: 12px;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }
  .w1200 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
  }
  /* 顶部导航 */
  #hearder .top {
    height: 60px !important;
  }
  .logo {
    width: auto !important;
    height: 60px !important;
    padding: 0 10px;
  }
  .logo-text {
    font-size: 18px !important;
  }
  .menu {
    display: none !important;
  }
  /* 轮播图 */
  .flicker-example {
    height: 120px !important;
  }
  .gonggao {
    padding: 15px 10px !important;
    font-size: 11px !important;
  }
  /* 分类标签 */
  .classwrap {
    height: auto !important;
    min-height: 40px !important;
    line-height: 40px !important;
  }
  .classwrap1 {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
  }
  .classitem {
    width: auto !important;
    flex-shrink: 0 !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
  }
  .classitem img {
    width: 16px !important;
    height: 16px !important;
  }
  .classitem span {
    font-size: 13px !important;
  }
  .classwrap1 a, .classwrap1 button {
    white-space: nowrap !important;
  }
  /* 商品卡片 - 保持PC端左右布局，缩小适配 */
  .advantage-box {
    flex-direction: row-reverse !important;
  }
  .advantage-box-btn {
    width: 100px !important;
    padding: 10px !important;
    gap: 8px !important;
  }
  .advantage-box-btn .btn span {
    font-size: 12px !important;
  }
  .advantage-info2 {
    flex-direction: row !important;
  }
  .advantage-info2 .fl {
    width: 100px !important;
    flex-shrink: 0 !important;
  }
  .advantage-info2 .fr {
    flex: 1 !important;
    padding: 10px !important;
  }
  .advantage-info2 .photo {
    width: 100px !important;
    height: 100px !important;
  }
  .game-title {
    font-size: 13px !important;
    padding: 0 !important;
  }
  .gongneng, .xitong, .teshu {
    padding: 0 !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
  }
  .shouquan {
    padding: 0 !important;
    font-size: 12px !important;
  }
  /* 音乐播放器 - 固定在左下角，不要跑到内容里 */
  .music-player {
    position: fixed !important;
    width: auto !important;
    bottom: 10px !important;
    left: 10px !important;
    z-index: 9999 !important;
  }
  .music-player.collapsed {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
  }
  /* QQ客服 */
  #qq-float {
    position: fixed !important;
    right: 10px !important;
    bottom: 10px !important;
    z-index: 9999 !important;
  }
  #qq-float a {
    width: 40px !important;
    height: 40px !important;
  }
  /* FAQ */
  .faq-item {
    padding: 12px !important;
  }
  /* 底部 */
  .footer {
    padding: 15px 10px !important;
    font-size: 11px !important;
  }
}

  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  animation: toastIn 0.3s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
