/* 全局重置 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Microsoft YaHei", sans-serif;
background: #f5f5f5;
color: #333;
line-height: 1.6;
}
ul, ol {
list-style: none;
}
a {
text-decoration: none;
color: #333;
}
a:hover {
color: #ff6600;
}
img {
border: none;
max-width: 100%;
}
.clearfix::after {
content: "";
display: block;
clear: both;
}
.container {
width: 1200px;
margin: 0 auto;
}

/* 顶部导航 */
.top-bar {
background: #2b2b2b;
color: #fff;
height: 36px;
line-height: 36px;
font-size: 14px;
}
.top-left {
float: left;
}
.top-left a {
color: #eee;
margin-right: 10px;
}
.top-left span {
color: #666;
}
.top-right {
float: right;
color: #d8d7d6;
line-height: 36px;
}

/* 头部 */
.header {
background: #fff;
padding: 15px 0;
}
.logo {
float: left;
}
.search-box {
float: right;
margin-top: 10px;
}
.search-box form {
display: flex;
width: 380px;
}
.search-box input[type="text"] {
flex: 1;
height: 36px;
padding: 0 10px;
border: 2px solid #ff6600;
outline: none;
}
.search-box button {
width: 80px;
height: 36px;
background: #ff6600;
color: #fff;
border: none;
cursor: pointer;
}
.hot-search {
margin-top: 5px;
font-size: 12px;
}
.hot-search a {
margin-right: 8px;
color: #666;
}

/* 主导航 */
.nav {
background: #ff6600;
}
.nav ul li {
float: left;
}
.nav ul li a {
display: block;
padding: 0 20px;
height: 45px;
line-height: 45px;
color: #fff;
font-size: 16px;
}
.nav ul li a:hover,
.nav ul li.active a {
background: #e55a00;
}

/* 攻略两列列表样式 */
.news-grid-list {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px 13px;
margin-top: 13px;
}
.news-grid-list li {
list-style: none;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 26px;
height: 26px;
display: flex;
align-items: center;
border-bottom: 1px dashed #eee;
padding-left: 6px;
}
.news-grid-list li a {
color: #333;
font-size: 14px;
text-decoration: none;
}
.news-grid-list li a:hover {
color: #ff6600;
}

/* 主内容 */
.main {
margin-top: 15px;
}
.card {
background: #fff;
border-radius: 4px;
margin-bottom: 15px;
overflow: hidden;
}
.card-title {
height: 42px;
line-height: 42px;
background: #f8f8f8;
border-left: 4px solid #ff6600;
padding: 0 15px;
font-size: 16px;
font-weight: bold;
color: #333;
}
.card-title span {
font-size: 13px;
color: #666;
font-weight: normal;
margin-left: 10px;
}
.card-body {
padding: 15px;
}

/* 传奇开服表全局样式 */
.kf-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 14px;
}
.kf-table th,
.kf-table td {
    padding: 12px 8px;
    border: 1px solid #eee;
}
.kf-table th {
    background-color: #f5f5f5;
    font-weight: 500;
    color: #333;
}
/* 游戏信息布局 */
.game-info {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
}
.game-info img {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    display: block;
}
.game-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}
/* 开服时间红色高亮 */
.kf-time {
    color: #d90000;
    font-weight: 500;
}
/* 普通文字灰色 */
.kf-text {
    color: #555;
}
.kf-desc {
    color: #666;
    line-height: 1.5;
}
/* 进入游戏按钮 */
.enter-btn {
    display: inline-block;
    padding: 5px 12px;
    background: #d90000;
    color: #fff;
    border-radius: 3px;
    text-decoration: none;
}
.enter-btn:hover {
    background: #b80000;
}
/* 底部统计文字 */
.kf-tip {
    text-align: center;
    padding: 15px;
    color: #666;
}

/* 内容布局 */
.layout {
display: flex;
gap: 15px;
}
.left {
flex: 2;
}
.right {
flex: 1;
}

/* 轮播 */
.slider {
height: 312px;
position: relative;
}
.slider img {
width: 100%;
height: 312px;
object-fit: cover;
border-radius: 4px;
}
.news-list li {
height: 36px;
line-height: 36px;
border-bottom: 1px dashed #eee;
padding: 0 5px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.news-list li a {
color: #333;
font-size: 14px;
}
.news-list li a:hover {
color: #ff6600;
}
.tag {
color: #ff6600;
margin-right: 5px;
}

/* 轮播容器 */
.slider {
    width: 100%;
    height: 312px;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}
.slider img {
    width: 100%;
    height: 312px;
    object-fit: cover;
    display: none;
}
.slider img.active {
    display: block;
}
/* 轮播基础样式 */
.slider {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 15px;
}
.slider img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.slider img.active {
  opacity: 1;
  z-index: 1;
}

/* 新闻列表样式（可选优化） */
.news-grid-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.news-grid-list li {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-grid-list a {
  color: #333;
  text-decoration: none;
}
.news-grid-list a:hover {
  color: #ff6600;
}


/* 热门游戏 */
.hot-game {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.hot-game li {
width: 16%;
text-align: center;
}
.hot-game a {
display: block;
padding: 6px 0;
background: #f8f8f8;
border-radius: 3px;
color: #333;
font-size: 13px;
}
.hot-game a:hover {
background: #ff6600;
color: #fff;
}

/* 友情链接 */
.link-list a {
display: inline-block;
margin: 5px 8px;
color: #666;
font-size: 14px;
}
.link-list a:hover {
color: #ff6600;
}

/* 底部 */
.footer {
background: #222;
color: #999;
text-align: center;
padding: 20px 0;
margin-top: 20px;
font-size: 14px;
}
.footer a {
color: #999;
margin: 0 5px;
}
.footer a:hover {
color: #ff6600;
}