* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; font-family: Arial, sans-serif; }
body { background: #f5f5f5; }
a { color: inherit; text-decoration: none; }

.yd-root {
  min-height: 100vh;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}
.top-card {
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
  overflow: hidden;
}
.top-image-container {
  width: 100%;
  height: clamp(160px, 35vw, 560px);
  cursor: grab;
  touch-action: pan-y;
}
.top-image-container img {
  width: 100%;
  height: 100%;
  display: block;
}
.top-image-container:active { cursor: grabbing; }
.nav { background: #fff; }
.nav ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
.nav li { text-align: center; }
.nav a {
  display: block;
  padding: 16px 25px;
  border-bottom: 3px solid transparent;
  color: #333;
  font-size: 22px;
  line-height: 1;
}
.nav a:hover, .nav a.active { color: #0a61f7; border-bottom-color: #7cb6ff; }
.container { max-width: 1230px; margin: 0 auto; position: relative; }
.cards-container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));}
.single-column-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  font-weight: 600;
}
.card {
  background: #fff;
  margin: 10px 10px 1px 10px;
  padding: 12px 16px 18px 16px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-3px); }
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.card-title { color: #333; font-size: 18px; font-weight: 700; line-height: 1.25; }
.download-btn {
  display: inline-block;
  color: #fff;
  border-radius: 6px;
  padding: 0 10px;
  line-height: 30px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.download-btn:hover { opacity: 0.9; }
.content { font-size: 16px; line-height: 1.5; color: #333; }

.download .max_w1200 {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  margin: 10px;
  padding: 30px 20px;
  border-radius: 4px;
}
.download .max_w1200 h2 { font-size: 20px; color: #1c2a44; margin-bottom: 10px; font-weight: 700; }
.download .max_w1200 h6 { font-size: 14px; color: #666; font-weight: 400; line-height: 24px; padding-bottom: 30px; }
.download .max_w1200 .download_1,
.download .max_w1200 .download_2,
.download .max_w1200 .download_3 {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 30px;
}
.download .max_w1200 .download_2 { padding-top: 30px; }
.download .max_w1200 .download_3 { padding-top: 30px; }
.download .max_w1200 .download_4 { padding-top: 10px; }
.download .max_w1200 .row { margin: 0 -10px; }
.download .max_w1200 .row::before,
.download .max_w1200 .row::after {
  content: "";
  display: table;
}
.download .max_w1200 .row::after { clear: both; }
.download .max_w1200 .download_1 .row .col-xs-3,
.download .max_w1200 .download_3 .row .col-xs-3 {
  width: 25%;
  float: left;
  padding: 0 10px;
}
.download .max_w1200 .download_1 .row .col-xs-3 { overflow: hidden; }
.download .max_w1200 .download_1 .row .col-xs-3 img {
  width: 55px;
  float: left;
}
.download .max_w1200 .download_1 .row .col-xs-3 .download_1_r {
  margin-left: 65px;
  padding-top: 5px;
}
.download .max_w1200 .download_1 .row .col-xs-3 .download_1_r h5 {
  color: #0f295f;
  font-size: 18px;
  margin-bottom: 5px;
}
.download .max_w1200 .download_1 .row .col-xs-3 .download_1_r p { color: #666; font-size: 14px; }
.download .max_w1200 .download_2 .download_2_con { text-align: center; }
.download .max_w1200 .download_2 .download_2_con a { display: inline-block; margin: 0 auto; }
.download .max_w1200 .download_2 .download_2_con a img { max-width: 100%; width: auto; }
.download .max_w1200 .download_2 .download_2_con p {
  margin-top: 10px;
  color: #666;
  font-size: 12px;
}
.download .max_w1200 .download_3 .row .col-xs-3 img { width: 100%; border-radius: 4px; }
.download .max_w1200 .download_4 p {
  color: #d82f2f;
  text-align: center;
  font-size: 14px;
  line-height: 24px;
}

.entry-shell {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(#03041c, rgba(6, 14, 40, 0.64));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.download-container {
  width: min(420px, 100%);
  text-align: center;
  transform: translateY(-150px);
}
.download-container .logo {
  width: 105px;
  height: 105px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.download-container .logo img { width: 100%; height: 100%; object-fit: contain; }
.logo-fallback-text {
  display: inline-block;
  max-width: 88%;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  word-break: break-all;
  text-align: center;
}
.download-container .title { color: #fff; font-size: 34px; margin-bottom: 8px; }
.download-container .subtitle { color: #fff; font-size: 16px; margin-bottom: 16px; }
.download-input {
  width: 90%;
  height: 54px;
  border: 2px solid #fff;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 27px;
}
.download-btn-large {
  margin-top: 28px;
  width: 90%;
  height: 55px;
  font-weight: 600;
  border: 0;
  border-radius: 10px;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(90deg, #106fff, #3fcfff);;
  cursor: pointer;
}
.entry-tip { margin-top: 10px; color: #ffe39d; font-size: 20px; }
.entry-top-toast {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: none;
  padding: 12px 18px;
  border-radius: 0;
  background: rgba(223, 25, 25, 0.95);
  color: #fff;
  font-size: 18px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  z-index: 6;
}
.entry-top-toast.success {
  background: rgba(23, 187, 94, 0.95);
}
.download-top-toast {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 18px;
  border-radius: 0;
  background: rgba(29, 173, 92, 0.95);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  z-index: 120;
}
.entry-toast-enter-active,
.entry-toast-leave-active {
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.entry-toast-enter-from,
.entry-toast-leave-to {
  opacity: 0;
  transform: translateY(-22px);
}
.entry-toast-enter-to,
.entry-toast-leave-from {
  opacity: 1;
  transform: translateY(0);
}
.entry-copyright {
  position: absolute;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
  text-align: center;
}

.android-shell {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(#03041c, rgba(3, 4, 28, 0.86));
  background-size: cover;
  overflow: hidden;
}
.android-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  transform: translateY(-200px);
}
.android-logo-wrap {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.android-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}
.android-title {
  margin: 8px 0 48px;
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  text-align: center;
}
.android-btn {
  width: 250px;
  height: 50px;
  line-height: 50px;
  border: 0;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(90deg, #106fff, #3fcfff);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}
.android-btn:hover {
  background: #ff8c5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.android-btn:disabled {
  background: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.android-tip {
  margin-top: 10px;
  color: #ff6b6b;
  font-size: 14px;
  text-align: center;
}

.ios-shell {
  min-height: 100vh;
  background: #f5f5f5;
}
.page-download-guide {
  width: min(800px, 100%);
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  position: relative;
}
.appstore-banner {
  height: 350px;
  padding: 50px 0;
  background: linear-gradient(#03041c, rgba(3, 4, 28, 0.86));
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.appstore-banner .logo {
  width: 98px;
  height: 98px;
  border-radius: 20px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.appstore-banner .appname {
  font-size: 26px;
  font-weight: 500;
  margin: 16px 0 16px;
  text-align: center;
  color: #fff;
}
.button-content { margin-top: 20px; }
.button-content .btn {
  background: linear-gradient(90deg, #106fff, #3fcfff);
  color: white;
  width: 250px;
  height: 50px;
  line-height: 50px;
  border-radius: 4px;
  display: inline-block;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 0;
}
.button-content .btn:hover {
  background: #ff8c5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.button-content .btn:disabled {
  background: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.download-status {
  margin-top: 10px;
  color: #fff;
  font-size: 14px;
  min-height: 20px;
}
.download-status.error { color: #ffd6d6; }
.appstore-content {
  width: 100%;
  background-color: #f3f3ff;
  margin-top: -28px;
  padding-bottom: 60px;
  border-radius: 20px 20px 0 0;
}
.m-title {
  font-size: 18px;
  margin: 10px 0 10px;
  text-align: center;
}
.m-title.red {
  color: #e74c3c;
  padding: 15px;
  border-radius: 10px;
}
.content-block {
  width: 90%;
  margin: 0 auto 20px;
  background: #fff;
  border-radius: 7px;
  padding: 10px;
}
.list-title {
  text-align: center;
  margin: 15px 0 20px;
  color: #0066ed;
  font-size: 14px;
}
.list-title::before {
  transform: rotate(180deg);
}
.list-title::after,
.list-title::before {
  vertical-align: middle;
  display: inline-block;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAYCAMAAAAyNwimAAAANlBMVEUAAAAoU/8qVP8nTv8yWf89XP8rVP8rVf8pU/8sVf8pUv8rUf8rUP9VVf8tVP8qVP8qU/8rVf8LKWK4AAAAEnRSTlMATYAaDQg3ekorGRcRAyFtXEIlGIjLAAAA4ElEQVRIx3TRSQ7EIAxE0TKYeUhy/8v2phVZuPL2iA+FP833Vcp1Z8WntPNT65N3wqelc/Q+pi5YKuElCio1ebUEas34muaKVoJRGohRxaiDNvRo9Lcih0OGs+Ww4Wg86L8/OM31izNcf3QSAGgJTtHjbBWnHjusHp2+AEggBLCaEMczZyQmoIFSGEmoBGNFarmF2c5bqO0W9hR3oG4YWajsfsibuAJ1wXiEemCMSA2UQBUYVagKo0eq/0ZzC2geRDSPZJonU5pnNFoXFTQv7GhdXNO6wqF1lUmXSp/mzRYAT9kRgdtZ/NUAAAAASUVORK5CYII=);
  background-repeat: no-repeat;
  content: "";
  padding-left: 12px;
  width: 35px;
  height: 6px;
  background-size: contain;
  background-position: 100%;
}
.guide-text {
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  color: #14181f;
}
.img-wrap {
  padding: 10px 0;
}
.img-wrap img {
  width: 100%;
  max-width: 100%;
}
.download-footer {
  width: 100%;
  color: #999;
  font-size: 12px;
  text-align: center;
}
.android-footer {
  position: absolute;
  left: 0;
  bottom: 30px;
}
.ios-footer {
  position: absolute;
  left: 0;
  bottom: 30px;
}

.global-error {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  background: rgba(190, 46, 46, 0.94);
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 18px;
  z-index: 30;
}

@media (max-width: 1024px) {
  .cards-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a { font-size: 17px; padding: 14px 16px; }
  .card-title { font-size: 17px; }
  .content { font-size: 15px; }
  .download-btn { font-size: 13px; line-height: 28px; }
}

@media (max-width: 768px) {
  .container { margin-top: 0; }
  .cards-container { grid-template-columns: 1fr; }
  .card-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
  }
  .card-title {
    flex: initial;
    width: auto;
    font-size: 20px;
  }
  .download-btn {
    flex-shrink: 0;
    font-size: 13px;
    padding: 0 8px;
    line-height: 30px;
    border-radius: 6px;
  }
  .entry-top-toast {
    top: 0;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 600;
  }
  .entry-copyright {
    width: calc(100% - 24px);
    font-size: 14px;
    white-space: normal;
  }
  .android-content {
    padding: 48px 0;
  }
  .android-btn {
    width: 239px;
  }
  .android-footer {
    bottom: 38px;
  }
  .ios-footer {
    bottom: 38px;
  }

  .content-block {
    width: 92%;
  }
  .guide-text {
    font-size: 12px;
    line-height: 1.6;
  }
  .nav a { font-size: 17px; padding: 12px 1px; font-weight: 600;}
  .download .max_w1200 { padding: 15px 10px; }
  .download .max_w1200 h2 { font-size: 18px; }
  .download .max_w1200 h6 {
    font-size: 12px;
    line-height: 20px;
    padding-bottom: 20px;
  }
  .download .max_w1200 .download_1,
  .download .max_w1200 .download_2,
  .download .max_w1200 .download_3 { padding-bottom: 20px; }
  .download .max_w1200 .download_2 { padding: 16px 0; }
  .download .max_w1200 .download_3 { padding: 20px 0 10px; }
  .download .max_w1200 .download_1 .row { margin: 0 -5px; }
  .download .max_w1200 .download_1 .row .col-xs-3 {
    width: 33.333%;
    padding: 0 5px;
  }
  .download .max_w1200 .download_1 .row .col-xs-3 img {
    float: none;
    display: block;
    width: 45px;
    margin: 0 auto;
  }
  .download .max_w1200 .download_1 .row .col-xs-3 .download_1_r {
    margin-left: 0;
    padding-top: 8px;
  }
  .download .max_w1200 .download_1 .row .col-xs-3 .download_1_r h5 {
    text-align: center;
    font-size: 14px;
  }
  .download .max_w1200 .download_1 .row .col-xs-3 .download_1_r p {
    text-align: center;
    font-size: 12px;
  }
  .download .max_w1200 .download_1 .row > .col-xs-3:nth-child(4) { display: none; }
  .download .max_w1200 .download_3 .row { margin: 0 -6px; }
  .download .max_w1200 .download_3 .row .col-xs-3 {
    width: 50%;
    padding: 0 6px;
    margin-bottom: 12px;
  }
  .download .max_w1200 .download_2 .download_2_con p,
  .download .max_w1200 .download_4 p {
    font-size: 12px;
    line-height: 20px;
  }
}
