/* 基础样式 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: "Microsoft YaHei", Arial, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f5f5f5;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
}

/* 头部样式 */
header {
background-color: #222;
color: #fff;
padding: 15px 0;
border-bottom: 3px solid #d9534f;
}

.header-top {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
}

.logo h1 {
color: #d9534f;
font-size: 28px;
font-weight: bold;
}

.logo p {
color: #aaa;
font-size: 12px;
margin-top: 5px;
}

.search-box {
display: flex;
margin: 10px 0;
}

.search-box input {
padding: 8px 12px;
border: 1px solid #444;
background: #333;
color: #fff;
width: 300px;
border-radius: 3px 0 0 3px;
}

.search-box button {
background: #d9534f;
color: white;
border: none;
padding: 8px 15px;
cursor: pointer;
border-radius: 0 3px 3px 0;
}

/* 导航栏 */
.main-nav {
background-color: #333;
}

.nav-menu {
display: flex;
list-style: none;
}

.nav-menu li {
position: relative;
}

.nav-menu a {
display: block;
color: #fff;
text-decoration: none;
padding: 12px 20px;
transition: background 0.3s;
}

.nav-menu a:hover, .nav-menu li.active a {
background-color: #d9534f;
}

/* 横幅广告 */
.banner {
background-color: #444;
color: white;
text-align: center;
padding: 15px;
margin: 10px 0;
border-radius: 5px;
}

/* 主要内容区域 */
.main-content {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 20px;
margin: 20px 0;
}

/* 开服表格 */
.server-table-section {
background: white;
border-radius: 5px;
overflow: hidden;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section-header {
background: #d9534f;
color: white;
padding: 12px 15px;
font-size: 18px;
}

.disclaimer {
background: #fff3cd;
color: #856404;
padding: 10px 15px;
font-size: 14px;
border-left: 4px solid #ffc107;
margin: 10px;
}

table {
width: 100%;
border-collapse: collapse;
}

th {
background: #f8f9fa;
padding: 14px 8px;
text-align: left;
font-weight: normal;
border-bottom: 2px solid #eee;
color: #666;
}

td {
padding: 10px 8px;
font-size: 14px;
border-bottom: 1px solid #eee;
}

tr:hover {
background-color: #f9f9f9;
}

.game-name {
color: #d9534f;
font-weight: bold;
}

.game-title {
color: #333;
text-decoration: none;
font-size: 14px;
display: block;
margin-bottom: 5px;
}

.server-info {
font-size: 14px;
color: #666;
}

.open-date {
color: #28a745;
font-size: 14px;
font-weight: bold;
}

.recommend-tag {
background: #ffc107;
color: #333;
font-size: 14px;
padding: 2px 5px;
border-radius: 3px;
display: inline-block;
margin-right: 5px;
}

/* 侧边栏 */
.sidebar {
display: flex;
flex-direction: column;
gap: 20px;
}

.side-box {
background: white;
border-radius: 5px;
overflow: hidden;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.side-header {
background: #444;
color: white;
padding: 10px 15px;
font-size: 16px;
}

/* 游戏分类 */
.game-categories {
display: flex;
flex-wrap: wrap;
gap: 8px;
padding: 15px;
}

.category-tag {
background: #f8f9fa;
color: #333;
padding: 5px 10px;
border-radius: 3px;
text-decoration: none;
font-size: 12px;
transition: all 0.3s;
}

.category-tag:hover {
background: #d9534f;
color: white;
}

/* 热门资讯 */
.hot-news {
padding: 15px;
}

.news-item {
padding: 8px 0;
border-bottom: 1px dashed #eee;
}

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

.news-title {
color: #333;
text-decoration: none;
font-size: 14px;
display: block;
margin-bottom: 5px;
}

.news-title:hover {
color: #d9534f;
}

.news-meta {
font-size: 12px;
color: #888;
}

/* 图片攻略 */
.image-guide-section {
margin-top: 20px;
}

.image-guide-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 15px;
margin-top: 15px;
}

.guide-item {
background: white;
border-radius: 5px;
overflow: hidden;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.guide-image {
width: 100%;
height: 120px;
object-fit: cover;
}

.guide-content {
padding: 10px;
}

.guide-title {
font-size: 14px;
color: #333;
margin-bottom: 5px;
}

.guide-desc {
font-size: 12px;
color: #666;
}

/* 页脚 */
footer {
background: #222;
color: #aaa;
padding: 30px 0 20px;
margin-top: 30px;
}

.footer-links {
display: flex;
justify-content: center;
gap: 20px;
margin-bottom: 20px;
}

.footer-links a {
color: #aaa;
text-decoration: none;
}

.footer-links a:hover {
color: #fff;
}

.copyright {
text-align: center;
font-size: 12px;
padding-top: 20px;
border-top: 1px solid #444;
}

/* 响应式设计 */
@media (max-width: 768px) {
.main-content {
grid-template-columns: 1fr;
}

.header-top {
flex-direction: column;
align-items: flex-start;
}

.search-box {
width: 100%;
margin-top: 10px;
}

.search-box input {
width: 100%;
}

.nav-menu {
flex-wrap: wrap;
}

.nav-menu a {
padding: 8px 12px;
font-size: 14px;
}

.image-guide-grid {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
}

@media (max-width: 480px) {
.container {
padding: 0 10px;
}

.logo h1 {
font-size: 22px;
}

table {
font-size: 12px;
}

th, td {
padding: 8px 5px;
}
}