/* ============================================
   人类一败涂地 攻略站 - 自定义样式
   游戏科技/赛博电竞风主题
   ============================================ */

/* 游戏及科技感字体 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Noto+Sans+SC:wght@300;400;700;900&family=Share+Tech+Mono&display=swap');

:root {
  --game-primary: #00f5ff;      /* 霓虹冰蓝 */
  --game-secondary: #ff00e4;    /* 霓虹粉紫 */
  --game-accent: #ff6b00;       /* 熔岩橙 */
  --game-success: #00ff66;      /* 能量绿 */
  --game-bg: #050512;           /* 深邃夜空蓝 */
  --game-card-bg: rgba(13, 13, 35, 0.85); /* 半透明控制板底色 */
  --game-text: #e0e0ff;         /* 明亮浅紫蓝 */
  --game-text-muted: rgba(224, 224, 255, 0.6);
  --game-glow: 0 0 15px rgba(0, 245, 255, 0.35);
  --game-glow-strong: 0 0 25px rgba(0, 245, 255, 0.6), 0 0 10px rgba(255, 0, 228, 0.4);
  --game-gradient: linear-gradient(135deg, #00f5ff 0%, #ff00e4 100%);
  --game-gradient-hover: linear-gradient(135deg, #ff00e4 0%, #00f5ff 100%);

  /* 覆盖 Hugo Stack 原生的 Light/Dark 主题变量，彻底解决白色方框与不可读文本 */
  --body-background: var(--game-bg) !important;
  --card-background: var(--game-card-bg) !important;
  --card-background-selected: rgba(0, 245, 255, 0.15) !important;
  --card-text-color-main: var(--game-text) !important;
  --card-text-color-secondary: var(--game-text-muted) !important;
  --card-text-color-tertiary: var(--game-text-muted) !important;
  --card-separator-color: rgba(0, 245, 255, 0.15) !important;
}

/* 全局背景及赛博网格 */
body {
  font-family: "Noto Sans SC", -apple-system, sans-serif;
  background: var(--game-bg) !important;
  background-image: 
    linear-gradient(rgba(0, 245, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  background-attachment: fixed;
  color: var(--game-text) !important;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(20, 10, 60, 0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* 链接颜色 */
a {
  color: var(--game-primary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
a:hover {
  color: var(--game-secondary);
  text-shadow: 0 0 8px rgba(255, 0, 228, 0.5);
}

/* Hugo Theme Stack - 卡片与面板重构为赛博舱室 */
.main-article, 
.article-page, 
.card, 
.widget, 
.menu, 
.sidebar, 
.article-list--compact, 
.section-card,
.article-content {
  background: var(--game-card-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 245, 255, 0.15) !important;
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.05) !important;
  border-radius: 12px !important;
  transition: all 0.3s ease;
}

/* 增加发光 HUD 切角指示器效果 */
.main-article {
  position: relative;
  overflow: visible !important;
  padding: 2.5rem !important;
}
.main-article::before {
  content: "SYS_STATUS: ACTIVE";
  position: absolute;
  top: 10px;
  right: 15px;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.7rem;
  color: var(--game-primary);
  opacity: 0.5;
  letter-spacing: 1px;
}

/* 顶部导航 */
.navbar {
  background: rgba(5, 5, 18, 0.9) !important;
  backdrop-filter: blur(15px);
  border-bottom: 2px solid rgba(0, 245, 255, 0.3);
  box-shadow: 0 5px 25px rgba(0, 245, 255, 0.15);
}

.navbar .nav-link {
  color: var(--game-text) !important;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar .nav-link:hover {
  color: var(--game-primary) !important;
  text-shadow: 0 0 12px rgba(0, 245, 255, 0.6);
}

/* 文章列表卡片 */
.article-item {
  background: rgba(13, 13, 35, 0.6) !important;
  border: 1px solid rgba(0, 245, 255, 0.15) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.article-item:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 245, 255, 0.45) !important;
  box-shadow: var(--game-glow-strong) !important;
  background: rgba(18, 18, 48, 0.8) !important;
}

/* 侧边栏及作者面板 */
.sidebar {
  border-right: 1px solid rgba(0, 245, 255, 0.15) !important;
}
.sidebar .site-name a {
  font-family: "Orbitron", sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: 3px !important;
  background: var(--game-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: none !important;
}

.sidebar .site-subtitle {
  color: var(--game-primary) !important;
  font-family: "Share Tech Mono", monospace;
  opacity: 0.8;
  letter-spacing: 1.5px;
}

.avatar {
  border: 2px solid var(--game-primary) !important;
  box-shadow: var(--game-glow) !important;
  transition: all 0.5s ease;
}
.avatar:hover {
  transform: rotate(360deg) scale(1.05);
  border-color: var(--game-secondary) !important;
  box-shadow: 0 0 20px rgba(255, 0, 228, 0.6) !important;
}

/* 导航菜单样式美化 (Gaming Cyberpunk Navigation Menu) */
.menu#main-menu {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.menu#main-menu li {
  margin-bottom: 0.8rem;
  border-radius: 8px;
  position: relative;
  overflow: visible !important;
  transition: all 0.3s ease;
}

.menu#main-menu li a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem !important;
  color: var(--game-text) !important;
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 500;
  border: 1px solid rgba(0, 245, 255, 0.1) !important;
  border-radius: 8px !important;
  background: rgba(13, 13, 35, 0.4) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 动态左侧激光指示条 */
.menu#main-menu li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--game-primary);
  transform: scaleY(0);
  transform-origin: bottom;
  box-shadow: 0 0 10px var(--game-primary);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 2;
}

.menu#main-menu li a svg {
  width: 18px;
  height: 18px;
  stroke: var(--game-text);
  fill: none;
  transition: all 0.3s ease;
  z-index: 1;
}

.menu#main-menu li a span {
  z-index: 1;
}

/* 导航悬浮动态效果 */
.menu#main-menu li a:hover {
  background: rgba(0, 245, 255, 0.08) !important;
  color: var(--game-primary) !important;
  border-color: rgba(0, 245, 255, 0.4) !important;
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.15) !important;
  text-decoration: none;
  transform: translateX(6px);
}

.menu#main-menu li a:hover::before {
  transform: scaleY(1);
}

/* 鼠标悬停扫光特效 */
.menu#main-menu li a::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 0, 228, 0.15),
    transparent
  );
  transform: skewX(-25deg);
  transition: 0.75s;
}

.menu#main-menu li a:hover::after {
  left: 150%;
}

.menu#main-menu li a:hover svg {
  stroke: var(--game-primary) !important;
  filter: drop-shadow(0 0 4px var(--game-primary));
}

/* 导航菜单当前激活状态（动态呼吸灯效果） */
.menu#main-menu li.current {
  background: transparent !important;
}

.menu#main-menu li.current a {
  background: linear-gradient(90deg, rgba(0, 245, 255, 0.15) 0%, rgba(255, 0, 228, 0.05) 100%) !important;
  color: var(--game-primary) !important;
  border-color: rgba(0, 245, 255, 0.4) !important;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.4);
  animation: pulse-glow 2.5s infinite ease-in-out;
}

.menu#main-menu li.current a::before {
  transform: scaleY(1);
  background: var(--game-secondary);
  box-shadow: 0 0 12px var(--game-secondary);
}

.menu#main-menu li.current a svg {
  stroke: var(--game-primary) !important;
  filter: drop-shadow(0 0 5px var(--game-primary));
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.2), inset 0 0 5px rgba(0, 245, 255, 0.05);
    border-color: rgba(0, 245, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.45), inset 0 0 10px rgba(0, 245, 255, 0.15);
    border-color: rgba(0, 245, 255, 0.5);
  }
  100% {
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.2), inset 0 0 5px rgba(0, 245, 255, 0.05);
    border-color: rgba(0, 245, 255, 0.3);
  }
}

/* 按钮及交互元素 */
.btn-cyber {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid var(--game-primary);
  color: var(--game-primary);
  font-family: "Share Tech Mono", monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-cyber::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 228, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-cyber:hover {
  background: rgba(0, 245, 255, 0.2);
  color: #fff;
  border-color: var(--game-secondary);
  box-shadow: 0 0 15px rgba(255, 0, 228, 0.4);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  transform: scale(1.03);
}

.btn-cyber:hover::before {
  left: 100%;
}

/* 网页自适应图片框 */
.game-image-container {
  position: relative;
  width: 100%;
  margin: 1.8rem 0;
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0,0,0,0.6);
  transition: all 0.4s ease;
}

.game-image-container img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.game-image-container:hover {
  border-color: var(--game-primary);
  box-shadow: var(--game-glow);
}

.game-image-container:hover img {
  transform: scale(1.03);
}

.game-image-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 30px rgba(0, 245, 255, 0.15);
  pointer-events: none;
}

.img-caption {
  padding: 0.6rem 1rem;
  background: rgba(13, 13, 35, 0.9);
  border-top: 1px solid rgba(0, 245, 255, 0.15);
  font-size: 0.85rem;
  color: var(--game-primary);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* 网页自适应视频卡片及播放器 */
.video-card {
  background: rgba(18, 18, 48, 0.5);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.video-card:hover {
  border-color: var(--game-secondary);
  box-shadow: 0 0 20px rgba(255, 0, 228, 0.2);
}

.video-title {
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 纵横比 */
  height: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.8rem;
}

.video-author {
  font-size: 0.85rem;
  color: var(--game-text-muted);
}

.video-platform-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--game-secondary);
  border: 1px solid rgba(255, 0, 228, 0.3);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  background: rgba(255, 0, 228, 0.05);
  transition: all 0.3s ease;
}

.video-platform-link:hover {
  background: rgba(255, 0, 228, 0.15);
  border-color: var(--game-secondary);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 0, 228, 0.4);
}

.icon-external {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* 霓虹按键样式 (HUD Controls) */
.kbd-key {
  display: inline-block;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--game-primary);
  background: rgba(0, 245, 255, 0.15);
  border: 1px solid var(--game-primary);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  margin: 0 0.2rem;
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.2), inset 0 0 4px rgba(0, 245, 255, 0.2);
  text-shadow: 0 0 5px rgba(0, 245, 255, 0.5);
  vertical-align: middle;
}

.kbd-key.mouse-key {
  color: var(--game-secondary);
  border-color: var(--game-secondary);
  background: rgba(255, 0, 228, 0.15);
  box-shadow: 0 0 8px rgba(255, 0, 228, 0.2), inset 0 0 4px rgba(255, 0, 228, 0.2);
  text-shadow: 0 0 5px rgba(255, 0, 228, 0.5);
}

/* 关卡选择网格 (Level Select HUD) */
.level-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.level-select-card {
  background: rgba(18, 18, 48, 0.55);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.level-select-card:hover {
  transform: translateY(-5px);
  border-color: var(--game-primary);
  box-shadow: var(--game-glow-strong);
}

.level-select-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid rgba(0, 245, 255, 0.15);
}

.level-select-body {
  padding: 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.level-select-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.level-select-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--game-text-muted);
  margin-top: 1rem;
  border-top: 1px dashed rgba(0, 245, 255, 0.15);
  padding-top: 0.6rem;
}

/* 游戏解锁技巧面板 (Game Unlock Tip Box) */
.unlock-tip-box {
  background: rgba(0, 255, 102, 0.05) !important;
  border: 1px solid var(--game-success) !important;
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.15) !important;
  padding: 1.5rem !important;
  margin: 2rem 0;
  border-radius: 10px;
  position: relative;
}

.unlock-tip-box::before {
  content: "💡 UNLOCK SKILL / 解锁技巧";
  position: absolute;
  top: -12px;
  left: 15px;
  background: #050512;
  border: 1px solid var(--game-success);
  padding: 2px 10px;
  font-size: 0.75rem;
  font-family: "Orbitron", monospace;
  font-weight: bold;
  color: var(--game-success);
  border-radius: 4px;
}

/* 标题样式增强 */
h1, h2, h3, h4, h5, h6 {
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  color: #fff !important;
  letter-spacing: 1px;
}

h1 {
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--game-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.8rem;
  border-bottom: 2px solid rgba(0, 245, 255, 0.2);
  padding-bottom: 0.5rem;
  text-shadow: none !important;
}

h2 {
  font-size: 1.6rem;
  border-left: 4px solid var(--game-primary);
  padding-left: 0.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.25);
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.8rem;
  color: var(--game-primary) !important;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--game-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--game-gradient);
  border-radius: 5px;
  border: 2px solid var(--game-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--game-gradient-hover);
}

/* 强制文章内容区域所有文本及列表项显色，防止深色背景下因主题重载导致文本发黑 */
.article-content,
.article-content p,
.article-content li,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content span,
.article-content strong,
.article-content table,
.article-content td,
.article-content th,
.article-content a:not(.btn-cyber):not(.video-platform-link) {
  color: var(--game-text) !important;
}

.article-content strong {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.3) !important;
}

/* 侧边栏及页脚文字防黑 */
.sidebar,
.widget,
.widget-title,
.site-description,
.menu-bottom-section,
.footer,
.site-avatar {
  color: var(--game-text) !important;
}

/* 动感十足的激光扫描线背景特效 */
body::before {
  content: "";
  position: fixed;
  top: -5%;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to bottom, rgba(0, 245, 255, 0), rgba(0, 245, 255, 0.2), rgba(0, 245, 255, 0));
  animation: scanline 10s linear infinite;
  pointer-events: none;
  z-index: 9999;
}

@keyframes scanline {
  0% {
    top: -5%;
  }
  100% {
    top: 105%;
  }
}

/* 标题悬停互动扩展特效 */
h1, h2, h3 {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
h1:hover, h2:hover, h3:hover {
  letter-spacing: 2px !important;
  text-shadow: 0 0 15px var(--game-primary), 0 0 5px var(--game-secondary) !important;
}

/* 精彩游戏大图悬停倾斜与发光特效 */
.game-image-container {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}
.game-image-container:hover {
  transform: scale(1.01) translateY(-4px);
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.4), 0 0 10px rgba(255, 0, 228, 0.2) !important;
  border-color: var(--game-secondary) !important;
}
.game-image-container img {
  transition: all 0.5s ease;
}
.game-image-container:hover img {
  transform: scale(1.03);
}

/* 关卡与视频卡片悬停悬起双倍发光特效 */
.level-select-card, .video-card, .feature-card, .widget {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.level-select-card:hover, .video-card:hover, .feature-card:hover, .widget:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--game-secondary) !important;
  box-shadow: var(--game-glow-strong) !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .main-article {
    padding: 1.5rem !important;
  }
  h1 {
    font-size: 1.8rem;
  }
  .level-select-grid {
    grid-template-columns: 1fr;
  }
  .video-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
