/** * 文件职责:交易详情与关联订单抽屉样式。 */ .page-finance-transaction { .ant-drawer { .ant-drawer-header { padding: 14px 18px; border-bottom: 1px solid #f0f0f0; } .ant-drawer-body { padding: 16px 20px; } .ant-drawer-footer { padding: 12px 20px; border-top: 1px solid #f0f0f0; } } } .ft-section { margin-bottom: 20px; .ft-section-title { padding-left: 10px; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: rgb(0 0 0 / 88%); border-left: 3px solid #1677ff; } } .ft-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 13px; .label { color: rgb(0 0 0 / 45%); } .full { grid-column: 1 / -1; } } .ft-order-link { padding-inline: 0; } .ft-detail-amount { font-weight: 600; color: rgb(0 0 0 / 88%); &.income { color: #52c41a; } &.expense { color: #ff4d4f; } } .ft-detail-table-wrap { overflow-x: auto; } .ft-detail-table { width: 100%; min-width: 520px; font-size: 13px; border-collapse: collapse; th { padding: 8px 10px; font-size: 12px; font-weight: 500; color: rgb(0 0 0 / 45%); text-align: left; background: #fafafa; border-bottom: 1px solid #f0f0f0; &.right { text-align: right; } } td { padding: 8px 10px; color: rgb(0 0 0 / 88%); border-bottom: 1px solid #f5f5f5; &.right { text-align: right; } } } .ft-amount-summary { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px 0; font-size: 13px; > div { display: flex; justify-content: space-between; color: rgb(0 0 0 / 65%); } .discount { color: #ff4d4f; } .total { padding-top: 8px; margin-top: 4px; font-weight: 600; color: rgb(0 0 0 / 88%); border-top: 1px solid #f0f0f0; span:last-child { font-size: 15px; color: #1677ff; } } } .ft-timeline { position: relative; padding-left: 22px; .ft-timeline-item { position: relative; display: flex; gap: 8px; align-items: center; padding-bottom: 18px; font-size: 13px; &::before { position: absolute; top: 5px; left: -22px; width: 10px; height: 10px; content: ''; background: #1677ff; border: 2px solid #d6e4ff; border-radius: 50%; } &::after { position: absolute; top: 17px; left: -18px; width: 2px; height: calc(100% - 12px); content: ''; background: #e8e8e8; } &:last-child { padding-bottom: 0; &::after { display: none; } } .text { font-weight: 500; color: rgb(0 0 0 / 88%); } .time { color: rgb(0 0 0 / 45%); } } } .ft-remark-box { padding: 10px 14px; font-size: 13px; color: rgb(0 0 0 / 65%); background: #fafafa; border: 1px solid #f0f0f0; border-radius: 8px; }