:root {
  --primary: #4361ee; /* 主色调-科技蓝 */
  --secondary: #ff6b6b; /* 强调色-活力红 */
  --dark: #1a1a2e; /* 深色文本 */
  --gray: #6c757d; /* 灰色文本 */
  --light: #f8f9fa; /* 浅背景色 */
  --white: #ffffff; /* 白色 */
  --shadow-sm: 0 2px 8px rgba(67, 97, 238, 0.1);
  --shadow-md: 0 5px 15px rgba(67, 97, 238, 0.15);
  --shadow-lg: 0 8px 25px rgba(67, 97, 238, 0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.35s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "PingFang SC", "Microsoft Yahei", sans-serif;
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* 通用组件样式 */
.section {
  padding: 80px 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  color: var(--dark);
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-title p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.btn {
  padding: 12px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #5874f5);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #3654d1, var(--primary));
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* 导航栏样式 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 9999;
  padding: 15px 0;
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  color: var(--secondary);
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-weight: 500;
  color: var(--dark);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--dark);
}

/* 英雄区样式 */
.hero {
  padding: 150px 0 100px;
  background: linear-gradient(135deg, #edf2ff 0%, #ffeeee 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  opacity: 0.08;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 25px;
}

.hero-content h1 span {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-img img {
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* 产品展示模块 */
.products {
  background-color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background: linear-gradient(180deg, var(--white), #f9faff);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 5px solid transparent;
  text-align: center;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--primary);
}

.product-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(67, 97, 238, 0.1),
    rgba(255, 107, 107, 0.1)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.product-icon i {
  font-size: 2.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.product-card:hover .product-icon i {
  color: var(--secondary);
  transform: scale(1.1);
}

.product-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.product-card p {
  color: var(--gray);
  line-height: 1.7;
}

.product-tag {
  display: inline-block;
  background-color: rgba(67, 97, 238, 0.1);
  color: var(--primary);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 15px;
}

/* 钻石充值模块 */
.recharge {
  background: linear-gradient(135deg, #f8f9fa 0%, #edf2ff 100%);
}

.recharge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.recharge-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 35px 25px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 2px solid #e9ecef;
  position: relative;
  text-align: center;
}

.recharge-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.recharge-card.hot {
  border-color: var(--primary);
  background: linear-gradient(180deg, #f0f5ff, var(--white));
  transform: scale(1.03);
}

.recharge-card.hot::before {
  content: "热门推荐";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.recharge-diamond {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.recharge-amount {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.recharge-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 25px;
}

.recharge-note {
  text-align: center;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* 会员福利模块 */
.benefits {
  background-color: var(--white);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}

.benefit-item {
  display: flex;
  gap: 20px;
  background: linear-gradient(135deg, #f9faff, #ffeeee);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.benefit-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon i {
  font-size: 1.8rem;
  color: var(--white);
}

.benefit-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.benefit-content p {
  color: var(--gray);
  margin: 0;
  line-height: 1.7;
}

/* 下载模块 */
.download {
  background: linear-gradient(135deg, #edf2ff 0%, #ffeeee 100%);
  padding-bottom: 100px;
}

.steps {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.steps::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 2px;
}

.step-item {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  position: relative;
  padding-left: 20px;
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.step-content {
  padding-top: 10px;
}

.step-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-content p {
  color: var(--gray);
  line-height: 1.7;
}

/* 下载按钮样式 */
.download-btns {
  text-align: center;
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-btn {
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* 页脚样式 */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo i {
  color: var(--secondary);
  font-size: 1.5rem;
}

.footer-desc {
  color: #adb5bd;
  line-height: 1.8;
  margin-bottom: 25px;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #adb5bd;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 8px;
}

.copyright {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #adb5bd;
  font-size: 0.95rem;
}

/* ========== 新增：游戏截图编辑模块样式 ========== */
.game-editor {
  background-color: var(--white);
  padding: 80px 0;
}

.editor-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: linear-gradient(135deg, #f9faff, #edf2ff);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.game-editor-box {
  position: relative;
  width: 1200px;
  height: 570px;
  background-image: url(../imgs/bj-01.png);
  background-size: cover;
  border-radius: 8px;
}

.rating {
  position: absolute;
  top: 127px;
  left: 195px;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 700;
  color: #d4cdae;
}

.usernames-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: inherit;
  font-family: inherit;
  color: inherit;
  padding: 0;
  margin: 0;
  cursor: text;
  /* 保持与原div相同的样式 */
  display: inline-block;
}

.usernames {
  position: absolute;
  top: 104px;
  left: 266px;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 15px;
  color: #d4cdae;
  font-family: "PingFang SC-Regular";
}

.record {
  position: absolute;
  top: 104px;
  left: 392px;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 15px;
  color: #ffffff;
  font-family: "PingFang SC-Regular";
  display: flex;
}

.amounts {
  position: absolute;
  top: 104px;
  left: 484px;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 15px;
  color: #fce195;
  font-family: "PingFang SC-Regular";
}

/* 登录注册弹窗样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  overflow: auto;
}

.modal-content {
  background-color: var(--white);
  margin: 10% auto;
  padding: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 500px;
  animation: modalSlideIn 0.3s ease-in-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 20px 30px;
  background: linear-gradient(135deg, var(--primary), #5874f5);
  color: var(--white);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e9ecef;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.btn-block {
  width: 100%;
  padding: 12px;
  font-size: 1.1rem;
}

/* 成功提示弹窗样式 */
.success-modal .modal-body {
  padding: 40px;
}

.success-icon {
  font-size: 4rem;
  color: #4caf50;
  margin-bottom: 20px;
}

/* 导航栏登录注册按钮样式 */
.auth-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .auth-buttons {
    display: none;
  }
}
