html{
  overflow-y: scroll;
}

/* ================= 通用样式 ================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}
body{
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #e6e9f0, #eef2f7);
  color:#333;
  line-height:1.6;
}
.container{
  width:95%;
  max-width:1600px;
  margin:30px auto;
  background:#fff;
  padding:30px;
  box-shadow:0 8px 20px rgba(0,0,0,0.1);
  border-radius:12px;
  overflow:hidden;
}

/* ================= 新服日期 ================= */
.server-banner{ text-align:center; margin:0 0 18px 0; }
.server-date-line{
  display:flex;
  justify-content:center;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
}
.server-date{ font-size:18px; font-weight:600; }
.server-tip{ margin-top:6px; font-size:15px; color:#555; }
.server-badge{
  display:inline-flex;
  align-items:center;
  font-size:12px;
  font-weight:700;
  padding:3px 10px;
  border-radius:999px;
  background:#ff3b30;
  color:#fff;
  box-shadow:0 6px 14px rgba(0,0,0,0.12);
}

/* ================= 桌面端表格 ================= */
table{
  width:100%;
  border-collapse:collapse;
  margin-top:20px;
  border-radius:10px;
  overflow:hidden;
}
th, td{
  padding:10px 12px;
  text-align:center;
  border:1px solid #ddd;
  background:#f8f8f8;
  font-size:14px;
}
th{
  background:#1e70bb;
  color:#fff;
  font-weight:bold;
}
tr{ background:#f8f8f8; }
tr:hover{ background:#dbe8f3; }
tr td{ background:transparent !important; }

/* 字体颜色保持原来 */
td:nth-child(1){ color:red; font-weight:bold; }
td:nth-child(2){ color:black; font-weight:bold; }
td:nth-child(3){ color:green; font-weight:bold; }

tr:hover td:nth-child(1),
tr:hover td:nth-child(2),
tr:hover td:nth-child(3){
  filter: brightness(1.2);
}

/* ================= 按钮（原蓝色） ================= */
.btn{
  display:inline-block;
  padding:4px 8px;
  margin:5px;
  text-align:center;
  text-decoration:none;
  font-weight:bold;
  border-radius:5px;
  background:#66b3ff;
  color:#fff;
  transition:all .3s ease;
  font-size:12px;
  min-width:80px;
  position:relative;
}
.btn:hover{
  opacity:0.8;
  transform:translateY(-2px);
}
.btn:active{
  transform:translateY(1px);
}
tr:hover .btn{
  background:#0056b3;
}

td a{ display:inline-block; margin:3px; }

/* NEW 标识 */
.new-badge{
  position:absolute;
  top:-7px;
  right:-6px;
  font-size:10px;
  padding:3px 6px;
  border-radius:999px;
  background:#ff3b30;
  color:#fff;
  box-shadow:0 6px 14px rgba(0,0,0,0.12);
  pointer-events:none;
}

/* ================= 公告弹窗 ================= */
.announcement-modal{
  position:fixed;
  inset:0;
  z-index:10000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,0.55);
}
.announcement-modal-content{
  position:relative;
  width:min(860px, 92vw);
  max-height:82vh;
  background:#111;
  color:#fff;
  border-radius:14px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.announcement-modal-header{
  padding:16px 18px 12px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.announcement-title{ font-size:16px; font-weight:700; }
.announcement-subtitle{ font-size:12px; opacity:.8; margin-top:6px; }
.announcement-body{
  padding:14px 18px;
  overflow:auto;
  white-space:pre-wrap;
  font-size:13px;
  line-height:1.6;
}
.announcement-close{
  position:absolute;
  right:10px;
  top:10px;
  width:34px;
  height:34px;
  border:none;
  border-radius:10px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:22px;
  cursor:pointer;
}
body.modal-open{ overflow:hidden; }

/* ================= 显示控制 ================= */
.desktop-only{ display:block; }
.mobile-only{ display:none; }

/* ================= 手机卡片 ================= */
.cards{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:14px;
}
.card{
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  box-shadow:0 10px 22px rgba(0,0,0,.06);
  background:#fff;
}
.card-head{
  padding:12px;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.card-title{
  font-size:16px;
  font-weight:800;
  color:red;
}
.card-sub{
  margin-top:6px;
  font-size:13px;
  font-weight:700;
  color:black;
}
.card-meta{
  margin-top:8px;
  font-size:12px;
  color:#555;
}
.card-actions{
  padding:10px 12px 12px;
  display:flex;
  gap:8px;
  flex-wrap:nowrap;
}
.card-actions .btn{
  flex:1 1 20%;
  margin:0;
  padding:8px 0;
  border-radius:10px;
  min-width:0;
  white-space:nowrap;
}

/* ================= 手机端低饱和配色 ================= */
@media (max-width:768px){
  .container{
    width:100%;
    padding:16px;
    margin:0;
    border-radius:0;
  }
  .desktop-only{ display:none; }
  .mobile-only{ display:block; }

  .card-actions .btn:nth-child(1){ background:#5f8fb3; } /* 进入网站 */
  .card-actions .btn:nth-child(2){ background:#6fae8f; } /* 下载 */
  .card-actions .btn:nth-child(3){ background:#7a8fa3; } /* 攻略 */
  .card-actions .btn:nth-child(4){ background:#c28b6b; } /* 爆率 */
  .card-actions .btn:nth-child(5){ background:#666666; } /* 公告 */

  .card-actions .btn:active{
    filter:brightness(.92);
  }
}

/* 极小屏兜底 */
@media (max-width:360px){
  .card-actions{
    flex-wrap:wrap;
  }
  .card-actions .btn{
    flex:1 1 48%;
  }
}

/* ================= 公告已读状态（点过公告后变淡） ================= */
.btn.is-read{
  opacity: 0.55;
}
.btn.is-read .new-badge{
  display:none;
}


/* ================= 搜索栏（安全版） ================= */
.search-bar{
  margin: 12px 0 6px;
  display:flex;
  justify-content:center;
}
.search-bar input{
  width: min(520px, 100%);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.22);
  font-size: 14px;
  outline:none;
}
.search-bar input:focus{
  border-color: rgba(30,112,187,0.55);
  box-shadow: 0 0 0 3px rgba(30,112,187,0.12);
}

@media (max-width:768px){
  .search-bar{ justify-content:stretch; }
  .search-bar input{ width: 100%; }
}

/* ================= 游戏盒子下载（全站入口） ================= */
.box-banner{
  display:flex;
  justify-content:center;
  margin: 8px 0 12px;
}
.box-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 16px;
  border-radius:12px;
  text-decoration:none;
  font-weight:800;
  font-size:14px;
  color:#fff;
  background: linear-gradient(90deg, #3f8efc, #6a5cff);
  box-shadow:0 10px 22px rgba(0,0,0,0.12);
  transition: all .25s ease;
  width: min(520px, 100%);
}
.box-btn:hover{
  transform: translateY(-2px);
  opacity: 0.95;
}
.box-btn:active{
  transform: translateY(0px);
  opacity: 0.9;
}

@media (max-width:768px){
  .box-banner{
    justify-content:stretch;
    margin: 6px 0 10px;
  }
  .box-btn{
    width: 100%;
    font-size: 15px;
    padding: 12px 16px;
    border-radius: 14px;
  }
}

