/* 通用设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #faf7f2;
}

/* header 样式 */
header {
  background-color: black;
}

.header-container {
  width: 70%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  color: white;
  text-decoration: none;
  font-size: 24px;
  display: none;
}

.logo img {
  max-width: 100%;
}

.nav ul {
  list-style-type: none;
  display: flex;
}

.nav li {
  margin-left: 30px;
}

.nav a {
  font-size: 1.5rem;
  color: #d2d2d2;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
}

/* 活动菜单项的样式 */
.nav .active a {
  color: #e8410d;
}

/* 鼠标悬停时的效果 */
.nav li a:hover {
  color: #e8410d;
}
/* 在桌面端隐藏菜单按钮和关闭按钮 */
.menu-toggle, .close-menu {
  display: none;
}

/*banner部分*/
.banner{
  width: 100%;
  overflow: hidden;
  position: relative

}

.banner img{
  width: 100%;
  height: auto;
  object-fit: cover;
}
.softlist {
  width: 100%;
}

.softlist ul {
  background-image: linear-gradient(to bottom, #a97222, #bb912d);
  width: 70%;
  margin: 0 auto 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  align-items: center;
}

.softlist ul li {
  list-style: none;
}

.softlist img {
  flex: 0 0 auto;
  width: auto;
  height: auto;
}

.softlist .content {
  flex: 1;
  padding-left: 30px;
}

.softlist h2{
  font-size: 38px;
  font-weight: bold;
  color: #fff5e6;
  margin-bottom: 10px;
}

.softlist li{
  font-size: 24px;
  color: #fff5e6;
}

.softlist p{
  font-size: 30px;
  color: #ed4646;
  font-weight: bold;
  padding-top: 4px;
}


.softlist .buttons {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.softlist .buttons button {
  padding: 10px 20px;
  width: 200px;
  height: 80px;
  border: none;
  color: #bb912d;
  cursor: pointer;
  font-size: 28px;
  text-align: center;
}

.softlist .buttons .download{
  background-color: rgb(255,252,210);
}

.softlist .buttons .buy{
  background-color: rgb(208,37,37);
}

footer{
  text-align: center;
  font-size: 1.2rem;
  padding-bottom: 30px;
}

/* 对话窗口的样式 */
.chat-window {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1000;
}

.chat-header {
  background-color: #4f69b6;
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  font-size: 16px;
}

.chat-header .close-btn {
  cursor: pointer;
  font-size: 18px;
  line-height: 18px;
  border: none;
  background: none;
  color: #fff;
}

.chat-body {
  padding: 10px;
}

.chat-body p {
  margin: 0 0 10px;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
}

.chat-body img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
}

.chat-footer {
  text-align: center;
  padding: 10px;
  background-color: #f9f9f9;
}

.chat-footer button {
  padding: 8px 16px;
  background-color: #4f69b6;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.chat-footer button:hover {
  background-color: #4153a9;
}

.hidden {
  display: none;
}


/* 手机端样式 */
@media screen and (max-width: 768px) {
  .header-container {
      width: 90%;
      justify-content: space-between;
      height: 60px;
  }

  /* 在手机上隐藏导航 */
  .nav {
      display: none;
      position: fixed;
      top: 0px;
      left: 0;
      width: 100%;
      height: auto;
      padding: 20px;
      background-color: rgba(0, 0, 0, 0.9);
      justify-content: center;
      align-items: center;
      flex-direction: column;
      z-index: 9999;
  }

  .nav ul {
      display: block;
      text-align: center;
  }

  .nav li {
      margin-bottom: 20px;
  }

  .nav a {
      font-size: 24px;
  }

  .logo a {
    display: block;
  }

  .logo img {
    display: none;
  }
  /* 菜单按钮样式 */
  .menu-toggle {
      font-size: 30px;
      color: white;
      background: none;
      border: none;
      cursor: pointer;
      display: block;  /* 在手机端显示菜单按钮 */
  }

  /* 关闭按钮样式 */
  .close-menu {
      font-size: 30px;
      color: white;
      position: absolute;
      top: 10px;
      right: 20px;
      background: none;
      border: none;
      cursor: pointer;
      display: block;
  }

  .banner img{
    width: 140%;
    height: auto;
    object-fit: cover;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

  .softlist ul {
    flex-direction: column;
    width: 90%; /* 调整宽度以适应手机屏幕 */
  }

  .softlist .content {
    padding-left: 0;
  }
  .softlist ul img{
    width: 100%;
  }
  .softlist ul h2{
    font-size: 1.6rem;
    text-align: center;
  }

  .softlist ul li{
    font-size: 1rem;
  }

  .softlist ul p{
    font-size: 1.4rem;
  }

  .softlist .buttons {
    align-items: center; /* 按钮垂直居中 */
    gap: 10px; /* 减小按钮之间的间距 */
    flex-direction: row
  }

  .softlist .buttons button {
    width: 50%; /* 设置按钮宽度为父容器的 45% */
    height: 50%;
    font-size: 1rem; /* 调整按钮字体大小 */
  }

}
