.aip-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  overflow-y: auto;
  background: #f5f6fa;
  color: #252525;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}

.aip-page {
  min-height: 100%;
}

.aip-header {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 50px;
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.aip-header button {
  border: 0;
  background: transparent;
  color: #333;
  font-size: 14px;
}

.aip-header strong {
  font-size: 17px;
}

.aip-body {
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 14px 40px;
}

.aip-balance-card {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #252943, #49528d);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 41, 67, 0.18);
}

.aip-balance-head {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.aip-runtime-badge {
  padding: 2px 7px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 10px;
}

.aip-balance {
  display: block;
  margin: 14px 0 5px;
  font-size: 31px;
}

.aip-balance-note {
  min-height: 18px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
}

.aip-balance-sub { display: flex; gap: 18px; margin-bottom: 10px; color: rgba(255,255,255,.76); font-size: 12px; }
.aip-account-tabs { display: flex; gap: 8px; margin-top: 14px; padding-bottom: 4px; overflow-x: auto; }
.aip-account-tabs button { flex: 0 0 auto; padding: 8px 12px; border: 1px solid #e1e3ed; border-radius: 999px; background: #fff; color: #676b78; }
.aip-account-tabs button.active { border-color: #5b61dd; background: #5b61dd; color: #fff; }
.aip-tab-content { min-height: 180px; }
.aip-account-explain { margin: 0; color: #676b78; font-size: 12px; line-height: 1.75; }
.aip-ledger-list { display: grid; gap: 1px; }
.aip-ledger-list article { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f0f1f5; }
.aip-ledger-list article > div { display: grid; gap: 4px; }
.aip-ledger-list small { color: #999da8; font-size: 10px; }
.aip-entry-amount { text-align: right; white-space: nowrap; }
.aip-entry-amount.credit { color: #11875d; }
.aip-entry-amount.debit { color: #c34a42; }

.aip-funds-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.aip-recharge,
.aip-withdraw {
  min-height: 40px;
  padding: 10px 8px;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
}
.aip-recharge {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.14);
}
.aip-withdraw {
  border: 1px solid rgba(255, 213, 142, 0.52);
  background: rgba(255, 185, 76, 0.16);
}
.aip-withdraw-hint {
  display: block;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  line-height: 1.55;
}

.aip-section {
  margin-top: 14px;
  padding: 15px;
  border-radius: 14px;
  background: #fff;
}

.aip-section h2 {
  margin: 0 0 13px;
  font-size: 15px;
}

.aip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.aip-grid > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  border-radius: 10px;
  background: #f7f8fb;
}

.aip-grid span {
  color: #888;
  font-size: 11px;
}

.aip-grid b {
  font-size: 14px;
}

.aip-model-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
}

.aip-model-logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-weight: 700;
}

.aip-model-row > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.aip-model-row small,
.aip-model-row em {
  color: #888;
  font-size: 11px;
  font-style: normal;
}

.aip-reserve {
  margin: 11px 0 0;
  padding-top: 10px;
  border-top: 1px solid #eee;
  color: #888;
  font-size: 11px;
}

.aip-empty {
  padding: 12px 0;
  color: #777;
  text-align: center;
}

.aip-empty > span {
  font-size: 28px;
}

.aip-empty p {
  margin: 8px 0 3px;
  font-size: 13px;
}

.aip-empty small {
  color: #aaa;
  font-size: 11px;
}

.aip-warning {
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid #ffe0a3;
  border-radius: 12px;
  background: #fff9e9;
  color: #805b16;
}

.aip-warning b {
  font-size: 13px;
}

.aip-warning p {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.65;
}

.ai-points-menu-balance {
  margin-right: 8px;
  color: #999;
  font-size: 11px;
}

@media (min-width: 768px) {
  .aip-body {
    padding-top: 24px;
  }
}

.ai-points-account-menu-entry {
  display: grid;
  grid-template-columns: 24px 1fr auto 16px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 0;
  border-top: 1px solid #edf0f5;
  background: #fff;
  color: #17213d;
  font: inherit;
  text-align: left;
}
.ai-points-account-menu-entry > span:first-child { font-size: 17px; }
.ai-points-account-menu-entry > span:nth-child(2) { font-size: 14px; }
.ai-points-account-menu-entry small { color: #8a94a8; font-size: 11px; white-space: nowrap; }
.ai-points-account-menu-entry b { color: #9ca6b9; font-size: 20px; font-weight: 400; }


/* wallet：桌面左侧功能导航，移动端自动折叠为横向导航。 */
.aip-wallet-rail {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.aip-wallet-rail::-webkit-scrollbar { display: none; }
.aip-wallet-rail button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #e3e5ed;
  border-radius: 10px;
  background: #fff;
  color: #555b6b;
  font-size: 12px;
  text-align: left;
}
.aip-wallet-rail button span { margin-right: 6px; color: #6965d6; }
.aip-wallet-rail button.active {
  border-color: #5b61dd;
  background: #5b61dd;
  color: #fff;
  box-shadow: 0 6px 14px rgba(91,97,221,.2);
}
.aip-wallet-rail button.active span { color: #fff; }

.aip-account-switcher {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #e7e9f1;
  border-radius: 14px;
  background: #fff;
}
.aip-account-switcher b { display: block; font-size: 13px; }
.aip-account-kind-note { display: block; margin-top: 4px; color: #8b90a0; font-size: 10px; }
.aip-account-kind-actions { display: flex; gap: 5px; }
.aip-account-kind-actions button {
  padding: 7px 9px;
  border: 1px solid #e0e2ea;
  border-radius: 8px;
  background: #fff;
  color: #666c79;
  font-size: 11px;
}
.aip-account-kind-actions button.active { border-color: #5b61dd; background: #eef0ff; color: #5056c5; }
.aip-account-kind-actions em { display: block; margin-top: 2px; color: #999da8; font-size: 8px; font-style: normal; }

.aip-wallet-module {
  margin-top: 12px;
  padding: 15px;
  border: 1px solid #e5e7f0;
  border-radius: 14px;
  background: #fff;
}
.aip-module-heading { display: flex; justify-content: space-between; gap: 10px; }
.aip-module-heading b { font-size: 15px; }
.aip-module-heading p { margin: 5px 0 0; color: #777d8c; font-size: 11px; line-height: 1.55; }
.aip-module-heading > span { flex: 0 0 auto; height: fit-content; padding: 3px 6px; border-radius: 6px; background: #fff4d8; color: #9b6b0a; font-size: 10px; }
.aip-plan-grid, .aip-income-grid { display: grid; gap: 9px; margin-top: 13px; }
.aip-plan-grid { grid-template-columns: 1fr 1fr; }
.aip-income-grid { grid-template-columns: repeat(3, 1fr); }
.aip-plan-grid article, .aip-income-grid article { padding: 11px; border-radius: 10px; background: #f7f8fc; }
.aip-plan-grid b, .aip-income-grid b { font-size: 12px; }
.aip-plan-grid p, .aip-income-grid p { min-height: 34px; margin: 5px 0 9px; color: #858b99; font-size: 10px; line-height: 1.55; }
.aip-plan-grid button, .aip-income-grid button { width: 100%; min-height: 30px; border: 0; border-radius: 7px; background: #5b61dd; color: #fff; font-size: 11px; }
.aip-income-grid button:disabled { background: #d5d8e4; color: #838897; }
.aip-module-safety { margin: 11px 0 0; color: #9a6d16; font-size: 10px; line-height: 1.6; }

@media (min-width: 768px) {
  .aip-body {
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr);
    gap: 16px;
    max-width: 860px;
  }
  .aip-wallet-rail {
    position: sticky;
    top: 66px;
    display: grid;
    height: fit-content;
    margin: 0;
    overflow: visible;
  }
  .aip-wallet-rail button { width: 100%; }
}
@media (max-width: 460px) {
  .aip-account-switcher { align-items: flex-start; flex-direction: column; }
  .aip-account-kind-actions { width: 100%; }
  .aip-account-kind-actions button { flex: 1; }
  .aip-income-grid { grid-template-columns: 1fr; }
}


/* wallet+3：账号弹层仅识别个人/企业；充值、提现使用各自独立页面。 */
.wallet-account-summary { display: block !important; }
.wallet-account-profile { width: 100%; }
.wallet-account-head { display: flex; align-items: center; justify-content: space-between; color: #17213d; font-size: 15px; }
.wallet-account-head span { color: #15905b; font-size: 12px; font-weight: 600; }
.wallet-account-expiry { display: block; margin-top: 3px; color: #7d8ba3; font-size: 11px; }
.wallet-account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.wallet-account-actions button { min-height: 31px; border: 1px solid #6268d8; border-radius: 7px; background: #fff; color: #565dce; font-size: 12px; font-weight: 600; }
.wallet-account-actions button:first-child { background: #5b61dd; color: #fff; }
.aip-page.aip-flow-page .aip-wallet-rail,
.aip-page.aip-flow-page .aip-account-switcher,
.aip-page.aip-flow-page .aip-balance-card,
.aip-page.aip-flow-page .aip-account-tabs,
.aip-page.aip-flow-page .aip-tab-content { display: none; }
.aip-page.aip-flow-page .aip-body { display: block; max-width: 520px; }
.aip-page.aip-flow-page .aip-wallet-module { margin-top: 0; }


/* 独立充值 / 提现业务页：不复用账户总览布局。 */
.wallet-flow-page { min-height: 100%; background: #f6f7fb; }
.wallet-flow-body { max-width: 520px; margin: 0 auto; padding: 14px 14px 36px; }
.wallet-flow-hero { position: relative; overflow: hidden; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, #252943, #515a9a); color: #fff; box-shadow: 0 10px 24px rgba(37,41,67,.16); }
.wallet-flow-hero > div > span { display: block; color: rgba(255,255,255,.7); font-size: 12px; }
.wallet-flow-hero strong { display: block; margin-top: 7px; font-size: 30px; line-height: 1.1; }
.wallet-flow-hero em { position: absolute; top: 18px; right: 18px; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: 10px; font-style: normal; }
.wallet-flow-hero p { max-width: 290px; margin: 12px 0 0; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.6; }
.wallet-flow-section { margin-top: 12px; padding: 16px; border: 1px solid #eaebf1; border-radius: 15px; background: #fff; }
.wallet-flow-section > b { font-size: 15px; color: #242838; }
.wallet-flow-section > p { margin: 7px 0 0; color: #798093; font-size: 12px; line-height: 1.65; }
.wallet-flow-section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wallet-flow-section-title b { font-size: 15px; color: #242838; }
.wallet-flow-section-title span { padding: 3px 7px; border-radius: 999px; background: #fff3d8; color: #9b6b0a; font-size: 10px; }
.wallet-flow-primary { width: 100%; min-height: 44px; margin-top: 14px; border: 0; border-radius: 10px; background: #5b61dd; color: #fff; font-size: 14px; font-weight: 600; }
.wallet-flow-muted { background: #fbfbfd; }
.wallet-flow-text { margin-top: 10px; padding: 0; border: 0; background: transparent; color: #555dd1; font-size: 12px; }
.wallet-flow-notice { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fff7e7; color: #8d6517; }
.wallet-flow-notice b { font-size: 12px; }
.wallet-flow-notice p { margin: 5px 0 0; font-size: 11px; line-height: 1.6; }
.wallet-income-list { display: grid; gap: 1px; margin: 12px -2px 0; border-top: 1px solid #eff0f4; }
.wallet-income-list button { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; width: 100%; padding: 13px 2px; border: 0; border-bottom: 1px solid #eff0f4; background: #fff; color: #252838; text-align: left; }
.wallet-income-list button:disabled { color: #9aa0ad; }
.wallet-income-list b { font-size: 13px; }
.wallet-income-list small { grid-column: 1; color: #8e95a4; font-size: 10px; line-height: 1.45; }
.wallet-income-list i { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #777ee1; font-size: 16px; font-style: normal; }
.wallet-income-list button:disabled i { color: #a8adba; font-size: 10px; }


/* wallet+4：账户中心与收益引导，点数账本、业务收益账本、提现订单彼此隔离。 */
.aip-account-center-page { background: #f7f8fc; min-height: 100%; }
.aip-account-center { max-width: 520px; margin: 0 auto; padding: 14px 14px 36px; }
.aip-identity-card { display: grid; grid-template-columns: 24px 1fr auto 12px; align-items: center; gap: 8px; width: 100%; padding: 13px 14px; border: 0; border-radius: 14px; background: #eef0ff; color: #20263d; text-align: left; }
.aip-identity-card b { font-size: 14px; }
.aip-identity-card i, .aip-center-services i, .aip-center-records i { color: #7780d5; font-size: 20px; font-style: normal; }
.aip-identity-icon { font-size: 20px; }
.aip-test-badge { padding: 4px 7px; border-radius: 999px; background: #dce1ff; color: #4d58ca; font-size: 10px; font-style: normal; }
.aip-center-balance { margin-top: 12px; padding: 18px; border: 1px solid #e8eaf2; border-radius: 15px; background: #fff; }
.aip-center-balance > span, .aip-center-plan span { color: #7d8494; font-size: 11px; }
.aip-center-balance-value { display: block; margin-top: 7px; font-size: 31px; line-height: 1.1; }
.aip-center-balance p { margin: 9px 0 0; color: #777f91; font-size: 12px; }
.aip-center-plan { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; padding: 14px 0; border: 1px solid #e8eaf2; border-radius: 15px; background: #fff; }
.aip-center-plan > div { display: grid; gap: 6px; padding: 0 12px; border-right: 1px solid #e9ebf1; }
.aip-center-plan > div:last-child { border-right: 0; }
.aip-center-plan b { font-size: 13px; white-space: nowrap; }
.aip-center-upgrade { display: block; margin: 8px 0 0 auto; padding: 2px 0; border: 0; background: transparent; color: #5560cf; font-size: 12px; }
.aip-account-center h2 { margin: 11px 0 9px; font-size: 16px; }
.aip-center-services, .aip-center-records { overflow: hidden; border: 1px solid #e8eaf2; border-radius: 15px; background: #fff; }
.aip-center-services button { display: grid; grid-template-columns: 30px 1fr 16px; align-items: center; gap: 9px; width: 100%; padding: 13px 14px; border: 0; border-bottom: 1px solid #edf0f4; background: #fff; color: #1d2437; text-align: left; }
.aip-center-services button:last-child { border-bottom: 0; }
.aip-center-services button > span { color: #5061df; font-size: 20px; }
.aip-center-services b, .aip-center-services small { display: block; }
.aip-center-services b { font-size: 13px; }
.aip-center-services small { margin-top: 3px; color: #838a99; font-size: 10px; }
.aip-center-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.aip-center-actions button { min-height: 43px; border: 1px solid #5963da; border-radius: 10px; background: #fff; color: #5360cf; font-size: 14px; font-weight: 600; }
.aip-center-actions .primary { background: #5660d8; color: #fff; }
.aip-center-note { display: block; margin: 8px 0 13px; color: #848b99; font-size: 10px; text-align: center; }
.aip-center-records button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 42px; padding: 0 14px; border: 0; border-bottom: 1px solid #edf0f4; background: #fff; color: #252a39; font-size: 13px; text-align: left; }
.aip-center-records button:last-child { border-bottom: 0; }
.aip-center-ledger { margin-top: 12px; padding: 14px; border-radius: 14px; background: #fff; }
.aip-center-ledger h2 { margin-top: 0; }

.wallet-earnings-page .wallet-flow-body { padding-top: 14px; }
.wallet-earnings-summary { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid #e8eaf2; border-radius: 15px; background: #fff; }
.wallet-earnings-summary > div { display: grid; gap: 7px; padding: 17px 10px; border-right: 1px solid #eaecf2; text-align: center; }
.wallet-earnings-summary > div:nth-child(3) { border-right: 0; }
.wallet-earnings-summary span { color: #7c8494; font-size: 11px; }
.wallet-earnings-summary b { font-size: 18px; }
.wallet-earnings-summary button { grid-column: 1 / -1; min-height: 42px; border: 0; border-top: 1px solid #edf0f4; background: #fff; color: #5360cf; font-size: 12px; }
.wallet-onboarding { margin-top: 14px; }
.wallet-onboarding .wallet-flow-section-title button { padding: 0; border: 0; background: transparent; color: #5360cf; font-size: 12px; }
.wallet-earnings-actions { display: grid; gap: 1px; margin: 12px -16px -16px; border-top: 1px solid #edf0f4; }
.wallet-earnings-actions button { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; min-height: 66px; padding: 12px 16px; border: 0; border-bottom: 1px solid #edf0f4; background: #fff; color: #1d2437; text-align: left; }
.wallet-earnings-actions button:last-child { border-bottom: 0; }
.wallet-earnings-actions span { font-size: 14px; font-weight: 700; }
.wallet-earnings-actions small { grid-column: 1; color: #858c9b; font-size: 11px; }
.wallet-earnings-actions em { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 6px 10px; border-radius: 999px; background: #eef0ff; color: #5260ce; font-size: 12px; font-style: normal; }
.wallet-onboarding-tip { margin-top: 13px; padding: 13px 15px; border-radius: 13px; background: #eef0ff; color: #424c86; }
.wallet-onboarding-tip b { font-size: 13px; }
.wallet-onboarding-tip p { margin: 5px 0 0; font-size: 11px; line-height: 1.65; }
.wallet-earnings-ledger { margin-top: 13px; padding: 14px; border-radius: 14px; background: #fff; }
.wallet-earnings-ledger h2 { margin: 0 0 9px; font-size: 15px; }


/* 提现流程仅作引导；真实打款能力未开通时不创建订单。 */
.wallet-withdraw-start { margin-top: 13px; }
.wallet-withdraw-start:disabled { background: #d8dbe6; color: #858b9b; }
.wallet-withdraw-hero, .wallet-confirm-hero { margin-bottom: 12px; padding: 20px; border-radius: 16px; background: linear-gradient(135deg, #252943, #515a9a); color: #fff; }
.wallet-withdraw-hero span, .wallet-confirm-hero span { display: block; color: rgba(255,255,255,.72); font-size: 12px; }
.wallet-withdraw-hero strong, .wallet-confirm-hero strong { display: block; margin-top: 7px; font-size: 25px; line-height: 1.25; }
.wallet-withdraw-hero p, .wallet-confirm-hero p { margin: 10px 0 0; color: rgba(255,255,255,.75); font-size: 11px; line-height: 1.65; }
.wallet-account-picker { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; width: 100%; margin-top: 12px; padding: 12px 0 0; border: 0; border-top: 1px solid #eef0f4; background: #fff; color: #242838; text-align: left; }
.wallet-account-picker span { font-size: 13px; font-weight: 650; }
.wallet-account-picker small { grid-column: 1; color: #8a91a0; font-size: 11px; }
.wallet-account-picker i { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #6570d8; font-size: 20px; font-style: normal; }
.wallet-submit-hint { display: block; margin-top: 9px; color: #8b92a0; font-size: 10px; line-height: 1.55; text-align: center; }


/* 页内测试充值：套餐选择、确认与到账均不离开账户页。 */
.wallet-recharge-select { margin-top: 14px; }
.wallet-recharge-packages { display: grid; gap: 9px; margin-top: 13px; }
.wallet-recharge-loading, .wallet-recharge-empty { margin: 0; padding: 14px 0 4px; color: #838b9a; font-size: 12px; text-align: center; }
.wallet-recharge-package { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 66px; padding: 12px 13px; border: 1px solid #e5e8f2; border-radius: 12px; background: #fff; color: #202637; text-align: left; transition: border-color .18s, background .18s; }
.wallet-recharge-package.selected { border-color: #5965e8; background: #f5f6ff; box-shadow: 0 0 0 2px rgba(89,101,232,.10); }
.wallet-recharge-package span, .wallet-recharge-package strong { display: grid; gap: 4px; }
.wallet-recharge-package span b { font-size: 14px; }
.wallet-recharge-package span small { color: #858d9b; font-size: 10px; }
.wallet-recharge-package strong { justify-items: end; color: #303dce; font-size: 15px; line-height: 1.1; }
.wallet-recharge-package strong em { color: #626a7b; font-size: 12px; font-style: normal; font-weight: 500; }
.wallet-recharge-checkout { display: grid; gap: 12px; margin-top: 12px; padding: 14px; border: 1px solid #e4e7f1; border-radius: 15px; background: #fff; }
.wallet-recharge-checkout > div { display: grid; gap: 5px; }
.wallet-recharge-checkout span { color: #7f8797; font-size: 11px; }
.wallet-recharge-checkout b { color: #242a3a; font-size: 13px; }
.wallet-recharge-checkout .wallet-flow-primary { margin: 0; }
.wallet-recharge-modal[hidden], .wallet-recharge-checkout[hidden] { display: none; }
.wallet-recharge-modal { position: fixed; z-index: 20; inset: 0; display: grid; align-items: end; padding: 18px; background: rgba(21,25,40,.42); }
.wallet-recharge-modal-card { width: min(100%, 430px); margin: 0 auto; padding: 21px; border-radius: 18px; background: #fff; box-shadow: 0 16px 44px rgba(18,24,48,.20); }
.wallet-recharge-modal-card > span { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #eef0ff; color: #4d5ad1; font-size: 11px; }
.wallet-recharge-modal-card h2 { margin: 11px 0 7px; color: #1f2535; font-size: 19px; }
.wallet-recharge-modal-card p { margin: 0; color: #4e5668; font-size: 13px; line-height: 1.6; }
.wallet-recharge-modal-card > small { display: block; margin-top: 9px; color: #8a91a0; font-size: 10px; }
.wallet-recharge-modal-card > div { display: grid; grid-template-columns: 1fr 1.15fr; gap: 9px; margin-top: 18px; }
.wallet-recharge-modal-card button { min-height: 42px; border: 1px solid #dfe3f2; border-radius: 10px; background: #fff; color: #465064; font-size: 13px; font-weight: 650; }
.wallet-recharge-modal-card [data-confirm-recharge] { border-color: #5662d9; background: #5662d9; color: #fff; }
.wallet-recharge-modal-card [data-confirm-recharge]:disabled { opacity: .66; }
.wallet-recharge-success { display: grid; gap: 6px; padding: 3px 0; }
.wallet-recharge-success span { color: #2c8a5e; font-size: 12px; font-weight: 700; }
.wallet-recharge-success b { color: #202637; font-size: 22px; }
.wallet-recharge-success p { margin: 0; color: #7e8797; font-size: 11px; line-height: 1.55; }


/* wallet+5：账户与权益是“我的”中的唯一总入口；点数、订阅、收益分账展示。 */
.wallet-hub {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 14px 40px;
}
.wallet-hub-identity {
  min-height: 52px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #f0f2ff, #f8f8ff);
}
.wallet-hub-card {
  width: 100%;
  margin: 0 0 12px;
  padding: 16px;
  border: 1px solid #e4e7f2;
  border-radius: 16px;
  background: #fff;
  color: #18213e;
  box-sizing: border-box;
  text-align: left;
}
.wallet-hub-card-head {
  display: grid;
  grid-template-columns: 24px 1fr 16px;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
.wallet-hub-icon { color: #5b61dd; font-size: 19px; }
.wallet-hub-card-head b, .wallet-hub-row b, .wallet-hub-earnings b { font-size: 16px; }
.wallet-hub-card i { color: #777fe3; font-size: 21px; font-style: normal; }
.wallet-hub-points > strong {
  display: block;
  margin: 14px 0 5px;
  color: #1c2542;
  font-size: 34px;
  letter-spacing: .2px;
}
.wallet-hub-points > p { margin: 0; color: #7b849d; font-size: 12px; }
.wallet-hub-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.wallet-hub-actions button {
  min-height: 42px;
  border: 1px solid #5b61dd;
  border-radius: 10px;
  background: #fff;
  color: #535bd7;
  font-weight: 700;
}
.wallet-hub-actions button.primary { background: #5961dc; color: #fff; }
.wallet-hub-row, .wallet-hub-earnings {
  display: grid;
  grid-template-columns: 25px 1fr 16px;
  align-items: center;
  gap: 8px;
}
.wallet-hub-row span:nth-child(2), .wallet-hub-earnings span:nth-child(2) { display: grid; gap: 5px; }
.wallet-hub-row small, .wallet-hub-earnings small { color: #8a91a6; font-size: 12px; }
.wallet-hub-earnings-value { color: #252d49; font-size: 19px; }
.wallet-records-hero { padding: 16px 2px 4px; }
.wallet-records-hero b { font-size: 18px; }
.wallet-records-hero p { color: #7b8494; font-size: 12px; line-height: 1.65; }
.wallet-points-records .aip-ledger-list { margin: 0; }
@media (min-width: 768px) {
  .wallet-hub { padding-top: 28px; }
  .wallet-hub-card { max-width: 520px; }
}

/* wallet-ui-7.31.7：移动端“账户与权益”按紧凑卡片呈现；不提供底部导航。 */
.aip-account-center-page {
  background: #f7f8fc;
}
.aip-account-center-page .aip-header {
  min-height: 56px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid #edf0f5;
}
.aip-account-center-page .aip-header strong {
  font-size: 20px;
  letter-spacing: -.3px;
}
.wallet-hub {
  max-width: 420px;
  padding: 14px 16px 28px;
}
.wallet-hub-identity {
  min-height: 44px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  grid-template-columns: 20px 1fr 12px;
  gap: 7px;
  background: #f0f1ff;
}
.wallet-hub-identity .aip-identity-icon {
  font-size: 16px;
}
.wallet-hub-identity .aip-account-name {
  font-size: 13px;
}
.wallet-hub-card {
  margin: 0 0 10px;
  padding: 13px 14px;
  border-color: #e9eaf1;
  border-radius: 13px;
  box-shadow: 0 1px 2px rgba(30, 42, 82, .025);
}
.wallet-hub-card-head {
  grid-template-columns: 21px 1fr 12px;
  gap: 7px;
}
.wallet-hub-icon {
  font-size: 16px;
  color: #7278e5;
}
.wallet-hub-card-head b,
.wallet-hub-row b,
.wallet-hub-earnings b {
  font-size: 15px;
}
.wallet-hub-card i {
  font-size: 18px;
}
.wallet-hub-points > strong {
  margin: 10px 0 3px;
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: 0;
}
.wallet-hub-points > p {
  font-size: 10px;
  line-height: 1.45;
}
.wallet-hub-actions {
  gap: 7px;
  margin-top: 11px;
}
.wallet-hub-actions button {
  min-height: 36px;
  border-radius: 7px;
  font-size: 12px;
}
.wallet-hub-row {
  grid-template-columns: 21px 1fr 12px;
  gap: 7px;
  min-height: 67px;
}
.wallet-hub-row span:nth-child(2) {
  gap: 4px;
}
.wallet-hub-row small,
.wallet-hub-earnings small {
  font-size: 10px;
}
.wallet-hub-earnings {
  display: block;
  min-height: 119px;
}
.wallet-hub-earnings-head {
  display: grid;
}
.wallet-hub-earnings-value {
  display: block;
  margin-top: 9px;
  color: #202944;
  font-size: 22px;
  line-height: 1.1;
}
.wallet-hub-earnings > small {
  display: block;
  margin-top: 4px;
}
.wallet-hub-earnings-action {
  width: 100%;
  min-height: 31px;
  margin-top: 10px;
  border: 1px solid #777cf1;
  border-radius: 6px;
  background: #fff;
  color: #6269df;
  font-size: 11px;
  font-weight: 700;
}
@media (max-width: 360px) {
  .wallet-hub { padding-right: 12px; padding-left: 12px; }
  .wallet-hub-points > strong { font-size: 25px; }
}


/* wallet navigation polish: only real system routes appear in the bottom navigation. */
.wallet-hub-icon,
.aip-identity-icon,
.wallet-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wallet-hub-icon svg,
.aip-identity-icon svg,
.wallet-nav-icon svg {
  width: 1em;
  height: 1em;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wallet-hub-unavailable {
  cursor: default;
}
.wallet-hub-unavailable em {
  color: #9399aa;
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}
.wallet-hub-card {
  border-color: #eceef4;
  box-shadow: 0 1px 3px rgba(30, 42, 82, .018);
}
.wallet-hub-points > strong {
  letter-spacing: -.4px;
}
.wallet-bottom-nav {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 58px;
  padding: 5px max(12px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  border-top: 1px solid #e8eaf1;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -5px 18px rgba(31, 39, 72, .055);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}
.wallet-bottom-nav button {
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 0;
  padding: 1px 2px;
  border: 0;
  background: transparent;
  color: #858b9a;
  font-size: 10px;
  line-height: 1.2;
}
.wallet-bottom-nav .wallet-nav-icon {
  width: 21px;
  height: 21px;
  font-size: 21px;
}
.wallet-bottom-nav button.active {
  color: #5963dc;
  font-weight: 700;
}
.aip-account-center-page .wallet-hub,
.wallet-flow-page .wallet-flow-body {
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
}
/* 移动端底部导航为固定浮层，内容区按可视高度自适应加大卡片间距，避免末卡片下方留出整屏空白。 */
@media (max-width: 767px) {
  .aip-account-center-page .wallet-hub {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 6.8vh, 64px);
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }
  .aip-account-center-page .wallet-hub > * {
    margin-bottom: 0;
  }
}
@media (min-width: 768px) {
  .wallet-bottom-nav { display: none; }
  .aip-account-center-page .wallet-hub,
  .wallet-flow-page .wallet-flow-body { padding-bottom: 36px; }
}
