.purchase-page { position: relative; min-height: 100vh; padding-bottom: calc(220rpx + env(safe-area-inset-bottom)); background: #f3faf6; box-sizing: border-box; overflow: hidden; } .page-atmosphere { position: absolute; left: 0; right: 0; top: 0; height: 280rpx; pointer-events: none; z-index: 0; background: radial-gradient(ellipse 70% 80% at 90% 0%, rgba(16, 185, 129, 0.16) 0%, transparent 60%), linear-gradient(180deg, #d1fae5 0%, rgba(243, 250, 246, 0) 100%); } .kpi-card, .main-panel { position: relative; z-index: 1; } .kpi-card { margin: 20rpx 24rpx 0; background: linear-gradient(135deg, #047857 0%, #059669 55%, #10b981 100%); border-radius: 28rpx; padding: 28rpx 32rpx; display: flex; align-items: flex-start; justify-content: space-between; color: #fff; box-shadow: 0 16rpx 40rpx rgba(5, 150, 105, 0.28); } .kpi-left, .kpi-right { display: flex; flex-direction: column; gap: 8rpx; } .kpi-right { align-items: flex-end; text-align: right; } .kpi-label { font-size: 22rpx; opacity: 0.9; } .kpi-date { font-size: 36rpx; font-weight: 700; line-height: 1.2; } .kpi-progress { font-size: 36rpx; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; } .main-panel { margin: 20rpx 24rpx 0; padding: 28rpx 24rpx 24rpx; background: #fff; border: 1px solid #e7efea; border-radius: 28rpx; box-shadow: 0 10rpx 28rpx rgba(6, 78, 59, 0.05); } .panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16rpx; margin-bottom: 20rpx; } .panel-head-left { min-width: 0; flex: 1; } .section-head { display: flex; align-items: center; gap: 12rpx; } .section-mark { width: 8rpx; height: 28rpx; border-radius: 8rpx; background: linear-gradient(180deg, #10b981 0%, #047857 100%); flex-shrink: 0; } .section-title { font-size: 30rpx; font-weight: 700; color: #0a0a0b; } .date-hint { margin-top: 10rpx; font-size: 22rpx; color: #71717a; line-height: 1.45; } .refresh-btn { display: inline-flex; align-items: center; gap: 6rpx; padding: 10rpx 16rpx; border-radius: 999rpx; background: #ecfdf5; color: #047857; font-size: 24rpx; font-weight: 600; flex-shrink: 0; } .seg-tabs { display: flex; padding: 6rpx; border-radius: 18rpx; background: #f4f4f5; margin-bottom: 16rpx; } .page-tabs-card { position: relative; z-index: 1; margin: 20rpx 24rpx 0; padding: 12rpx; background: #fff; border: 1px solid #e7efea; border-radius: 24rpx; box-shadow: 0 8rpx 24rpx rgba(6, 78, 59, 0.04); } .page-tabs-card .seg-tabs { margin-bottom: 0; } .seg-tab { flex: 1; text-align: center; padding: 16rpx 0; border-radius: 14rpx; font-size: 26rpx; font-weight: 600; color: #71717a; } .seg-tab.active { background: #059669; color: #fff; box-shadow: 0 8rpx 18rpx rgba(5, 150, 105, 0.22); } .toolbar-card { margin-bottom: 16rpx; padding: 16rpx 18rpx; border-radius: 18rpx; background: #fafafa; border: 1px solid #f1f5f3; } .filter-row { display: flex; gap: 12rpx; flex-wrap: wrap; } .filter-chip { display: inline-flex; align-items: center; gap: 6rpx; padding: 12rpx 20rpx; border-radius: 999rpx; font-size: 24rpx; font-weight: 600; color: #52525b; background: #fff; border: 1px solid #e4e4e7; } .filter-chip.active { color: #fff; background: #059669; border-color: #059669; } .aggregate-row { margin-top: 14rpx; padding-top: 14rpx; border-top: 1px dashed #e7efea; } .aggregate-toggle { display: flex; align-items: center; gap: 14rpx; } .aggregate-text { display: flex; flex-direction: column; gap: 2rpx; min-width: 0; } .aggregate-label { font-size: 26rpx; font-weight: 600; color: #0a0a0b; } .aggregate-hint { font-size: 20rpx; color: #a1a1aa; } .category-scroll { display: flex; flex-direction: row; gap: 12rpx; margin-bottom: 16rpx; padding-bottom: 4rpx; white-space: nowrap; } .category-chip { display: inline-flex; padding: 10rpx 20rpx; border-radius: 999rpx; font-size: 24rpx; color: #52525b; background: #fafafa; border: 1px solid #e4e4e7; flex-shrink: 0; } .category-chip.active { color: #fff; background: #059669; border-color: #059669; } .error-box { margin-bottom: 12rpx; padding: 16rpx 18rpx; border-radius: 16rpx; background: #fef2f2; border: 1px solid #fecaca; color: #ef4444; font-size: 24rpx; } .state-box { padding: 48rpx 16rpx; display: flex; justify-content: center; } .order-group { margin-top: 18rpx; border: 1px solid #e7efea; border-radius: 20rpx; overflow: hidden; background: #fff; box-shadow: 0 4rpx 16rpx rgba(15, 23, 42, 0.03); } .order-header { display: flex; justify-content: space-between; align-items: center; gap: 16rpx; padding: 22rpx 24rpx; background: #f8fafc; border-bottom: 1px solid #e7efea; } .order-header-main { display: flex; align-items: center; gap: 12rpx; min-width: 0; flex: 1; } .order-header-text { min-width: 0; flex: 1; } .order-title { font-size: 28rpx; font-weight: 700; color: #0a0a0b; } .order-sub { font-size: 22rpx; margin-top: 4rpx; color: #71717a; } .order-badge { font-size: 22rpx; color: #52525b; white-space: nowrap; padding: 6rpx 14rpx; border-radius: 999rpx; background: #f4f4f5; } .pending-badge { color: #d97706; background: #fffbeb; border: 1px solid #fde68a; font-weight: 600; } .product-card { padding: 24rpx; border-top: 1px solid #f1f5f3; } .product-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12rpx; } .product-card-main { display: flex; align-items: flex-start; gap: 12rpx; min-width: 0; flex: 1; } .product-card-text { min-width: 0; flex: 1; } .task-title { font-size: 28rpx; font-weight: 700; color: #0a0a0b; line-height: 1.35; } .product-meta { margin-top: 6rpx; font-size: 22rpx; color: #71717a; } .product-children { margin-top: 16rpx; padding-top: 12rpx; border-top: 1px dashed #e7efea; } .child-item { padding: 14rpx 0; border-bottom: 1px solid #f4f4f5; } .child-item:last-child { border-bottom: none; } .child-line { font-size: 22rpx; color: #71717a; line-height: 1.45; } .history-toolbar { margin-bottom: 0; } .period-chip { white-space: nowrap; } .history-range { margin-top: 12rpx; } .range-chip { padding: 12rpx 20rpx; border-radius: 999rpx; background: #fff; border: 1px solid #e4e4e7; font-size: 24rpx; color: #52525b; } .range-value { color: #0a0a0b; font-weight: 600; margin-left: 6rpx; } .period-summary { margin-top: 12rpx; font-size: 22rpx; color: #71717a; } .day-header-side { display: flex; align-items: center; gap: 14rpx; } .day-total-amount { font-size: 28rpx; font-weight: 700; color: #0a0a0b; } .archive-table { margin: 0; border: none; border-radius: 0; overflow: hidden; background: #fff; } .archive-tr { display: flex; align-items: center; padding: 18rpx 20rpx; border-top: 1px solid #f4f4f5; } .archive-tr--head { border-top: none; background: #fafafa; padding: 14rpx 20rpx; } .archive-tr--head .archive-td { color: #a1a1aa; font-weight: 600; font-size: 22rpx; } .archive-td { font-size: 26rpx; color: #0a0a0b; } .archive-td--name { flex: 1; min-width: 0; word-break: break-all; padding-right: 12rpx; } .archive-td--qty { width: 150rpx; flex-shrink: 0; } .archive-td--price { width: 130rpx; flex-shrink: 0; color: #52525b; } .archive-td--total { width: 140rpx; flex-shrink: 0; text-align: right; font-weight: 700; } .supplier-hint { margin-top: 8rpx; font-size: 22rpx; color: #059669; } .setup-hint { margin-top: 12rpx; font-size: 22rpx; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12rpx; padding: 12rpx 14rpx; line-height: 1.45; } .product-setup { margin-top: 16rpx; padding: 16rpx; background: #f8fafc; border: 1px dashed #e7efea; border-radius: 14rpx; } .field-block-cat { position: relative; z-index: 2; margin-top: 14rpx; } .cat-field-row { display: flex; align-items: flex-start; gap: 8rpx; } .cat-picker-wrap { flex: 1; min-width: 0; position: relative; } .item-control { width: 100%; height: 64rpx; line-height: 64rpx; padding: 0 12rpx; border: 1px solid #e4e4e7; border-radius: 12rpx; background: #fff; font-size: 24rpx; color: #0a0a0b; box-sizing: border-box; } .item-control-cat { display: flex; align-items: center; justify-content: space-between; } .item-control-cat.cat-filled .cat-label { flex: 1; min-width: 0; color: #0a0a0b; font-size: 24rpx; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .item-control-cat.cat-empty { color: #b45309; background: #fffbeb; border-color: #fde68a; } .item-control-cat.cat-empty .cat-label { flex: 1; min-width: 0; color: #b45309; font-size: 22rpx; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cat-arrow { margin-left: 8rpx; color: #a1a1aa; font-size: 20rpx; flex-shrink: 0; } .cat-dropdown-panel { position: absolute; left: 0; right: 0; top: 68rpx; z-index: 950; background: #fff; border: 1px solid #e4e4e7; border-radius: 12rpx; box-shadow: 0 8rpx 24rpx rgba(15, 23, 42, 0.08); overflow: hidden; } .cat-dropdown-search-wrap { padding: 12rpx; border-bottom: 1px solid #f4f4f5; background: #fafafa; } .cat-dropdown-search { display: block; width: 100%; height: 64rpx; min-height: 64rpx; line-height: 64rpx; padding: 0 16rpx; border: 1px solid #e4e4e7; border-radius: 10rpx; background: #fff; font-size: 28rpx; color: #0a0a0b; caret-color: #059669; box-sizing: border-box; } .cat-dropdown-list { max-height: 320rpx; } .cat-dropdown-item { padding: 18rpx 20rpx; font-size: 26rpx; color: #52525b; border-bottom: 1px solid #f4f4f5; } .cat-dropdown-item.selected { color: #047857; background: #ecfdf5; font-weight: 600; } .cat-dropdown-empty { padding: 28rpx 20rpx; text-align: center; font-size: 24rpx; color: #a1a1aa; } .cat-dropdown-footer { padding: 16rpx 20rpx; text-align: center; font-size: 24rpx; color: #059669; font-weight: 600; border-top: 1px solid #f4f4f5; background: #fafafa; } .cat-add-btn { width: 64rpx; height: 64rpx; line-height: 64rpx; text-align: center; border-radius: 12rpx; background: #ecfdf5; border: 1px solid #a7f3d0; color: #059669; font-size: 32rpx; font-weight: 600; flex-shrink: 0; } .modal-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); display: flex; align-items: center; justify-content: center; z-index: 1000; } .modal-card { width: 80%; background: #fff; border-radius: 20rpx; padding: 28rpx 24rpx; } .modal-title { font-size: 30rpx; font-weight: 700; margin-bottom: 16rpx; color: #0a0a0b; } .modal-input { width: 100%; padding: 16rpx; border: 1px solid #e4e4e7; border-radius: 12rpx; box-sizing: border-box; margin-bottom: 16rpx; background: #fafafa; } .modal-actions { display: flex; gap: 12rpx; } .modal-btn { flex: 1; height: 72rpx !important; line-height: 72rpx !important; padding: 0 !important; border-radius: 16rpx !important; display: flex; align-items: center; justify-content: center; box-sizing: border-box; } .modal-btn::after { border: none; } .actions { display: flex; gap: 12rpx; margin-top: 16rpx; flex-wrap: wrap; } .action-btn { min-width: 160rpx; height: 64rpx !important; line-height: 64rpx !important; padding: 0 24rpx !important; border-radius: 14rpx !important; display: flex; align-items: center; justify-content: center; box-sizing: border-box; font-weight: 600; } .action-btn::after { border: none; } .actual-grid { display: flex; gap: 16rpx; margin-top: 16rpx; flex-wrap: wrap; } .field-block { flex: 1; min-width: 200rpx; } .field-label { font-size: 22rpx; color: #a1a1aa; margin-bottom: 8rpx; } .input-with-unit { display: flex; align-items: center; border-radius: 12rpx; background: #f4f4f5; overflow: hidden; border: 1px solid #eceef0; } .input { flex: 1; min-width: 0; padding: 12rpx 16rpx; font-size: 26rpx; border: none; background: transparent; font-variant-numeric: tabular-nums; } .setup-input { width: 100%; border-radius: 12rpx; background: #fff; border: 1px solid #e4e4e7; box-sizing: border-box; } .unit-tag { padding: 0 16rpx; font-size: 22rpx; color: #a1a1aa; align-self: stretch; display: flex; align-items: center; white-space: nowrap; } .unit-picker { border-radius: 12rpx; background: #f4f4f5; border: 1px solid #eceef0; padding: 12rpx 16rpx; font-size: 26rpx; color: #0a0a0b; } .bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 24rpx; padding: 20rpx 28rpx calc(20rpx + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); border-top: 1px solid #e7efea; box-shadow: 0 -8rpx 24rpx rgba(6, 78, 59, 0.06); } .bottom-left { min-width: 0; flex: 1; } .bottom-total-label { font-size: 22rpx; color: #a1a1aa; } .bottom-total-value { font-size: 40rpx; font-weight: 800; color: #0a0a0b; font-variant-numeric: tabular-nums; } .bottom-done-hint { margin-top: 4rpx; font-size: 24rpx; font-weight: 600; color: #059669; } .bottom-submit { flex-shrink: 0; padding: 0 32rpx; height: 88rpx; line-height: 88rpx; border-radius: 20rpx; background: linear-gradient(135deg, #047857 0%, #059669 100%); color: #fff; font-size: 28rpx; font-weight: 700; text-align: center; box-shadow: 0 10rpx 24rpx rgba(5, 150, 105, 0.28); } .bottom-submit.is-disabled { opacity: 0.45; pointer-events: none; box-shadow: none; } .anim-rise { animation: rise-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; } .anim-rise--delay { animation-delay: 0.08s; } @keyframes rise-in { from { opacity: 0; transform: translateY(18rpx); } to { opacity: 1; transform: translateY(0); } }