/* ========== 游戏主题变量 ========== */
:root {
  --g-bg-dark: #0B0E14;
  --g-bg-card: #131720;
  --g-accent: #00F0FF;       /* 霓虹青 */
  --g-accent2: #B94CE4;      /* 霓虹紫 */
  --g-text: #E0E6F0;
  --g-text-muted: #7A8490;
  --g-border: rgba(0, 240, 255, 0.12);
  --radius: 12px;
  --transition: 0.2s ease;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== 头部整体 ========== */
.game-header {
  background: var(--g-bg-dark);
  font-family: 'Segoe UI', 'Microsoft YaHei', system-ui, sans-serif;
  color: var(--g-text);
  border-bottom: 1px solid var(--g-border);
}

/* ===== 顶部信息栏 ===== */
.game-header__top {
  background: #0A0D14;
  border-bottom: 1px solid rgba(0, 240, 255, 0.08);
  padding: 8px 0;
  font-size: 0.85rem;
}
.game-header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.game-header__site-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--g-accent);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
  letter-spacing: 1px;
  margin: 0;
}
.game-header__info {
  display: flex;
  align-items: center;
  gap: 20px;
}
.game-header__attr {
  color: var(--g-text-muted);
}
.game-header__links {
  display: flex;
  gap: 12px;
}
.game-header__link {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.game-header__link--qq {
  color: #12B7F5;
  border-color: rgba(18, 183, 245, 0.3);
}
.game-header__link--qq:hover {
  background: #12B7F5;
  color: #fff;
  box-shadow: 0 0 12px rgba(18, 183, 245, 0.4);
}
.game-header__link--sina {
  color: #E8454A;
  border-color: rgba(232, 69, 74, 0.3);
}
.game-header__link--sina:hover {
  background: #E8454A;
  color: #fff;
  box-shadow: 0 0 12px rgba(232, 69, 74, 0.4);
}
.game-header__link--community {
  color: #8B5CF6;
  border-color: rgba(139, 92, 246, 0.3);
}
.game-header__link--community:hover {
  background: #8B5CF6;
  color: #fff;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

/* ===== 主导航区 ===== */
.game-header__main {
  background: var(--g-bg-card);
  padding: 15px 0;
}
.game-header__main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* Logo */
.game-header__logo img {
  height: 45px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.3));
}

/* 搜索框 */
.game-header__search {
  flex: 1;
  max-width: 460px;
}
.game-header__search-form {
  display: flex;
  background: #1A1F2B;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.2);
  transition: border-color var(--transition);
}
.game-header__search-form:focus-within {
  border-color: var(--g-accent);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}
.game-header__search-input {
  flex: 1;
  height: 42px;
  padding: 0 20px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--g-text);
  font-size: 0.9rem;
}
.game-header__search-input::placeholder {
  color: var(--g-text-muted);
}
.game-header__search-btn {
  height: 42px;
  padding: 0 28px;
  background: var(--g-accent);
  border: none;
  color: #0B0E14;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s, box-shadow 0.2s;
}
.game-header__search-btn:hover {
  background: #33F5FF;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.5);
}

/* 移动端菜单按钮 */
.game-header__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--g-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}
.game-header__menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--g-accent);
  border-radius: 2px;
  transition: 0.3s;
}

/* 下拉导航（移动端） */
.game-mobile-nav {
  background: var(--g-bg-card);
  border-top: 1px solid var(--g-border);
  padding: 12px 0;
}
.game-mobile-nav ul {
  list-style: none;
  padding: 0 20px;
  margin: 0;
}
.game-mobile-nav li a {
  display: block;
  padding: 10px 0;
  color: var(--g-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-weight: 500;
  transition: color 0.2s;
}
.game-mobile-nav li a:hover {
  color: var(--g-accent);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .game-header__top-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .game-header__search {
    display: none; /* 移动端搜索可隐藏或用按钮触发，简单处理 */
  }
  .game-header__menu-btn {
    display: flex;
  }
}