@charset "utf-8";

body.mobile-legacy-login,
body.mobile-legacy-agreement {
  margin: 0;
  font-family: Tahoma, Helvetica, Arial, "Microsoft Yahei", sans-serif;
  background: linear-gradient(135deg, #132e7b 0%, #00c9ca 100%);
  color: #123380;
}

.mobile-legacy-login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 22px;
  box-sizing: border-box;
}

.mobile-legacy-login-brand {
  margin-bottom: 28px;
  text-align: center;
}

.mobile-legacy-login-logo {
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
}

.mobile-legacy-login-card {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 24px 18px 18px;
  box-shadow: 0 12px 36px rgba(9, 23, 64, 0.18);
  backdrop-filter: blur(3px);
}

.mobile-legacy-login-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.mobile-legacy-field {
  position: relative;
  height: 46px;
  background: #fff;
  border-radius: 999px;
  margin-bottom: 12px;
  overflow: hidden;
}

.mobile-legacy-field .icon {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.mobile-legacy-field .icon.username {
  background-image: url("/css/mobi/img/icon_menu.png");
}

.mobile-legacy-field .icon.password {
  background-image: url("/css/mobi/img/ic_login_cantsee.png");
}

.mobile-legacy-field .icon.verify {
  background-image: url("/css/mobi/img/ic_login_verify.png");
}

.mobile-legacy-field input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0 16px 0 50px;
  box-sizing: border-box;
  font-size: 15px;
}

.mobile-legacy-field.verify input {
  padding-right: 94px;
}

.mobile-legacy-field .verify-code {
  position: absolute;
  right: 10px;
  top: 6px;
  width: 74px;
  height: 34px;
  border-radius: 999px;
}

.mobile-legacy-login-btn {
  display: block;
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(to bottom, #388bee 0%, #0f347e 100%);
}

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

.mobile-legacy-topbar {
  height: 52px;
  background: linear-gradient(to bottom, #0772df 0%, #102a6e 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  box-sizing: border-box;
}

.mobile-legacy-topbar .title {
  font-size: 18px;
  font-weight: 700;
}

.mobile-legacy-scroll {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px;
  box-sizing: border-box;
}

.mobile-legacy-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px 14px;
  box-sizing: border-box;
  box-shadow: 0 10px 24px rgba(18, 51, 128, 0.12);
}

.mobile-legacy-card p {
  margin: 0 0 12px;
  line-height: 1.7;
  color: #2f3a55;
  font-size: 14px;
}

.mobile-legacy-bottom-actions {
  display: flex;
  gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.08);
}

.mobile-legacy-bottom-actions a {
  flex: 1;
  text-align: center;
  height: 42px;
  line-height: 42px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.mobile-legacy-bottom-actions .primary {
  color: #fff;
  background: linear-gradient(to bottom, #388bee 0%, #0f347e 100%);
}

.mobile-legacy-bottom-actions .secondary {
  color: #fff;
  background: linear-gradient(to bottom, #b1b1b1 0%, #696869 100%);
}

.mobile-side-toggle,
.mobile-tree-panel,
.mobile-side-mask,
.mobile-bottom-nav {
  display: none;
}

@media screen and (max-width: 900px) {
  body.is-mobile-legacy {
    background: #f3f5f9 !important;
    color: #102a5c;
  }

  body.is-mobile-legacy #header {
    background: #fff;
  }

  body.is-mobile-legacy .mobile-side-toggle {
    display: none !important;
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 1;
    width: 18px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: #ffffff !important;
    text-decoration: none;
    padding: 0 !important;
    font-size: 0;
    overflow: hidden;
  }

  body.is-mobile-legacy .mobile-side-toggle:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 2px;
    margin-left: -6px;
    margin-top: -1px;
    background: #ffffff;
    box-shadow: 0 -4px 0 #ffffff, 0 4px 0 #ffffff;
    border-radius: 2px;
  }

  body.is-mobile-legacy .logo {
    position: relative;
    display: block;
    padding: 10px 14px 6px;
    background: linear-gradient(to bottom, #0772df 0%, #102a6e 100%);
    cursor: pointer;
  }

  body.is-mobile-legacy .logo span {
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 700;
  }

  body.is-mobile-legacy .header .menu {
    background: linear-gradient(to bottom, #0772df 0%, #102a6e 100%);
    padding: 10px 12px 12px !important;
    gap: 8px;
  }

  body.is-mobile-legacy .header .menu1 {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.14);
    border-radius: 12px;
    padding: 8px 10px;
    box-sizing: border-box;
  }

  body.is-mobile-legacy #result_info {
    flex: 0 0 41%;
    min-width: 0;
    margin: 0 !important;
    text-align: left !important;
  }

  body.is-mobile-legacy #result_info div:first-child {
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.is-mobile-legacy #result_info div:last-child {
    font-size: 12px !important;
    line-height: 1.2 !important;
    margin-top: 2px;
    opacity: 0.95;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.is-mobile-legacy #result_balls {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    text-align: right !important;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  body.is-mobile-legacy #result_info,
  body.is-mobile-legacy #result_balls,
  body.is-mobile-legacy .header .menu a,
  body.is-mobile-legacy .header .menu2 a {
    color: #f4f8ff !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
  }

  body.is-mobile-legacy .header .menu2 {
    display: none !important;
  }

  body.is-mobile-legacy #skinPanel {
    grid-column: 1 / -1;
    text-align: center;
  }

  body.is-mobile-legacy #skinPanel ul {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.is-mobile-legacy #skinPanel li {
    float: none !important;
    margin: 0 !important;
  }

  body.is-mobile-legacy #skinPanel li i {
    width: 18px !important;
    height: 18px !important;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.6);
    box-sizing: border-box;
  }

  body.is-mobile-legacy .header .menu3 {
    position: fixed !important;
    top: 10px;
    right: 12px;
    z-index: 1702;
    width: auto !important;
  }

  body.is-mobile-legacy .header .menu3 a.logout {
    background: #f2f7ff !important;
    border: 1px solid #bfd3f5 !important;
    min-width: 58px;
    height: 34px !important;
    line-height: 34px !important;
    border-radius: 999px !important;
    text-align: center;
    color: #123b73 !important;
    font-weight: 700;
    padding: 0 10px !important;
    box-shadow: 0 4px 12px rgba(8, 27, 78, 0.18);
  }

  body.is-mobile-legacy .mobi-game-icon {
    display: block;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }

  body.is-mobile-legacy #side {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(82vw, 320px) !important;
    z-index: 1700;
    padding: 12px 10px 18px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #f7fbff !important;
    box-shadow: 0 18px 40px rgba(11, 31, 89, 0.2);
    transform: translateX(0);
    transition: transform .2s ease;
  }

  body.is-mobile-legacy #side.mobile-collapsed {
    transform: translateX(-104%);
  }

  body.is-mobile-legacy .mobile-side-mask {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1690;
    background: rgba(4, 14, 39, 0.42);
  }

  body.is-mobile-legacy.mobile-side-open .mobile-side-mask {
    display: block;
  }

  body.is-mobile-legacy .mobile-tree-panel {
    display: block;
    margin-bottom: 10px;
    border: 1px solid #d5e2fb;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
  }

  body.is-mobile-legacy .mobile-tree-header {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #1b3f79;
    background: #edf4ff;
    border-bottom: 1px solid #d5e2fb;
  }

  body.is-mobile-legacy .mobile-tree-toggle-node {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: #16396e !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
  }

  body.is-mobile-legacy .mobile-tree-node .tree-arrow {
    display: inline-block;
    transition: transform .2s ease;
    color: #2d5ba0;
  }

  body.is-mobile-legacy .mobile-tree-node:not(.open) .tree-arrow {
    transform: rotate(-90deg);
  }

  body.is-mobile-legacy .mobile-tree-content {
    padding: 0 10px 10px;
  }

  body.is-mobile-legacy .mobile-tree-node:not(.open) .mobile-tree-content {
    display: none;
  }

  body.is-mobile-legacy .mobile-tree-content .lotterys {
    display: block !important;
    background: transparent !important;
    border: 0 !important;
    padding: 6px 0 0 !important;
  }

  body.is-mobile-legacy .mobile-tree-content #lotterys {
    display: block !important;
    overflow: visible !important;
    width: 100% !important;
    padding: 0 !important;
  }

  body.is-mobile-legacy .mobile-tree-content #lotterys a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 0 8px !important;
    min-width: 0 !important;
    border: 1px solid #d4e2fb;
    border-radius: 10px;
    background: #f3f8ff !important;
    text-decoration: none;
    padding: 8px 10px !important;
    box-sizing: border-box;
  }

  body.is-mobile-legacy .mobile-tree-content #lotterys a span {
    display: block !important;
    min-height: 0 !important;
    line-height: 1.3 !important;
    text-align: left !important;
    font-size: 13px !important;
    color: #1b3f79 !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    width: auto !important;
    flex: 1 1 auto;
  }

  body.is-mobile-legacy .mobile-tree-content #lotterys a.selected {
    border-color: #0f347e;
    background: linear-gradient(to bottom, #388bee 0%, #0f347e 100%) !important;
  }

  body.is-mobile-legacy .mobile-tree-content #lotterys a.selected span {
    color: #ffffff !important;
  }

  body.is-mobile-legacy .mobile-tree-content .setting,
  body.is-mobile-legacy .mobile-tree-content .more_game {
    display: block !important;
    margin: 0 0 8px !important;
    min-width: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid #d4e2fb;
    border-radius: 10px;
    color: #1b3f79 !important;
    background: #f3f8ff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
  }

  body.is-mobile-legacy .mobile-submenu-group {
    margin-bottom: 10px;
    border: 1px solid #d7e3fa;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
  }

  body.is-mobile-legacy .mobile-menu2-panel {
    margin: 8px 0 10px;
    border: 1px solid #d7e3fa;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
  }

  body.is-mobile-legacy .mobile-menu2-slot {
    padding: 8px;
  }

  body.is-mobile-legacy .mobile-menu2-slot .menu2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    background: transparent !important;
    border-radius: 0;
    padding: 0 !important;
    color: #1f3a65 !important;
  }

  body.is-mobile-legacy .mobile-menu2-slot .menu2 > span {
    display: block;
    min-width: 0;
  }

  body.is-mobile-legacy .mobile-menu2-slot .menu2 > ul {
    display: none !important;
  }

  body.is-mobile-legacy .mobile-menu2-slot .menu2 a {
    display: block;
    width: 100% !important;
    text-align: center;
    line-height: 1.2 !important;
    padding: 8px 4px !important;
    border-radius: 8px;
    background: #f6f9ff;
    border: 1px solid #d4e2fb;
    color: #1b3f79 !important;
    text-decoration: none;
    font-size: 12px !important;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
  }

  body.is-mobile-legacy .mobile-menu2-slot .menu2 a.mobile-menu2-active {
    color: #ffffff !important;
    background: linear-gradient(to bottom, #388bee 0%, #0f347e 100%);
    border-color: #0f347e;
  }

  body.is-mobile-legacy .mobile-menu2-slot #skinPanel {
    grid-column: 1 / -1;
    margin-top: 4px;
  }

  body.is-mobile-legacy .mobile-menu2-slot #skinPanel ul {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.is-mobile-legacy .mobile-submenu-title {
    padding: 9px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #2b4f87;
    background: #eef4ff;
    border-bottom: 1px solid #d7e3fa;
  }

  body.is-mobile-legacy .mobile-submenu-list {
    padding: 8px;
  }

  body.is-mobile-legacy .mobile-sub-item {
    display: block;
    margin-bottom: 6px;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid #d4e2fb;
    background: #f6f9ff;
    text-decoration: none;
    color: #1b3f79 !important;
    font-size: 13px;
    line-height: 1.25;
  }

  body.is-mobile-legacy .mobile-sub-item:last-child {
    margin-bottom: 0;
  }

  body.is-mobile-legacy .mobile-sub-item.selected {
    color: #ffffff !important;
    border-color: #0f347e;
    background: linear-gradient(to bottom, #388bee 0%, #0f347e 100%);
  }

  body.is-mobile-legacy .mobile-tree-content .moregame {
    position: static !important;
    display: none;
    width: 100% !important;
    margin: 0 0 8px !important;
    border: 1px solid #d5e2fb;
    border-radius: 10px;
    background: #ffffff !important;
    padding: 8px !important;
    box-sizing: border-box;
  }

  body.is-mobile-legacy .mobile-tree-content .moregame a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    color: #1b3f79 !important;
    text-decoration: none;
    background: #f6f9ff;
    margin-bottom: 6px;
  }

  body.is-mobile-legacy .mobile-tree-content .moregame a:last-child {
    margin-bottom: 0;
  }

  body.is-mobile-legacy .header .sub {
    display: none !important;
  }

  body.is-mobile-legacy .side_left .title {
    border: 0 !important;
    background: linear-gradient(to bottom, #0772df 0%, #102a6e 100%) !important;
    color: #fff !important;
    border-radius: 10px 10px 0 0;
    margin: 0 !important;
    width: 100% !important;
  }

  body.is-mobile-legacy .zhanghu {
    border: 1px solid #d7def0 !important;
    border-top: 0 !important;
    border-radius: 0 0 10px 10px;
    margin-bottom: 10px !important;
  }

  body.is-mobile-legacy .side_left .info label,
  body.is-mobile-legacy .side_left .info span {
    color: #1f3a65 !important;
  }

  body.is-mobile-legacy #main {
    background: #f3f5f9 !important;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  body.is-mobile-legacy .frame {
    border-top: 1px solid #d9e2f5;
  }

  body.is-mobile-legacy #footer {
    background: #ffffff !important;
    border-top: 1px solid #d9e2f5;
    margin-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  body.is-mobile-legacy #footer .info,
  body.is-mobile-legacy #footer .more {
    color: #1f3a65 !important;
  }

  body.is-mobile-legacy .lottery_info {
    border: 0 !important;
    border-radius: 14px;
    background: linear-gradient(to bottom, #388bee 0%, #0f347e 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(15, 52, 126, 0.15);
  }

  body.is-mobile-legacy .lottery_info .name,
  body.is-mobile-legacy #drawNumber,
  body.is-mobile-legacy #cdClose,
  body.is-mobile-legacy #cdDraw,
  body.is-mobile-legacy .lottery_info #gameName,
  body.is-mobile-legacy #header .result,
  body.is-mobile-legacy .color_lv {
    color: #fff !important;
  }

  body.is-mobile-legacy .n_anniu,
  body.is-mobile-legacy .show-result-list-btn .bcontrol {
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    margin-top: 10px;
    box-shadow: 0 8px 18px rgba(18, 51, 128, 0.08);
  }

  body.is-mobile-legacy .control .button {
    background: linear-gradient(to bottom, #388bee 0%, #0f347e 100%) !important;
    border: 0 !important;
    border-radius: 999px !important;
  }

  body.is-mobile-legacy .control .quickAmount input,
  body.is-mobile-legacy .bet_panel .amount input,
  body.is-mobile-legacy .make input,
  body.is-mobile-legacy .zje {
    border-radius: 999px;
    border: 1px solid #b5c7eb !important;
    background: #f8fbff !important;
  }

  body.is-mobile-legacy .bet_panel {
    margin-top: 10px;
  }

  body.is-mobile-legacy .bet_panel table,
  body.is-mobile-legacy .split_panel,
  body.is-mobile-legacy .box,
  body.is-mobile-legacy .lists {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(18, 51, 128, 0.08);
  }

  body.is-mobile-legacy .bet_panel .selected {
    background: #dceaff !important;
  }

  body.is-mobile-legacy .sub.main {
    background: transparent !important;
  }

  body.is-mobile-legacy #side #drawOfficial {
    display: none !important;
  }

  body.is-mobile-legacy .mobile-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1720;
    height: 62px;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    background: #ffffff;
    border-top: 1px solid #cfdcf6;
    box-shadow: 0 -8px 20px rgba(10, 29, 80, 0.12);
    box-sizing: border-box;
  }

  body.is-mobile-legacy .mobile-bottom-item {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    text-decoration: none;
    color: #294d83 !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    padding: 6px 2px;
    border-radius: 8px;
  }

  body.is-mobile-legacy .mobile-bottom-item.active {
    color: #ffffff !important;
    background: linear-gradient(to bottom, #388bee 0%, #0f347e 100%);
    box-shadow: 0 4px 10px rgba(10, 41, 116, 0.26);
  }

  body.is-mobile-legacy .mobile-bottom-item span {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.is-mobile-legacy .mobile-bottom-item.mobile-bottom-account {
    color: #294d83 !important;
    background: transparent;
  }

  body.is-mobile-legacy .checkdefault {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid #c8d9f6;
    border-radius: 999px;
    background: #f2f7ff;
  }

  body.is-mobile-legacy .checkdefault .color_lv,
  body.is-mobile-legacy .checkdefault .bold {
    color: #173f76 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
  }

  body.is-mobile-legacy .ui-dialog,
  body.is-mobile-legacy .sendtb,
  body.is-mobile-legacy .news,
  body.is-mobile-legacy .gameset {
    border: 0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(10, 29, 80, 0.22);
  }

  body.is-mobile-legacy .ui-dialog-titlebar {
    background: linear-gradient(to bottom, #0772df 0%, #102a6e 100%);
    color: #fff;
  }
}
