/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif; 
  background: #0a0a1a; 
  color: #e0e0e0; 
  line-height: 1.7;
  min-height: 100vh;
}

a { color: #f0c060; text-decoration: none; transition: all 0.3s; }
a:hover { color: #ffd700; text-shadow: 0 0 8px rgba(255,215,0,0.5); }

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

/* ===== 顶部通知栏 ===== */
.top-bar {
  background: linear-gradient(90deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-bottom: 1px solid #333;
  padding: 8px 0;
  font-size: 13px;
  color: #aaa;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar strong { color: #ff6b35; font-size: 15px; }
.top-links a { color: #f0c060; margin: 0 5px; font-size: 13px; }

/* ===== 头部 ===== */
.header {
  background: linear-gradient(180deg, #111125 0%, #0d0d20 100%);
  border-bottom: 2px solid #c0a040;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo h1 a {
  font-size: 32px;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255,215,0,0.3);
  letter-spacing: 2px;
}
.logo p {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}
.nav { display: flex; gap: 8px; }
.nav a {
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: bold;
  color: #ccc;
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  transition: all 0.3s;
}
.nav a:hover, .nav a.active {
  background: linear-gradient(135deg, #c0a040, #ffd700);
  color: #1a1a2e;
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255,215,0,0.3);
}

/* ===== 搜索区域 ===== */
.search-section {
  background: linear-gradient(135deg, #1a1a3e 0%, #0d0d2b 100%);
  padding: 30px 0;
  border-bottom: 1px solid #222;
}
.search-box {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.search-box h2 {
  font-size: 22px;
  color: #ffd700;
  margin-bottom: 20px;
}
.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.search-form input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid #c0a040;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 16px;
  outline: none;
}
.search-form input:focus { border-color: #ffd700; box-shadow: 0 0 15px rgba(255,215,0,0.2); }
.search-form button {
  padding: 14px 30px;
  background: linear-gradient(135deg, #c0a040, #ffd700);
  color: #1a1a2e;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}
.search-form button:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(255,215,0,0.4); }
.hot-tags { font-size: 13px; color: #888; }
.hot-tags a {
  display: inline-block;
  padding: 3px 10px;
  margin: 3px;
  background: rgba(192,160,64,0.1);
  border: 1px solid rgba(192,160,64,0.3);
  border-radius: 15px;
  font-size: 12px;
  color: #c0a040;
}
.hot-tags a:hover { background: rgba(192,160,64,0.3); color: #ffd700; }

/* ===== 主内容布局 ===== */
.main-content { padding: 30px 0; }
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 25px;
}

/* ===== 区块通用样式 ===== */
.section-block {
  background: #111125;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #c0a040;
}
.section-header h2 {
  font-size: 20px;
  color: #ffd700;
}
.update-time { font-size: 12px; color: #666; }

/* ===== 服务器表格 ===== */
.server-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.server-table th {
  background: linear-gradient(135deg, #1a1a3e, #16213e);
  padding: 12px 10px;
  text-align: left;
  color: #c0a040;
  font-weight: bold;
  border-bottom: 2px solid #333;
}
.server-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #1a1a2e;
  color: #ccc;
}
.server-table tr:hover { background: rgba(192,160,64,0.05); }
.time-badge {
  display: inline-block;
  padding: 3px 8px;
  background: #c0a040;
  color: #1a1a2e;
  border-radius: 4px;
  font-weight: bold;
  font-size: 12px;
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
}
.tag-gold { background: #c0a040; color: #1a1a2e; }
.tag-red { background: #e74c3c; color: #fff; }
.tag-blue { background: #3498db; color: #fff; }
.tag-green { background: #27ae60; color: #fff; }
.tag-purple { background: #9b59b6; color: #fff; }
.tag-orange { background: #e67e22; color: #fff; }

/* 状态 */
.status-hot { color: #e74c3c; font-weight: bold; }
.status-new { color: #27ae60; font-weight: bold; }
.status-normal { color: #3498db; }

/* 按钮 */
.btn-play {
  display: inline-block;
  padding: 6px 15px;
  background: linear-gradient(135deg, #c0a040, #ffd700);
  color: #1a1a2e;
  border-radius: 5px;
  font-weight: bold;
  font-size: 13px;
}
.btn-play:hover { color: #1a1a2e; transform: scale(1.05); }
.btn-detail {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 20px;
  background: transparent;
  border: 1px solid #c0a040;
  color: #c0a040;
  border-radius: 5px;
  font-size: 13px;
}
.btn-detail:hover { background: #c0a040; color: #1a1a2e; }

.more-link { text-align: right; margin-top: 15px; }
.more-link a { color: #c0a040; font-size: 14px; }
.more-link a:hover { color: #ffd700; }

/* ===== 热门卡片 ===== */
.hot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.hot-card {
  background: linear-gradient(135deg, #161630 0%, #1a1a3e 100%);
  border: 1px solid #2a2a4a;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s;
}
.hot-card:hover {
  border-color: #c0a040;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(192,160,64,0.15);
}
.hot-card-img {
  font-size: 40px;
  margin-bottom: 10px;
}
.hot-card h3 { color: #ffd700; font-size: 17px; margin-bottom: 8px; }
.hot-card p { font-size: 13px; color: #aaa; line-height: 1.6; }
.hot-card-info {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: #666;
}

/* ===== 文章深度内容 ===== */
.article-content h3 {
  color: #ffd700;
  font-size: 18px;
  margin: 20px 0 12px;
  padding-left: 12px;
  border-left: 4px solid #c0a040;
}
.article-content p {
  font-size: 14px;
  color: #bbb;
  margin-bottom: 15px;
  text-indent: 2em;
  line-height: 1.9;
}

/* ===== 开服预告 ===== */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.schedule-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #161630;
  border: 1px solid #222;
  border-radius: 8px;
  transition: all 0.3s;
}
.schedule-item:hover { border-color: #c0a040; }
.schedule-time {
  font-size: 18px;
  font-weight: bold;
  color: #ffd700;
  min-width: 80px;
}
.schedule-info h4 { color: #eee; font-size: 14px; }
.schedule-info p { color: #888; font-size: 12px; margin-top: 3px; }

/* ===== 侧边栏 ===== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.side-block {
  background: #111125;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 20px;
}
.side-title {
  font-size: 16px;
  color: #ffd700;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a2a4a;
}

/* 排行榜 */
.rank-list { list-style: none; }
.rank-list li {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #1a1a2e;
  font-size: 13px;
}
.rank-num {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  background: #333;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  margin-right: 10px;
}
.rank-list li:nth-child(1) .rank-num { background: #e74c3c; }
.rank-list li:nth-child(2) .rank-num { background: #e67e22; }
.rank-list li:nth-child(3) .rank-num { background: #f0c060; color: #1a1a2e; }
.rank-list li a { flex: 1; color: #ccc; }
.rank-hot { color: #e74c3c; font-size: 12px; font-weight: bold; }
.side-more { display: block; text-align: center; margin-top: 12px; color: #c0a040; font-size: 13px; }

/* 分类导航 */
.cat-nav { display: flex; flex-direction: column; gap: 8px; }
.cat-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: #161630;
  border-radius: 6px;
  font-size: 14px;
  color: #ccc;
  transition: all 0.3s;
}
.cat-item:hover { background: #1a1a4e; color: #ffd700; }
.cat-icon { margin-right: 10px; font-size: 18px; }
.cat-count { margin-left: auto; font-size: 12px; color: #666; }

/* 攻略列表 */
.guide-list { list-style: none; }
.guide-list li {
  display: flex;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #1a1a2e;
  font-size: 13px;
}
.guide-list li a { flex: 1; color: #ccc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guide-list li a:hover { color: #ffd700; }
.guide-date { font-size: 12px; color: #666; margin-left: 8px; }

/* 下载框 */
.download-box {
  background: linear-gradient(135deg, #161630, #1a1a3e);
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 12px;
  text-align: center;
}
.download-box p { color: #eee; font-size: 14px; font-weight: bold; }
.download-info { font-size: 12px !important; color: #888 !important; font-weight: normal !important; margin: 5px 0 10px; }
.btn-download {
  display: inline-block;
  padding: 8px 25px;
  background: linear-gradient(135deg, #c0a040, #ffd700);
  color: #1a1a2e;
  border-radius: 5px;
  font-weight: bold;
  font-size: 14px;
}
.btn-download:hover { color: #1a1a2e; transform: scale(1.05); }

/* 公告 */
.notice-box p {
  font-size: 13px;
  color: #aaa;
  line-height: 1.8;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: #161630;
  border-radius: 5px;
  border-left: 3px solid #c0a040;
}
.notice-box strong { color: #ffd700; }

/* ===== 底部 ===== */
.footer {
  background: #080815;
  border-top: 2px solid #c0a040;
  padding: 40px 0 20px;
  margin-top: 40px;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 {
  color: #ffd700;
  font-size: 15px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #222;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #888; font-size: 13px; }
.footer-col ul li a:hover { color: #ffd700; }
.footer-col p { font-size: 13px; color: #888; line-height: 1.8; }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #1a1a2e;
  font-size: 12px;
  color: #555;
}
.footer-bottom p { margin-bottom: 5px; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .content-layout { grid-template-columns: 1fr; }
  .hot-grid { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
  .nav { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .header .container { flex-direction: column; gap: 15px; }
  .nav a { padding: 8px 12px; font-size: 13px; }
  .search-form { flex-direction: column; }
  .footer-content { grid-template-columns: 1fr; }
  .server-table { overflow-x: auto; }
}