/* 游戏卡片悬停效果 */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-size: cover;
  background-position: center;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 顶部导航栏悬停效果 */
header nav a {
  position: relative;
  transition: all 0.3s ease;
}

header nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  background-color: #0071e3;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

header nav a:hover {
  color: #0071e3 !important;
  transform: translateY(-1px);
}

header nav a:hover::after {
  width: 100%;
}

/* 底部导航栏悬停效果 */
footer a {
  position: relative;
  transition: all 0.3s ease;
}

footer a::before {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #0071e3;
  transition: all 0.3s ease;
}

footer a:hover {
  color: #0071e3 !important;
  transform: translateY(-1px);
}

footer a:hover::before {
  width: 100%;
}

/* 导航栏按钮悬停效果 */
header button {
  transition: all 0.3s ease;
}

header button:hover {
  color: #0071e3;
  transform: scale(1.1);
}

/* 新闻栏高亮效果 */
.news-item {
  transition: all 0.3s ease;
  border-left: 4px solid #0071e3;
}

.news-item:hover {
  box-shadow: 0 8px 25px rgba(0, 113, 227, 0.15);
  transform: translateY(-2px);
  background-color: #f8f9ff;
  border-left-color: #005bb5;
}

/* 英雄区域虚化背景 */
.hero-section {
  position: relative;
  overflow: hidden;
  background-image: url('../images/bg.png');
  background-size: cover;
  background-position: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .game-card {
    min-height: 200px;
  }

  /* 新闻详情页移动端优化（统一生效） */
  article .p-12 { padding: 1.25rem !important; }       /* 减小头部区块上下左右内边距 */
  article .px-8 { padding-left: 1rem !important; padding-right: 1rem !important; }
  article .py-8 { padding-top: 1rem !important; padding-bottom: 1rem !important; }

  /* 标题与副标题更贴合小屏 */
  article h1 { font-size: 1.5rem !important; line-height: 1.25 !important; margin-bottom: .5rem !important; }
  article .text-xl, article .md\:text-2xl { font-size: 1rem !important; line-height: 1.35 !important; }

  /* 正文字号与行高 */
  article p { font-size: .95rem !important; line-height: 1.6 !important; }

  /* 图片自适应与圆角 */
  article .prose img, article img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: .75rem !important;
  }

  /* 底部上一篇/下一篇导航在小屏保持可见且手指友好 */
  .news-navigation { display: block !important; margin-top: 1rem !important; padding-top: 1rem !important; }
  .news-navigation .nav-item a { padding: .75rem !important; }
  .news-navigation .nav-label { font-size: .8rem !important; }
}
@media (max-width: 768px) {
  /* 首页 Latest GTA 6 News 移动端优化 */
  #news-container .news-item {
    padding: 1rem !important; /* p-4 */
  }
  #news-container h3 {
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 标题两行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  #news-container p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    color: #6b7280 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 摘要两行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  #news-container .min-w-\[100px\] {
    min-width: 84px !important;
  }
  /* 时间/阅读量区域更紧凑 */
  #news-container .text-right.text-xs {
    font-size: 0.72rem !important;
  }
}