/* ==========================================================================
   基础样式 / 重置 / 排版
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-mist);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* 禁止横向溢出 */
#app, .page, .wrap { max-width: 100%; overflow-x: hidden; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--c-navy); line-height: 1.35; }
h1 { font-size: 20px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
h4 { font-size: 14px; }
p { margin: 0; }

a { color: var(--c-teal); text-decoration: none; }

button, input, select, textarea {
  font-family: inherit; font-size: inherit; color: inherit;
}
button { cursor: pointer; border: none; background: none; padding: 0; }

input, select, textarea {
  -webkit-appearance: none; appearance: none;
  background: var(--glass-bg-2);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-btn);
  padding: 10px 12px;
  width: 100%;
  color: var(--c-text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--c-teal);
  box-shadow: 0 0 0 3px rgba(0, 212, 200, .16);
}
input:disabled, select:disabled { background: rgba(255, 255, 255, .03); color: var(--c-text-faint); }
input::placeholder, textarea::placeholder { color: var(--c-text-faint); }
textarea { resize: vertical; min-height: 72px; line-height: 1.5; }
select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23667085' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5L6 6.5L11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* 滚动条（桌面） */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #D5DDE8; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* 工具类 */
.muted { color: var(--c-text-sub); }
.faint { color: var(--c-text-faint); }
.teal { color: var(--c-teal); }
.amber { color: var(--c-amber); }
.danger { color: var(--c-danger); }
.navy { color: var(--c-navy); }
.t-right { text-align: right; }
.t-center { text-align: center; }
.b { font-weight: 600; }
.sm { font-size: 13px; }
.xs { font-size: 12px; }
.xss { font-size: 11px; }
.nowrap { white-space: nowrap; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break { word-break: break-all; overflow-wrap: anywhere; }
.hide { display: none !important; }
.spacer { flex: 1; }
.row { display: flex; align-items: center; gap: var(--s-2); }
.row-start { display: flex; align-items: flex-start; gap: var(--s-2); }
.col { display: flex; flex-direction: column; }
.mt1 { margin-top: var(--s-1); } .mt2 { margin-top: var(--s-2); }
.mt3 { margin-top: var(--s-3); } .mt4 { margin-top: var(--s-4); }
.mb2 { margin-bottom: var(--s-2); } .mb3 { margin-bottom: var(--s-3); }
.mb4 { margin-bottom: var(--s-4); }
.gap2 { gap: var(--s-2); } .gap3 { gap: var(--s-3); } .gap4 { gap: var(--s-4); }

/* 金额排版 */
.amt { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -0.2px; }
.amt-lg { font-size: 28px; font-weight: 700; }
.amt-md { font-size: 18px; font-weight: 700; }
.amt-sm { font-size: 15px; font-weight: 600; }
