@font-face {
  font-family: FangSongLocal;
  src: url('/assets/static/fonts/fangsong.ttf');
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f7f7f7;
  color: #3a302c;
  font-family: FangSongLocal, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

button,
input {
  font: inherit;
}

.phone {
  width: min(100vw, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: linear-gradient(#f7e5b6, #d9a739);
  padding-bottom: 92px;
  overflow: hidden;
}

.login-page {
  width: min(100vw, 430px);
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 32px 54px;
  overflow: hidden;
}

.login-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-form {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 30px 26px 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.login-form h1 {
  margin: 0 0 24px;
  font-size: 24px;
}

.login-form input {
  width: 100%;
  height: 52px;
  border: 0;
  border-bottom: 1px solid #eee2d7;
  margin-bottom: 10px;
  font-size: 17px;
  outline: none;
  background: transparent;
}

.login-form button,
.modal-ok,
.password button {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 28px;
  color: white;
  background: #244fb6;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(30, 70, 160, 0.28);
}

.login-form p {
  text-align: center;
  margin: 18px 0 0;
}

.login-form b {
  color: #d82121;
}

.screen {
  min-height: 100vh;
}

.home {
  padding: 32px 14px 22px;
}

.poster {
  height: 254px;
  border-radius: 8px;
  overflow: hidden;
  background: #123;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.poster img,
.wide-banner,
.tudou img {
  width: 100%;
  display: block;
}

.notice {
  height: 38px;
  margin: 10px 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  padding: 8px 16px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 10px 0 18px;
}

.quick {
  border: 0;
  border-radius: 8px;
  min-height: 68px;
  color: white;
  background: linear-gradient(180deg, #315ec6, #173779);
  font-size: 15px;
}

.card {
  background: #fffdf8;
  border-radius: 14px;
  margin: 14px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(102, 73, 20, 0.14);
}

.news-card h2,
.explain h2,
.steps h2,
.feature-card h2 {
  margin: 0 0 14px;
  color: #183e9d;
  text-align: center;
  font-size: 22px;
}

.news-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #eee4d5;
}

.news-item img {
  width: 112px;
  height: 76px;
  object-fit: cover;
  border-radius: 6px;
}

.news-item strong {
  display: block;
  line-height: 1.35;
  font-size: 18px;
  font-weight: 500;
}

.news-item time {
  display: block;
  margin-top: 20px;
  color: #a58f7d;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.58);
  padding: 20px;
}

.modal {
  width: min(390px, 100%);
  max-height: 86vh;
  overflow: auto;
  border-radius: 18px;
  background: white;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eadfd6;
  padding: 18px;
}

.modal-head h3 {
  margin: 0;
  font-size: 22px;
}

.modal-head button {
  border: 0;
  background: transparent;
  color: #8a776c;
  font-size: 32px;
}

.modal-body {
  padding: 16px 18px;
  font-size: 19px;
  line-height: 1.55;
}

.modal-body img {
  width: 100% !important;
  height: auto !important;
  border-radius: 8px;
}

.modal-ok {
  width: calc(100% - 36px);
  margin: 12px 18px 20px;
}

.withdraw-modal .modal-body label {
  display: block;
  color: #8d7b6d;
  margin-bottom: 8px;
}

.withdraw-modal .modal-body > strong {
  display: block;
  color: #244ea9;
  font-size: 28px;
  margin-bottom: 14px;
}

.withdraw-input {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 10px;
}

.withdraw-input input {
  min-width: 0;
  height: 44px;
  border: 1px solid #eadfd6;
  border-radius: 8px;
  padding: 0 10px;
}

.withdraw-input button,
.withdraw-actions button {
  border: 0;
  border-radius: 8px;
  background: #244fb6;
  color: #fff;
}

.withdraw-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 18px 18px;
}

.withdraw-actions button {
  height: 44px;
}

.withdraw-actions button:first-child {
  background: #e9e0d8;
  color: #6b5a4e;
}

.gold-screen {
  background: linear-gradient(#1e3f92 0, #1e3f92 70px, #efd787 260px, #d8a538 100%);
  padding-top: 26px;
}

.page-title {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  font-size: 22px;
}

.page-title span {
  color: #f7d77a;
}

.wide-banner {
  height: auto;
  margin-top: 0;
}

.info-table {
  background: #fffaf6;
  border: 1px solid #efe1d6;
}

.row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid #efe8df;
  font-size: 18px;
}

.row:last-child {
  border-bottom: 0;
}

.row span {
  color: #9a8173;
}

.row strong {
  text-align: right;
  font-weight: 500;
}

.blue {
  color: #244ea9;
}

.explain {
  font-size: 20px;
  line-height: 1.45;
}

.progress-card {
  position: relative;
}

.amount-label {
  color: #9b8675;
}

.amount {
  margin: 8px 0 12px;
  color: #214aa4;
  font-size: 34px;
  font-weight: 800;
}

.status-pill {
  position: absolute;
  right: 18px;
  top: 24px;
  color: white;
  background: #2b55b7;
  border-radius: 18px;
  padding: 6px 14px;
}

.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  margin: 16px 0;
}

.step i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #254fb4;
  color: white;
  font-style: normal;
}

.step b {
  color: #244ea9;
  font-size: 19px;
}

.step p {
  margin: 4px 0 0;
  line-height: 1.45;
}

.contract-screen {
  background: linear-gradient(#1e3f92 0, #1e3f92 74px, #efd787 220px, #d8a538);
  padding-top: 26px;
}

.contract-paper {
  margin: 14px;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.contract-paper img {
  width: 100%;
  display: block;
}

.sign-area {
  padding: 18px 24px 24px;
  font-size: 18px;
}

.sign-area b {
  display: block;
  text-align: right;
  font-size: 26px;
}

.sign-area span {
  display: inline-block;
  color: #0a9d4d;
  font-size: 22px;
}

.mine {
  padding: 42px 14px 110px;
  background: linear-gradient(#fbefc5, #daa83b);
}

.profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 4px 20px;
}

.profile img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
}

.profile h1 {
  margin: 0;
  font-size: 26px;
}

.profile h1 span {
  margin-left: 10px;
  border-radius: 12px;
  background: #d2eeb5;
  color: #20a766;
  padding: 4px 10px;
  font-size: 14px;
}

.profile p {
  margin: 8px 0 0;
  color: #9e8878;
  font-size: 18px;
}

.credit {
  margin: 0 4px 24px;
  position: relative;
}

.credit div {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.credit span {
  background: #c7efcf;
  color: #29b765;
  border-radius: 12px;
  padding: 3px 10px;
}

.credit strong {
  float: right;
  color: #23ad61;
  font-size: 28px;
}

.credit small {
  color: #9f9387;
  font-size: 15px;
}

.credit i {
  display: block;
  height: 8px;
  margin-top: 14px;
  border-radius: 6px;
  background: #3cc667;
}

.balance-card {
  margin: 14px 0;
  border-radius: 10px;
  padding: 22px;
  background: linear-gradient(135deg, #2e59c1, #18316e);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.balance-card div {
  display: flex;
  justify-content: space-between;
  color: #cbd8ff;
  font-size: 18px;
}

.balance-card p {
  margin: 0;
}

.balance-card button {
  margin-left: 10px;
  border: 1px solid rgba(255, 232, 156, 0.7);
  border-radius: 18px;
  background: transparent;
  color: #f5dc88;
  padding: 4px 14px;
}

.balance-card strong {
  display: block;
  margin-top: 18px;
  font-size: 34px;
  letter-spacing: 1px;
}

.mine-banner {
  display: block;
  width: 100%;
  border-radius: 10px;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.feature-card {
  margin: 22px 0;
}

.feature-card h2 {
  text-align: left;
  color: #332a24;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 24px;
}

.feature {
  border: 0;
  background: transparent;
  color: #4b3a31;
  font-size: 16px;
}

.feature img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
}

.logout {
  width: 100%;
  height: 50px;
  border-radius: 25px;
  border: 1px solid #224aa5;
  background: white;
  color: #224aa5;
  font-size: 20px;
}

.sub-page {
  min-height: 100vh;
  padding: 24px 14px 110px;
}

.back {
  position: absolute;
  margin-top: 5px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 38px;
}

.bank-card {
  margin: 16px 10px;
  padding: 24px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #325bc0, #183570);
}

.bank-card h2 {
  margin: 0 0 24px;
}

.bank-card h2 span {
  float: right;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 12px;
  font-size: 15px;
}

.bank-card strong {
  font-size: 25px;
}

.locked,
.empty {
  margin: 20px 14px;
  border-radius: 12px;
  background: #fffaf6;
  padding: 22px;
  text-align: center;
  font-size: 18px;
}

.id-images {
  padding: 0 14px;
}

.id-images p {
  margin: 10px 2px 6px;
  color: #244ea9;
  font-size: 18px;
}

.id-images img {
  width: 100%;
  display: block;
  margin-bottom: 14px;
  border-radius: 10px;
}

.verify-done h2 {
  margin: 0 0 14px;
  color: #20a766;
  text-align: center;
}

.verify-done h3,
.fund-tabs b {
  color: #244ea9;
}

.tudou {
  padding: 24px 14px 110px;
  background: #092d70;
}

.tudou img {
  border-radius: 14px;
}

.tudou button {
  width: 100%;
  height: 52px;
  margin-top: 16px;
  border: 0;
  border-radius: 26px;
  color: #17387d;
  background: linear-gradient(#ffe9a1, #daa637);
  font-size: 20px;
  font-weight: 700;
}

.download-list {
  text-align: left;
}

.download-list h2 {
  margin: 0 0 12px;
  color: #17387d;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border-bottom: 1px solid #eee4d5;
}

.download-row button,
.download-list button,
.appdown button,
.team-head button,
.lottery-panel button {
  border: 0;
  border-radius: 18px;
  padding: 8px 18px;
  color: white;
  background: #244fb6;
}

.appdown {
  text-align: center;
  font-size: 18px;
}

.appdown .big-icon {
  margin: 18px auto;
  font-size: 64px;
}

.rich {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.7;
  color: #333;
}

.rich h1 {
  margin: 0 0 10px;
  font-size: 22px;
}

.rich time {
  display: block;
  color: #9b8a78;
  margin-bottom: 12px;
}

.rich img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 8px 0;
}

.webview {
  text-align: center;
}

.webview img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 10px;
}

.team-head {
  text-align: center;
}

.team-head p {
  font-size: 20px;
}

.team-head button {
  margin: 6px;
}

.team-table div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: #244ea9;
}

.team-table p,
.empty-inline {
  text-align: center;
  color: #9b8a78;
}

.receipt-paper {
  position: relative;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.receipt-paper h1 {
  margin: 6px 0 0;
  text-align: center;
  color: #17387d;
}

.receipt-paper > p {
  margin: 4px 0 18px;
  text-align: center;
  color: #8a8f99;
}

.receipt-logo {
  width: 58px;
  display: block;
  margin: 0 auto;
}

.stamp {
  position: absolute;
  right: 18px;
  bottom: 42px;
  width: 98px;
  opacity: 0.82;
}

.receipt-paper small {
  display: block;
  margin-top: 14px;
  color: #999;
  text-align: center;
}

.receipt-tips {
  line-height: 1.6;
}

.lottery-panel {
  text-align: center;
}

.win-list {
  max-height: 156px;
  overflow: hidden;
  margin: 10px 0 16px;
  color: #6a5545;
}

.win-list p {
  margin: 6px 0;
}

.prize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.prize-grid div {
  min-height: 92px;
  border: 1px solid #f1dfbf;
  border-radius: 10px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px;
}

.prize-grid span {
  font-size: 24px;
}

.password input {
  display: block;
  width: 100%;
  height: 48px;
  margin-bottom: 14px;
  border: 1px solid #ecdfd0;
  border-radius: 8px;
  padding: 0 12px;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  width: min(100vw, 430px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 74px;
  background: #09245b;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}

.tabbar button {
  border: 0;
  background: transparent;
  color: #8a887c;
  font-size: 14px;
}

.tabbar button.active {
  color: #ffe777;
}

.tabbar img {
  width: 30px;
  height: 30px;
  display: block;
  margin: 8px auto 2px;
  object-fit: contain;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  z-index: 99;
  background: rgba(0, 0, 0, 0.78);
  color: white;
  border-radius: 18px;
  padding: 9px 16px;
}
