/* ==================================================================
   账本页 v3 · 参照「马上润·资产记账」参考图
   浅蓝背景 + 白色大圆角卡片 + 青绿进度 + 蓝色主按钮
   前缀 lv-（ledger v3），不影响其他页面
   ================================================================== */

.lv-page {
  background:
    radial-gradient(120% 55% at 50% 0%, #dff0fd 0%, #e9f6fe 45%, #f2fbff 100%) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
}

.lv-content {
  --u: clamp(14px, calc(100vw / 26.875), 22px);
  --lv-ink: #0f172a;
  --lv-ink-2: #475569;
  --lv-muted: #94a3b8;
  --lv-teal: #12b8a6;
  --lv-teal-2: #06d6a0;
  --lv-green: #10b981;
  --lv-blue: #3b8ef7;
  --lv-card: #ffffff;
  position: relative;
  min-height: 100%;
  padding: 0 calc(1.05 * var(--u)) calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  box-sizing: border-box;
}

/* ---------- 顶部 ---------- */
.lv-header {
  display: flex; align-items: center; gap: calc(.55 * var(--u));
  padding: calc(max(env(safe-area-inset-top, 0px), 14px) + .5 * var(--u)) 0 calc(.7 * var(--u));
}
.lv-logo {
  width: calc(2.2 * var(--u)); height: calc(2.2 * var(--u));
  border-radius: 50%; flex: none;
  background: linear-gradient(180deg, #7fd9f7, #38a8e8);
  display: grid; place-items: center;
  box-shadow: 0 calc(.15 * var(--u)) calc(.5 * var(--u)) rgba(56, 168, 232, .35);
}
.lv-logo svg { width: 58%; height: 58%; color: #fff; }
.lv-head-body { flex: 1 1 auto; min-width: 0; }
.lv-title {
  font-size: calc(1.16 * var(--u)); font-weight: 800; color: var(--lv-ink);
  letter-spacing: .2px; line-height: 1.2;
}
.lv-subtitle {
  margin-top: calc(.15 * var(--u));
  font-size: calc(.74 * var(--u)); color: var(--lv-muted); line-height: 1.25;
}
.lv-bell {
  position: relative; flex: none;
  width: calc(2.3 * var(--u)); height: calc(2.3 * var(--u));
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(190, 220, 240, .8);
  box-shadow: 0 calc(.1 * var(--u)) calc(.4 * var(--u)) rgba(120, 170, 200, .18);
  color: #475569;
}
.lv-bell svg { width: 52%; height: 52%; }
.lv-bell-dot {
  position: absolute; top: calc(.25 * var(--u)); right: calc(.3 * var(--u));
  width: calc(.34 * var(--u)); height: calc(.34 * var(--u));
  border-radius: 50%; background: #ff4d68;
  border: 1.5px solid #fff;
}
.lv-head-note {
  flex: none; text-align: right; line-height: 1.3;
  font-size: calc(.68 * var(--u)); color: #9db4c8;
}

/* ---------- 主卡 ---------- */
.lv-hero {
  border-radius: calc(1.35 * var(--u));
  background: var(--lv-card);
  box-shadow: 0 calc(.3 * var(--u)) calc(1.2 * var(--u)) rgba(96, 150, 190, .16), 0 calc(.05 * var(--u)) calc(.25 * var(--u)) rgba(96, 150, 190, .1);
  padding: calc(1.05 * var(--u)) calc(1.05 * var(--u)) calc(.9 * var(--u));
  margin-bottom: calc(.9 * var(--u));
}
.lv-hero-top {
  display: flex; align-items: center; justify-content: space-between;
}
.lv-hero-label {
  display: flex; align-items: center; gap: calc(.22 * var(--u));
  font-size: calc(.84 * var(--u)); color: var(--lv-ink-2); font-weight: 600;
}
.lv-eye {
  color: var(--lv-muted); display: grid; place-items: center;
  width: calc(1.3 * var(--u)); height: calc(1.3 * var(--u));
}
.lv-eye svg { width: 100%; height: 100%; }
.lv-detail-link {
  display: flex; align-items: center; gap: calc(.1 * var(--u));
  font-size: calc(.76 * var(--u)); color: var(--lv-muted);
}
.lv-detail-link svg { width: calc(.7 * var(--u)); height: calc(.7 * var(--u)); }

.lv-amount {
  display: block; margin: calc(.45 * var(--u)) 0 calc(.8 * var(--u));
  font-size: calc(1.95 * var(--u)); font-weight: 900; color: var(--lv-ink);
  letter-spacing: -.5px; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.lv-amount small { font-size: .55em; font-weight: 800; margin-right: .06em; }

/* 已回本 / 待回本 两栏 */
.lv-dual {
  display: flex; position: relative;
  padding: calc(.55 * var(--u)) 0 calc(.7 * var(--u));
}
.lv-dual::after {
  content: ''; position: absolute; left: 50%; top: 10%; height: 80%; width: 1px;
  background: rgba(210, 225, 238, .9);
}
.lv-dual-cell { flex: 1; }
.lv-dual-cell:last-child { padding-left: calc(.9 * var(--u)); }
.lv-dual-label { font-size: calc(.78 * var(--u)); color: var(--lv-muted); }
.lv-dual-val {
  margin-top: calc(.18 * var(--u));
  font-size: calc(1.25 * var(--u)); font-weight: 900; color: var(--lv-ink);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.lv-dual-val.teal { color: var(--lv-teal); }

/* 回本进度 */
.lv-progress-row {
  display: flex; align-items: center; gap: calc(.5 * var(--u));
  padding: calc(.5 * var(--u)) 0 calc(.65 * var(--u));
  border-bottom: 1px solid rgba(226, 238, 248, .95);
}
.lv-progress-label {
  flex: none; font-size: calc(.78 * var(--u)); color: var(--lv-ink-2); font-weight: 600;
}
.lv-bar {
  flex: 1 1 auto; position: relative;
  height: calc(.78 * var(--u)); border-radius: 9999px;
  background: #e6eef6; overflow: hidden;
}
.lv-bar-fill {
  position: absolute; inset: 0 auto 0 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--lv-teal), var(--lv-teal-2));
  box-shadow: 0 0 calc(.4 * var(--u)) rgba(18, 184, 166, .45);
  transition: width .55s cubic-bezier(.22,.61,.36,1);
}
.lv-bar-pct {
  flex: none; min-width: calc(2.8 * var(--u)); text-align: right;
  font-size: calc(.82 * var(--u)); font-weight: 800; color: var(--lv-ink);
  font-variant-numeric: tabular-nums;
}

/* 底栏：收益率 / 项目数 */
.lv-foot {
  display: flex; padding-top: calc(.6 * var(--u));
}
.lv-foot-cell {
  flex: 1; display: flex; align-items: center; gap: calc(.3 * var(--u));
}
.lv-foot-cell + .lv-foot-cell {
  padding-left: calc(.8 * var(--u));
  border-left: 1px solid rgba(226, 238, 248, .95);
}
.lv-foot-ico { color: var(--lv-teal); display: grid; place-items: center; flex: none; }
.lv-foot-ico svg { width: calc(.95 * var(--u)); height: calc(.95 * var(--u)); }
.lv-foot-label { font-size: calc(.76 * var(--u)); color: var(--lv-muted); }
.lv-foot-val {
  font-size: calc(.94 * var(--u)); font-weight: 800; color: var(--lv-ink);
  font-variant-numeric: tabular-nums;
}
.lv-foot-val.up { color: var(--lv-green); }
.lv-foot-val.down { color: #ef4444; }

/* ---------- 区块标题 ---------- */
.lv-sec {
  display: flex; align-items: center; justify-content: space-between;
  margin: calc(.85 * var(--u)) 0 calc(.6 * var(--u));
}
.lv-sec-left { display: flex; flex-direction: column; gap: calc(.12 * var(--u)); }
.lv-sec-title {
  display: flex; align-items: center; gap: calc(.3 * var(--u));
  font-size: calc(1.05 * var(--u)); font-weight: 900; color: var(--lv-ink);
  letter-spacing: .2px;
}
.lv-sec-title svg { width: calc(1.05 * var(--u)); height: calc(1.05 * var(--u)); color: var(--lv-teal); }
.lv-sec-sub { font-size: calc(.74 * var(--u)); color: var(--lv-muted); padding-left: calc(1.5 * var(--u)); }
.lv-add {
  display: flex; align-items: center; gap: calc(.18 * var(--u));
  height: calc(1.85 * var(--u)); padding: 0 calc(.85 * var(--u));
  border-radius: 9999px; border: 0;
  background: linear-gradient(180deg, #4fa4ff, #2d7ef0);
  color: #fff; font-size: calc(.84 * var(--u)); font-weight: 800;
  box-shadow: 0 calc(.18 * var(--u)) calc(.55 * var(--u)) rgba(45, 126, 240, .35);
}
.lv-add svg { width: calc(.85 * var(--u)); height: calc(.85 * var(--u)); }
.lv-add:active { transform: scale(.97); }

/* ---------- 项目卡 ---------- */
.lv-list { display: flex; flex-direction: column; gap: calc(.65 * var(--u)); }

.lv-card {
  border-radius: calc(1.1 * var(--u));
  background: var(--lv-card);
  box-shadow: 0 calc(.22 * var(--u)) calc(.9 * var(--u)) rgba(96, 150, 190, .14), 0 calc(.03 * var(--u)) calc(.2 * var(--u)) rgba(96, 150, 190, .08);
  padding: calc(.8 * var(--u)) calc(.85 * var(--u)) calc(.75 * var(--u));
  cursor: pointer;
}
.lv-card:active { transform: scale(.995); }

.lv-card-head { display: flex; align-items: flex-start; gap: calc(.5 * var(--u)); }
.lv-card-icon {
  width: calc(2.1 * var(--u)); height: calc(2.1 * var(--u));
  border-radius: calc(.7 * var(--u)); flex: none;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #dbeafe, #bfdbfe);
}
.lv-card-icon svg { width: 58%; height: 58%; color: #3b82f6; }
.lv-card-icon.amber { background: linear-gradient(160deg, #fef3c7, #fde68a); }
.lv-card-icon.amber svg { color: #d97706; }
.lv-card-icon.violet { background: linear-gradient(160deg, #ede9fe, #ddd6fe); }
.lv-card-icon.violet svg { color: #7c3aed; }
.lv-card-main { flex: 1 1 auto; min-width: 0; }
.lv-card-name {
  font-size: calc(1.06 * var(--u)); font-weight: 900; color: var(--lv-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lv-tags { display: flex; flex-wrap: wrap; gap: calc(.28 * var(--u)); margin-top: calc(.3 * var(--u)); }
.lv-tag {
  font-size: calc(.68 * var(--u)); font-weight: 700; line-height: 1;
  padding: calc(.26 * var(--u)) calc(.48 * var(--u)); border-radius: calc(.32 * var(--u));
}
.lv-tag.green { color: #0f9f6e; background: #dcfce7; }
.lv-tag.blue { color: #2563eb; background: #dbeafe; }
.lv-tag.amber { color: #b45309; background: #fef3c7; }
.lv-card-arrow { flex: none; color: #cbd5e1; display: grid; place-items: center; padding-top: calc(.15 * var(--u)); }
.lv-card-arrow svg { width: calc(.95 * var(--u)); height: calc(.95 * var(--u)); }

/* 三栏指标 */
.lv-metrics {
  display: flex; margin-top: calc(.7 * var(--u));
}
.lv-metric { flex: 1; min-width: 0; }
.lv-metric-label { font-size: calc(.72 * var(--u)); color: var(--lv-muted); }
.lv-metric-val {
  margin-top: calc(.15 * var(--u));
  font-size: calc(.95 * var(--u)); font-weight: 800; color: var(--lv-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lv-metric-val.up { color: var(--lv-green); }
.lv-metric-val.down { color: #ef4444; }

/* 卡片进度 */
.lv-card-prog { display: flex; align-items: center; gap: calc(.45 * var(--u)); margin-top: calc(.55 * var(--u)); }
.lv-card-prog-label { flex: none; font-size: calc(.72 * var(--u)); color: var(--lv-muted); }
.lv-card-bar { flex: 1 1 auto; height: calc(.55 * var(--u)); border-radius: 9999px; background: #e6eef6; overflow: hidden; }
.lv-card-bar > i {
  display: block; height: 100%; border-radius: 9999px;
  background: linear-gradient(90deg, #5eb8f0, var(--lv-teal-2));
  transition: width .5s ease;
}
.lv-card-pct { flex: none; font-size: calc(.76 * var(--u)); font-weight: 800; color: var(--lv-ink); font-variant-numeric: tabular-nums; }

/* 空态 */
.lv-empty {
  display: flex; flex-direction: column; align-items: center; gap: calc(.35 * var(--u));
  padding: calc(2.2 * var(--u)) calc(1 * var(--u));
  background: #fff; border-radius: calc(1.1 * var(--u));
  box-shadow: 0 calc(.22 * var(--u)) calc(.9 * var(--u)) rgba(96, 150, 190, .12);
}
.lv-empty svg { width: calc(2.4 * var(--u)); height: calc(2.4 * var(--u)); color: #cbd5e1; }
.lv-empty b { font-size: calc(.9 * var(--u)); color: var(--lv-ink-2); }
.lv-empty span { font-size: calc(.74 * var(--u)); color: var(--lv-muted); }

/* 宽屏（浏览器）收窄居中，保持卡片比例 */
@media (min-width: 640px) {
  .lv-content { max-width: 640px; margin: 0 auto; }
}

/* ---------- 账本页底部 tabbar（青绿胶囊，参照参考图） ---------- */
.tabbar.lv-tabbar {
  max-width: 640px !important;
  background: rgba(255,255,255,.97) !important;
  border-top: 1px solid rgba(226,238,248,.95) !important;
  box-shadow: 0 -3px 14px rgba(96,150,190,.09) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.tabbar.lv-tabbar .tab-item {
  color: #94a3b8 !important;
  padding: 7px 16px !important;
  border-radius: 16px !important;
  transition: all .18s ease;
}
.tabbar.lv-tabbar .tab-item.active {
  color: #0e9f8e !important;
  background: #e3f8f4;
}
.tabbar.lv-tabbar .tab-item.active .tab-label {
  color: #0e9f8e !important;
  font-weight: 700;
}
.tabbar.lv-tabbar .tab-item.active::after { display: none !important; }
.tabbar.lv-tabbar .tab-item.active::before { display: none !important; }

/* ==================================================================
   详情页 lv-detail：把水感主题覆盖为浅蓝白卡（不动 DOM/id）
   ================================================================== */
.lv-page.lv-detail,
#page-detail.lv-detail {
  background:
    radial-gradient(120% 50% at 50% 0%, #dff0fd 0%, #eaf6fe 45%, #f3fbff 100%) !important;
  background-image:
    radial-gradient(120% 50% at 50% 0%, #dff0fd 0%, #eaf6fe 45%, #f3fbff 100%) !important;
}
#page-detail.lv-detail .page-content {
  --u: clamp(14px, calc(100vw / 26.875), 22px);
  padding: 0 calc(1.05 * var(--u)) calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  max-width: 640px;
  margin: 0 auto;
}
/* 顶部导航 */
#page-detail.lv-detail .nav-header {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#page-detail.lv-detail .nav-title { color: #0f172a !important; font-size: calc(.95 * var(--u)) !important; font-weight: 800 !important; }
#page-detail.lv-detail .nav-btn { color: #0f172a !important; }

/* 项目信息卡 */
#page-detail.lv-detail .lg-detail-basin {
  background: #fff !important;
  border-radius: calc(1.35 * var(--u)) !important;
  box-shadow: 0 calc(.3 * var(--u)) calc(1.2 * var(--u)) rgba(96, 150, 190, .16) !important;
  border: 0 !important;
  padding: calc(1 * var(--u)) !important;
  margin-top: calc(.4 * var(--u)) !important;
  background-image: none !important;
}
#page-detail.lv-detail .lg-detail-name { color: #0f172a !important; font-size: calc(.92 * var(--u)) !important; font-weight: 900 !important; }
#page-detail.lv-detail .lg-detail-badge { background: #dcfce7 !important; color: #0f9f6e !important; border: 0 !important; }
#page-detail.lv-detail .lg-detail-cell span { color: #94a3b8 !important; font-size: calc(.56 * var(--u)) !important; }
#page-detail.lv-detail .lg-detail-cell b { color: #0f172a !important; font-size: calc(1 * var(--u)) !important; }
#page-detail.lv-detail .lg-detail-cell:nth-of-type(2) b,
#page-detail.lv-detail #detailTotalRepaid { color: #12b8a6 !important; }
#page-detail.lv-detail .lg-detail-divider { background: rgba(226, 238, 248, .95) !important; }
#page-detail.lv-detail .gold-glow-text { color: #12b8a6 !important; text-shadow: none !important; }

/* 进度卡 */
#page-detail.lv-detail .card {
  background: #fff !important;
  border-radius: calc(1.1 * var(--u)) !important;
  box-shadow: 0 calc(.22 * var(--u)) calc(.9 * var(--u)) rgba(96, 150, 190, .14) !important;
  border: 0 !important;
  margin-top: calc(.7 * var(--u)) !important;
}
#page-detail.lv-detail #detailProgressCircle { stroke: #12b8a6 !important; }
#page-detail.lv-detail #detailProgressPercent { color: #12b8a6 !important; }
#page-detail.lv-detail #detailProgressBar { background: linear-gradient(90deg, #12b8a6, #06d6a0) !important; }
#page-detail.lv-detail .bg-gray-100 { background: #e6eef6 !important; }
#page-detail.lv-detail .lg-detail-profit-row span { color: #94a3b8 !important; }

/* 按钮 */
#page-detail.lv-detail .btn-primary {
  background: linear-gradient(180deg, #4fa4ff, #2d7ef0) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 9999px !important;
  box-shadow: 0 calc(.18 * var(--u)) calc(.55 * var(--u)) rgba(45, 126, 240, .3) !important;
  font-weight: 800 !important;
}
#page-detail.lv-detail .btn-outline {
  background: #fff !important;
  color: #2563eb !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
}
#page-detail.lv-detail .btn-secondary-icon {
  background: #fff !important;
  border: 1px solid rgba(226, 238, 248, .95) !important;
  border-radius: calc(.9 * var(--u)) !important;
  color: #475569 !important;
  box-shadow: 0 calc(.1 * var(--u)) calc(.4 * var(--u)) rgba(96, 150, 190, .1) !important;
}
#page-detail.lv-detail .btn-danger-outline {
  background: #fff5f5 !important;
  color: #ef4444 !important;
  border: 1px solid #fecaca !important;
  border-radius: 9999px !important;
}
#page-detail.lv-detail h3 { color: #0f172a !important; font-weight: 800 !important; }
#page-detail.lv-detail .text-primary-500 { color: #2d7ef0 !important; }
#page-detail.lv-detail .text-gray-400 { color: #94a3b8 !important; }

/* 详情页：盖掉 .lg-water .page-content 的深青背景与其伪元素水波 */
#page-detail.lv-detail .page-content {
  background: radial-gradient(120% 50% at 50% 0%, #dff0fd 0%, #eaf6fe 45%, #f3fbff 100%) !important;
  background-image: radial-gradient(120% 50% at 50% 0%, #dff0fd 0%, #eaf6fe 45%, #f3fbff 100%) !important;
  color: #0f172a !important;
}
#page-detail.lv-detail .page-content::before,
#page-detail.lv-detail .page-content::after { display: none !important; }
/* 项目卡内数字：去掉可能造成糊块的滤镜 */
#page-detail.lv-detail .lg-detail-basin,
#page-detail.lv-detail .lg-detail-basin * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  text-shadow: none !important;
}

/* 详情页数字对比度（覆盖水感主题的浅色/金色发光文字） */
#page-detail.lv-detail .lg-detail-cell b,
#page-detail.lv-detail #detailTotalInvested { color: #0f172a !important; text-shadow: none !important; opacity: 1 !important; }
#page-detail.lv-detail #detailTotalRepaid,
#page-detail.lv-detail .lg-detail-cell .gold-glow-text { color: #10b981 !important; text-shadow: none !important; opacity: 1 !important; -webkit-text-fill-color: #10b981 !important; }
#page-detail.lv-detail .lg-detail-cell span { color: #94a3b8 !important; opacity: 1 !important; }
#page-detail.lv-detail #detailProgressPercent { color: #12b8a6 !important; -webkit-text-fill-color: #12b8a6 !important; }
#page-detail.lv-detail #detailProgressDetail { color: #475569 !important; }
#page-detail.lv-detail .lg-detail-profit-row b,
#page-detail.lv-detail #detailTotalProfit { color: #10b981 !important; -webkit-text-fill-color: #10b981 !important; }
#page-detail.lv-detail h3,
#page-detail.lv-detail h3 span { color: #0f172a !important; -webkit-text-fill-color: #0f172a !important; opacity: 1 !important; }

/* 详情页：强制数字子树实色（moneyPartsHtml 会输出带样式子节点） */
#page-detail.lv-detail #detailTotalInvested,
#page-detail.lv-detail #detailTotalInvested *,
#page-detail.lv-detail #detailTotalRepaid,
#page-detail.lv-detail #detailTotalRepaid *,
#page-detail.lv-detail #detailTotalProfit,
#page-detail.lv-detail #detailTotalProfit * {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  opacity: 1 !important;
  text-shadow: none !important;
  filter: none !important;
}
#page-detail.lv-detail #detailTotalRepaid,
#page-detail.lv-detail #detailTotalRepaid *,
#page-detail.lv-detail #detailTotalProfit,
#page-detail.lv-detail #detailTotalProfit * {
  color: #10b981 !important;
  -webkit-text-fill-color: #10b981 !important;
}


/* ==================================================================
   详情页 v3（全新设计，前缀 ld-，不依赖旧 lg-* 样式）
   ================================================================== */
#page-detail.lv-detail2 {
  background: radial-gradient(120% 50% at 50% 0%, #dff0fd 0%, #eaf6fe 45%, #f3fbff 100%) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.ld-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(max(env(safe-area-inset-top, 0px), 14px) + .45 * var(--u)) 0 calc(.55 * var(--u));
}
.ld-back {
  width: calc(2.1 * var(--u)); height: calc(2.1 * var(--u));
  border-radius: 50%; border: 1px solid rgba(190, 220, 240, .85);
  background: rgba(255,255,255,.92); color: #0f172a;
  display: grid; place-items: center; flex: none;
  box-shadow: 0 calc(.1 * var(--u)) calc(.4 * var(--u)) rgba(120, 170, 200, .16);
}
.ld-back svg { width: 58%; height: 58%; }
.ld-title { font-size: calc(.95 * var(--u)); font-weight: 800; color: #0f172a; }
.ld-ph { width: calc(2.1 * var(--u)); height: calc(2.1 * var(--u)); flex: none; }

/* 项目主卡 */
.ld-hero {
  border-radius: calc(1.35 * var(--u));
  background: #fff;
  box-shadow: 0 calc(.3 * var(--u)) calc(1.2 * var(--u)) rgba(96, 150, 190, .16), 0 calc(.05 * var(--u)) calc(.25 * var(--u)) rgba(96, 150, 190, .08);
  padding: calc(1 * var(--u));
  margin-bottom: calc(.7 * var(--u));
}
.ld-hero-top { display: flex; align-items: center; gap: calc(.55 * var(--u)); }
.ld-icon {
  width: calc(2.3 * var(--u)); height: calc(2.3 * var(--u)); flex: none;
  border-radius: calc(.75 * var(--u));
  background: linear-gradient(160deg, #dbeafe, #bfdbfe);
  display: grid; place-items: center;
}
.ld-icon svg { width: 56%; height: 56%; color: #3b82f6; }
.ld-hero-main { flex: 1 1 auto; min-width: 0; }
.ld-name { font-size: calc(.85 * var(--u)); font-weight: 900; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-tags { margin-top: calc(.28 * var(--u)); }

.ld-dual { display: flex; position: relative; margin-top: calc(.85 * var(--u)); padding-top: calc(.7 * var(--u)); border-top: 1px solid rgba(226, 238, 248, .95); }
.ld-dual::after { content: ''; position: absolute; left: 50%; top: calc(.7 * var(--u)); height: calc(100% - .7 * var(--u)); width: 1px; background: rgba(226, 238, 248, .95); }
.ld-dual-cell { flex: 1; }
.ld-dual-cell:last-child { padding-left: calc(.9 * var(--u)); }
.ld-dual-label { font-size: calc(.56 * var(--u)); color: #94a3b8; }
.ld-dual-val {
  margin-top: calc(.15 * var(--u));
  font-size: calc(1 * var(--u)); font-weight: 900; color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.ld-dual-val.teal { color: #12b8a6; }

/* 进度卡 */
.ld-prog {
  display: flex; align-items: center; gap: calc(.85 * var(--u));
  border-radius: calc(1.1 * var(--u));
  background: #fff;
  box-shadow: 0 calc(.22 * var(--u)) calc(.9 * var(--u)) rgba(96, 150, 190, .14);
  padding: calc(.95 * var(--u));
  margin-bottom: calc(.7 * var(--u));
}
.ld-prog-ring { position: relative; width: calc(4.3 * var(--u)); height: calc(4.3 * var(--u)); flex: none; }
.ld-prog-ring svg { width: 100%; height: 100%; display: block; }
.ld-prog-pct {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: calc(.85 * var(--u)); font-weight: 900; color: #12b8a6;
  font-variant-numeric: tabular-nums;
}
.ld-prog-body { flex: 1 1 auto; min-width: 0; }
.ld-prog-title { font-size: calc(.72 * var(--u)); font-weight: 800; color: #0f172a; }
.ld-prog-sub { margin-top: calc(.15 * var(--u)); font-size: calc(.55 * var(--u)); color: #94a3b8; }
.ld-bar { margin-top: calc(.5 * var(--u)); height: calc(.6 * var(--u)); border-radius: 9999px; background: #e6eef6; overflow: hidden; }
.ld-bar-fill { height: 100%; border-radius: 9999px; background: linear-gradient(90deg, #12b8a6, #06d6a0); transition: width .5s ease; }

/* 累计盈亏 */
.ld-profit {
  display: flex; align-items: center; justify-content: space-between;
  border-radius: calc(.95 * var(--u));
  background: #fff;
  box-shadow: 0 calc(.18 * var(--u)) calc(.7 * var(--u)) rgba(96, 150, 190, .12);
  padding: calc(.75 * var(--u)) calc(.9 * var(--u));
  margin-bottom: calc(.75 * var(--u));
}
.ld-profit-label { font-size: calc(.58 * var(--u)); color: #94a3b8; }
.ld-profit-val { font-size: calc(.92 * var(--u)); font-weight: 900; color: #10b981; font-variant-numeric: tabular-nums; }
.ld-profit-val.down { color: #ef4444; }

/* 操作按钮 */
.ld-actions { display: flex; gap: calc(.5 * var(--u)); margin-bottom: calc(.5 * var(--u)); }
.ld-btn {
  flex: 1; height: calc(2.3 * var(--u));
  border-radius: 9999px; border: 0;
  display: flex; align-items: center; justify-content: center; gap: calc(.25 * var(--u));
  font-size: calc(.73 * var(--u)); font-weight: 800;
}
.ld-btn svg { width: calc(.95 * var(--u)); height: calc(.95 * var(--u)); }
.ld-btn.primary {
  color: #fff;
  background: linear-gradient(180deg, #4fa4ff, #2d7ef0);
  box-shadow: 0 calc(.18 * var(--u)) calc(.55 * var(--u)) rgba(45, 126, 240, .32);
}
.ld-btn.ghost {
  color: #2563eb; background: #fff;
  border: 1px solid #bfdbfe;
  box-shadow: 0 calc(.1 * var(--u)) calc(.4 * var(--u)) rgba(96, 150, 190, .1);
}
.ld-btn:active { transform: scale(.98); }

.ld-actions3 { display: flex; gap: calc(.42 * var(--u)); margin-bottom: calc(.6 * var(--u)); }
.ld-btn3 {
  flex: 1; padding: calc(.6 * var(--u)) 0;
  border-radius: calc(.85 * var(--u));
  background: #fff; border: 1px solid rgba(226, 238, 248, .95);
  display: flex; flex-direction: column; align-items: center; gap: calc(.2 * var(--u));
  font-size: calc(.55 * var(--u)); color: #475569; font-weight: 600;
  box-shadow: 0 calc(.1 * var(--u)) calc(.4 * var(--u)) rgba(96, 150, 190, .1);
}
.ld-btn3 svg { width: calc(1.05 * var(--u)); height: calc(1.05 * var(--u)); color: #12b8a6; }
.ld-btn3:active { transform: scale(.98); }

.ld-del {
  width: 100%; height: calc(2 * var(--u));
  border-radius: 9999px; border: 1px solid #fecaca;
  background: #fff5f5; color: #ef4444;
  display: flex; align-items: center; justify-content: center; gap: calc(.22 * var(--u));
  font-size: calc(.68 * var(--u)); font-weight: 700;
  margin-bottom: calc(1 * var(--u));
}
.ld-del svg { width: calc(.9 * var(--u)); height: calc(.9 * var(--u)); }

/* 流水 */
.ld-sec { margin-bottom: calc(.9 * var(--u)); }
.ld-sec-title {
  display: flex; align-items: baseline; gap: calc(.3 * var(--u));
  font-size: calc(.82 * var(--u)); font-weight: 900; color: #0f172a;
  margin-bottom: calc(.5 * var(--u));
}
.ld-sec-title span { font-size: calc(.55 * var(--u)); font-weight: 500; color: #94a3b8; }

.ld-list { display: flex; flex-direction: column; gap: calc(.5 * var(--u)); }
.ld-item {
  display: flex; align-items: center; gap: calc(.55 * var(--u));
  background: #fff; border-radius: calc(.95 * var(--u));
  padding: calc(.7 * var(--u)) calc(.8 * var(--u));
  box-shadow: 0 calc(.16 * var(--u)) calc(.6 * var(--u)) rgba(96, 150, 190, .12);
}
.ld-item-ico {
  width: calc(1.9 * var(--u)); height: calc(1.9 * var(--u)); flex: none;
  border-radius: 50%; display: grid; place-items: center;
}
.ld-item-ico.inv { background: #dbeafe; }
.ld-item-ico.inv svg { color: #2563eb; }
.ld-item-ico.rep { background: #dcfce7; }
.ld-item-ico.rep svg { color: #0f9f6e; }
.ld-item-ico svg { width: 55%; height: 55%; }
.ld-item-body { flex: 1 1 auto; min-width: 0; }
.ld-item-title { font-size: calc(.68 * var(--u)); font-weight: 700; color: #0f172a; }
.ld-item-title b { font-variant-numeric: tabular-nums; }
.ld-item-sub { margin-top: calc(.12 * var(--u)); font-size: calc(.53 * var(--u)); color: #94a3b8; }
.ld-item-del {
  flex: none; border: 0; background: transparent;
  color: #ef4444; font-size: calc(.55 * var(--u)); font-weight: 600;
  padding: calc(.2 * var(--u)) calc(.3 * var(--u));
}

.ld-empty {
  display: flex; flex-direction: column; align-items: center; gap: calc(.3 * var(--u));
  background: #fff; border-radius: calc(.95 * var(--u));
  padding: calc(1.6 * var(--u)) calc(.9 * var(--u));
  box-shadow: 0 calc(.16 * var(--u)) calc(.6 * var(--u)) rgba(96, 150, 190, .1);
}
.ld-empty svg { width: calc(2.1 * var(--u)); height: calc(2.1 * var(--u)); color: #cbd5e1; }
.ld-empty b { font-size: calc(.65 * var(--u)); color: #64748b; font-weight: 600; }
.ld-empty button {
  border: 0; background: transparent; color: #2d7ef0;
  font-size: calc(.58 * var(--u)); font-weight: 700; margin-top: calc(.15 * var(--u));
}

/* 盖掉 #page-detail > .page-content 的深青渐变（lg-ledger.css:2197） */
#page-detail.lv-detail2 > .page-content,
#page-detail.lv-detail2 .page-content.lv-content {
  background: radial-gradient(120% 50% at 50% 0%, #dff0fd 0%, #eaf6fe 45%, #f3fbff 100%) !important;
  background-image: radial-gradient(120% 50% at 50% 0%, #dff0fd 0%, #eaf6fe 45%, #f3fbff 100%) !important;
  color: #0f172a !important;
}


/* ==================================================================
   项目详情页（lp- 前缀，独立页面，不共用账本详情 DOM）
   ================================================================== */
#page-project.lp-page {
  background: radial-gradient(120% 50% at 50% 0%, #dff0fd 0%, #eaf6fe 45%, #f3fbff 100%) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
.lp-content { padding-bottom: 0 !important; }

/* 顶部 */
.lp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(max(env(safe-area-inset-top, 0px), 14px) + .45 * var(--u)) 0 calc(.5 * var(--u));
}
.lp-back, .lp-share-top {
  width: calc(2.1 * var(--u)); height: calc(2.1 * var(--u));
  border-radius: 50%; border: 1px solid rgba(190, 220, 240, .8);
  background: rgba(255,255,255,.92); color: #0f172a;
  display: grid; place-items: center; flex: none;
}
.lp-back svg, .lp-share-top svg { width: 56%; height: 56%; }
.lp-title { font-size: calc(1.15 * var(--u)); font-weight: 800; color: #0f172a; }

/* 通用卡 */
.lp-card {
  background: #fff;
  border-radius: calc(1.2 * var(--u));
  box-shadow: 0 calc(.26 * var(--u)) calc(1 * var(--u)) rgba(96, 150, 190, .14), 0 calc(.04 * var(--u)) calc(.2 * var(--u)) rgba(96, 150, 190, .07);
  padding: calc(.95 * var(--u));
  margin-bottom: calc(.7 * var(--u));
}

/* 项目主卡 */
.lp-hero-top { display: flex; align-items: flex-start; gap: calc(.55 * var(--u)); }
.lp-icon {
  width: calc(2.6 * var(--u)); height: calc(2.6 * var(--u)); flex: none;
  border-radius: calc(.8 * var(--u));
  background: linear-gradient(160deg, #e3eefe, #cfe3fd);
  display: grid; place-items: center;
}
.lp-icon svg { width: 54%; height: 54%; color: #3b8ef7; }
.lp-hero-main { flex: 1 1 auto; min-width: 0; }
.lp-name {
  font-size: calc(1.12 * var(--u)); font-weight: 900; color: #0f172a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lp-badges { margin-top: calc(.28 * var(--u)); }
.lp-badge {
  display: inline-flex; align-items: center; gap: calc(.18 * var(--u));
  font-size: calc(.72 * var(--u)); font-weight: 700; line-height: 1;
  padding: calc(.26 * var(--u)) calc(.5 * var(--u));
  border-radius: calc(.3 * var(--u));
  background: #e8f8f1; color: #0f9f6e;
}
.lp-badge svg { width: calc(.82 * var(--u)); height: calc(.82 * var(--u)); }
.lp-running {
  flex: none; display: inline-flex; align-items: center; gap: calc(.14 * var(--u));
  font-size: calc(.76 * var(--u)); font-weight: 800;
  padding: calc(.3 * var(--u)) calc(.55 * var(--u));
  border-radius: 9999px;
  background: #dcebff; color: #1d6fe0 !important;
  -webkit-text-fill-color: #1d6fe0;
  white-space: nowrap;
}
.lp-running svg { width: calc(.8 * var(--u)); height: calc(.8 * var(--u)); }

.lp-dual { display: flex; margin-top: calc(.85 * var(--u)); }
.lp-dual-cell { flex: 1; min-width: 0; }
.lp-dual-cell:last-child { padding-left: calc(.5 * var(--u)); }
.lp-dual-label { font-size: calc(.76 * var(--u)); color: #94a3b8; }
.lp-dual-val {
  margin-top: calc(.22 * var(--u));
  font-size: calc(1.55 * var(--u)); font-weight: 900; color: #0f172a;
  letter-spacing: -.5px; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lp-dual-val.blue { color: #2d7ef0; }
.lp-dual-val small { font-size: .48em; font-weight: 700; color: #64748b; margin-left: .1em; }

.lp-bar {
  margin-top: calc(.7 * var(--u));
  height: calc(.55 * var(--u)); border-radius: 9999px;
  background: #e2edf8; overflow: hidden;
}
.lp-bar-fill {
  height: 100%; border-radius: 9999px;
  background: linear-gradient(90deg, #3b8ef7, #57b4ff);
  transition: width .55s cubic-bezier(.22,.61,.36,1);
}

/* 解锁状态卡 */
.lp-unlock { display: flex; align-items: center; gap: calc(.6 * var(--u)); background: #f2f9ff; }
.lp-unlock-ico {
  width: calc(2.15 * var(--u)); height: calc(2.15 * var(--u)); flex: none;
  border-radius: 50%; background: #dcecfd;
  display: grid; place-items: center;
}
.lp-unlock-ico svg { width: 52%; height: 52%; color: #2d7ef0; }
.lp-unlock-body { flex: 1 1 auto; min-width: 0; }
.lp-unlock-title { font-size: calc(.92 * var(--u)); font-weight: 900; color: #0f172a; }
.lp-unlock-sub { margin-top: calc(.18 * var(--u)); font-size: calc(.72 * var(--u)); color: #94a3b8; line-height: 1.45; }
.lp-arrow { flex: none; color: #cbd5e1; display: grid; place-items: center; }
.lp-arrow svg { width: calc(.95 * var(--u)); height: calc(.95 * var(--u)); }

/* 席位卡 */
.lp-seat-row { display: flex; align-items: center; gap: calc(.5 * var(--u)); }
.lp-seat-left { flex: none; min-width: calc(6.2 * var(--u)); }
.lp-seat-label { font-size: calc(.75 * var(--u)); color: #94a3b8; }
.lp-seat-num { margin-top: calc(.18 * var(--u)); display: flex; align-items: baseline; gap: calc(.1 * var(--u)); }
.lp-seat-num b { font-size: calc(1.68 * var(--u)); font-weight: 900; color: #2d7ef0; line-height: 1; }
.lp-seat-num small { font-size: calc(.78 * var(--u)); color: #64748b; font-weight: 600; }
.lp-seat-right { flex: 1 1 auto; min-width: 0; }
.lp-seat-add {
  width: 100%; height: calc(1.95 * var(--u));
  border-radius: calc(.55 * var(--u)); border: 0;
  background: #eaf3ff; color: #2d7ef0;
  display: flex; align-items: center; justify-content: center; gap: calc(.2 * var(--u));
  font-size: calc(.82 * var(--u)); font-weight: 800;
}
.lp-seat-add svg { width: calc(.85 * var(--u)); height: calc(.85 * var(--u)); }
.lp-seat-add:active { transform: scale(.98); }
.lp-seat-tip { margin-top: calc(.32 * var(--u)); font-size: calc(.66 * var(--u)); color: #94a3b8; text-align: center; line-height: 1.4; }

.lp-open {
  margin-top: calc(.85 * var(--u));
  width: 100%; height: calc(2.55 * var(--u));
  border-radius: 9999px; border: 0;
  background: linear-gradient(180deg, #4fa4ff, #2d7ef0);
  color: #fff; font-size: calc(1.02 * var(--u)); font-weight: 900; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center; gap: calc(.25 * var(--u));
  box-shadow: 0 calc(.2 * var(--u)) calc(.7 * var(--u)) rgba(45, 126, 240, .35);
}
.lp-open svg { width: calc(.85 * var(--u)); height: calc(.85 * var(--u)); }
.lp-open:active { transform: scale(.985); }

/* 规格卡 */
.lp-spec-title {
  display: flex; align-items: center; gap: calc(.28 * var(--u));
  font-size: calc(.95 * var(--u)); font-weight: 900; color: #0f172a;
  margin-bottom: calc(.7 * var(--u));
}
.lp-spec-title svg { width: calc(.95 * var(--u)); height: calc(.95 * var(--u)); color: #64748b; }
.lp-spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: calc(.55 * var(--u)); }
.lp-spec-cell {
  display: flex; align-items: center; gap: calc(.42 * var(--u));
  background: #f7fbff; border: 1px solid #e8f1fa;
  border-radius: calc(.7 * var(--u));
  padding: calc(.55 * var(--u)) calc(.55 * var(--u));
  min-width: 0;
}
.lp-spec-ico {
  width: calc(1.65 * var(--u)); height: calc(1.65 * var(--u)); flex: none;
  border-radius: calc(.5 * var(--u)); display: grid; place-items: center;
}
.lp-spec-ico svg { width: 55%; height: 55%; }
.lp-spec-ico.blue { background: #dbeafe; } .lp-spec-ico.blue svg { color: #2563eb; }
.lp-spec-ico.orange { background: #ffedd5; } .lp-spec-ico.orange svg { color: #ea580c; }
.lp-spec-ico.green { background: #dcfce7; } .lp-spec-ico.green svg { color: #0f9f6e; }
.lp-spec-ico.violet { background: #ede9fe; } .lp-spec-ico.violet svg { color: #7c3aed; }
.lp-spec-label { font-size: calc(.7 * var(--u)); color: #94a3b8; }
.lp-spec-val {
  margin-top: calc(.12 * var(--u));
  font-size: calc(.84 * var(--u)); font-weight: 800; color: #0f172a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 规则行 */
.lp-rule {
  width: 100%; display: flex; align-items: center; gap: calc(.45 * var(--u));
  text-align: left; border: 0; cursor: pointer;
}
.lp-rule-ico { flex: none; display: grid; place-items: center; color: #64748b; }
.lp-rule-ico svg { width: calc(.95 * var(--u)); height: calc(.95 * var(--u)); }
.lp-rule-text { flex: 1 1 auto; font-size: calc(.86 * var(--u)); font-weight: 700; color: #0f172a; }
.lp-rule-body {
  background: #fff; border-radius: calc(1.2 * var(--u));
  padding: calc(.95 * var(--u)); margin-bottom: calc(.7 * var(--u));
  box-shadow: 0 calc(.2 * var(--u)) calc(.8 * var(--u)) rgba(96, 150, 190, .12);
  font-size: calc(.76 * var(--u)); color: #475569; line-height: 1.75;
  white-space: pre-wrap; word-break: break-word;
}
.lp-rule-body b { display: block; color: #0f172a; font-size: calc(.84 * var(--u)); margin-bottom: calc(.28 * var(--u)); }
.lp-rule-body .risk { margin-top: calc(.5 * var(--u)); padding: calc(.5 * var(--u)); background: #fff5f5; border-radius: calc(.5 * var(--u)); color: #b91c1c; }

/* 价格档（未解锁） */
.lp-tiers { display: flex; flex-direction: column; gap: calc(.5 * var(--u)); }
.lp-tier-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(.7 * var(--u)) calc(.8 * var(--u));
  border-radius: calc(.7 * var(--u)); border: 1px solid #dbeafe;
  background: #f7fbff; color: #0f172a;
  font-size: calc(.86 * var(--u)); font-weight: 700;
}
.lp-tier-btn b { color: #2d7ef0; font-size: calc(.94 * var(--u)); }

/* 底部固定栏 */
.lp-bottom {
  position: static;
  display: flex; gap: calc(.5 * var(--u));
  margin-top: calc(.7 * var(--u));
  padding: 0 0 calc(.6 * var(--u) + env(safe-area-inset-bottom, 0px));
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-sizing: border-box;
}
.lp-btm {
  flex: 1; height: calc(2.5 * var(--u));
  border-radius: 9999px; border: 0;
  display: flex; align-items: center; justify-content: center; gap: calc(.22 * var(--u));
  font-size: calc(.92 * var(--u)); font-weight: 800;
}
.lp-btm svg { width: calc(.95 * var(--u)); height: calc(.95 * var(--u)); }
.lp-btm.ghost {
  background: #fff; color: #2d7ef0;
  border: 1px solid #bfdbfe;
  box-shadow: 0 calc(.1 * var(--u)) calc(.4 * var(--u)) rgba(96, 150, 190, .1);
}
.lp-btm.primary {
  background: linear-gradient(180deg, #4fa4ff, #2d7ef0);
  color: #fff;
  box-shadow: 0 calc(.2 * var(--u)) calc(.7 * var(--u)) rgba(45, 126, 240, .32);
}
.lp-btm:active { transform: scale(.98); }

/* 项目详情数字用系统字体（设计稿为圆润粗体，非 DIN 等宽） */
#page-project .lp-dual-val,
#page-project .lp-seat-num b,
#page-project .lp-spec-val {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}


/* ==================================================================
   新建 / 编辑账本 —— 对齐项目详情页（nw- 前缀）
   ================================================================== */
.nw-page {
  min-height: 100vh;
  background: radial-gradient(120% 50% at 50% 0%, #dff0fd 0%, #eaf6fe 45%, #f3fbff 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nw-inner {
  --u: clamp(14px, calc(100vw / 26.875), 22px);
  max-width: 640px;
  margin: 0 auto;
  padding: 0 calc(1.05 * var(--u)) calc(1.4 * var(--u) + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

/* 顶部 */
.nw-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(max(env(safe-area-inset-top, 0px), 14px) + .45 * var(--u)) 0 calc(.75 * var(--u));
}
.nw-back {
  width: calc(2.1 * var(--u)); height: calc(2.1 * var(--u));
  border-radius: 50%; border: 1px solid rgba(190, 220, 240, .8);
  background: rgba(255,255,255,.92); color: #0f172a;
  display: grid; place-items: center; flex: none;
  box-shadow: 0 calc(.1 * var(--u)) calc(.4 * var(--u)) rgba(120, 170, 200, .16);
}
.nw-back svg { width: 56%; height: 56%; }
.nw-title { font-size: calc(1.15 * var(--u)); font-weight: 800; color: #0f172a; }
.nw-ph { width: calc(2.1 * var(--u)); height: calc(2.1 * var(--u)); flex: none; }

/* 卡片 */
.nw-card {
  background: #fff;
  border-radius: calc(1.2 * var(--u));
  box-shadow: 0 calc(.26 * var(--u)) calc(1 * var(--u)) rgba(96, 150, 190, .14), 0 calc(.04 * var(--u)) calc(.2 * var(--u)) rgba(96, 150, 190, .07);
  padding: calc(1 * var(--u));
  margin-bottom: calc(.7 * var(--u));
}

/* 字段 */
.nw-field + .nw-field { margin-top: calc(.85 * var(--u)); }
.nw-label {
  display: block;
  font-size: calc(.76 * var(--u)); font-weight: 600; color: #475569;
  margin-bottom: calc(.4 * var(--u));
}
.nw-req { color: #ef4444; font-style: normal; font-weight: 700; }
.nw-optional {
  margin-left: calc(.2 * var(--u));
  font-size: calc(.62 * var(--u)); font-weight: 500; color: #94a3b8;
}

.nw-input {
  width: 100%;
  height: calc(2.85 * var(--u));
  padding: 0 calc(.8 * var(--u));
  border-radius: calc(.75 * var(--u));
  border: 1px solid #e2edf8;
  background: #f7fbff;
  color: #0f172a;
  font-size: calc(.95 * var(--u));
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.nw-input::placeholder { color: #a9bccf; }
.nw-input:focus {
  border-color: #4fa4ff;
  background: #fff;
  box-shadow: 0 0 0 calc(.16 * var(--u)) rgba(79, 164, 255, .16);
}
.nw-input:disabled { background: #f1f5f9; color: #94a3b8; cursor: not-allowed; }
.nw-input:invalid:not(:placeholder-shown) { border-color: #fca5a5; }

.nw-textarea {
  height: auto; min-height: calc(5 * var(--u));
  padding: calc(.6 * var(--u)) calc(.8 * var(--u));
  line-height: 1.6; resize: none;
}

.nw-input-wrap { position: relative; }
.nw-input-date { padding-right: calc(2.4 * var(--u)); cursor: pointer; }
.nw-input-ico {
  position: absolute; right: calc(.85 * var(--u)); top: 50%;
  transform: translateY(-50%);
  width: calc(1 * var(--u)); height: calc(1 * var(--u));
  color: #94a3b8; pointer-events: none;
}

/* 提示 */
.nw-hint {
  font-size: calc(.66 * var(--u)); color: #94a3b8;
  padding: 0 calc(.3 * var(--u));
  margin: calc(.2 * var(--u)) 0 calc(.9 * var(--u));
  line-height: 1.5;
}

/* 提交按钮 */
.nw-submit {
  width: 100%; height: calc(2.6 * var(--u));
  border: 0; border-radius: 9999px;
  background: linear-gradient(180deg, #4fa4ff, #2d7ef0);
  color: #fff;
  font-size: calc(.92 * var(--u)); font-weight: 800; letter-spacing: .3px;
  display: flex; align-items: center; justify-content: center; gap: calc(.25 * var(--u));
  box-shadow: 0 calc(.2 * var(--u)) calc(.7 * var(--u)) rgba(45, 126, 240, .32);
  transition: transform .12s ease, box-shadow .18s ease;
}
.nw-submit svg { width: calc(1 * var(--u)); height: calc(1 * var(--u)); }
.nw-submit:hover { box-shadow: 0 calc(.24 * var(--u)) calc(.85 * var(--u)) rgba(45, 126, 240, .38); }
.nw-submit:active { transform: scale(.985); }
.nw-submit:disabled { opacity: .6; box-shadow: none; cursor: not-allowed; }

/* 进入游戏按钮：功能未开放时的禁用态（保留可点击以给提示） */
.gp-cw-btn.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(.15);
}

/* 账本页字体统一为项目详情页同款系统字（原 [data-fit] 继承 DIN 等宽，观感偏小偏细） */
.lv-page,
.lv-content,
.lv-content [data-fit],
.lv-content .num-font,
.lv-content input,
.lv-content button {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif !important;
  letter-spacing: 0;
}
