﻿: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;
}

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;
}

[v-cloak] {
  display: none;
}

.login-page {
  min-height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 20px 24px;
  padding-top: calc(16vh + max(env(safe-area-inset-top, 0px), var(--app-status-bar, 0px)));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(120% 80% at 10% -10%, #c9f0d8 0%, transparent 55%),
    radial-gradient(100% 70% at 100% 0%, #dff7e9 0%, transparent 50%),
    #f5faf7;
}

.login-card {
  width: 100%;
  max-width: 360px;
  margin-top: 0;
  background: #fff;
  border-radius: 16px;
  padding: 28px 20px 22px;
  box-shadow: 0 8px 24px rgba(7, 193, 96, 0.08);
}

.login-logo-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 12px;
}

.login-logo {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  background: #07130f;
  box-shadow: 0 12px 32px rgba(7, 193, 96, 0.28);
}

.login-brand {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--app-primary-dark);
  letter-spacing: 0.5px;
}

.login-desc {
  margin: 6px 0 18px;
  text-align: center;
  color: #969799;
  font-size: 13px;
}

.login-card .van-cell {
  background: var(--app-primary-light);
  border-radius: 8px;
  margin-bottom: 12px;
}

.main-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f5faf7;
  overflow: hidden;
}

.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-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;
}

.home-pane {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 0 20px;
  box-sizing: border-box;
}

.home-pane-actions {
  margin: 16px 16px 0;
}

.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: 8px;
  border: 1px solid #e2f5ea;
}

.record-tip-item {
  font-size: 13px;
  color: #646566;
  line-height: 1.7;
}

.record-content-box {
  margin: 12px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2f5ea;
  position: relative;
}

.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;
}

.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;
}

.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-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;
}

.check-content {
  text-align: left !important;
}

.check-content-text {
  margin-left: 6px;
}

.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;
  margin: 0 12px 10px;
  flex-shrink: 0;
}

.check-action-bar-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.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 {
  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: 4px;
}

.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: 12px;
  color: #323233;
  width: 28px;
}

.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 {
  flex-shrink: 0;
  font-size: 16px;
  color: #969799;
  padding: 2px;
}

.eat-ai-btn {
  flex-shrink: 0;
  height: 26px;
  padding: 0 8px;
}

.eat-batch-risk-row .eat-batch-label {
  width: auto;
}

.eat-ai-action-row {
  margin-bottom: 8px;
  padding: 4px 8px;
  background: transparent;
  border: none;
  gap: 8px;
}

.eat-ai-action-btn {
  flex: 1;
  height: 32px;
}

.eat-all-risk-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.eat-all-risk {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.eat-row-limit-cell {
  padding: 2px 4px !important;
}

.eat-row-limit-field {
  padding: 0;
  background: #f7f8fa;
  border-radius: 6px;
}

.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-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;
}

.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: 32px;
  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;
}

.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%;
  overflow: hidden;
}

.help-guide {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px 24px;
  box-sizing: border-box;
}

.help-guide-block {
  background: #fff;
  border-radius: 12px;
  padding: 14px 14px 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.help-guide-block h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #323233;
}

.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.55;
  color: #646566;
}

.help-guide-block ul,
.help-guide-block ol {
  margin: 0 0 8px;
  padding-left: 1.2em;
}

.help-guide-block li {
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.5;
  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: 8px 10px;
  border-radius: 8px;
  background: #fff7e8;
  color: #ed6a0c !important;
  font-size: 12px !important;
  line-height: 1.5;
}

.tools-page {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 0;
  height: 100%;
  min-height: 0;
  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: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #fff;
  border-right: 1px solid #ebedf0;
}

.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: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.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 {
  min-width: 32px;
  height: 28px;
  padding: 0 6px;
  border: none;
  border-radius: 6px;
  background: #f2f3f5;
  color: #323233;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.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;
}

.order-detail-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.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-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.order-detail-tabs .van-tab__panel {
  overflow: visible;
}

.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: 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) {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 10px;
}

.manager-search-wrap {
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #e2f5ea;
  padding: 0 12px 12px;
}

.manager-search-wrap .van-search {
  padding: 0;
  background: transparent;
}

.manager-search-wrap .van-search__content {
  background: #f5faf7;
  border-radius: 999px;
}

.pwd-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 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-manager-hint {
  margin: 0 16px 8px;
  font-size: 12px;
  color: #969799;
}

.odds-draft-group {
  margin-top: 10px;
}

.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;
}

.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;
  gap: 8px;
  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-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 10px;
}

.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;
}

.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;
}

.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-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：刘海 / 状态栏安全区（App 透传 --app-status-bar） */
.van-nav-bar {
  padding-top: constant(safe-area-inset-top);
  padding-top: env(safe-area-inset-top, 0px);
  padding-top: max(constant(safe-area-inset-top), var(--app-status-bar, 0px));
  padding-top: max(env(safe-area-inset-top, 0px), var(--app-status-bar, 0px));
  box-sizing: content-box;
}

.van-nav-bar__placeholder {
  height: calc(var(--van-nav-bar-height, 46px) + constant(safe-area-inset-top));
  height: calc(var(--van-nav-bar-height, 46px) + env(safe-area-inset-top, 0px));
  height: calc(var(--van-nav-bar-height, 46px) + max(constant(safe-area-inset-top), var(--app-status-bar, 0px)));
  height: calc(var(--van-nav-bar-height, 46px) + max(env(safe-area-inset-top, 0px), var(--app-status-bar, 0px)));
}

.van-nav-bar .van-nav-bar__title {
  color: var(--app-primary-dark);
  font-weight: 700;
}

.nav-clear-btn {
  border: none;
  background: transparent;
  color: #ee0a24;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}

.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;
}
