/* Gamsmail landing page. Plain CSS port of the old Vue/naive-ui/tailwind site (internetch_frontend). */
*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid #e5e7eb;
}

:root {
  --container-width: 1366px;
  --primary: #00cf76;
  --ink: #2e3033;
}

@media screen and (max-width: 1366px) {
  :root {
    --container-width: 100%;
  }
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
}

body {
  margin: 0;
  font-family: v-sans, system-ui, -apple-system, 'system-ui', 'Segoe UI', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  font-size: 14px;
  line-height: 1.5;
  color: #000;
  -webkit-font-smoothing: antialiased;
}

h1,
h3,
h4,
p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  padding: 0;
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: #d8d8d8;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* The naive-ui primary button: solid green, no hover shift. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  background: var(--primary);
  color: #fff;
  font-weight: bold;
  white-space: nowrap;
  letter-spacing: 0.14px;
  cursor: pointer;
}

/* ── header: navigation + banner ── */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url('/assets/img/header-bg-img.svg');
  background-size: cover;
  background-repeat: no-repeat;
}

@media screen and (min-width: 1920px) {
  .header {
    background-image: url('/assets/img/header-bg-img@2.svg');
  }
}

.navigation-wrapper {
  padding: 0 32px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.navigation {
  margin: 24px 0 0;
  padding: 12px 10px 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1318px;
  width: 100%;
  border-radius: 16px;
  background: #fff;
}

.navigation .logo {
  cursor: pointer;
}

.navigation .logo img {
  height: 30px;
}

.navigation-right {
  margin: 0 0 0 8px;
}

.nav-btn {
  font-size: 16px;
  line-height: 20px;
  border-radius: 8px;
  height: 44px;
}

.banner-wrapper {
  padding: 0 32px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.banner {
  margin: 80px 0 0;
  max-width: var(--container-width);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.banner .title {
  font-size: 56px;
  font-weight: 500;
  line-height: 72px;
  text-align: center;
  letter-spacing: 0.14px;
  color: var(--ink);
}

.banner .title span {
  display: block;
}

.banner .subtitle {
  max-width: 1026px;
  margin: 24px 0 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
  text-align: center;
  letter-spacing: 0.14px;
  color: var(--ink);
}

.banner .btn-wrapper {
  margin: 48px 0 0;
}

.hero-btn {
  height: 52px;
  border-radius: 8px;
  min-width: 164px;
  font-size: 16px;
  line-height: 20px;
}

.banner-img {
  margin: 80px 0 136px;
}

.banner-img img {
  max-height: 502px;
}

@media screen and (max-width: 900px) {
  .navigation-wrapper,
  .banner-wrapper {
    padding: 0 20px;
  }

  .navigation {
    padding: 14px 16px;
    border-radius: 12px;
  }

  .navigation .logo img {
    height: 24px;
  }

  .nav-btn {
    font-size: 14px;
    line-height: 18px;
    height: 36px;
  }

  .banner {
    margin: 64px 0 36px;
  }

  .banner .title {
    font-size: 28px;
    line-height: 36px;
  }

  .banner .subtitle {
    margin: 16px 0 0;
    font-size: 16px;
    line-height: 20px;
  }

  /* on a phone the button sits under the picture */
  .banner .btn-wrapper {
    order: 3;
    margin: 32px 0 36px;
    width: 100%;
  }

  .hero-btn {
    height: 42px;
    width: 100%;
    font-size: 14px;
    line-height: 18px;
  }

  .banner-img {
    order: 2;
    margin: 48px 0 0;
  }

  .banner-img img {
    width: 100%;
  }
}

/* ── introduce ── */
.introduce-wrapper {
  width: 100%;
  padding: 0 32px;
  display: flex;
  justify-content: center;
}

.introduce {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
}

.introduce .title {
  font-size: 32px;
  font-weight: bold;
  line-height: 40px;
  text-align: center;
  letter-spacing: 0.14px;
  color: var(--ink);
}

.details-inner-box {
  margin: 96px 0 0;
}

.details-item {
  display: flex;
  align-items: center;
}

.details-item:not(:first-child) {
  margin-top: 96px;
}

.details-item:nth-of-type(2n) {
  flex-direction: row-reverse;
}

.details-item:nth-of-type(2n) .details-left {
  padding-right: 0;
}

.details-item:nth-of-type(2n) .details-right {
  padding-right: 120px;
}

.details-left {
  width: 50%;
  padding-right: 120px;
}

.details-left h4 {
  font-size: 28px;
  line-height: 34px;
  margin-bottom: 32px;
  font-weight: bold;
  color: var(--ink);
}

.details-left .content {
  font-size: 16px;
  line-height: 24px;
}

.details-right {
  width: 50%;
}

.img-box {
  padding: 16px;
  position: sticky;
  top: 248px;
  max-width: 660px;
  height: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.06);
}

.img-box img {
  width: 100%;
}

@media screen and (max-width: 900px) {
  .introduce-wrapper {
    padding: 0 20px;
  }

  .introduce .title {
    font-size: 24px;
    line-height: 30px;
  }

  .details-inner-box {
    margin: 32px 0 0;
    display: flex;
    flex-direction: column;
  }

  .details-item,
  .details-item:nth-of-type(2n) {
    flex-direction: column;
  }

  .details-item:not(:first-child) {
    margin-top: 0;
  }

  .details-left,
  .details-item:nth-of-type(2n) .details-left {
    width: 100%;
    padding-right: 0;
  }

  .details-left h4 {
    font-size: 20px;
    line-height: 24px;
    margin: 24px 0 16px;
  }

  .details-left .content {
    font-size: 14px;
    line-height: 20px;
  }

  .details-right,
  .details-item:nth-of-type(2n) .details-right {
    width: 100%;
    margin: 24px 0 0;
    padding-right: 0;
  }

  .img-box {
    padding: 8px;
    max-width: 100%;
    width: 100%;
  }
}

/* ── choose ── */
.choose-wrapper {
  padding: 0 32px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.choose {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  padding: 68px 0 40px;
}

.choose .title {
  font-size: 32px;
  font-weight: bold;
  line-height: 40px;
  text-align: center;
  letter-spacing: 0.14px;
  color: var(--ink);
}

.choose .subtitle {
  margin: 24px 0 0;
  font-size: 20px;
  font-weight: 500;
  line-height: normal;
  text-align: center;
  letter-spacing: 0.14px;
  color: var(--ink);
}

.choose .content {
  margin: 64px 0 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.content-item {
  width: calc((100% - 20px * 3) / 4);
  border-radius: 24px;
  background: #f7f8fa;
  padding: 47px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-item:not(:first-child) {
  margin-left: 20px;
}

.choose-img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
}

.choose-img img {
  height: 36px;
  width: 36px;
}

.choose-title {
  margin: 32px 0 0;
  font-size: 24px;
  font-weight: bold;
  line-height: 30px;
  text-align: center;
  color: var(--ink);
}

.choose-content {
  margin: 16px 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  color: #5c6066;
}

@media screen and (min-width: 901px) and (max-width: 1200px) {
  .choose {
    padding: 32px 0 20px;
  }

  .choose .content {
    margin: 32px 0 0;
    flex-wrap: wrap;
  }

  .content-item {
    width: calc(100% / 2 - 20px);
    padding: 32px;
    margin: 20px 0 0 20px;
  }

  .content-item:nth-child(2n + 1) {
    margin-left: 0;
  }

  .choose-img {
    width: 60px;
    height: 60px;
  }

  .choose-img img {
    height: 28px;
    width: 28px;
  }
}

@media screen and (max-width: 900px) {
  .choose-wrapper {
    padding: 0 20px;
  }

  .choose {
    padding: 48px 0 20px;
  }

  .choose .title {
    font-size: 24px;
    line-height: 30px;
  }

  .choose .subtitle {
    margin: 16px 0 0;
    font-size: 16px;
    line-height: 20px;
  }

  .choose .content {
    margin: 32px 0 0;
    flex-direction: column;
  }

  .content-item {
    width: 100%;
    padding: 32px 24px;
  }

  .content-item:not(:first-child) {
    margin: 16px 0 0;
  }

  .choose-img {
    width: 64px;
    height: 64px;
  }

  .choose-img img {
    height: 28px;
    width: 28px;
  }

  .choose-title {
    margin: 24px 0 0;
    font-size: 20px;
    line-height: 24px;
  }

  .choose-content {
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 18px;
  }
}

/* ── ask ── */
.ask-wrapper {
  width: 100%;
  padding: 0 32px;
  margin: 56px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ask-wrapper .content-wrapper {
  max-width: var(--container-width);
  display: flex;
}

.ask {
  flex: 3;
  width: 100%;
  margin: 0 auto;
  border-radius: 24px;
  background-image: linear-gradient(287deg, #12c8ec 1%, #00cf76 100%);
  background-size: cover;
}

.ask .title {
  margin: 64px 32px 24px 64px;
  font-size: 32px;
  font-weight: bold;
  line-height: 40px;
  text-align: left;
  letter-spacing: 0.14px;
  color: #fff;
}

.ask .content {
  margin: 24px 64px 64px;
  font-size: 20px;
  font-weight: bold;
  line-height: normal;
  text-align: left;
  letter-spacing: 0.14px;
  color: #fff;
}

.ask-wrapper .content-img {
  margin: 0 0 0 24px;
  flex: 2;
}

.ask-wrapper .content-img img {
  height: 100%;
  object-fit: fill;
}

.ask-wrapper .btn-wrapper {
  margin: 48px 0 0;
}

.ask-btn {
  height: 52px;
  border-radius: 8px;
  min-width: 216px;
  font-size: 16px;
  line-height: 20px;
}

@media screen and (max-width: 900px) {
  .ask-wrapper {
    padding: 0 20px;
    margin: 28px 0 40px;
  }

  .ask-wrapper .content-wrapper {
    flex-direction: column;
  }

  .ask-wrapper .content-img {
    margin: 16px 0 0;
  }

  .ask .title {
    margin: 40px 32px 24px;
    font-size: 24px;
    line-height: 30px;
    text-align: center;
  }

  .ask .content {
    margin: 24px 32px 32px;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
  }

  .ask-wrapper .btn-wrapper {
    margin: 32px 0 0;
    width: 100%;
  }

  .ask-btn {
    height: 42px;
    width: 100%;
    font-size: 14px;
    line-height: 18px;
  }
}

/* ── footer ── */
.footer-wrapper {
  background: #1f2733;
  padding: 0 32px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.footer {
  max-width: var(--container-width);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer .nav-wrapper {
  margin: 64px 0 0;
  display: flex;
  width: 100%;
}

.footer .nav {
  display: flex;
  flex: 3;
}

.nav-group {
  flex: 1;
}

.nav-group .title {
  font-size: 16px;
  font-weight: bold;
  line-height: 20px;
  color: #fff;
}

.nav-item {
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.8);
}

.nav-item:not(:first-child) {
  margin: 16px 0 0;
}

.nav-item .link {
  text-decoration: underline;
}

.download {
  margin: 0 0 0 32px;
  display: flex;
  flex-direction: column;
}

.download-item {
  padding: 6px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  border-radius: 8px;
  background: #252f3d;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.download-item:not(:first-child) {
  margin: 16px 0 0;
}

.platform-img {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apple-icon {
  width: 30px;
  height: 30px;
}

.play-icon {
  width: 24px;
  height: 24px;
}

.download-item_right {
  margin: 0 0 0 8px;
  display: flex;
  flex-direction: column;
}

.download-item_right .title {
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  color: #fff;
}

.download-item_right .platform-name {
  font-size: 14px;
  font-weight: bold;
  line-height: 18px;
  color: #fff;
}

.site-info {
  margin: 48px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.5);
}

.tips-wrapper {
  margin: 8px 0 0;
  display: flex;
}

.tips_right {
  display: flex;
  margin: 0 0 0 80px;
}

.login-icon {
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border: 1px solid #e1e3e5;
  border-radius: 6px;
  cursor: pointer;
  flex: none;
}

.login-icon img {
  width: 16px;
  height: 16px;
}

@media screen and (max-width: 900px) {
  .footer-wrapper {
    padding: 0 20px;
  }

  .footer .nav-wrapper {
    margin: 48px 0 0;
    flex-direction: column-reverse;
  }

  .footer .nav {
    margin: 32px 0 0;
    flex-direction: column;
  }

  .nav-group:not(:first-child) {
    margin: 32px 0 0;
  }

  .download {
    flex-direction: row;
    margin: 0;
  }

  .download-item {
    padding: 4px 16px;
    flex: 1;
  }

  .download-item:not(:first-child) {
    margin: 0 0 0 16px;
  }

  .download-item_right {
    margin: 0 0 0 12px;
  }

  .site-info {
    margin: 32px 0 48px;
  }

  .tips-wrapper {
    flex-direction: column;
  }

  .tips_right {
    margin: 32px 0 0;
  }
}

/* naive-ui style message ("Coming soon ...") */
.toast {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 100;
  transform: translate(-50%, -16px);
  padding: 10px 20px;
  border-radius: 6px;
  background: #fff;
  color: #333639;
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
