* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #fff;
  display: contents;
}

header {
  justify-content: space-between;
  align-items: center;

  height: 80px;
  background-color: #fff;
  padding: 10px;
  border-bottom: 2px solid： #ff4500;
}

header ul {
  position: absolute;
  right: 5vw;
  top: 0;
  line-height: 80px;
}

header p {
  font-size: 18px;
  color: #ff4500;
  left: 190px;
  position: absolute;
  padding: 20px;
}

.logo img {
  width: 100px;
  left: 60px;
  position: absolute;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #ff4500;
  text-decoration: none;
  font-size: 18px;
  position: relative;
}

nav ul li a::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  position: absolute;
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: middle;
  transition: transform 0.3s ease-in-out;
  background-color: #ff4500;
}

nav ul li a:hover {
  text-decoration: underline;
  transition:
    width 0.3s ease,
    left 0.3s ease,
    right 0.3s ease;
}

nav ul li a:hover::after {
  transform: scaleX(1);
  transform-origin: middle;
}

h1 {
  display: inline-block;
  left: 160px;
  position: absolute;
  color: #ff4500;
  font-family: 'fontnameRegular';
  src: url(cut/NotoSerif_SemiCondensed-Bold.ttf);
}

h2 {
  font-size: 30px;
  color: #ffffff;
  padding: 5px 0;
  text-align: center;
  margin: 20px 20px 50px 20px;
  font-family: 'fontnameRegular';
  src: url(cut/OpenSans-Light.ttf);
}

#our-games {
  background-color: rgb(235, 235, 235);
  padding: 30px;
  text-align: center;
}

#our-games p a:hover {
  color: #ff4500;
}

#our-games p {
  text-align: center;
  color: #4b4b4b;
}

.game-carousel {
  width: 100%;
  max-width: none;
  margin: 20px auto 0 auto;
  padding: 0 20px;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
  background-color: transparent;
  width: 270px;
}

.swiper-button-next,
.swiper-button-prev {
  color: #ff4500;
  margin: 20px auto 0 auto;
  padding: 0;
}

.swiper-pagination {
  position: relative !important;
  margin-top: 20px;
}

/* 响应式设计 - 只保留小屏幕下的卡片尺寸调整 */
@media (max-width: 600px) {
  .game-card {
    width: 180px; /* 缩小卡片尺寸 */
  }
}

.game-grid {
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.game-card:hover {
  transform: scale(1.1);
}

.game-card {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  width: 250px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease-in-out;
  margin: 0 auto;
}

.game-card img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.game-card[data-year='2023']::before {
  content: '2023';
  background-color: #ff4500;
  color: #fff;
  padding: 5px 10px;
  position: absolute;
  margin-top: -39px;
  border-radius: 5px 5px 0px 0px;
  margin-left: -10px;
}

.game-card[data-year='2024']::before {
  content: '2024';
  background-color: #ff4500;
  color: #fff;
  padding: 5px 10px;
  position: absolute;
  margin-top: -39px;
  border-radius: 5px 5px 0px 0px;
  margin-left: -10px;
}

.game-card[data-year='2025']::before {
  content: '2025';
  background-color: #ff4500;
  color: #fff;
  padding: 5px 10px;
  position: absolute;
  margin-top: -39px;
  border-radius: 5px 5px 0px 0px;
  margin-left: -10px;
}

#about-us {
  max-width: 1120px;

  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 40px;
  background-color: #fff;
  height: 250px;
  border-radius: 10px;
  margin: 20px auto;
}

#about-us p {
  font-size: 18px;
  color: #959595;
  line-height: 1.6em;
  padding: 40px;
  font-family: 'fontnameRegular';
  src: url(cut/OpenSans-Light.ttf);
}

#privacy-policy {
  display: flex;
  font-size: 18px;
  color: #707070;
  line-height: 1.6em;
  padding: 20px 200px;
  font-family: 'fontnameRegular';
}

#privacy-policy p {
  text-align: center;
  font-size: 40px;
  color: #ff4500;
  font: 1.3em sans-serif;
  padding: 20px 200px;
}

h3 {
  font-size: 20px;
  color: #ffffff;
  background-color: #ff4500;
  width: 130px;
  border-radius: 5px;
  height: 28px;
  padding: 5px 5px 0px;
  text-align: center;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #ffffff;
}

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

.app-section {
  background-color: #fff;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
}

.year-label {
  position: absolute;
  top: 30px;
  left: -3px;
  background-color: #ff4500;
  color: white;
  padding: 4px 18px;
  border-radius: 0px 4px 4px 0px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.367);
}

.app-info {
  flex: 1;
  margin-left: 20px;
  margin: 25px 0;
  line-height: 25px;
  width: 50%;
  margin-bottom: 20px;
}

.app-icon {
  margin: 190px;
  margin-top: 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px #00000037;
  width: 100px;
  height: 100px;
  border-radius: 20px;
}

.app-details h2 {
  margin-left: -60px;
  font-size: 20px;
  color: #2f2f2f;
  margin-top: 10px;
}

.app-details p {
  margin: 5px 0 0;
  color: #1b1b1b;
  font-size: 15px;
  margin-left: 120px;
  line-height: 1.6em;
  font-family: 'fontnameRegular';
  src: url(cut/OpenSans-Light.ttf);
}

.app-screenshots {
  display: flex;
  gap: 15px;
}

.app-screenshots img {
  width: 190px;
  height: 410px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.275);
  border-radius: 5px;
  object-fit: cover;
  transition: all 0.5s ease-in-out;
}

.app-screenshots img:hover {
  transform: scale(1.1);
}

#contact-us {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 40px;
  background-color: #fff;
  margin: 20px 0;
  height: 200px;
  border-radius: 10px;
  left: 30px;
  text-align: center;
}

.form {
  display: inline-block;
}

input[type='text'] {
  padding: 10px;
  width: 300px;
  outline: none;
  border: 1px solid #d1d1d1;
  border-radius: 5px;
  left: 195px;
  position: absolute;
  margin: 20px 0;
}

#contact-us p {
  position: absolute;
  font-size: 15px;
  color: #959595;
  margin: 20px 15px;
  font-family: 'fontnameRegular';
  src: url(cut/OpenSans-Light.ttf);
}

#contact-us a {
  text-decoration: none;
  color: #ff4500;
  font-weight: bold;
}

button {
  padding: 10px 20px;
  background-color: #ffd900;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  margin-right: 380px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.275);
  margin-top: 20px;
}

footer {
  border-radius: 5px;
  background-color: #4d4d4d;
  color: #fff;
  text-align: center;
  height: 90px;
}

footer p {
  padding-top: 15px;
  margin: 10px;
}

footer a {
  text-align: center;
  color: #ff533f;
  text-decoration: none;
  margin: 20px;
}
