/* 哈佛币代售网站 · 钱包中心 */
.wallet-page { background: #f7f8fa; color: #243044; }
.wallet-page .chat-launcher { display: none; }

.wallet-header { border-bottom: 1px solid var(--line); background: #fff; }
.wallet-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.wallet-nav { display: flex; align-items: center; gap: 24px; }
.wallet-nav a { color: #666; font-size: 13px; }
.wallet-nav a:hover { color: var(--brand); }

.wallet-main { padding: 38px 0 60px; }
.wallet-hero { max-width: 760px; margin-bottom: 24px; }
.wallet-hero h1 { margin: 6px 0 10px; font-size: 38px; letter-spacing: -0.8px; }
.wallet-hero p { color: #8b97a8; font-size: 13px; line-height: 1.8; }

.wallet-login-gate {
  max-width: 540px; margin: 50px auto; padding: 36px 28px; border: 1px solid var(--line); border-radius: 18px;
  background: #fff; box-shadow: 0 18px 55px rgba(25, 35, 55, 0.08); text-align: center;
}
.wallet-gate-icon {
  display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 16px;
  background: linear-gradient(135deg, #ff6b1a, #ff5000); color: #fff; font-size: 24px; font-weight: 800;
}
.wallet-login-gate h2 { font-size: 22px; }
.wallet-login-gate p { margin: 8px 0 20px; color: #8b97a8; font-size: 12.5px; line-height: 1.8; }
.wallet-login-gate .btn { margin: 4px; }

.wallet-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.wallet-summary article {
  padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  box-shadow: 0 10px 30px rgba(25, 35, 55, 0.04);
}
.wallet-summary span { color: #8b97a8; font-size: 11.5px; }
.wallet-summary strong { display: block; margin: 7px 0 3px; color: var(--brand); font-size: 25px; letter-spacing: -0.4px; }
.wallet-summary small { color: #a6afbd; font-size: 10px; }

.wallet-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 18px; align-items: start; }
.wallet-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(25, 35, 55, 0.04); overflow: hidden; }
.wallet-side { display: flex; flex-direction: column; gap: 16px; }
.wallet-card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.wallet-card-head h2 { font-size: 17px; }
.wallet-card-head p { margin-top: 4px; color: #99a3b2; font-size: 10.5px; }

.wallet-tx-list { display: flex; flex-direction: column; }
.wallet-tx {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 13px 20px;
  border-bottom: 1px solid #f2f4f7;
}
.wallet-tx:last-child { border-bottom: 0; }
.wallet-tx-main { min-width: 0; }
.wallet-tx-main strong { display: block; color: #3a4556; font-size: 12.5px; font-weight: 600; }
.wallet-tx-main span { display: block; margin-top: 3px; color: #a0a9b7; font-size: 10.5px; line-height: 1.6; }
.wallet-tx-amount { flex: none; font-size: 14px; font-weight: 800; color: #1f9d62; }
.wallet-tx-amount.negative { color: #d64545; }
.wallet-tx-amount.neutral { color: #8b97a8; }
.wallet-tx-amount small { display: block; margin-top: 3px; color: #a0a9b7; font-size: 9px; font-weight: 400; text-align: right; }

.wallet-form { display: grid; gap: 12px; padding: 18px 20px 20px; }
.wallet-form .field input, .wallet-form .field select {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid #e5e8ee; border-radius: 9px;
  outline: none; background: #fafbfc; font-family: inherit; font-size: 12.5px;
}
.wallet-form .field input:focus, .wallet-form .field select:focus { border-color: #ffb28a; background: #fff; }
.wallet-hint { color: #a0a9b7; font-size: 10.5px; line-height: 1.7; }

.wallet-withdraw-list { display: flex; flex-direction: column; }
.wallet-withdraw {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #f2f4f7;
}
.wallet-withdraw:last-child { border-bottom: 0; }
.wallet-withdraw strong { display: block; font-size: 12px; }
.wallet-withdraw span { display: block; margin-top: 3px; color: #9aa3b0; font-size: 10px; line-height: 1.6; }
.wallet-status { flex: none; padding: 3px 7px; border-radius: 999px; font-size: 9.5px; font-weight: 700; }
.wallet-status.processing { background: #fff4dd; color: #b27912; }
.wallet-status.completed { background: #eaf9f0; color: #1f9d62; }
.wallet-status.rejected { background: #fff0f0; color: #d64545; }

.wallet-empty { padding: 28px 20px; color: #a0a9b7; font-size: 11.5px; text-align: center; }

.wallet-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200; max-width: calc(100% - 32px); padding: 10px 16px;
  border-radius: 999px; background: rgba(22, 30, 45, 0.9); color: #fff; font-size: 12px; opacity: 0;
  pointer-events: none; transform: translate(-50%, 8px); transition: opacity 0.2s ease, transform 0.2s ease;
}
.wallet-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.wallet-footer { margin-top: 0; }

@media (max-width: 980px) {
  .wallet-summary { grid-template-columns: repeat(2, 1fr); }
  .wallet-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .wallet-header-inner { min-height: 68px; }
  .wallet-nav { gap: 10px; white-space: nowrap; }
  .wallet-nav a { font-size: 11.5px; white-space: nowrap; }
  .wallet-nav a:nth-child(2) { display: none; }
  .wallet-main { padding: 24px 0 42px; }
  .wallet-hero h1 { font-size: 29px; }
  .wallet-summary { grid-template-columns: 1fr 1fr; gap: 8px; }
  .wallet-summary article { padding: 14px; }
  .wallet-summary strong { font-size: 21px; }
  .wallet-card-head, .wallet-tx, .wallet-withdraw { padding-left: 16px; padding-right: 16px; }
}
