/* 基础重置 */
/* 全局基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 确保所有元素没有意外的边框 */
*,*::before,*::after {
  border-collapse: collapse;
  border-spacing: 0;
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
}

/* 页面完全加载后，为所有元素启用动态效果 */
body.loaded *,
body.loaded *::before,
body.loaded *::after {
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  animation: auto;
  -webkit-animation: auto;
}

/* 动画关键帧定义 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}



@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 确保文档和视口没有意外的边框和线条 */
html,
body {
  border: none !important;
  outline: none !important;
  overflow-x: hidden;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  background-clip: padding-box !important;
  -webkit-background-clip: padding-box !important;
  border-image: none !important;
  -webkit-border-image: none !important;
}

body {
  font-family: 'Microsoft YaHei', sans-serif;
  background: #000;
  color: #ccc;
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 1;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #111;
}

::-webkit-scrollbar-thumb {
  background: #d42323;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b01e1e;
}

.container {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 头部样式 */
.header {
  background: rgba(0, 0, 0, 0.85);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top;
}

.header.scrolled {
  padding: 10px 0;
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
  transform: translateY(0);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  transition: transform 0.5s ease;
  filter: drop-shadow(0 2px 10px rgba(249, 153, 0, 0.3));
}

.logo:hover img {
  transform: scale(1.1) rotate(2deg);
  filter: drop-shadow(0 4px 20px rgba(249, 153, 0, 0.6));
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #f90;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left;
}

.nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: rgba(249, 153, 0, 0.1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  z-index: -1;
}

.nav a:hover,
.nav a.active {
  color: #f90;
  text-shadow: 0 2px 10px rgba(249, 153, 0, 0.5);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.login .btn-login {
  color: #fff;
  margin-right: 15px;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-weight: 500;
}

.login .btn-login:hover {
  border-color: #f90;
  color: #f90;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 153, 0, 0.3);
}

.login .btn-login:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(249, 153, 0, 0.3);
}

.login .btn-play {
  background: linear-gradient(135deg, #d42323, #b01e1e);
  color: white;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 6px 20px rgba(212, 35, 35, 0.4);
}

.login .btn-play:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 35, 35, 0.6);
}

.login .btn-play:active {
  transform: translateY(0);
  box-shadow: 0 5px 15px rgba(212, 35, 35, 0.5);
}

/* 轮播图 */
.banner {
  height: 100vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

/* 渐变遮罩层 */
.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2) 70%);
  z-index: 1;
}

/* 动态粒子背景效果 - 增强版 */
.banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 10%),
    radial-gradient(circle at 80% 30%, rgba(255, 153, 0, 0.15) 0%, transparent 15%),
    radial-gradient(circle at 30% 70%, rgba(212, 35, 35, 0.1) 0%, transparent 12%),
    radial-gradient(circle at 70% 90%, rgba(255, 255, 255, 0.08) 0%, transparent 8%),
    radial-gradient(circle at 50% 40%, rgba(255, 153, 0, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 20% 80%, rgba(212, 35, 35, 0.05) 0%, transparent 15%);
  z-index: 1;
  animation: floatParticles 20s infinite ease-in-out;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.05);
  z-index: 0;
  filter: brightness(1.3) contrast(1.1);
  animation: pulse 20s infinite alternate;
}

.banner-content {
  position: absolute;
  bottom: 100px;
  right: 100px;
  padding: 40px;
  color: white;
  z-index: 2;
  max-width: 600px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(249, 153, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease;
  opacity: 1;
}

.banner-content:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(249, 153, 0, 0.2);
}



.banner-content h2 {
  font-size: 56px;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.9), 0 0 10px rgba(0,0,0,0.5), 0 0 30px rgba(249, 153, 0, 0.3);
  line-height: 1.2;
  font-weight: 800;
  color: #ffffff;
}

.banner-content p {
  font-size: 24px;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9), 0 0 5px rgba(0,0,0,0.5);
  color: #ffffff;
  font-weight: 500;
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #d42323, #b01e1e);
  color: white;
  padding: 18px 45px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(212, 35, 35, 0.6), 0 0 15px rgba(212, 35, 35, 0.4);
  position: relative;
  overflow: hidden;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
  opacity: 1;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(212, 35, 35, 0.7), 0 0 25px rgba(212, 35, 35, 0.5);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-primary:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 35, 35, 0.6);
}

/* 新闻公告 */
.news-section {
  padding: 80px 0;
  background: #111;
  position: relative;
  overflow: hidden;
}

.news-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d42323, #f90);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
  opacity: 1;
}

.section-header h3 {
  color: white;
  font-size: 32px;
  position: relative;
  padding-bottom: 10px;
  opacity: 1;
}

.section-header h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #d42323;
  transform-origin: left;
  transform: scaleX(0);
  animation: scaleIn 0.8s ease-out 1s forwards;
}

.section-header .more {
  color: #999;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 5px 10px;
  border-radius: 4px;
}

.section-header .more::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(249, 153, 0, 0.1) 0%, transparent 100%);
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  z-index: -1;
}

.section-header .more:hover {
  color: #f90;
  transform: translateX(3px);
}

.section-header .more::after {
  content: '→';
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.section-header .more:hover::after {
  transform: translateX(5px);
}

.section-header .more:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.news-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  background: #222;
  border-left: 4px solid #d42323;
  border-radius: 6px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 1;
}

/* 为不同的新闻项添加错开的动画延迟 */
.news-item:nth-child(1) {
  animation-delay: 1.2s;
}

.news-item:nth-child(2) {
  animation-delay: 1.4s;
}

.news-item:nth-child(3) {
  animation-delay: 1.6s;
}

.news-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(212, 35, 35, 0.05) 0%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.news-item:hover {
  transform: translateX(0) translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  background: #2a2a2a;
}

.news-item:hover::before {
  transform: translateX(0);
}

.news-item .tag {
  color: #fff;
  background: #d42323;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  transform: scale(1);
}

.news-item:hover .tag {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(212, 35, 35, 0.4);
}

.news-item .tag.warn {
  background: #f90;
  color: #000;
}

.news-item:hover .tag.warn {
  box-shadow: 0 2px 8px rgba(249, 153, 0, 0.4);
}

.news-item a {
  color: #ddd;
  text-decoration: none;
  flex: 1;
  margin: 0 15px;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  padding: 5px 0;
}

.news-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #f90;
  transition: width 0.3s ease;
}

.news-item a:hover {
  color: #fff;
  transform: translateX(2px);
}

.news-item a:hover::after {
  width: 100%;
}

.news-item .date {
  color: #999;
  font-size: 14px;
}

/* 英雄展示 */
.heroes-section {
  padding: 80px 0;
  background: #000;
  color: white;
  position: relative;
  overflow: hidden;
}

.heroes-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f90, #d42323);
}

.section-header.light h3 {
  color: white;
  opacity: 1;
}

.section-header.light h3::after {
  background: #f90;
  transform-origin: right;
  transform: scaleX(0);
  animation: scaleIn 0.8s ease-out 1s forwards;
}

.heroes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.hero-card {
  background: #222;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  opacity: 1;
  perspective: 1000px;
}



.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d42323, #f90);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

/* 卡片背景渐变 */
.hero-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(249, 153, 0, 0) 0%, rgba(212, 35, 35, 0) 100%);
  transition: background 0.5s ease;
  z-index: -1;
}

.hero-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(249, 153, 0, 0.2);
}

.hero-card:hover::before {
  transform: scaleX(1);
}

.hero-card:hover::after {
  background: linear-gradient(135deg, rgba(249, 153, 0, 0.1) 0%, rgba(212, 35, 35, 0.1) 100%);
}

.hero-card .hero-image-container {
  position: relative;
  height: 240px;
  overflow: hidden;
  transition: all 0.5s ease;
}

.hero-card:hover .hero-image-container {
  transform: scale(0.95);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.9) contrast(1.1);
}

.hero-card:hover img {
  transform: scale(1.15) rotate(2deg);
  filter: brightness(1.1) contrast(1.2);
}

.hero-card .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent 70%);
  opacity: 0.7;
  transition: all 0.5s ease;
}

.hero-card:hover .hero-overlay {
  opacity: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.95), transparent 60%);
}

.hero-card .hero-content {
  padding: 25px;
  position: relative;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%);
}

.hero-card h4 {
  margin: 0 0 10px;
  font-size: 26px;
  color: #fff;
  transition: all 0.4s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.hero-card:hover h4 {
  color: #f90;
  text-shadow: 0 4px 20px rgba(249, 153, 0, 0.5);
  transform: translateY(-2px);
}

.hero-card p {
  color: #aaa;
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
  transition: all 0.4s ease;
}

.hero-card:hover p {
  color: #fff;
  transform: translateY(-2px);
}

/* 底部 */
.footer {
  background: #111;
  padding: 60px 0 30px;
  color: #777;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249, 153, 0, 0.3), transparent);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.footer-logo {
  margin-bottom: 30px;
  opacity: 1;
}

.footer-logo img {
  height: 50px;
  transition: all 0.5s ease;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.footer-logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 20px rgba(249, 153, 0, 0.3));
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px 0;
  opacity: 1;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  position: relative;
  padding: 5px 10px;
  border-radius: 4px;
}

.footer-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(249, 153, 0, 0.1) 0%, transparent 100%);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  border-radius: 4px;
  z-index: -1;
}

.footer-links a:hover {
  color: #f90;
  transform: translateX(2px);
}

.footer-links a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-copyright {
  font-size: 13px;
  color: #666;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  width: 100%;
  opacity: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .footer-links {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

/* 响应式 */
@media (max-width: 992px) {
  .nav ul {
    gap: 20px;
  }
  
  .banner-content h2 {
    font-size: 48px;
  }
  
  .heroes-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .header .container {
    justify-content: space-between;
  }
  
  .banner-content {
    padding-left: 40px;
    padding-right: 20px;
  }
  
  .banner-content h2 {
    font-size: 36px;
  }
  
  .banner-content p {
    font-size: 18px;
  }
  
  .container {
    width: 90%;
  }
  
  .heroes-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .btn-primary {
    padding: 12px 28px;
    font-size: 16px;
  }
  
  .section-header h3 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .banner-content {
    padding-left: 20px;
  }
  
  .banner-content h2 {
    font-size: 28px;
  }
  
  .login .btn-play {
    padding: 6px 14px;
    font-size: 14px;
  }
  
  .news-item {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}