:root {
  --primary: #ff0b7a;
  --bg-color: #000000;
  --card-bg: #ffffff;
  --card-blue: #e9f3ff;
  --text-main: #ffffff;
  --text-sub: #cccccc;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: auto 100%;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 头部 */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
}
.header-left-logo {
}
.header-left-logo img {
  width: 100%;
  height: 100%;
}

.header-left-title-container {
  margin-left: 10px;
}

.header-left-title {
  font-size: 23px;
  font-weight: bold;
  line-height: 1.3;
}

.header-left-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-sub);
}

.header-right {
  text-align: center;
  font-size: 12px;
  color: var(--text-main);
}
.header-right .link-hezuo {
  display: block;
  width: 120px;
  height: 50px;
  margin: 0 auto;
}
.header-right img {
  width: 100%;
  height: 100%;
}

.main-layout {
  display: flex;
}

.main-layout-left {
  /* flex: 1; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.main-layout-right {
  /* flex: 1; */
  text-align: center;
}

.pc-qrcode-container {
  display: none;
  margin: 0 auto;
  margin-top: 50px;
  border: 2px dashed #ffffff;
  border-radius: 16px;
  padding: 16px 20px;
}

.pc-qrcode {
  width: 150px;
  height: 150px;
  background-color: #ffffff;
}

.pc-platform-text {
  margin-top: 8px;
  font-size: 13px;
  text-align: center;
}

.mobile-downlaod-container {
  /* flex: 1; */
  display: none;
}

.btn-mobile-downlaod {
  text-decoration: none;
  background-image: url("/static/img/download.webp");
  height: 49px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 100%;
  margin-bottom: 20px;
}

.content-tip {
  margin-top: 20px;
  font-size: 12px;
  color: white;
}
.content-tip p {
  line-height: 1.5;
  text-align: center;
}

/* ========= 响应式控制 ========= */

@media (max-width: 1023px) {
  body {
    background-image: url("/static/img/bg-phone.jpg");
  }
  .page-wrapper {
    padding: 16px;
    /* justify-content: space-between; */
  }

  .header-left-logo {
    width: 52px;
    height: 52px;
  }

  .main-layout {
    margin-top: 30px;
    gap: 30px;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
  }

  .mobile-downlaod-container {
    display: block;
  }
}

@media (min-width: 1024px) {
  body {
    background-image: url("/static/img/bg-pc.png");
  }
  .page-wrapper {
    padding: 24px 5%;
    justify-content: space-between;
  }
  .header-left-logo {
    width: 70px;
    height: 70px;
  }
  .main-layout {
    flex-direction: row;
    justify-content: space-between;
  }

  .pc-qrcode-container {
    display: block;
  }
}

/* ========= 通用弹窗 ========= */

.dialog-mask {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.dialog {
  width: 82%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 18px 20px;
  color: #333333;
  position: relative;
}

.dialog-close {
  position: absolute;
  right: 14px;
  top: 12px;
  font-size: 18px;
  cursor: pointer;
}

.dialog-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.dialog-section {
  background: var(--card-blue);
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
  font-size: 13px;
}

.dialog-section p {
  margin-bottom: 8px;
}

.dialog-section-btn {
  display: block;
  width: 100%;
  text-align: center;
  height: 36px;
  line-height: 36px;
  border-radius: 8px;
  border: none;
  background: #4a8dff;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
}

.dialog-section-btn.secondary {
  background: #ff0b7a;
}

/* ========= 安装教程弹窗 ========= */

.tutorial-dialog {
  width: 92%;
  max-width: 420px;
}

.tutorial-body {
  max-height: 70vh;
  overflow-y: auto;
  font-size: 14px;
}

.tutorial-body img {
  width: 100%;
  display: none;
}
