/* 复刻自 789mh.com /cache/98youx.com/style.css，本地版做了编码与布局兼容 */
* { margin: 0; padding: 0; }
body {
  background: #2e220a;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-family: "宋体", SimSun, Arial, sans-serif;
  color: #000;
}
a { color: #000; }

/* 顶部横幅 1200x180，右上角 295x115 为 /vip 点击热区 */
.top {
  width: 1200px;
  height: 180px;
  margin: 0 auto;
  background: url(../img/top.gif) no-repeat left top;
  overflow: hidden;
  position: relative;
}
.vip {
  width: 295px;
  height: 115px;
  float: right;
  margin-top: 15px;
}

/* 1200 宽的整行区块容器 */
.dlbox {
  width: 1200px;
  overflow: hidden;
  margin: 0 auto;
}

/* 第一条：黄底三列提示（宽度比例对齐原站） */
.noticebar { width: 1200px; border-collapse: collapse; table-layout: auto; font-size: 12px; }
.noticebar td {
  height: 32px;
  line-height: 32px;
  text-align: center;
  background: #ffffcc;
  font-size: 12px;
  white-space: nowrap;
  padding: 0 2px;
}
.noticebar td:nth-child(1) { width: 54%; }
.noticebar td:nth-child(2) { width: 20%; }
.noticebar td:nth-child(3) { width: 26%; }

.banner { width: 1200px; overflow: hidden; }
.banner img { display: block; width: 1200px; height: 28px; border: 0; }

/* 第二条：黄色公告 */
.yellowbar {
  width: 1200px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background: yellow;
  font-size: 18px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 第三条：黑色公告 */
.blackbar {
  width: 1200px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background: #000;
  color: #fff;
  font-size: 18px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wrap { width: 1200px; overflow: hidden; margin: 0 auto; }

/* 服务器列表 */
table.gamelist { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.gamelist th {
  font-family: "微软雅黑", "Microsoft YaHei";
  font-size: 14px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border: solid 1px #7b68ee;
  background-color: #0066ff;
  color: #fff;
  font-weight: bold;
}
table.gamelist td {
  height: 26px;
  line-height: 25px;
  border: solid 1px #7b68ee;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
}
table.gamelist td a { text-decoration: none; color: #000; }
table.gamelist td.r { color: #ff0000; text-align: center; }
table.gamelist td.lf { text-align: left; padding-left: 3px; }
table.gamelist tr.row { cursor: pointer; }

.footer {
  width: 1170px;
  line-height: 160%;
  text-align: center;
  padding: 10px 15px;
  overflow: hidden;
  background-color: #0066ff;
  margin: 0 auto;
  color: #fff;
}
.footer .tip { font-size: 12px; color: #dfe9ff; margin-top: 4px; }
.footer .tip span { margin: 0 8px; }

/* 兼容原站遗留的代理表样式 */
table.daili { border-collapse: collapse; }
table.daili td { height: 30px; line-height: 30px; background-color: #0066ff; text-align: center; color: #fff; }
table.daili td a { text-decoration: none; color: #0066ff; }

/* 简易 VIP 页 */
.vip-page {
  width: 1200px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  box-sizing: border-box;
}

/* 首页自动弹出的 QQ 加群提示 */
.qq-popup-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
}
.qq-popup {
  position: relative;
  width: 430px;
  padding: 28px 30px 24px;
  box-sizing: border-box;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
  font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}
.qq-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #999;
  font-size: 24px;
  line-height: 30px;
  cursor: pointer;
}
.qq-popup-close:hover { color: #333; }
.qq-popup-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1aa7ff, #0066ff);
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  line-height: 64px;
  letter-spacing: 1px;
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.35);
}
.qq-popup-title {
  margin-bottom: 8px;
  color: #1f2a44;
  font-size: 22px;
  line-height: 1.4;
}
.qq-popup-desc {
  margin-bottom: 22px;
  color: #5b6478;
  font-size: 14px;
  line-height: 1.8;
}
.qq-popup-join {
  display: block;
  width: 100%;
  height: 46px;
  line-height: 46px;
  border-radius: 23px;
  background: linear-gradient(135deg, #22b8ff, #0066ff);
  color: #fff !important;
  font-size: 17px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.35);
}
.qq-popup-join:hover { filter: brightness(1.06); }
.qq-popup-later {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: #8a93a6;
  font-size: 13px;
  cursor: pointer;
}
.qq-popup-later:hover { color: #5b6478; }

/* ---------------- 移动端适配 ---------------- */
@media (max-width: 1240px) {
  .top {
    width: 100%;
    max-width: 1200px;
    height: 15vw;
    max-height: 180px;
    min-height: 56px;
    margin: 0 auto;
    background-size: 100% 100%;
  }
  .vip {
    width: 24.583%;
    height: 63.889%;
    margin-top: 8.333%;
  }
  .dlbox,
  .banner,
  .noticebar,
  .yellowbar,
  .blackbar,
  .wrap,
  .footer {
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
  }
  .banner img {
    width: 100%;
    height: auto;
  }
  .wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table.gamelist {
    min-width: 1000px;
  }
  .vip-page {
    width: auto;
    max-width: 1200px;
    margin: 20px auto;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .noticebar,
  .noticebar tbody,
  .noticebar tr,
  .noticebar td {
    display: block;
    width: 100% !important;
  }
  .noticebar td {
    height: auto;
    line-height: 1.6;
    padding: 5px 8px;
    white-space: normal;
    text-align: left;
  }
  .noticebar td + td {
    border-top: 1px dashed #e0d28a;
  }
  .yellowbar,
  .blackbar {
    height: auto;
    line-height: 1.6;
    padding: 7px 10px;
    font-size: 14px;
    white-space: normal;
    text-overflow: clip;
  }
  table.gamelist {
    font-size: 12px;
  }
  .footer {
    padding: 10px 8px;
  }
  .footer .tip span {
    display: inline-block;
    margin: 2px 6px;
  }
  .qq-popup {
    width: calc(100% - 28px);
    max-width: 430px;
    padding: 24px 20px 20px;
  }
  .qq-popup-title {
    font-size: 20px;
  }
  .qq-popup-desc {
    font-size: 13px;
  }
}
