/* 顶部导航栏 */
.header {
  background: linear-gradient(135deg, #c41e3a 0%, #8b1538 100%);
  padding: 15px 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo {
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.3s;
}

.nav a:hover {
  opacity: 0.8;
}

.nav a.active {
  font-weight: bold;
}

.search-box {
  display: flex;
  align-items: center;
}

.search-box input {
  padding: 8px 15px;
  border: none;
  border-radius: 20px;
  width: 150px;
  outline: none;
}

/* 轮播区域 */
.hero-section {
  background: linear-gradient(135deg, #c41e3a 0%, #8b1538 100%);
  padding: 20px 0 40px;
}

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

.featured-games {
  display: flex;
  gap: 15px;
  justify-content: space-between;
}

.featured-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  width: calc(20% - 12px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.featured-card .game-img {
  width: 100%;
  height: 120px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
}

.featured-card .game-info {
  padding: 10px;
  text-align: center;
}

.featured-card .game-title {
  font-size: 12px;
  color: #333;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-card .rating {
  color: #ffc107;
  font-size: 12px;
  margin-bottom: 8px;
}

.featured-card .rating span {
  color: #999;
  margin-left: 5px;
}

.play-btn {
  background: #c41e3a;
  color: white;
  border: none;
  padding: 6px 20px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.3s;
}

.play-btn:hover {
  background: #a01830;
}

/* 游戏区域通用样式 */
.section {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.section-title {
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
  font-weight: bold;
}

.games-grid {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* New Games 卡片样式 */
.new-games .game-card {
  width: calc(20% - 12px);
  text-align: center;
  border: 2px solid #ff6b35;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  background: white;
}

.new-games .game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.new-games .game-card .card-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  position: relative;
}

.new-games .game-card .card-img::after {
  content: '';
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 12px;
  height: 12px;
  background: #ff6b35;
  border-radius: 50%;
}

.new-games .game-card .card-info {
  padding: 8px 5px;
  background: white;
}

.new-games .game-card .card-title {
  font-size: 11px;
  color: #333;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.new-games .game-card .stars {
  color: #ffc107;
  font-size: 10px;
  letter-spacing: 1px;
}

/* 其他游戏卡片样式 */
.other-games .game-card {
  width: calc(16.666% - 13px);
  text-align: center;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.other-games .game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.other-games .game-card .card-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.other-games .game-card .card-info {
  padding: 8px 5px;
}

.other-games .game-card .card-title {
  font-size: 11px;
  color: #333;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.other-games .game-card .stars {
  color: #ffc107;
  font-size: 10px;
  letter-spacing: 1px;
}

/* Classic Games 卡片样式 - 斜角切割风格 */
.classic-games .game-card {
  width: calc(16.666% - 13px);
  text-align: center;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  background: #1a1a2e;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
}

.classic-games .game-card:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.classic-games .game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
  z-index: 2;
}

.classic-games .game-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 20px 20px;
  border-color: transparent transparent #16213e transparent;
}

.classic-games .game-card .card-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
  position: relative;
  filter: brightness(0.7);
  transition: filter 0.3s;
}

.classic-games .game-card:hover .card-img {
  filter: brightness(1);
}

.classic-games .game-card .card-info {
  padding: 10px 6px;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  position: relative;
  z-index: 1;
}

.classic-games .game-card .card-title {
  font-size: 11px;
  color: #fff;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.classic-games .game-card .stars {
  color: #feca57;
  font-size: 10px;
  letter-spacing: 1px;
}

/* 更多游戏区域 */
.more-games-section {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  display: flex;
  gap: 20px;
}

.more-games-left {
  width: 200px;
  flex-shrink: 0;
}

.info-card {
  background: linear-gradient(135deg, #c41e3a 0%, #8b1538 100%);
  color: white;
  padding: 20px;
  border-radius: 8px;
}

.info-card h3 {
  font-size: 14px;
  margin-bottom: 10px;
}

.info-card p {
  font-size: 11px;
  line-height: 1.6;
  opacity: 0.9;
}

.more-games-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.more-game-item {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  height: 154px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.more-game-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 1;
}

.more-game-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
  position: relative;
  z-index: 0;
}

.more-game-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.more-game-item:hover img {
  filter: saturate(1.2) brightness(1.05);
}

.more-game-item::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  z-index: 1;
}

.more-game-item:hover::after {
  width: 150px;
  height: 150px;
}

/* 页脚 */
.footer {
  background: #333;
  color: white;
  padding: 30px 0;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  text-align: center;
}

.social-links {
  margin-bottom: 15px;
}

.social-links a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  font-size: 18px;
}

.footer-links {
  margin-bottom: 15px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  margin: 0 15px;
  font-size: 12px;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  color: #999;
  font-size: 11px;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 150px;
  right: 60px;
  width: 40px;
  height: 40px;
  background: #c41e3a;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
}

/* 轮播区域样式 */
.carousel-container {
  position: relative;
  overflow: hidden;
  width: 50%;
}

.carousel-wrapper {
  display: flex;
  transition: transform 0.3s ease;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  gap: 20px;
}

.carousel-slide .featured-card {
  width: calc(50% - 5px);
  max-width: none;
}

/* 双轮播容器 */
.dual-carousel {
  display: flex;
  gap: 20px;
  position: relative;
  margin-top: 20px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dot.active {
  background: white;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: #c41e3a;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.dual-prev {
  left: 5px;
}

.dual-next {
  right: 5px;
}

.dual-dots {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  padding: 5px 10px;
}


@media (max-width: 992px) {
.nav{    gap: 20px;}
  .search-box input  {    width: 110px;}
}

/* 移动端自适应 */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    position: relative;
  }

  .mobile-menu-btn {
    display: block !important;
    order: 1;
  }

  .logo {
    /* order: 2; */
    font-size: 20px;
    margin-right: auto;
  }

  .search-box {
    order: 3;
    width: 100%;
    /* margin-top: 10px; */
  }

  .search-box input {
    width: 120px;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav.active {
    display: flex !important;
  }

  .nav a {
    font-size: 14px;
    padding: 5px 0;
  }

  /* 轮播区域移动端 */
  .carousel-btn {
    display: flex;
  }

  .featured-games {

    flex-wrap: wrap;
  }

  .featured-card {

  width: calc(50% - 8px);

  }

  .dual-carousel {
    flex-direction: column;
  }

  .carousel-container {
    width: 100%;
  }

  .carousel-slide .featured-card {
    width: calc(50% - 5px);
    margin: 0;
    max-width: none;
  }

  .carousel-slide .featured-card .game-img {
    height: 150px;
  }

  /* 游戏卡片移动端 */
  .games-grid {
    gap: 10px;
  }

.other-games .game-card {
    width: calc(33.333% - 7px);
  }

  .game-card .card-img {
    height: 80px;
  }

  /* 更多游戏区域移动端 */
  .more-games-section {
    flex-direction: column;
  }

  .more-games-left {
    width: 100%;
  }

  .more-games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .back-to-top {
    width: 35px;
    height: 35px;
    bottom: 100px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .header-container{
        padding: 0 10px;
  }
  .game-card {
    width: calc(50% - 5px);
  }

  .more-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .section-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .carousel-slide .featured-card .game-img {
    height: 120px;
  }

  .hero-section {
    padding: 1px 0 10px;
  }

  .hero-container {
    padding: 0 10px;
  }

  .section {
    margin: 20px auto;
    padding: 0 10px;
  }

  .more-games-section {
    margin: 20px auto;
    padding: 0 10px;
  }

  /* 移动端字体优化 */
  .card-title {
    font-size: 10px;
    line-height: 1.2;
  }

  .stars {
    font-size: 9px;
  }

  .new-games .game-card {
    width: calc(50% - 5px);
  }

  .other-games .game-card {
    width: calc(34.666% - 13px);
  }

  .classic-games .game-card {
    width: calc(34.666% - 13px);

  }
  .logo{
    /* display: none; */
  }
  }