/* 本轮审查修正：仅作用于新版业务页面，保留已有主题与业务状态。 */
body.redesign-page { --bottom-nav-height: 64px; }
.redesign-page main {
  padding-bottom: calc(var(--bottom-nav-height) + 24px + env(safe-area-inset-bottom));
}
/* 底栏仅显示图标；链接的 aria-label 保留完整功能名称。 */
.redesign-page .wealth-navigation {
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
}
.redesign-page .wealth-navigation .wealth-nav-item {
  min-height: 50px; padding: 6px 0; gap: 0; color: var(--text);
  display: flex; justify-content: center; align-items: center; background: transparent;
}
.redesign-page .wealth-nav-item .icon { width: 28px; height: 28px; }
.redesign-page .wealth-navigation .wealth-nav-item[aria-current="page"] { color: var(--warning); }
.redesign-page .wealth-nav-item[aria-current="page"]::after { bottom: 0; width: 22px; height: 2px; }
.redesign-page .income-modal-backdrop,
.redesign-page:has(.wealth-navigation) .checkout-backdrop {
  bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
}
/* 页眉控件视觉紧凑，实际按钮与返回链接均保留四十四像素点击高度。 */
/* 悬停底色与图标共用完整按钮盒，覆盖旧版靠左排版。 */
.redesign-page .header .menu-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  width: 44px; min-width: 44px; min-height: 44px; height: 44px; padding: 0;
}
.redesign-page .header [data-ui="button"].wallet-button {
  position: relative; min-height: 44px; height: 44px; border: 0; background: transparent;
  padding: 4px 8px; font-size: 11px;
}
.redesign-page .header .wallet-button::before {
  content: ''; position: absolute; inset: 7px 0; border: 1px solid var(--muted);
  border-radius: 9px; pointer-events: none;
}
.redesign-page .header-back { min-height: 44px; }
.redesign-page :is(button,a,input,summary,select):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
/* 资产库共享标签行；代币卡展示实际关联作品与独立字段。 */
.redesign-page .collection-back { min-height: 36px; margin: 0; font-size: 12px; }
.redesign-page .collection-back > .icon { transform: none; }
.redesign-page .collection-heading { margin-top: 2px; margin-bottom: 14px; }
.redesign-page .collection-tabs {
  margin: 10px 0 14px; border: 0; border-bottom: 1px solid var(--border);
  border-radius: 0; background: transparent;
}
.redesign-page .collection-tabs a { border-radius: 0; background: transparent; }
.redesign-page .collection-tabs a[aria-current] { background: transparent; }
.redesign-page .collection-list-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px;
}
.redesign-page .collection-list-heading h2 { font-size: 14px; }
.redesign-page .collection-sort { width: auto; max-width: 58%; }
.redesign-page #collection-sort { border-color: transparent; background: transparent; }
.redesign-page .account-token-collection {
  display: flex; flex-direction: column; min-height: calc(100vh - 130px); min-height: calc(100dvh - 130px);
}
.redesign-page .account-token-card {
  display: grid; grid-template-columns: 90px minmax(0,1fr) 16px; gap: 14px;
  align-items: center; width: 100%; padding: 14px 0; color: var(--text);
  background: transparent; border: 0; border-block: 1px solid var(--border); text-align: left;
}
.redesign-page .account-token-preview {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 90px; height: 116px; gap: 8px; border-radius: 5px;
  background: var(--surface); color: var(--muted); overflow: hidden;
}
.redesign-page .account-token-preview img { width: 100%; height: 100%; object-fit: cover; }
.redesign-page .account-token-copy { display: flex; flex-direction: column; min-width: 0; gap: 5px; }
.redesign-page .account-token-copy > strong { font-size: 17px; overflow-wrap: anywhere; }
.redesign-page .account-token-copy > span { color: var(--muted); font-size: 12px; }
.redesign-page .account-token-copy b { color: var(--text); font-weight: 400; overflow-wrap: anywhere; }
.redesign-page .account-token-source { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.redesign-page .account-token-source b { display: block; }
.redesign-page .collection-create { margin-top: auto; flex-shrink: 0; transform: translateY(20px); }
/* 持仓以三列金额、同行单位和明确起止日期减少纵向跳动。 */
.redesign-page .portfolio-summary { padding: 10px 14px; min-height: 74px; }
.redesign-page .profile-quick-actions { padding-top: 12px; margin: 12px 0 16px; gap: 8px; }
.redesign-page .profile-quick-actions > .group-heading { margin-bottom: 0; }
.redesign-page .profile-quick-actions :is(.profile-module,.community-entry,.account-row) {
  min-height: 52px; padding: 7px 11px;
}
.redesign-page .profile-module { grid-template-rows: 19px 16px; }
.redesign-page .profile-quick-actions .compact-invitation { min-height: 48px; padding: 7px 11px; }
.redesign-page .wealth-positions { margin-top: 16px; }
.redesign-page .wealth-positions .position { padding: 13px 14px; margin-bottom: 10px; }
.redesign-page .wealth-positions .position-toggle { min-height: 44px; }
.redesign-page .wealth-positions .position-title h3 { font-size: 18px; }
.redesign-page .wealth-positions .position-title .tag { padding: 3px 7px; font-size: 10px; }
.redesign-page .wealth-positions .position-values {
  gap: 8px; margin: 6px 0 0; padding: 10px 0 0; border-top: 1px solid var(--border);
}
.redesign-page .wealth-positions .position-values > div + div { padding-left: 8px; }
.redesign-page .wealth-positions .position-values strong {
  display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 3px; row-gap: 0;
  font: 550 15px/1.5 var(--font-ui); letter-spacing: -.3px; overflow-wrap: anywhere;
}
.redesign-page .wealth-positions .position-values small {
  display: inline; margin: 0; font: 9px/1.4 var(--font-ui); white-space: nowrap;
}
.redesign-page .position-progress-line { margin-top: 8px; gap: 8px; font-size: 10px; }
.redesign-page .position-progress-line > strong { font-size: 14px; }
.redesign-page .position-period {
  margin-top: 8px; padding-top: 9px; font-size: 10px; text-align: left;
}
.redesign-page .position-period > span { flex: 1; }
.redesign-page .position-period > span + span { border-left: 1px solid var(--border); padding-left: 12px; }
.redesign-page .position-period time { display: block; color: var(--text); margin-top: 2px; font-size: 11px; }
.redesign-page .wealth-positions .position-compact { margin-top: 10px; }
.redesign-page .position-compact-values { display: flex; justify-content: space-between; gap: 10px; }
.redesign-page .position-compact-values > span { font-size: 11px; color: var(--muted); }
.redesign-page .position-compact-values strong { color: var(--text); font-size: 12px; font-weight: 500; }
.redesign-page .position-compact-values small { font-size: 9px; }
/* 收益账本按日期分组，行内时间和描述对齐，金额沿右侧基线排列。 */
.redesign-page .income-table { table-layout: fixed; }
.redesign-page .income-table th:first-child { width: 68%; }
.redesign-page .income-table tr.income-date th {
  padding: 8px 10px; color: var(--muted); text-align: left; font-size: 12px;
  background: var(--surface); border-block: 1px solid var(--border);
}
.redesign-page .income-table td { padding: 10px 8px; vertical-align: middle; }
.redesign-page .income-record-main { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; }
.redesign-page .income-record-main time { font-size: 11px; margin: 0; color: var(--muted); }
.redesign-page .income-reference { display: block; font-size: 10px; overflow-wrap: anywhere; }
.redesign-page .income-table td:last-child { font-size: 13px; white-space: nowrap; }
.redesign-page .income-table td:last-child small { font-size: 9px; }
/* 交易筛选与四列记录共享列宽，成交数量与总额不再复用发行字段。 */
.redesign-page .history-filter-bar { position: static; padding: 0; margin-bottom: 14px; }
.redesign-page .history-filters {
  display: grid; grid-template-columns: repeat(3,1fr); flex: 1; gap: 0;
  border: 1px solid var(--border); border-radius: 5px; overflow: hidden;
}
.redesign-page .history-filters a {
  min-height: 36px; padding: 7px; justify-content: center; font-size: 12px; border: 0; border-radius: 0;
}
.redesign-page .history-filters a + a { border-left: 1px solid var(--border); }
.redesign-page .history-filters a[aria-current] { background: var(--selected-surface); color: var(--accent); }
.redesign-page .history-filter-bar > span { margin-left: 10px; font-size: 11px; }
.redesign-page .history-table-head,
.redesign-page .history-record summary {
  display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.7fr) minmax(0,.9fr) minmax(0,1fr);
  gap: 10px; align-items: center;
}
.redesign-page .history-table-head { font-size: 10px; padding: 8px 0; color: var(--muted); }
.redesign-page .history-table-head > span:not(:first-child) { text-align: right; }
.redesign-page .history-date { padding: 10px 0 7px; font-size: 12px; }
.redesign-page .history-record summary { min-height: 76px; padding: 10px 0; }
.redesign-page .history-identity { display: flex; align-items: center; gap: 7px; min-width: 0; }
.redesign-page .history-identity img { width: 35px; height: 42px; border-radius: 4px; object-fit: cover; }
.redesign-page .history-record-name { min-width: 0; }
.redesign-page .history-record-name strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.redesign-page .history-record-name .history-side { display: inline-flex; margin-top: 4px; font-size: 10px; }
.redesign-page .history-record-name .is-gain { color: var(--success); }
.redesign-page .history-record-name .is-loss { color: var(--danger); }
.redesign-page .history-quantity,.redesign-page .history-record-amount { font-size: 12px; text-align: right; }
.redesign-page .history-record-amount strong { font-size: 12px; }
.redesign-page .history-receipt { min-width: 0; text-align: right; font-size: 11px; }
.redesign-page .history-receipt > time { display: block; }
.redesign-page .history-receipt > span { display: inline-flex; align-items: center; gap: 2px; font-size: 9px; }
/* 创建表单使用显式必填标识、认证徽章与两级说明。 */
.redesign-page .required-label { font-size: 11px; font-weight: 400; color: var(--accent); }
.redesign-page .select-label-copy > small { display: flex; align-items: center; gap: 4px; }
.redesign-page .select-label-copy .icon { flex-shrink: 0; }
.redesign-page .launch-create-help { margin-top: 8px; padding: 7px 12px; }
.redesign-page .launch-create-help summary { min-height: 40px; font-size: 13px; }
.redesign-page .launch-create-help summary strong { display: block; font-weight: 500; }
.redesign-page .launch-create-help summary small { display: block; color: var(--muted); font-size: 10px; }
.redesign-page .launch-create-form .field-label { margin-top: 10px; margin-bottom: 5px; }
.redesign-page .launch-create-form .token-icon-upload { grid-template-columns: 100px minmax(0,1fr); gap: 14px; }
.redesign-page .launch-create-form .token-icon-preview { width: 100px; height: 94px; }
.redesign-page .launch-create-form .token-icon-actions .button { min-height: 44px; }
.redesign-page .launch-create-form .launch-confirmation { min-height: 36px; margin: 7px 0; }
.redesign-page .launch-confirmation input {
  appearance: none; width: 19px; height: 19px; border: 1px solid var(--muted); border-radius: 4px;
  background: var(--surface); display: inline-grid; place-content: center;
}
.redesign-page .launch-confirmation input:checked {
  border-color: var(--accent); background-color: var(--accent);
  background-image: url('../assets/icons/redesign/check.svg'); background-size: 16px;
  background-position: center; background-repeat: no-repeat;
}
/* 只有一个搜索图标，放在输入框末端作为提交按钮，回车也沿用原有搜索流程。 */
.redesign-page .launch-search input { padding-left: 13px; padding-right: 44px; }
.redesign-page .launch-search .button { left: auto; right: 2px; top: 2px; min-height: 36px; width: 36px;
  cursor: pointer; color: var(--muted); }
.redesign-page .launch-search .button:hover, .redesign-page .launch-search .button:focus-visible { color: var(--accent); }
.redesign-page .market-table-head { font-size: 11px; }
.redesign-page .market-table-head small { font-size: 9px; }
.redesign-page .market-movement > span { font-size: 10px; color: var(--muted); }
.redesign-page .market-name { font-size: 11px; }
.redesign-page .market-volume { font-size: 10px; color: var(--muted); }
/* 确认付款使用圆形步骤节点及逐行订单字段，不把授权态当成已授权。 */
.redesign-page .checkout-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin: 0 0 18px; }
.redesign-page .checkout-steps li {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 0; border: 0; text-align: center; color: var(--muted);
}
.redesign-page .checkout-steps li::before { content: none; }
.redesign-page .checkout-steps li:not(:last-child)::after {
  content: ''; position: absolute; top: 13px; left: calc(50% + 17px); right: calc(-50% + 17px);
  height: 1px; background: var(--border);
}
.redesign-page .checkout-step-node {
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 1px solid currentColor; border-radius: 50%; font-size: 13px;
}
.redesign-page .checkout-steps li[aria-current],.redesign-page .checkout-steps li.is-complete { color: var(--accent); }
.redesign-page .checkout-steps li.is-complete::after { background: var(--accent); }
.redesign-page .checkout-steps strong { font-size: 12px; font-weight: 500; }
.redesign-page .checkout-steps small { font-size: 10px; }
.redesign-page .checkout-confirmation-fields { margin: 0; }
.redesign-page .checkout-confirmation-fields > div {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 0; border-block-start: 1px solid var(--border); font-size: 13px;
}
.redesign-page .checkout-confirmation-fields dt { color: var(--muted); }
.redesign-page .checkout-confirmation-fields dd { display: flex; align-items: center; gap: 5px; margin: 0; text-align: right; }
.redesign-page .checkout-confirmation-fields dd strong { font-size: 16px; }
.redesign-page .checkout-address { overflow-wrap: anywhere; }
.redesign-page .checkout-note { font-size: 12px; margin: 10px 0; }
.redesign-page .purchase-currency-note { margin-block: 8px; font-size: 11px; }
.redesign-page .purchase-wallet { margin-block: 8px; padding-block: 8px; }
.redesign-page .checkbox-field { margin-block: 8px; }
.redesign-page .collection-stage { aspect-ratio: 1.12; height: auto; }
.redesign-page .collection-stage > img { object-fit: cover; }
@media (max-width: 374px) {
  .redesign-page .header .brand { font-size: 21px; }
  .redesign-page .header [data-ui="button"].wallet-button { font-size: 10px; padding-inline: 6px; }
  .redesign-page .history-table-head,.redesign-page .history-record summary { gap: 6px; }
  .redesign-page .history-identity { gap: 4px; }
  .redesign-page .history-identity img { width: 26px; height: 34px; }
  .redesign-page .history-record-name strong { font-size: 10px; }
  .redesign-page .history-quantity,.redesign-page .history-record-amount strong { font-size: 11px; }
  .redesign-page .wealth-positions .position-values strong { font-size: 13px; }
  .redesign-page .wealth-positions .position-values small { font-size: 9px; }
  .redesign-page .account-token-card { grid-template-columns: 75px minmax(0,1fr) 14px; gap: 10px; }
  .redesign-page .account-token-preview { width: 75px; height: 100px; }
}

/* 申购面板压缩重复段间距，保留金额限制和付款来源说明。 */
.redesign-page .checkout-dialog > .modal-header { margin-bottom: 12px; }
.redesign-page .checkout-content > #buy-form { margin-top: 10px; }
.redesign-page #buy-form .field-label { margin-top: 10px; margin-bottom: 5px; }
.redesign-page .purchase-currency { margin-bottom: 10px; }
.redesign-page .checkout-dialog .checkbox-field { margin: 8px 0 10px; }
