﻿:root {
  --app-primary: #07c160;
  --app-primary-dark: #06ad56;
  --app-primary-light: #e8f8ef;
  --app-primary-soft: #b7ebc9;
  --van-primary-color: var(--app-primary);
  --van-blue: var(--app-primary);
  --van-field-label-width: 7em;
  --app-btn-radius: 8px;
  /* 顶部安全区：由 layout 内联脚本写入（App _sbh / env / 壳内兜底） */
  --app-status-bar: 0px;
  --app-safe-top: 0px;
}

/*
  按钮 UV（全站统一）
  1. 主操作：提交 / 保存 / 确定 / 新增 / 吃码 / 结算 / AI进取
     → type="primary"（实心绿）
  2. 次操作：编辑 / 查看 / 复制 / 修改 / 上报管理 / 兑奖报表 / AI稳健 / 取消
     → plain hairline type="primary"；取消用 plain（默认灰边）
  3. 危险：删除 / 退出 / 清空
     → 强危险（整页退出、删归档）type="danger"
     → 列表内删除 plain hairline type="danger"
  4. 警告：踢下线 / 立即过期
     → plain hairline type="warning" 或 plain type="danger"（立即过期）
  5. 尺寸：页头新增 size="small"；卡片操作 size="mini"；表单底栏 block round
*/

/* 统一圆角与字重，避免有的方角有的全圆混用（round 仍用于主 CTA） */
.van-button {
  font-weight: 600;
}

.van-button--normal,
.van-button--small {
  border-radius: var(--app-btn-radius);
}

.van-button--mini {
  border-radius: 6px;
  padding: 0 8px;
  height: 26px;
  line-height: 24px;
}

.van-button--plain.van-button--primary {
  background: #fff;
}

.van-button--plain.van-button--danger {
  background: #fff;
}

.van-button--plain.van-button--warning {
  background: #fff;
}

/* 卡片操作区：间距统一 */
.pwd-actions,
.prize-card-actions,
.lottery-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pwd-actions .van-button,
.prize-card-actions .van-button {
  margin: 0;
}

html,
body,
#app {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f5faf7;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
  -webkit-tap-highlight-color: transparent;
  /* 禁止长按选中/复制/呼出菜单 */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* 输入框仍允许选中编辑 */
input,
textarea,
[contenteditable='true'],
.van-field__control {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

[v-cloak] {
  display: none;
}

.login-page {
  position: relative;
  min-height: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #07130f;
  color: #e8f8ef;
  -webkit-overflow-scrolling: touch;
}

.login-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(165deg, #0a1f18 0%, #07130f 42%, #0c1a14 100%);
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.55;
  animation: login-orb-float 8s ease-in-out infinite;
}

.login-orb--a {
  width: 260px;
  height: 260px;
  top: -60px;
  right: -40px;
  background: radial-gradient(circle at 30% 30%, #1fa85a 0%, transparent 70%);
}

.login-orb--b {
  width: 220px;
  height: 220px;
  left: -70px;
  bottom: 18%;
  background: radial-gradient(circle at 60% 40%, #0d8f4a 0%, transparent 72%);
  animation-delay: -3s;
}

.login-grid {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(232, 248, 239, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 248, 239, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
}

.login-shell {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding:
    calc(28px + var(--app-safe-top, 0px))
    24px
    calc(20px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.login-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 0 28px;
  animation: login-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-logo-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}

.login-logo {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  background: #04100c;
  box-shadow:
    0 0 0 1px rgba(183, 235, 198, 0.18),
    0 18px 40px rgba(7, 193, 96, 0.28);
  animation: login-logo-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-brand {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #f3fcf7;
  text-indent: 0.12em;
}

.login-desc {
  margin: 10px 0 0;
  color: rgba(183, 235, 198, 0.78);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.login-form {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  animation: login-rise 0.75s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-fields {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.login-field.van-cell,
.login-form .login-field.van-cell {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(183, 235, 198, 0.16);
  border-radius: 14px;
  padding: 0 14px;
  margin: 0;
  color: #f3fcf7;
  overflow: hidden;
  align-items: center;
  min-height: 52px;
}

.login-form .login-field::after {
  display: none;
}

.login-form .login-field .van-cell__value,
.login-form .login-field .van-field__body {
  display: flex;
  align-items: center;
  min-height: 52px;
}

.login-form .login-field .van-field__left-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  height: 52px;
  line-height: 52px;
  color: rgba(183, 235, 198, 0.9);
}

.login-form .login-field .van-field__left-icon .van-icon {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.login-form .login-field .van-field__control {
  color: #f3fcf7;
  font-size: 16px;
  height: 52px;
  line-height: 52px;
}

.login-form .login-field .van-field__control::placeholder {
  color: rgba(232, 248, 239, 0.38);
}

.login-form .login-field .van-icon-clear {
  color: rgba(232, 248, 239, 0.45);
}

.login-submit.van-button,
.login-form .login-submit.van-button {
  height: 50px;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  background: linear-gradient(135deg, #12c96a 0%, #07a352 55%, #068a46 100%);
  box-shadow: 0 12px 28px rgba(7, 193, 96, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.login-submit.van-button:active {
  transform: scale(0.985);
  filter: brightness(0.96);
  box-shadow: 0 8px 18px rgba(7, 193, 96, 0.28);
}

.login-foot {
  margin: 18px 0 0;
  text-align: center;
  font-size: 11px;
  color: rgba(232, 248, 239, 0.32);
  animation: login-rise 0.8s 0.14s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes login-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes login-logo-in {
  from {
    opacity: 0;
    transform: scale(0.86) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes login-orb-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 14px, 0);
  }
}

@media (max-height: 620px) {
  .login-hero {
    flex: 0 0 auto;
    padding: 8px 0 18px;
    justify-content: flex-start;
  }

  .login-logo {
    width: 68px;
    height: 68px;
    border-radius: 18px;
  }

  .login-brand {
    font-size: 24px;
  }
}

.main-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f5faf7;
  overflow: hidden;
}

.main-shell {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pc-side-nav {
  display: none;
}

.main-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /*padding-bottom: calc(50px + env(safe-area-inset-bottom, 0px));*/
}

.main-body--help {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.main-body--help > .help-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f5faf7;
}

.home-sub-nav {
  flex-shrink: 0;
  display: flex;
  margin: 8px 12px 0;
  padding: 3px;
  border-radius: 10px;
  background: #e8f5ee;
  gap: 2px;
}

.home-sub-nav__btn {
  flex: 1;
  border: 0;
  background: transparent;
  color: #5a6b62;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.home-sub-nav__btn.active {
  background: #fff;
  color: #06ad56;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.home-split {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-col {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-col-title {
  display: none;
}

.home-page > .van-tabs {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.home-page .van-tabs__wrap {
  flex-shrink: 0;
}

.home-page .van-tabs__content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.home-page .van-tab__panel {
  height: 100%;
  overflow: hidden;
}

/* 分段式 Tab：看起来像可点按钮，避免被当成纯标题 */
.app-seg-tabs > .van-tabs__wrap {
  padding: 8px 12px 6px;
  background: transparent;
}

.app-seg-tabs .van-tabs__nav {
  margin: 0;
  padding: 3px;
  background: #e7f2eb;
  border-radius: 12px;
  border: 1px solid #d4e8db;
  box-sizing: border-box;
}

.app-seg-tabs .van-tab {
  flex: 1 1 0;
  padding: 0 8px;
  color: #5f6b64;
  font-size: 14px;
  font-weight: 600;
  line-height: 34px;
  border-radius: 9px;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.app-seg-tabs .van-tab--active {
  color: #06ad56 !important;
  background: #fff;
  box-shadow: 0 1px 3px rgba(7, 193, 96, 0.18);
}

.app-seg-tabs .van-tabs__line {
  display: none !important;
}

.app-seg-tabs .van-tab:active {
  opacity: 0.85;
}

.report-board-tabs.app-seg-tabs > .van-tabs__wrap,
.help-tabs.app-seg-tabs > .van-tabs__wrap {
  padding: 6px 10px 8px;
  background: #fff;
  border-bottom: 1px solid #eef2f0;
}

.report-board-tabs.app-seg-tabs .van-tabs__nav,
.help-tabs.app-seg-tabs .van-tabs__nav {
  background: #f2f6f4;
  border-color: #e4ece7;
}

.home-pane {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 0 20px;
  box-sizing: border-box;
}

.home-pane-actions {
  margin: 16px 16px 0;
  margin-bottom: 20px;
}

.record-lottery-zodiac {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f8ef;
  color: #06ad56;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.record-tips {
  margin: 14px 16px 0;
  padding: 12px 14px;
  background: #f0faf4;
  border-radius: 10px;
  border: 1px solid #e2f5ea;
}

.record-tip-item {
  font-size: 13px;
  color: #646566;
  line-height: 1.7;
}

.record-tip-item + .record-tip-item {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #d8ebe0;
}

.record-tip-item--guide {
  color: #323233;
  font-weight: 600;
}

.record-tip-link {
  display: inline;
  margin: 0 2px;
  padding: 0;
  border: none;
  background: none;
  color: #07c160;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.record-tip-link:active {
  opacity: 0.7;
}

.record-content-box {
  margin: 12px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2f5ea;
  position: relative;
}

.record-content-box.is-submitting {
  pointer-events: none;
}

.record-submit-mask {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  color: #06ad56;
  font-size: 14px;
}

.record-content-box.has-parse-error,
.record-content-box.has-parse-tips {
  border-color: #ffccc7;
  background: #fffafa;
}

.record-highlight,
.record-content-box .van-field__control {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  letter-spacing: 0;
  word-spacing: 0;
  text-transform: none;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  tab-size: 4;
  box-sizing: border-box;
}

.record-highlight {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 12px 16px;
  color: #323233;
  pointer-events: none;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  z-index: 0;
}

.record-highlight .parse-error-line {
  background: #ffe1e1;
  color: #ee0a24;
  border-radius: 0;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  padding: 0;
  margin: 0;
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.record-content-box .record-content-field {
  position: relative;
  z-index: 1;
  background: transparent;
}

.record-content-box .van-field {
  padding: 12px 16px;
  background: transparent;
}

.record-content-box .van-field__control {
  min-height: 160px;
  max-height: 260px;
  color: #323233;
  overflow-x: hidden;
  overflow-y: auto !important;
  scrollbar-gutter: stable;
  padding: 0;
  margin: 0;
  border: 0;
  resize: none;
  background: transparent;
}

/* 仅标红时隐藏原文，改由叠层显示；字形必须与叠层完全一致，否则光标会偏 */
.record-content-box.has-parse-error .record-content-field .van-field__control {
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: #323233;
  background: transparent;
}

.record-parse-tips {
  margin: 0 12px 4px;
  padding: 8px 10px;
  background: #fff1f0;
  border: 1px solid #ffccc7;
  border-radius: 8px;
}

.record-parse-tip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0;
  font-size: 12px;
  line-height: 1.5;
}

.record-parse-tip + .record-parse-tip {
  border-top: 1px dashed #ffccc7;
}

.record-parse-tip-line {
  color: #ee0a24;
  font-weight: 600;
  word-break: break-all;
}

.record-parse-tip-reason {
  color: #646566;
}

.parse-fix-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.parse-fix-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.parse-fix-hint {
  margin: 0 16px 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #969799;
}

.parse-attr-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #f7f8fa;
}

.parse-attr-hint {
  margin: 0 16px 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #969799;
  flex-shrink: 0;
}

.tools-page--popup {
  flex: 1;
  min-height: 0;
  height: auto;
  padding-bottom: env(safe-area-inset-bottom);
}

.parse-fix-body {
  flex: 1;
  overflow: auto;
  padding: 0 12px 12px;
}

.parse-fix-item {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ffe0e0;
}

.parse-fix-item-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.parse-fix-index {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #ee0a24;
}

.parse-fix-reason {
  flex: 1;
  font-size: 12px;
  color: #969799;
  line-height: 1.4;
}

.parse-fix-field {
  padding: 0;
  background: #f7f8fa;
  border-radius: 8px;
}

.parse-fix-field .van-field__control {
  min-height: 40px;
}

.parse-fix-footer {
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #ebedf0;
  background: #fff;
}

.picker-toolbar {
  display: flex;
  justify-content: center;
  padding: 10px 16px 0;
  background: #fff;
}

.picker-option-list {
  display: grid;
  gap: 8px;
}

.picker-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e2f5ea;
  border-radius: 12px;
  font-size: 15px;
  color: #323233;
  cursor: pointer;
  user-select: none;
}

.picker-option-item.active {
  border-color: #07c160;
  color: #07c160;
  font-weight: 600;
  background: #f0faf4;
}

.picker-option-item:active {
  opacity: 0.85;
}

.summary-pane {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 8px;
  padding-bottom: 12px;
}

.summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 12px 12px;
  flex-shrink: 0;
}

.summary-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 12px 10px;
  flex-shrink: 0;
}

.reconcile-mode-row {
  display: flex;
  gap: 8px;
  margin: 0 12px 10px;
  flex-shrink: 0;
}

.reconcile-mode-row .summary-chip {
  min-width: 64px;
  text-align: center;
}

/* 核对页：压缩顶栏、表格占满剩余高度，减轻手机拥挤感 */
.reconcile-pane {
  gap: 0;
}

.reconcile-lottery-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 8px;
  flex-shrink: 0;
  min-width: 0;
}

.reconcile-pane .reconcile-lottery-chips {
  flex: 1;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 6px;
  margin: 0;
  padding-bottom: 2px;
  min-width: 0;
  scrollbar-width: none;
}

.reconcile-pane .reconcile-lottery-chips::-webkit-scrollbar {
  display: none;
}

.reconcile-pane .reconcile-lottery-chips .summary-chip {
  flex-shrink: 0;
  padding: 5px 12px;
  font-size: 12px;
}

.reconcile-lottery-row .reconcile-mode-seg {
  flex-shrink: 0;
}

.record-select-block {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #ebedf0;
  min-width: 0;
}

.record-select-block--last {
  border-bottom: 0;
  border-radius: 0 0 8px 8px;
}

.record-select-required {
  margin-left: 2px;
  color: #ee0a24;
}

.record-select-empty {
  flex-shrink: 0;
  font-size: 12px;
  color: #ee0a24;
  white-space: nowrap;
}

.record-select-label {
  flex-shrink: 0;
  width: 36px;
  font-size: 14px;
  color: #646566;
  line-height: 1.2;
  white-space: nowrap;
}

.record-select-chips {
  flex: 1;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.record-select-chips::-webkit-scrollbar {
  display: none;
}

.record-select-chips .summary-chip {
  margin: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.record-select-add {
  flex-shrink: 0;
  margin: 0;
  white-space: nowrap;
}

.record-select-block .record-lottery-zodiac {
  flex-shrink: 0;
}

.eat-banker-tabs {
  margin: 0 12px 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7faf8;
  border: 1px solid #eef2ef;
}

.eat-banker-tabs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.eat-banker-tabs-label {
  display: block;
  margin-bottom: 0;
  font-size: 13px;
  color: #646566;
}

.eat-banker-add-btn {
  flex-shrink: 0;
}

.eat-banker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.eat-banker-chips .summary-chip {
  margin: 0;
}

.eat-banker-empty {
  margin-top: 4px;
  font-size: 12px;
  color: #ee0a24;
}

.reconcile-mode-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
}

.reconcile-mode-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e8f8ef;
  color: #07c160;
  font-size: 13px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.reconcile-type-row {
  margin: 0 12px 8px;
  align-items: center;
  flex-shrink: 0;
}

.reconcile-type-row .summary-filter-label {
  padding-top: 0;
}

.reconcile-chips-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 6px;
  scrollbar-width: none;
}

.reconcile-chips-scroll::-webkit-scrollbar {
  display: none;
}

.reconcile-chips-scroll .summary-chip {
  flex-shrink: 0;
  padding: 5px 11px;
  font-size: 12px;
}

.reconcile-mode-seg {
  display: inline-flex;
  flex-shrink: 0;
  padding: 2px;
  border-radius: 8px;
  background: #eef5f0;
  border: 1px solid #d8eee1;
}

.reconcile-mode-btn {
  border: 0;
  background: transparent;
  color: #5f7a6a;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}

.reconcile-mode-btn.active {
  background: #fff;
  color: #06ad56;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(7, 193, 96, 0.12);
}

.reconcile-meta-card {
  margin: 0 12px 8px;
  padding: 0;
  background: #fff;
  border: 1px solid #e5efe9;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(7, 193, 96, 0.05);
}

.reconcile-stats {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 0;
  padding: 10px 4px 6px;
  background: #f6fbf8;
  border-bottom: 1px solid #e5efe9;
}

.reconcile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 0 6px;
  text-align: center;
}

.reconcile-stat + .reconcile-stat {
  border-left: 1px solid #e0ece5;
}

.reconcile-stat span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #7d8f85;
  font-size: 11px;
  line-height: 1.2;
}

.reconcile-stat strong {
  color: #323233;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.reconcile-rebate-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  padding: 6px 10px 8px;
  background: #f6fbf8;
  border-bottom: 1px solid #e5efe9;
  color: #7d8f85;
  font-size: 12px;
  line-height: 1.3;
}

.reconcile-rebate-row b {
  color: #323233;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.reconcile-risk-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 2px;
  border-radius: 50%;
  background: #e8f8ef;
  color: #07c160;
  font-size: 12px;
  vertical-align: -3px;
  box-sizing: border-box;
}

.reconcile-stat strong.check-risk-pos {
  color: #07c160;
}

.reconcile-stat strong.check-risk-neg {
  color: #ee0a24;
}

.reconcile-stat strong.check-risk-zero {
  color: #646566;
}

.reconcile-actions {
  margin: 0;
  padding: 8px 10px;
  gap: 8px;
  background: #fff;
}

.reconcile-actions.check-action-bar-3 .van-button {
  height: 32px;
  font-size: 13px;
}

.reconcile-customer-row {
  margin: 0 12px 8px;
  align-items: center;
}

.reconcile-customer-row .summary-filter-label {
  padding-top: 0;
}

.reconcile-table-wrap {
  flex: 1;
  min-height: 0;
  margin-bottom: 0;
}

.reconcile-pane .summary-table th,
.reconcile-pane .summary-table td {
  padding: 8px 4px;
  font-size: 12px;
}

.reconcile-pane .type-badge {
  font-size: 10px;
  padding: 1px 5px;
}

.reconcile-pane .check-content-text {
  margin-left: 0;
}

.summary-filter-label {
  flex-shrink: 0;
  width: 32px;
  padding-top: 7px;
  font-size: 12px;
  color: #7d8f85;
  line-height: 1.2;
}

.summary-chips-inline {
  flex: 1;
  margin: 0;
  min-width: 0;
}

.summary-chip {
  border: 1px solid #d8eee1;
  background: #fff;
  color: #4a6354;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}

.summary-chip.active {
  background: #e8f8ef;
  border-color: #07c160;
  color: #06ad56;
  font-weight: 600;
}

.summary-chip.summary-chip-add {
  border: 1px dashed #7eb8f7;
  color: #1989fa;
  background: #ecf5ff;
  font-weight: 500;
}

.summary-amount-bar {
  margin: 0 12px 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e8f8ef;
  border: 1px solid #d2efdd;
  border-radius: 12px;
  flex-shrink: 0;
}

.summary-amount-bar span {
  color: #5f7a6a;
  font-size: 13px;
}

.summary-amount-bar strong {
  color: #06ad56;
  font-size: 22px;
  font-weight: 700;
}

.check-amount-bar {
  gap: 16px;
}

.check-amount-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.check-amount-item span {
  color: #5f7a6a;
  font-size: 12px;
}

.check-amount-item strong {
  font-size: 20px;
}

.check-risk-total {
  color: #ed6a0c !important;
}

.check-risk-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.check-risk-summary .check-risk-total {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

.risk-rebate-tip {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  color: #969799;
  white-space: nowrap;
}

.check-risk-summary .risk-rebate-tip {
  text-align: right;
}

.check-content {
  text-align: center !important;
  vertical-align: middle;
}

.check-content .type-badge {
  display: inline-block;
  margin-bottom: 2px;
}

.check-content-text {
  display: block;
  margin-left: 0;
  line-height: 1.35;
  word-break: break-all;
  text-align: center;
}

.check-risk {
  font-variant-numeric: tabular-nums;
}

.check-risk-pos,
.check-risk-total.check-risk-pos {
  color: #07c160 !important;
}

.check-risk-neg,
.check-risk-total.check-risk-neg {
  color: #ee0a24 !important;
}

.check-risk-zero,
.check-risk-total.check-risk-zero {
  color: #646566 !important;
}

.check-action-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex-shrink: 0;
}

.check-action-bar-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.check-action-item {
  position: relative;
  min-width: 0;
}

.check-action-item .van-button {
  width: 100%;
}

.check-action-help {
  position: absolute;
  top: -7px;
  right: -4px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e8f8ef;
  color: #07c160;
  font-size: 12px;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 3px rgba(7, 193, 96, 0.18);
  box-sizing: border-box;
}

.check-action-bar-3 .van-button {
  padding: 0 4px;
  font-size: 13px;
}

.eat-detail-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.eat-detail-bankers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 12px 8px;
  flex-shrink: 0;
}

.eat-detail-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 12px 10px;
  padding: 10px 12px;
  background: #e8f8ef;
  border: 1px solid #d2efdd;
  border-radius: 12px;
  flex-shrink: 0;
}

.eat-detail-summary-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.eat-detail-summary-row span {
  font-size: 12px;
  color: #5f7a6a;
}

.eat-detail-summary-row strong {
  font-size: 16px;
  color: #06ad56;
}

.eat-detail-history {
  margin: 10px 12px 16px;
}

.eat-detail-history-title {
  font-size: 13px;
  color: #646566;
  margin-bottom: 8px;
}

.eat-detail-history-card {
  background: #fff;
  border: 1px solid #e5efe9;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.eat-detail-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.eat-detail-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.eat-detail-edit-body {
  max-height: 50vh;
  overflow: auto;
  padding: 8px 12px 16px;
}

.eat-detail-edit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #f2f3f5;
}

.eat-detail-edit-label {
  flex: 0 0 42%;
  font-size: 13px;
  color: #323233;
}

.eat-detail-edit-row .van-field {
  flex: 1;
  padding: 8px 0;
}

.eat-detail-history-time {
  font-size: 13px;
  color: #323233;
  font-weight: 600;
}

.eat-detail-history-meta {
  font-size: 12px;
  color: #969799;
  margin-top: 2px;
}

.eat-detail-history-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
  font-size: 12px;
  color: #646566;
}

.check-table th,
.check-table td {
  font-size: 12px;
  padding: 8px 4px;
}

.check-table .check-content-text {
  margin-left: 0;
}

.table-sort-th {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
  color: #646566;
}

.table-sort-th.is-sorted {
  color: #07c160;
}

.table-sort-mark {
  margin-left: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #c8c9cc;
  vertical-align: middle;
}

.table-sort-th.is-sorted .table-sort-mark {
  color: #07c160;
}

.check-table tfoot .check-table-total td {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #f0faf4;
  border-top: 1px solid #c8ebc6;
  font-weight: 700;
  color: #323233;
  box-shadow: 0 -1px 0 #e5efe9;
}

.check-table-total-label {
  text-align: center;
  color: var(--app-primary-dark);
  font-weight: 700;
}

.check-report {
  color: #ed6a0c;
}

.eat-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.eat-batch-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 12px 6px;
  padding: 2px 8px;
  background: #f7f8fa;
  border-radius: 8px;
  border: 1px solid #ebedf0;
  flex-shrink: 0;
  min-height: 36px;
}

.eat-batch-label {
  flex-shrink: 0;
  font-size: 13px;
  color: #323233;
  line-height: 1.2;
}

.eat-batch-risk-card {
  margin: 0 12px 8px;
  padding: 2px 4px 2px 12px;
  background: #f7f8fa;
  border-radius: 10px;
  border: 1px solid #ebedf0;
  flex-shrink: 0;
  overflow: hidden;
}

.eat-batch-risk-card--row {
  display: flex;
  align-items: stretch;
  padding: 2px 4px;
  gap: 0;
}

.eat-batch-risk-card--row .eat-batch-risk-line {
  flex: 1;
  min-width: 0;
  padding: 0 8px;
}

.eat-batch-risk-card--row .eat-batch-risk-line + .eat-batch-risk-line {
  border-top: none;
  border-left: 1px solid #ebedf0;
}

.eat-batch-risk-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding-right: 4px;
}

.eat-batch-risk-line + .eat-batch-risk-line {
  border-top: 1px solid #ebedf0;
}

.eat-batch-risk-line .eat-batch-label {
  flex-shrink: 0;
  width: auto;
  font-size: 12px;
  color: #323233;
  font-weight: 500;
  white-space: nowrap;
}

.eat-batch-risk-line .eat-batch-field {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: transparent;
}

.empty-cta-btn {
  margin-top: 8px;
}

.eat-batch-risk-line .eat-batch-field .van-field__control {
  font-size: 15px;
  font-weight: 600;
  min-height: 36px;
  color: #323233;
}

.eat-batch-risk-line .eat-batch-field .van-field__control::placeholder {
  font-weight: 400;
  font-size: 13px;
  color: #c8c9cc;
}

.eat-batch-risk-line .eat-help-icon {
  margin-right: 4px;
  color: #969799;
}

.eat-batch-field {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: transparent;
}

.eat-batch-field .van-field__control {
  font-size: 13px;
  min-height: 28px;
}

.eat-tema-only {
  flex-shrink: 0;
  font-size: 12px;
  color: #646566;
}

.eat-tema-only .van-checkbox__label {
  margin-left: 4px;
  line-height: 1.2;
}

.eat-top-meta-row {
  justify-content: space-between;
}

.eat-top-meta-row .eat-all-risk-wrap {
  margin-left: 0;
}

.eat-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e8f8ef;
  color: #07c160;
  font-size: 13px;
  box-sizing: border-box;
}

.pwd-panel-title .eat-help-icon--title {
  margin-left: 8px;
}

.eat-help-dialog .van-dialog__message,
.app-help-dialog .van-dialog__message {
  max-height: 70vh;
  overflow-y: auto;
  padding-top: 4px;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
  white-space: normal;
}

.app-help-dialog .van-dialog__header {
  padding-top: 18px;
  font-weight: 700;
}

.app-help-body {
  color: #646566;
}

.app-help-lead {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0faf4 0%, #e8f8ef 100%);
  border: 1px solid #d6f0e0;
  color: #2f6b45;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
}

.app-help-sec {
  margin: 0 0 12px;
  padding: 0 0 12px;
  border-bottom: 1px dashed #ebedf0;
}

.app-help-sec:last-of-type {
  border-bottom: 0;
  margin-bottom: 4px;
  padding-bottom: 0;
}

.app-help-sec-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #323233;
  line-height: 1.3;
}

.app-help-sec-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 12px;
  margin-right: 6px;
  border-radius: 2px;
  background: #07c160;
  vertical-align: -1px;
}

.app-help-p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #646566;
}

.app-help-list {
  margin: 0;
  padding-left: 1.15em;
}

.app-help-list li {
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: #646566;
}

.app-help-list li:last-child {
  margin-bottom: 0;
}

.app-help-tip {
  margin: 4px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff7e8;
  color: #ed6a0c;
  font-size: 12px;
  line-height: 1.5;
}

.eat-ai-btn {
  flex-shrink: 0;
  height: 26px;
  padding: 0 8px;
}

.eat-ai-action-row {
  margin-bottom: 8px;
  padding: 4px 8px;
  background: transparent;
  border: none;
  gap: 8px;
}

.eat-ai-action-title {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #323233;
  line-height: 1.2;
}

.eat-ai-action-btn {
  flex: 1;
  height: 32px;
}

.eat-aggressive-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #f7f8fa;
}

.eat-aggressive-hint {
  margin: 0 16px 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #969799;
  flex-shrink: 0;
}

.eat-aggressive-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom));
}

.eat-aggressive-card {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid #ebedf0;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  color: inherit;
  box-sizing: border-box;
}

.eat-aggressive-card.is-recommended {
  border-color: #07c160;
  background: #f0faf4;
}

.eat-aggressive-card:active {
  opacity: 0.88;
}

.eat-aggressive-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.eat-aggressive-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #323233;
}

.eat-aggressive-badge {
  font-size: 11px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 4px;
  color: #fff;
  background: #07c160;
}

.eat-aggressive-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #646566;
}

.eat-aggressive-card-risk {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
}

.eat-aggressive-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-size: 12px;
}

.eat-aggressive-card-foot .risk-rebate-tip {
  margin-top: 0;
  flex: 1;
  min-width: 0;
}

.eat-aggressive-ratio {
  flex-shrink: 0;
  color: #969799;
}

.eat-all-risk-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  margin-left: auto;
}

.eat-all-risk-values {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.eat-all-risk {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.eat-all-risk-wrap .risk-rebate-tip {
  margin-top: 0;
}

.eat-row-limit-cell {
  padding: 2px 4px !important;
}

.eat-row-limit-field {
  padding: 0;
  background: #f7f8fa;
  border-radius: 6px;
  width: 50px;
}

.eat-row-limit-field .van-field__control {
  min-height: 28px;
  font-size: 12px;
}

.eat-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 0 12px;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5efe9;
}

.eat-list-delta-tip {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 10px;
  font-size: 12px;
  color: #8a5a00;
  background: #fff8e8;
  border-bottom: 1px solid #f0e0b8;
}

.eat-list-delta-tip strong {
  font-weight: 700;
  color: #c45c00;
}

.eat-delta {
  color: #969799;
  font-variant-numeric: tabular-nums;
}

.eat-delta--over {
  color: #c45c00;
  font-weight: 700;
}

.eat-table th,
.eat-table td {
  font-size: 12px;
}

.eat-id {
  color: #646566;
  font-variant-numeric: tabular-nums;
}

.eat-excess-tip {
  margin: 8px 16px;
  font-size: 13px;
  color: #ee0a24;
  flex-shrink: 0;
}

.eat-panel-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  flex-shrink: 0;
  border-top: 1px solid #ebedf0;
}

.eat-panel-footer--3 {
  grid-template-columns: 1fr 1.2fr 1.2fr;
}

.summary-table-wrap {
  margin: 0 12px;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5efe9;
  box-shadow: 0 4px 14px rgba(7, 193, 96, 0.06);
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.summary-table th,
.summary-table td {
  padding: 10px 5px;
  border-bottom: 1px solid #f0f4f2;
  text-align: center;
  vertical-align: middle;
}

.summary-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f3faf6;
  color: #3d6b52;
  font-weight: 600;
  white-space: nowrap;
  font-size: 12px;
  box-shadow: 0 1px 0 #e5efe9;
}

.summary-table tbody tr:last-child td {
  border-bottom: none;
}

.summary-table tbody tr:nth-child(even) {
  background: #fafcfb;
}

.type-badge {
  display: inline-block;
  padding: 2px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  width: 34px;
  text-align: center;
}

.type-badge.type-tema {
  background: #e8f8ef;
  color: #06ad56;
}

.type-badge.type-pingxiao {
  background: #fff7e8;
  color: #ed6a0c;
}

.type-badge.type-pingwei {
  background: #e8f3ff;
  color: #1989fa;
}

.type-badge.type-lianxiao2,
.type-badge.type-lianxiao3,
.type-badge.type-lianxiao4,
.type-badge.type-lianxiao5 {
  background: #f5e8ff;
  color: #8a4dff;
}

.type-badge.type-lianwei2,
.type-badge.type-lianwei3,
.type-badge.type-lianwei4,
.type-badge.type-lianwei5 {
  background: #e8f7f5;
  color: #07c160;
}

.type-badge.type-buzhong5,
.type-badge.type-buzhong6,
.type-badge.type-buzhong7,
.type-badge.type-buzhong8,
.type-badge.type-buzhong9,
.type-badge.type-buzhong10 {
  background: #fdeeee;
  color: #ee0a24;
}

.summary-content {
  color: #323233;
  word-break: break-all;
  white-space: pre-wrap;
  line-height: 1.4;
}

.summary-amount {
  color: #323233;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.summary-amount-edit {
  color: #06ad56;
  cursor: pointer;
}

.summary-amount-edit .van-icon {
  margin-left: 4px;
  font-size: 14px;
  vertical-align: -1px;
}

.summary-actions {
  text-align: center;
}

.summary-delete {
  font-size: 18px;
  color: #ee0a24;
  padding: 4px;
  cursor: pointer;
}

.summary-edit-body {
  padding: 8px 16px 20px;
}

.summary-edit-target {
  margin-bottom: 8px;
  text-align: center;
  color: #646566;
  font-size: 13px;
}

.summary-edit-body .van-field {
  background: #f7f8fa;
  border-radius: 8px;
  padding: 10px 12px;
}

.summary-table th:last-child,
.summary-table td:last-child {
  text-align: center;
}

.order-group {
  margin-top: 12px;
}

.orders-page {
  padding: 12px 12px 24px;
}

.orders-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ebedf0;
}

.orders-toolbar-tip {
  font-size: 12px;
  color: #969799;
  min-width: 0;
}

.help-page {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f7f8fa;
}

.help-page > .help-tabs {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.help-page .help-tabs > .van-tabs__wrap {
  flex-shrink: 0;
}

.help-page .help-tabs > .van-tabs__content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.help-page .help-tabs .van-tab__panel {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.help-guide {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px 28px;
  box-sizing: border-box;
  background: #f5f7f6;
}

.help-guide-intro {
  margin: 0 0 12px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, #1bb85a 0%, #07c160 55%, #06ad56 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(7, 193, 96, 0.22);
}

.help-guide-intro h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.help-guide-intro p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.help-guide-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.help-guide-steps li {
  flex: 1 1 calc(50% - 6px);
  min-width: 120px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  line-height: 1.4;
  color: #fff;
  box-sizing: border-box;
}

.help-guide-steps strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.help-guide-block {
  background: #fff;
  border-radius: 14px;
  padding: 14px 14px 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid #eef2ef;
}

.help-guide-block h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #323233;
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-guide-block h3::before {
  content: '';
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: #07c160;
  flex-shrink: 0;
}

.help-guide-block h4 {
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #323233;
}

.help-guide-block p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #646566;
}

.help-guide-block ul,
.help-guide-block ol {
  margin: 0 0 8px;
  padding-left: 1.2em;
}

.help-guide-block li {
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: #646566;
}

.help-guide-block code {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  background: #f2f3f5;
  color: #323233;
  font-size: 12px;
}

.help-guide-figure {
  margin: 10px 0 12px;
  padding: 0;
}

.help-guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #ebedf0;
  background: #fff;
}

.help-guide-figure figcaption {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #969799;
  text-align: center;
}

.help-guide-warn {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7e8;
  border: 1px solid #ffe2b8;
  color: #ed6a0c !important;
  font-size: 12px !important;
  line-height: 1.55;
}

.help-guide-important {
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef8f2;
  border: 1px solid #b7e6c9;
  color: #1a7a45 !important;
  font-size: 13px !important;
  line-height: 1.55;
  font-weight: 500;
}

.help-guide-important strong {
  color: #0d5c32;
  font-weight: 700;
}

.help-guide-block ul.help-guide-faq {
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-guide-block ul.help-guide-faq li {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7faf8;
  border: 1px solid #eef2ef;
  color: #646566;
}

.help-guide-block ul.help-guide-faq li:last-child {
  margin-bottom: 0;
}

.help-guide-block ul.help-guide-faq strong {
  display: block;
  margin-bottom: 4px;
  color: #323233;
  font-size: 13px;
}

.tools-page {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 0;
  flex: 1;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  background: #f7f8fa;
}

.tools-side {
  flex: 0 0 72px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #fff;
  border-right: 1px solid #ebedf0;
  padding-bottom: 20px;
  box-sizing: border-box;
}

.tools-side-item {
  flex-shrink: 0;
  border: none;
  border-bottom: 1px solid #f2f3f5;
  background: transparent;
  color: #646566;
  padding: 12px 8px;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
}

.tools-side-item.active {
  background: #e8f8ef;
  color: #07c160;
  font-weight: 700;
  position: relative;
}

.tools-side-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: #07c160;
}

.tools-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 10px 28px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-sizing: border-box;
}

.tools-main::after {
  content: '';
  display: block;
  flex-shrink: 0;
  height: 12px;
}

.tools-group-card {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.tools-group-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tools-group-label {
  font-size: 14px;
  font-weight: 700;
  color: #323233;
}

.tools-group-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tools-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 4px;
  border: none;
  border-radius: 50%;
  background: #f2f3f5;
  color: #323233;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  box-sizing: border-box;
}

.tools-num.is-wave-red {
  background: linear-gradient(180deg, #ff6b6b 0%, #e03131 100%);
  color: #fff;
}

.tools-num.is-wave-blue {
  background: linear-gradient(180deg, #74c0fc 0%, #1c7ed6 100%);
  color: #fff;
}

.tools-num.is-wave-green {
  background: linear-gradient(180deg, #69db7c 0%, #2f9e44 100%);
  color: #fff;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ebedf0;
}

.order-card-main {
  min-width: 0;
  flex: 1;
}

.order-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #323233;
  margin-bottom: 4px;
}

.order-card-sub {
  font-size: 12px;
  color: #646566;
  line-height: 1.4;
  margin-bottom: 6px;
  word-break: break-all;
}

.order-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 11px;
  color: #969799;
}

.order-card-side {
  text-align: right;
  flex-shrink: 0;
}

.order-card-profit {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.order-detail-time {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #969799;
  font-weight: 400;
}

.order-detail-actions {
  flex-shrink: 0;
  margin-top: 0;
  padding: 8px 12px 12px;
  background: #fff;
  border-top: 1px solid #ebedf0;
}

.order-detail-banner {
  flex-shrink: 0;
  margin: 0 12px 8px;
  padding: 8px 10px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ebedf0;
}

.order-detail-panel {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.order-detail-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 12px 16px;
}

.order-detail-tabs {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.order-detail-tabs .van-tabs__wrap {
  flex-shrink: 0;
}

.order-detail-tabs .van-tabs__content {
  flex: 1;
  min-height: 0;
  overflow: hidden !important;
}

.order-detail-tabs .van-tabs__track {
  height: 100%;
}

.order-detail-tabs .van-tab__panel {
  height: 100%;
  overflow: hidden;
}

.order-tab-pane.prize-result-wrap {
  flex: none;
  min-height: auto;
  overflow: visible;
  padding-top: 8px;
  padding-bottom: 20px;
}

.order-tab-pane {
  padding-top: 8px;
}

.order-ledger-total {
  font-size: 14px;
  color: #323233;
}

.order-ledger-table {
  margin-top: 0;
}

.order-ledger-table th,
.order-ledger-table td {
  padding: 6px 4px;
  font-size: 12px;
}

.pwd-panel-close {
  font-size: 20px;
  color: #969799;
  padding: 4px;
}

.order-value {
  text-align: right;
}

.order-price {
  color: #ee0a24;
  font-weight: 600;
}

.order-tag {
  margin-top: 6px;
}

.settings-wrap {
  padding-top: 12px;
}

.settings-wrap .logout-btn {
  margin-top: 16px;
}

.expire-warning {
  color: #ee0a24;
  font-weight: 600;
}

.expire-quick-wrap {
  margin: 12px 16px 0;
}

.expire-quick-label {
  display: block;
  font-size: 12px;
  color: #969799;
  margin-bottom: 8px;
}

.expire-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-group {
  margin-top: 12px;
}

.pwd-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f5faf7;
}

.pwd-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  font-size: 16px;
  font-weight: 600;
  background: #fff;
  border-bottom: 1px solid #e2f5ea;
  color: var(--app-primary-dark);
  margin-bottom: 8px;
  flex-shrink: 0;
}

.pwd-panel-header:has(+ .manager-search-wrap),
.pwd-panel-header:has(+ .pwd-admin-tabs-wrap) {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 10px;
}

.pwd-admin-tabs-wrap {
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #e2f5ea;
  padding: 0 8px 6px;
}

.pwd-admin-tabs.app-seg-tabs > .van-tabs__wrap {
  height: 36px;
}

.pwd-admin-tabs.app-seg-tabs .van-tabs__nav {
  padding-bottom: 0;
}

.odds-manager-hint {
  margin: 0 12px 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef8f2;
  border: 1px solid #b7e6c9;
  font-size: 12px;
  color: #1a7a45;
  line-height: 1.5;
  font-weight: 500;
}

.manager-search-wrap {
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #e2f5ea;
  padding: 8px;
}

.manager-search-wrap .van-search {
  padding: 0 !important;
  background: transparent !important;
}

.manager-search-wrap .van-search__content {
  background: #f5f7fa;
  border-radius: 8px;
  padding-left: 0;
}

.manager-search-wrap .van-cell {
  background: transparent;
  padding: 6px 12px;
  align-items: center;
}

/* 去掉 Field 默认 label 占位，避免搜索图标被挤到右侧 */
.manager-search-wrap .van-field__label {
  display: none !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.manager-search-wrap .van-field__left-icon {
  margin-right: 6px;
  color: #969799;
}

.manager-search-wrap .van-field__value {
  flex: 1;
  min-width: 0;
}

.manager-search-wrap .van-field__control {
  font-size: 14px;
}

.pwd-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.list-pagination {
  flex-shrink: 0;
  padding: 8px 12px 12px;
  background: #fff;
  border-top: 1px solid #e2f5ea;
}

.orders-page .list-pagination {
  margin: 8px 12px 16px;
  border: 1px solid #e2f5ea;
  border-radius: 12px;
}

.entity-form {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.entity-form-body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.entity-form-footer {
  flex-shrink: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #e2f5ea;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
}

.form-section-title {
  margin: 16px 16px 8px;
  font-size: 13px;
  color: #646566;
  font-weight: 600;
}

.form-section-hint {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 400;
  color: #969799;
}

.odds-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.odds-card {
  padding: 10px;
  min-width: 0;
}

.odds-card .pwd-card-top {
  margin-bottom: 4px;
  gap: 4px;
}

.odds-card .pwd-name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.odds-card .pwd-meta {
  font-size: 11px;
  line-height: 1.45;
}

.odds-draft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 12px 12px;
}

.odds-draft-group {
  margin: 0 !important;
  min-width: 0;
}

.odds-draft-group.van-cell-group--inset {
  margin: 0 !important;
}

.odds-draft-group .van-cell {
  padding: 8px 10px;
}

.odds-draft-group .van-field__label {
  width: 7.2em;
  margin-right: 6px;
  font-size: 12px;
}

.odds-draft-group .van-field__control {
  font-size: 13px;
}

.pwd-list {
  display: grid;
  gap: 10px;
}

.pwd-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #e2f5ea;
}

.pwd-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.pwd-name {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}

.entity-default-badge {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: #07c160;
  background: #e8f8ef;
  border: 1px solid #b7ebc6;
}

.pwd-meta {
  color: #969799;
  font-size: 12px;
  line-height: 1.6;
}

.pwd-lock-meta {
  color: #ee0a24;
  font-weight: 600;
}

.lottery-zodiac-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 4px;
  flex-wrap: wrap;
}

.lottery-zodiac-label {
  font-size: 12px;
  color: #969799;
}

.lottery-zodiac-value {
  font-size: 18px;
  color: #06ad56;
  font-weight: 700;
}

.lottery-zodiac-rule {
  font-size: 12px;
  color: #7d8f85;
}

.pwd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.prize-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.prize-draw-box {
  flex-shrink: 0;
  margin: 0 12px 10px;
  padding: 10px;
  background: #f7f8fa;
  border-radius: 10px;
  border: 1px solid #ebedf0;
}

.prize-draw-title {
  font-size: 12px;
  color: #646566;
  margin-bottom: 8px;
}

.prize-draw-empty-tip {
  margin-bottom: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: #ee0a24;
  background: #fff1f0;
  border-radius: 8px;
}

.prize-draw-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 10px;
}

.prize-draw-grid.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.prize-draw-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.prize-draw-label {
  font-size: 11px;
  color: #969799;
}

.prize-draw-item.is-tema .prize-draw-label {
  color: #ee0a24;
  font-weight: 700;
}

.prize-draw-field {
  width: 100%;
  padding: 0;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #ebedf0;
}

.prize-draw-field .van-field__control {
  font-size: 14px;
  font-weight: 700;
  min-height: 32px;
  padding: 0;
}

.prize-draw-item.is-tema .prize-draw-field {
  border-color: #ffccc7;
  background: #fff1f0;
}

.prize-result-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 12px 16px;
}

/* 兑奖报表结算看板：外层不滚，只滚 Tab 内容，避免表格被裁切 */
.prize-result-wrap.report-board {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}

.prize-result-wrap.report-board > .prize-draw-result {
  flex-shrink: 0;
}

.report-board-tabs {
  flex: 1;
  min-height: 0;
  height: 100%;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.report-board-tabs .van-tabs__wrap {
  flex-shrink: 0;
}

.report-board-tabs .van-tabs__content {
  flex: 1;
  min-height: 0;
  overflow: hidden !important;
}

.report-board-tabs .van-tabs__track {
  height: 100%;
}

.report-board-tabs .van-tab__panel {
  height: 100%;
  overflow: hidden;
}

.report-board .order-tab-pane,
.order-detail-panel .order-tab-pane,
.report-pane {
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 8px;
  padding-bottom: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.report-pane--table {
  overflow: hidden;
  padding-bottom: 8px;
}

.report-pane--table .prize-detail-toolbar {
  flex-shrink: 0;
}

.report-board .summary-table-wrap,
.order-detail-panel .summary-table-wrap,
.report-table-wrap {
  margin: 0;
  flex: none;
  min-height: auto;
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.report-pane--table .report-table-wrap {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
  border: 1px solid #ebedf0;
  border-radius: 10px;
  background: #fff;
}

.report-board-tabs .van-tabs__nav {
  padding-left: 3px;
  padding-right: 3px;
}

.report-board-tabs .van-tab {
  flex: 1 1 0;
  padding: 0 6px;
  font-size: 14px;
}

.prize-draw-result {
  font-size: 13px;
  color: #323233;
  font-weight: 600;
  margin-bottom: 10px;
}

.prize-section {
  margin-bottom: 14px;
}

.prize-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #323233;
}

.prize-card {
  background: #fff;
  border: 1px solid #ebedf0;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}

.prize-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.prize-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.prize-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #07c160;
  min-width: 0;
  flex: 1;
}

.prize-detail-table {
  margin-top: 8px;
  width: 100%;
}

.prize-detail-table tr.is-hit {
  background: #fff7e6;
}

.prize-hit-amount {
  color: #ee0a24;
  font-weight: 700;
}

.prize-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px 8px;
}

.prize-detail-hit-tip {
  font-size: 12px;
  color: #969799;
}

.prize-detail-party {
  margin-top: 2px;
  font-size: 11px;
  color: #969799;
  line-height: 1.3;
}

.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: #f3f6f4;
}

.report-kpi {
  background: #fff;
  border-radius: 10px;
  padding: 8px 6px 9px;
  text-align: center;
  min-width: 0;
  border: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(7, 193, 96, 0.04);
}

.report-kpi.is-accent {
  background: #fffaf3;
  border-color: #ffe2b8;
}

.report-kpi span {
  display: block;
  font-size: 10px;
  color: #8c8c8c;
  line-height: 1.2;
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

.report-kpi strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1f2329;
  word-break: break-all;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.report-kpi.is-accent strong {
  color: #ed6a0c;
}

.report-profit-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 14px 14px 12px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #ebedf0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.report-profit-card.check-risk-pos {
  background: linear-gradient(135deg, #f0faf4 0%, #fff 55%);
  border-color: #c8ebc6;
}

.report-profit-card.check-risk-neg {
  background: linear-gradient(135deg, #fff7f6 0%, #fff 55%);
  border-color: #ffccc7;
}

.report-profit-label {
  width: 100%;
  font-size: 12px;
  color: #969799;
}

.report-profit-value {
  flex: 1;
  min-width: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  color: #323233;
}

.report-profit-card.check-risk-pos .report-profit-value {
  color: #07c160;
}

.report-profit-card.check-risk-neg .report-profit-value {
  color: #ee0a24;
}

.report-flow-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.report-flow-block {
  border-radius: 12px;
  padding: 10px 10px 8px;
  min-width: 0;
  border: 1px solid #ebedf0;
  background: #fff;
}

.report-flow-block.is-income {
  background: #f6fbf8;
  border-color: #d8f0e1;
}

.report-flow-block.is-expense {
  background: #fffaf9;
  border-color: #ffe3df;
}

.report-flow-head {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
  color: #323233;
}

.report-flow-block.is-income .report-flow-head {
  color: #07c160;
}

.report-flow-block.is-expense .report-flow-head {
  color: #ee0a24;
}

.report-flow-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 3px 0;
  font-size: 12px;
  color: #646566;
}

.report-flow-line b {
  font-size: 13px;
  font-weight: 700;
  color: #323233;
  font-variant-numeric: tabular-nums;
}

.report-side-card {
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  border-color: #f0f1f2;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.report-side-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.report-side-metrics > div {
  min-width: 0;
  text-align: center;
  padding: 6px 2px;
  border-radius: 8px;
  background: #f7f8fa;
}

.report-side-metrics span {
  display: block;
  font-size: 11px;
  color: #969799;
  margin-bottom: 2px;
}

.report-side-metrics strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #323233;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.report-eat-table {
  font-size: 12px;
}

.report-eat-table th,
.report-eat-table td {
  padding: 8px 6px;
  white-space: nowrap;
}

.report-eat-table th:nth-child(2),
.report-eat-table td.summary-content {
  white-space: normal;
  min-width: 72px;
}

.report-eat-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  color: #969799;
  background: #fafafa;
  box-shadow: 0 1px 0 #ebedf0;
}

@media (max-width: 360px) {
  .report-side-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .report-profit-value {
    font-size: 22px;
  }
}

.prize-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}

.prize-flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.prize-flow-card {
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #ebedf0;
}

.prize-flow-card.is-income {
  background: #f0faf4;
  border-color: #b7ebc6;
}

.prize-flow-card.is-expense {
  background: #fff7f6;
  border-color: #ffccc7;
}

.prize-flow-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.prize-flow-card.is-income .prize-flow-title {
  color: #07c160;
}

.prize-flow-card.is-expense .prize-flow-title {
  color: #ee0a24;
}

.prize-flow-profit {
  margin-top: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ebedf0;
  border-radius: 10px;
}

.prize-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prize-metric span {
  font-size: 11px;
  color: #969799;
}

.prize-metric strong {
  font-size: 14px;
  color: #323233;
  font-variant-numeric: tabular-nums;
}

.prize-metric-full {
  grid-column: 1 / -1;
  padding-top: 4px;
  border-top: 1px dashed #ebedf0;
}

/* 顶部导航与底部 Tab：刘海 / 状态栏安全区
   注意：Vant 的 .van-nav-bar--safe-area-inset-top 只用 env()，Android WebView 常为 0，
   且特异性高于 .van-nav-bar，会盖掉 --app-status-bar。必须用更高特异性统一吃 --app-safe-top。 */
.van-nav-bar,
.van-nav-bar.van-nav-bar--safe-area-inset-top {
  padding-top: var(--app-safe-top, 0px);
  box-sizing: content-box;
}

.van-nav-bar__placeholder {
  height: calc(var(--van-nav-bar-height, 46px) + var(--app-safe-top, 0px));
}

.van-nav-bar .van-nav-bar__title {
  color: var(--app-primary-dark);
  font-weight: 700;
}

.nav-clear-btn,
.nav-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 4px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #969799;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-action-btn .van-icon {
  font-size: 15px;
  color: #c8c9cc;
}

.nav-action-btn--danger {
  color: #646566;
}

.nav-action-btn--danger .van-icon {
  color: #ee0a24;
}

.nav-action-btn:active {
  opacity: 0.55;
}

.nav-action-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.van-tabbar {
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: content-box;
}

.van-tabbar-item--active {
  color: var(--app-primary) !important;
}

/* iOS 首次引导：添加到主屏幕 */
.ios-home-guide {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.ios-home-guide--show {
  pointer-events: auto;
  opacity: 1;
}

.ios-home-guide__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.ios-home-guide__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 28px rgba(7, 193, 96, 0.12);
  transform: translateY(24px);
  transition: transform 0.22s ease;
  text-align: center;
}

.ios-home-guide--show .ios-home-guide__sheet {
  transform: translateY(0);
}

.ios-home-guide__handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #e5e7eb;
}

.ios-home-guide__logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: #07130f;
  margin-bottom: 12px;
}

.ios-home-guide__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--app-primary-dark);
  margin-bottom: 8px;
}

.ios-home-guide__desc {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #64748b;
}

.ios-home-guide__steps {
  margin: 0 0 18px;
  padding: 14px 16px;
  list-style: none;
  counter-reset: ios-step;
  text-align: left;
  background: var(--app-primary-light);
  border-radius: 12px;
}

.ios-home-guide__steps li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 14px;
  line-height: 1.45;
  color: #334155;
  counter-increment: ios-step;
}

.ios-home-guide__steps li::before {
  content: counter(ios-step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--app-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.ios-home-guide__share {
  display: inline-flex;
  vertical-align: -3px;
  color: var(--app-primary);
  margin: 0 2px;
}

.ios-home-guide__btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 22px;
  background: var(--app-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.usage-guide-dialog .van-dialog__header {
  padding-top: 24px;
  font-weight: 700;
}

.usage-guide-dialog .van-dialog__message {
  white-space: pre-wrap;
  text-align: left;
  line-height: 1.6;
  color: #646566;
  padding: 12px 20px 8px;
}

/* 平板 / PC：左侧导航 + 录单核对同页双栏（≥600）；手机仍底部 Tab */
@media (min-width: 600px) {
  .main-page--pc {
    flex-direction: row;
    align-items: stretch;
  }

  .pc-side-nav {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 72px;
    background: #fff;
    border-right: 1px solid #e4ece7;
    color: #6b776f;
    z-index: 30;
  }

  .pc-side-nav__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    flex-shrink: 0;
  }

  .pc-side-nav__logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(7, 193, 96, 0.18);
  }

  .pc-side-nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 6px 8px 12px;
    gap: 4px;
  }

  .pc-side-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    margin: 0;
    padding: 10px 0 8px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #6b776f;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .pc-side-nav__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f2f7f4;
    color: inherit;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  }

  .pc-side-nav__ico .van-icon {
    font-size: 20px;
  }

  .pc-side-nav__txt {
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
  }

  .pc-side-nav__item:hover {
    color: #2f3b35;
  }

  .pc-side-nav__item:hover .pc-side-nav__ico {
    background: #e7f3ec;
  }

  .pc-side-nav__item.active {
    color: #06ad56;
  }

  .pc-side-nav__item.active .pc-side-nav__ico {
    background: #07c160;
    color: #fff;
    box-shadow: 0 4px 10px rgba(7, 193, 96, 0.28);
  }

  .main-page--pc .main-shell {
    background: #f5faf7;
  }

  .main-page--pc .van-nav-bar {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
  }

  .main-page--pc .main-body {
    flex: 1;
    min-height: 0;
  }

  .home-page--pc .home-split {
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    padding: 8px 10px 10px;
  }

  .home-page--pc .home-col {
    background: #fff;
    border: 1px solid #e4ece7;
    border-radius: 14px;
    overflow: hidden;
  }

  .home-page--pc .home-col--record {
    flex: 0 0 40%;
    max-width: 420px;
    min-width: 260px;
  }

  .home-page--pc .home-col--check {
    flex: 1 1 0;
  }

  .home-page--pc .home-col-title {
    display: block;
    flex-shrink: 0;
    padding: 12px 16px 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1f2a24;
    border-bottom: 1px solid #eef3f0;
  }

  .home-page--pc .home-pane {
    padding-top: 8px;
  }

  .home-page--pc .van-cell-group--inset {
    margin-left: 12px;
    margin-right: 12px;
  }
}

@media (min-width: 1100px) {
  .home-page--pc .home-col--record {
    max-width: 480px;
  }

  .home-page--pc .home-split {
    gap: 12px;
    padding: 10px 12px 12px;
  }
}
