/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft Yahei", sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶部导航 */
.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav-item {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-item:hover,
.nav-item.active {
  color: #f59e0b;
}

.user-actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary {
  background: #f59e0b;
  color: #fff;
  border: 1px solid #f59e0b;
}

.btn-primary:hover {
  background: #d97706;
  border-color: #d97706;
}

.btn-secondary {
  background: #fff;
  color: #f59e0b;
  border: 1px solid #f59e0b;
}

.btn-secondary:hover {
  background: #fef3c7;
}

.btn-outline {
  background: transparent;
  color: #f59e0b;
  border: 1px solid #f59e0b;
}

.btn-outline:hover {
  background: #f59e0b;
  color: #fff;
}

/* 轮播图样式 */
.banner-slider {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  flex-shrink: 0;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* 左右箭头 */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 10;
}

.slider-btn:hover {
  background: rgba(0,0,0,0.5);
}

.slider-btn.prev {
  left: 15px;
}

.slider-btn.next {
  right: 15px;
}

/* 轮播指示器（小圆点） */
.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active,
.dot:hover {
  background: #f59e0b;
}
/* 轮播图区域 */



.banner {
  background: #fff;
  padding: 30px 0;
}

.banner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 25px;
  align-items: start;
}

.banner-video {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.banner-img {
  width: 100%;
  height: 380px; /* 固定轮播图高度，更规整 */
  object-fit: cover; /* 关键：图片缩放不拉伸，裁剪多余部分 */
  display: block;
}



.banner-sidebar {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 0 20px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.qrcode-section {
  text-align: center;
  margin-bottom: 20px;
  padding: 0 0;
  border-bottom: 1px solid #eee;
}

.qrcode {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qrcode-section p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.banner-sidebar h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.news-list {
  list-style: none;
}

.news-list li {
  margin-bottom: 5px;
}

.news-list a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  line-height: 25px;
  transition: color 0.3s;
}

.news-list a:hover {
  color: #f59e0b;
}





/* 游戏推荐区域 */
.game-section {
  padding: 50px 0;
  background: #fff;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 24px;
  color: #333;
}

.tab-nav {
  display: flex;
  gap: 10px;
}

.tab-btn {
  padding: 8px 16px;
  border: none;
  background: #f9f9f9;
  color: #666;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
  background: #f59e0b;
  color: #fff;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.game-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 25px;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.game-icon {
  margin-bottom: 15px;
}

.game-icon img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f59e0b;
}

.game-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
}

.game-card p {
  color: #666;
  font-size: 14px;
  margin-bottom: 18px;
}

/* 精品账号区域 */
.premium-section {
  padding: 50px 0;
  background: #f9f9f9;
}

.section-title {
  font-size: 24px;
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}

.account-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.account-card:hover {
  transform: translateY(-5px);
}

.account-header {
  position: relative;
}

.account-header img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.account-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f59e0b;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.account-info {
  padding: 20px;
}

.account-info h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
}

.account-info p {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.price {
  font-size: 22px;
  font-weight: 600;
  color: #ef4444;
  margin-bottom: 15px;
}

/* 页脚 */
.footer {
  background: #2d3748;
  color: #fff;
  padding: 50px 0 25px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #f59e0b;
}

.footer-col p {
  color: #ccc;
  font-size: 14px;
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  color: #fff;
  font-size: 20px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #f59e0b;
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid #4a5568;
  color: #9ca3af;
  font-size: 14px;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 15px;
  }
  
  /* 响应式适配手机端轮播图高度 */
  .banner-img {
    height: 220px; /* 手机端降低高度，适配屏幕 */
  }

  .nav {
    gap: 15px;
  }

  .banner-container {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .game-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }
}
