/* 全局重置与基础样式 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Microsoft YaHei", Arial, sans-serif;
}

body {
background-color: #f5f7fa;
color: #333;
line-height: 1.6;
}

/* 容器通用样式 */
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
}

/* 头部导航 */
header {
background-color: #2c3e50;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
position: sticky;
top: 0;
z-index: 999;
}

.navbar {
display: flex;
justify-content: space-between;
align-items: center;
height: 70px;
}

.logo {
color: #fff;
font-size: 24px;
font-weight: bold;
text-decoration: none;
}

.logo span {
color: #3498db;
}

.nav-menu a {
color: #ecf0f1;
text-decoration: none;
margin-left: 25px;
font-size: 16px;
transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
color: #3498db;
}

/* 主标题区域 */
.page-title {
text-align: center;
padding: 30px 0;
background-color: #fff;
margin-bottom: 20px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-title h1 {
font-size: 28px;
color: #2c3e50;
margin-bottom: 10px;
}

.page-title p {
color: #7f8c8d;
font-size: 16px;
}

/* 开服表筛选栏 */
.server-filter {
background-color: #fff;
padding: 15px 20px;
border-radius: 8px;
margin-bottom: 20px;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 15px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-item {
display: flex;
align-items: center;
gap: 8px;
}

.filter-item label {
font-weight: 500;
color: #34495e;
}

.filter-item select {
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
outline: none;
}

/* 开服表主体 */
.server-table {
width: 100%;
background-color: #fff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
margin-bottom: 40px;
}

.table-header {
display: grid;
grid-template-columns: 1fr 120px 180px 120px 140px;
background-color: #3498db;
color: #fff;
padding: 15px 20px;
font-weight: bold;
}

.table-row {
display: grid;
grid-template-columns: 1fr 120px 180px 120px 140px;
padding: 15px 20px;
align-items: center;
border-bottom: 1px solid #f1f1f1;
transition: background-color 0.3s;
}

.table-row:hover {
background-color: #f8f9fa;
}

.game-name {
font-weight: 500;
display: flex;
align-items: center;
gap: 10px;
}

.game-name i {
color: #3498db;
}

.server-status {
padding: 4px 10px;
border-radius: 4px;
font-size: 12px;
text-align: center;
}

.status-new {
background-color: #e74c3c;
color: #fff;
}

.status-hot {
background-color: #f39c12;
color: #fff;
}

.enter-btn {
background-color: #2ecc71;
color: #fff;
padding: 6px 15px;
border-radius: 4px;
text-decoration: none;
text-align: center;
transition: background-color 0.3s;
}

.enter-btn:hover {
background-color: #27ae60;
}

/* 资讯板块 */
.news-section {
background-color: #fff;
border-radius: 8px;
padding: 25px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
margin-bottom: 30px;
}

.section-title {
font-size: 24px;
color: #2c3e50;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid #3498db;
display: inline-block;
}

.news-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 20px;
}

.news-item {
border: 1px solid #eee;
border-radius: 8px;
overflow: hidden;
transition: transform 0.3s;
}

.news-item:hover {
transform: translateY(-5px);
}

.news-img {
width: 100%;
height: 200px;
object-fit: cover;
}

.news-content {
padding: 15px;
}

.news-date {
color: #95a5a6;
font-size: 13px;
margin-bottom: 8px;
}

.news-title {
font-size: 18px;
color: #2c3e50;
margin-bottom: 10px;
line-height: 1.4;
}

.news-desc {
color: #7f8c8d;
font-size: 14px;
line-height: 1.5;
}

/* 热门文章板块（纯文字） */
.hot-article {
background-color: #fff;
border-radius: 8px;
padding: 25px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
margin-bottom: 30px;
}

.hot-list {
list-style: none;
}

.hot-item {
display: flex;
align-items: center;
padding: 12px 0;
border-bottom: 1px dashed #eee;
font-size: 15px;
}

.hot-item:last-child {
border-bottom: none;
}

.hot-cate {
width: 80px;
color: #3498db;
font-weight: 500;
flex-shrink: 0;
}

.hot-title {
flex: 1;
color: #2c3e50;
text-decoration: none;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: 0 10px;
}

.hot-title:hover {
color: #3498db;
}

.hot-date {
width: 90px;
color: #95a5a6;
font-size: 13px;
text-align: right;
flex-shrink: 0;
}

/* 底部 */
footer {
background-color: #2c3e50;
color: #ecf0f1;
text-align: center;
padding: 25px 0;
margin-top: 20px;
}

/* 响应式适配 */
@media (max-width: 992px) {
.table-header, .table-row {
grid-template-columns: 1fr 100px 150px 100px 120px;
padding: 12px 10px;
font-size: 14px;
}
}

@media (max-width: 768px) {
.navbar {
flex-direction: column;
height: auto;
padding: 15px;
}
.nav-menu {
margin-top: 15px;
}
.nav-menu a {
margin: 0 10px;
}
.table-header, .table-row {
grid-template-columns: 1fr;
gap: 8px;
text-align: center;
}
.news-list {
grid-template-columns: 1fr;
}
.hot-item {
flex-wrap: wrap;
padding: 10px 0;
}
.hot-cate {
width: auto;
margin-bottom: 5px;
}
.hot-date {
width: auto;
margin-left: auto;
}
}