* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Arial', sans-serif;
}
:root {
  --bg:#121212;
  --bg-support:#101014;
  --text-dark:#202124;
  --text-white:#f5f5f5;
  --text-support-color:#01875f;
 
}
body {
  background-color: var(--bg);
  color: #f5f5f5;
  min-height: 100vh;
}

/* 导航栏样式 */
.navbar {
  background-color: #0f0f0f;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2a2a2a;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  display: flex;
  align-items: center;
}

.logo .epic {
  color: #ff6600;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #fff;
}

.search-box {
  position: relative;
  width: 300px;
}

.search-box input {
  width: 100%;
  background-color: #2a2a2a;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 8px 15px 8px 40px;
  color: #fff;
  font-size: 14px;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.login-btn, .download-btn {
  background-color: #ff6600;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-btn:hover, .download-btn:hover {
  background-color: #e55a00;
}

/* 主体内容样式 */
.container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px;
  gap: 30px;
}

/* 左侧游戏海报区域 */
.game-poster {
  flex: 3;
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.poster-image {
  width: 100%;
  height: 500px;
  /* background: linear-gradient(to bottom right, #0c3b2e, #1a5c48, #2d9c7a, #4ad4b0); */
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.character {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background-image: url('../images/gha/bg1.webp');
  /* background-image: url('https://images.unsplash.com/photo-1593305841991-05c297ba4575?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80'); */
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}


.game-title {
  position: absolute;
  bottom: 30px;
  left: 30px;
  font-size: 36px;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.free-play-btn {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background-color: #2575fc;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.free-play-btn:hover {
  background-color: #1a5fd8;
}

/* 右侧游戏列表区域 */
.game-list {
  flex: 1;
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.game-list h2 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #ccc;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.game-item {
  display: flex;
  align-items: center;
  padding: 12px 10px;
  margin-bottom: 10px;
  background-color: #222;
  border-radius: 6px;
  transition: background-color 0.3s;

  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}
.game-item::before{
  content: "";
  position: absolute;
  left: 0px;
  top: 0px;
  height: 100%;
  width: 100%;
  z-index: 2;
  background: linear-gradient(269.94deg, rgba(255, 255, 255, 0) 0.02%, rgba(0, 0, 0, 0.55) 44.79%, rgba(0, 0, 0, 0.95) 99.98%);
}
.game-item:hover {
  background-color: #2a2a2a;
}

.game-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 14px;
  z-index: 3;
}

.fortnite {
  background: linear-gradient(135deg, #ff6600, #ff9a3d);
}

.toxic {
  background: linear-gradient(135deg, #1c7c54, #3bb78f);
}

.red-desert {
  background: linear-gradient(135deg, #a83232, #d45d5d);
}

.death-stranding {
  background: linear-gradient(135deg, #2c3e50, #4a6491);
}

.arknights {
  background: linear-gradient(135deg, #0c3b2e, #2d9c7a);
}

.game-info {
  flex: 1;
  z-index: 3;
}

.game-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.game-subtitle {
  font-size: 12px;
  color: #aaa;
}


/* 展示内容 */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-bottom: 40px;
}

.card {
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  /* width: 426px; */
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  flex: 1;
}


.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 25px;
}

.card-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.card-text {
  color: #cccccc;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.5;
}

.btn {
  background-color: #ff6600;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration-line: none;
}

.btn:hover {
  background-color: #e55a00;
  transform: translateY(-2px);
}
.btn-outline{
  background-color: #3F51B5;
}



@media (max-width: 1100px) {
  .cards-container {
      flex-direction: column;
  }
  
}

@media (max-width: 768px) {
  .fortnite-title {
      font-size: 2.5rem;
  }
  
}


/* 商品展示 */
.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.game-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 100, 200, 0.2);
}

.game-cover {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.game-card:hover .game-cover img {
  transform: scale(1.05);
}


.game-card-info {
  padding: 18px;
}


.game-edition {
  color: #888888;
  font-size: 0.85rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.prices {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.original-price {
  text-decoration: line-through;
  color: #888888;
  font-size: 0.9rem;
  margin-right: 8px;
}

.discounted-price {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
}

.discount-percentage {
  background-color: #0078f2;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: auto;
}
/* 响应式设计 */
@media (max-width: 1200px) {
  .games-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 25px;
  }
}

@media (max-width: 768px) {
  .games-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
  }
  
  .section-title {
      font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .games-grid {
      grid-template-columns: 1fr;
      gap: 20px;
  }
  
  .game-cover {
      height: 220px;
  }
}
















/* 注册页面 */
.reg-tab{
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}

.reg-tab a.active{
  /* background: linear-gradient(45deg, #e9e9e9, #cdcdcd); */
  background: linear-gradient(45deg, #d7d7f7, #f6f8fb);
  color: #ff6600;
}
.login-bg{
  background-image: url(../images/gha/bg5.webp) ;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top;
  height: 83vh;
}
.login-section{
  max-width: 500px;
  margin: auto;
 
}

#verify_code_img{
  position: absolute;
  top: 35px;
  bottom: 0px;
  right: 0px;
  height: 40px;
}
/* 表单区域 */
.login-form ,
.contact-form {
  position: relative;
  overflow: hidden;
  padding: 40px;
  background: var(--dark-accent);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-light)
}

.form-control {
  width: 100%;
  padding: 14px 15px;
  border-radius: 5px;
  border: 1px solid var(--hr);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  /* background: var(--bg);
  color: var(--text-light); */
}

.form-control:focus {
  outline: none;
  border-color: var(--hr);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-group .icode{
  position: absolute;
  right: 0;
  top: 33px;
}
/* 会员中心 */
.character-user{
  width: 80%;
  margin: auto;
  padding: 20px;
}
.character-user .home-main{
  background: none;
  display: flex;
  gap: 20px;
}
.character-user .g-crumbs{
  color: var(--primary-dark);
  height: 50px;
}
.character-user  .g-crumbs a{
  color: var(--primary-dark);
  font-weight: 600;
}

.layui-layer-dialog .layui-layer-content{
  color: var(--primary-dark);
}



/* 下单成功 */
.order-section{
  flex-direction: column;
  align-content: center;
  flex-wrap: wrap;
}
.order-section .order-icon{
  font-size: 5rem;
  color: #8BC34A;
}
.order-pay{
  display: grid;
  justify-content: center;
  padding: 50px 20px;
  grid-template-columns: repeat(auto-fit, minmax(130px, auto));
  gap: 5px;
  justify-items: center;
}
.order-pay li{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  border: 1px solid;
  border-radius: 10px;
  cursor: pointer;
  background-color: #fff;
}
.order-pay li:hover {
  transform: translateY(-2px);
  border-color: #d6c2ff;
  box-shadow: 0 10px 30px rgba(103, 48, 191, 0.1);
}

.order-pay li img{
  border-radius: 10px;
  max-height: 40px;
}

.scroll-indicator{
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.animated{
  opacity: 1;
  transform: translateY(0);
}
.btn-detail{
  border: 1px solid!important;
}
.submitorder_carpay{
  text-align: right;
}

/* 页脚样式 */
.footer {
  background-color: #0f0f0f;
  padding: 30px;
  margin-top: 50px;
  border-top: 1px solid #2a2a2a;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  color: #888;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1100px) {
  .container {
      flex-direction: column;
  }
  
  .search-box {
      width: 200px;
  }
}

@media (max-width: 768px) {
  .navbar {
      flex-direction: column;
      gap: 15px;
      padding: 15px;
  }
  
  .nav-left, .nav-right {
      width: 100%;
      justify-content: space-between;
  }
  
  .nav-links {
      display: none;
  }
  
  .search-box {
      width: 100%;
  }
  
  .poster-image {
      height: 400px;
  }
  
 
}


.section{
  padding: 6% 10%;
}
.character-product{
  padding: 20px;
  background: #2a2a2a;
}