:root {
  --primary: #c41e3a;
  --primary-dark: #8B0000;
  --gold: #B8860B;
  --gold-light: #DAA520;
  --bg: #1a1a1a;
  --bg-light: #2a2a2a;
  --dark: #0d0d0d;
  --text: #e0e0e0;
  --text-light: #aaa;
  --border: #333;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,.5);
  --glow: 0 0 15px rgba(196,30,58,.3);
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color:inherit; text-decoration:none; transition:.25s; }
img { max-width:100%; height:auto; display:block; }

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

/* ===== 顶部 ===== */
.header {
  background: linear-gradient(180deg, var(--dark) 0%, #111 100%);
  border-bottom: 2px solid var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0,0,0,.8);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 26px;
  font-weight: 900;
  color: var(--gold-light);
  text-shadow: 0 0 10px rgba(184,134,11,.5);
  letter-spacing: 2px;
}
.logo span { color: var(--primary); }
.nav-menu {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-menu a {
  color: var(--text-light);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  position: relative;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--gold-light);
  background: rgba(196,30,58,.15);
}
.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
}
.search-box input {
  background: none;
  border: none;
  color: var(--text);
  outline: none;
  font-size: 13px;
  width: 150px;
  padding-right: 8px;
}
.search-box input::placeholder { color: #666; }
.search-box button {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: 14px;
}
.login-btn {
  color: var(--gold-light);
  font-size: 14px;
  padding: 6px 16px;
  border: 1px solid var(--gold);
  border-radius: 20px;
}
.login-btn:hover { background: var(--gold); color: var(--dark); }

/* ===== Banner ===== */
.banner {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 10px;
}
.banner-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 50px 40px;
}
.banner-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
}
.banner-content {
  position: relative;
  z-index: 2;
  color: var(--text);
  max-width: 650px;
}
.banner-content .tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  font-weight: 600;
}
.banner-content h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--gold-light);
  text-shadow: 0 2px 10px rgba(0,0,0,.8);
  margin-bottom: 10px;
  line-height: 1.3;
}
.banner-content p {
  font-size: 15px;
  color: #ccc;
  line-height: 1.6;
}
.banner-dots {
  position: absolute;
  bottom: 20px;
  right: 40px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.banner-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
}
.banner-dots span.active { background: var(--primary); width: 28px; border-radius: 5px; }

/* ===== 快捷入口 ===== */
.quick-entry {
  display: flex;
  justify-content: center;
  gap: 35px;
  padding: 28px 0 22px;
  flex-wrap: wrap;
}
.quick-item {
  text-align: center;
  cursor: pointer;
}
.quick-item .icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 28px;
  transition: transform .3s, box-shadow .3s;
  border: 2px solid var(--gold);
}
.quick-item:hover .icon {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(184,134,11,.4);
}
.quick-item span {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 600;
}
.quick-item:hover span { color: var(--gold-light); }

/* ===== 主体 ===== */
.main-layout {
  display: flex;
  gap: 24px;
  padding: 20px 0 40px;
  align-items: flex-start;
}
.main-left { flex: 1; min-width: 0; }
.main-right { width: 320px; flex-shrink: 0; }

/* 模块标题 */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-dark);
}
.section-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-header h3::before {
  content: '⚔';
  font-size: 18px;
}
.section-header a {
  font-size: 13px;
  color: var(--text-light);
}
.section-header a:hover { color: var(--primary); }

/* 资讯卡片 */
.news-item {
  display: flex;
  gap: 18px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  transition: border-color .3s, box-shadow .3s;
}
.news-item:hover {
  border-color: var(--primary-dark);
  box-shadow: var(--glow);
}
.news-item .thumb {
  flex-shrink: 0;
  width: 240px;
  height: 155px;
  overflow: hidden;
  position: relative;
}
.news-item .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.news-item:hover .thumb img { transform: scale(1.06); }
.news-item .thumb .type-tag {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 3px;
  font-weight: 600;
}
.news-item .info {
  padding: 16px 16px 16px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.news-item .info h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item .info h4:hover { color: var(--primary); }
.news-item .info p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #666;
}
.news-meta .label {
  background: rgba(196,30,58,.15);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}
.news-meta .job-icon { font-size: 14px; }

/* 右侧 */
.side-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.side-box h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-box h4::before {
  content: '📜';
  font-size: 16px;
}
.rank-list { list-style: none; }
.rank-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.rank-list li:last-child { border-bottom: none; padding-bottom: 0; }
.rank-num {
  width: 22px; height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  margin-top: 2px;
}
.rank-num.top { background: var(--primary); }
.rank-num.normal { background: #555; }
.rank-list li h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 3px;
}
.rank-list li h5:hover { color: var(--primary); }
.rank-list li span { font-size: 11px; color: #666; }

/* 新服推荐 */
.server-card {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.server-card:last-child { border-bottom: none; padding-bottom: 0; }
.server-card .sicon {
  width: 48px; height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--gold);
}
.server-card .sicon img { width:100%; height:100%; object-fit: cover; }
.server-card .sinfo { flex:1; }
.server-card .sinfo h5 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.server-card .sinfo h5:hover { color: var(--primary); }
.server-card .sinfo p { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.server-tag {
  display: inline-block;
  background: rgba(184,134,11,.15);
  color: var(--gold-light);
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 3px;
  margin-right: 4px;
}

/* 底部 */
.footer {
  background: var(--dark);
  color: #666;
  padding: 40px 0 20px;
  border-top: 2px solid var(--primary-dark);
}
.footer-cols {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.footer-col { flex: 1; min-width: 150px; }
.footer-col h5 { color: var(--gold-light); font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; padding: 4px 0; color: #555; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #222;
  font-size: 12px;
  color: #444;
}

/* 响应式 */
@media (max-width: 768px) {
  .header .container { height: 52px; }
  .logo { font-size: 18px; }
  .nav-menu { display: none; }
  .search-box input { width: 100px; }
  .banner { height: 240px; border-radius: 0; }
  .banner-content h2 { font-size: 20px; }
  .banner-content p { display: none; }
  .banner-dots { right: 20px; bottom: 15px; }
  .quick-entry { gap: 18px; padding: 18px 0 10px; }
  .quick-item .icon { width: 50px; height: 50px; font-size: 22px; }
  .main-layout { flex-direction: column; }
  .main-right { width: 100%; }
  .news-item { flex-direction: column; }
  .news-item .thumb { width: 100%; height: 200px; }
  .news-item .info { padding: 14px; }
  .footer-cols { gap: 20px; }
}