/* ========================================================================== 买家前台:提卡与信息收集页 (Buyer Claim & Collect Pages) ========================================================================== */ .claim-page { min-height: 100vh; padding: 24px; background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%); display: flex; flex-direction: column; align-items: center; gap: 18px; } .claim-header-card, .claim-content-card { width: min(680px, 100%); border-color: rgba(148, 163, 184, 0.18); box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08); } .claim-header-card { position: relative; } .claim-header-card .ant-card-body, .claim-content-card .ant-card-body { display: flex; flex-direction: column; gap: 18px; } .claim-header-copy { min-width: 0; padding-right: 220px; } .claim-header-copy h1 { margin: 0; color: #0f172a; font-size: 30px; line-height: 1.25; overflow-wrap: anywhere; } .claim-header-copy p, .claim-muted { margin: 0; color: #64748b; line-height: 1.6; } .claim-step-indicator { position: absolute; top: 24px; right: 24px; max-width: 210px; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; } .claim-step-dots { display: flex; gap: 8px; } .claim-step-dot { width: 32px; height: 32px; border-radius: 50%; background: #e5e7eb; color: #94a3b8; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; } .claim-step-dot.active { background: var(--theme-primary); color: #ffffff; } .claim-step-progress-text { color: #64748b; font-size: 13px; font-weight: 700; line-height: 1.4; text-align: right; overflow-wrap: anywhere; } .claim-content-card .ant-typography { margin: 0; } .claim-state-card .ant-card-body { min-height: 240px; align-items: center; justify-content: center; text-align: center; } .claim-large-icon { font-size: 44px; } .claim-icon-success { color: #16a34a; } .claim-icon-warning { color: #d97706; } .claim-icon-info { color: var(--theme-primary); } .claim-icon-error { color: #dc2626; } .claim-qr-block { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px; border-radius: 8px; background: #f8fbff; border: 1px solid #dbeafe; } .claim-qr-guide-panel { display: grid; grid-template-columns: 42px minmax(0, 280px) 42px; grid-template-areas: 'left code right' '. hint .'; gap: 10px; align-items: center; justify-content: center; width: 100%; max-width: 410px; min-width: 0; } .claim-scan-label { align-self: stretch; min-height: 150px; padding: 10px 6px; color: #e11d48; font-weight: 900; font-size: 17px; line-height: 1.2; writing-mode: vertical-rl; text-orientation: upright; display: flex; align-items: center; justify-content: center; } .claim-scan-label-left { grid-area: left; } .claim-scan-label-right { grid-area: right; } .claim-qr-code { grid-area: code; width: 100%; max-width: 280px; aspect-ratio: 1 / 1; padding: 10px; background: #ffffff; border-radius: 8px; border: 1px solid #dbeafe; } .claim-save-hint { grid-area: hint; margin: 0; justify-self: center; color: #64748b; font-size: 14px; font-weight: 700; line-height: 1.4; text-align: center; } .claim-role-panel { display: grid; grid-template-columns: 1fr; gap: 8px; } .claim-role-panel.pending { opacity: 0.82; } .claim-role-panel-item { min-width: 0; display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 12px; } .claim-role-panel-item span { color: #64748b; font-size: 13px; line-height: 1.4; white-space: nowrap; } .claim-role-panel-item strong { min-width: 0; color: #0f172a; font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; } .claim-action-row { width: 100%; } .claim-action-tooltip-wrap { display: inline-flex; } .claim-meta-footer { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; color: #94a3b8; font-size: 11px; line-height: 1.5; } .claim-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .claim-info-grid-compact { gap: 8px; margin-bottom: 10px; } .claim-info-grid-compact .claim-info-item { padding: 8px 10px; gap: 2px; border-radius: 6px; } .claim-info-grid-compact .claim-info-item span { font-size: 11px; line-height: 1.3; } .claim-info-grid-compact .claim-info-item strong { font-size: 13px; line-height: 1.35; font-weight: 600; } .claim-uid-step .ant-card-body { gap: 10px; } .claim-uid-step-title.ant-typography { margin: 0 !important; font-size: 20px !important; line-height: 1.3 !important; } .claim-uid-step-desc { font-size: 13px; line-height: 1.45; } .claim-uid-guide { margin: 4px 0 0; padding: 6px; border-radius: 8px; background: #f8fafc; border: 1px solid #e5e7eb; } .claim-uid-guide-image { display: block; width: 100%; max-width: 360px; max-height: 160px; margin: 0 auto; border-radius: 6px; border: 1px solid #e2e8f0; object-fit: contain; background: #fff; } .claim-uid-guide-caption { margin: 6px 0 0; text-align: center; color: #64748b; font-size: 12px; line-height: 1.35; } .claim-uid-warning { margin: 2px 0 0; color: #ff4d4f; font-size: 13px; font-weight: 600; line-height: 1.45; } .claim-info-item { min-width: 0; padding: 16px; border-radius: 6px; background: #f8fafc; border: 1px solid #e5e7eb; display: flex; flex-direction: column; gap: 6px; } .claim-info-item span { color: #64748b; font-size: 13px; } .claim-info-item strong { color: #0f172a; font-size: 17px; overflow-wrap: anywhere; } .claim-result-header { display: flex; align-items: flex-start; gap: 14px; } .claim-feifei-main { display: grid; gap: 8px; } .claim-feifei-main p { margin: 0; color: var(--theme-primary); font-weight: 700; } .claim-feifei-label { color: #64748b; font-size: 13px; } .claim-product-items { display: flex; flex-direction: column; gap: 10px; } .claim-product-items-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #64748b; font-size: 13px; } .claim-product-items-header strong { color: var(--theme-primary); font-weight: 700; } .claim-product-items-list { display: flex; flex-direction: column; gap: 8px; } .claim-product-item-row { min-height: 44px; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 6px; background: #f8fafc; display: flex; align-items: center; justify-content: space-between; gap: 12px; } .claim-product-item-row span { min-width: 0; color: #0f172a; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; } .claim-product-item-row strong { flex: 0 0 auto; color: #0f172a; font-size: 15px; } .claim-product-items.compact { margin-top: 10px; gap: 8px; } .claim-product-items.compact .claim-product-items-list { gap: 6px; } .claim-product-items.compact .claim-product-item-row { min-height: 36px; padding: 8px 10px; background: rgba(248, 250, 252, 0.72); } /* 待领取物品图:居中大图;imageUrl 为空或加载失败时是同一尺寸的虚线占位块(不会出现破图) */ .claim-product-image-wrap { display: flex; justify-content: center; } .claim-product-image { width: min(160px, 48%); aspect-ratio: 1 / 1; border-radius: 16px; object-fit: contain; background: #f8fafc; padding: 8px; border: 1px solid rgba(148, 163, 184, 0.24); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); } .claim-product-image-fallback { display: flex; align-items: center; justify-content: center; font-size: 46px; color: rgba(100, 116, 139, 0.55); border-style: dashed; } /* ===== 收集页 (Collect Page) ===== */ .collect-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: #f5f7fb; } .collect-card { width: min(520px, 100%); } .collect-order-input { flex: 1; margin-bottom: 0; } /* ===== 一次性补资料链接页 (Collect Material Link) ===== */ .collect-link-page { min-height: 100vh; padding: 32px 16px; background: #f5f7fb; display: flex; justify-content: center; align-items: flex-start; } .collect-link-card { width: min(720px, 100%); } .collect-link-card .ant-card-body { padding: 28px; } /* 一单多工单时,内层商品卡片比外层容器更紧凑 */ .collect-link-order-card .ant-card-body { padding: 16px; } .collect-link-title { margin: 0 0 4px !important; } .collect-link-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; } .collect-link-announcement { padding: 12px 14px; border: 1px solid rgba(138, 75, 0, 0.16); border-left-width: 4px; border-radius: 9px; } .collect-link-announcement-title { display: block; margin-bottom: 4px; font-size: 13px; } .collect-link-announcement-content { line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; } /* 商品名与订单号放在同一个信息头里,避免标题和灰色信息块分离 */ .collect-link-order-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; padding-bottom: 12px; border-bottom: 1px solid #eef2f7; } .collect-link-order-name { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #0f172a; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; } .collect-link-order-no { min-width: 0; display: flex; align-items: baseline; gap: 6px; color: #64748b; font-size: 12px; } .collect-link-order-no strong { color: #0f172a; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; } .collect-link-state { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; } /* 提交成功:居中的成功状态,不再展示订单号 */ .collect-link-success { min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px 12px 8px; text-align: center; } .collect-link-success-icon { font-size: 64px; color: #22c55e; filter: drop-shadow(0 10px 20px rgba(34, 197, 94, 0.18)); } .collect-link-success-title { margin: 2px 0 0 !important; color: #0f172a; } .collect-link-success-products { max-width: 100%; margin-top: 10px; padding: 12px 22px; border: 1px solid #dcfce7; border-radius: 12px; background: #f0fdf4; display: flex; flex-direction: column; gap: 4px; } .collect-link-success-products span { color: #16a34a; font-size: 12px; } .collect-link-success-products strong { color: #166534; font-size: 15px; overflow-wrap: anywhere; } .collect-link-success .collect-link-footnote { margin-top: 18px; } .collect-link-actions { display: flex; justify-content: flex-end; margin-top: 4px; } .collect-link-actions .ant-btn { min-width: 180px; } .collect-link-footnote { display: block; text-align: center; font-size: 12px; } @media (max-width: 720px) { .collect-link-page { padding: 14px; } .collect-link-card .ant-card-body { padding: 18px; } .collect-link-actions { justify-content: stretch; } .collect-link-actions .ant-btn { width: 100%; } } @media (max-width: 480px) { .collect-link-page { padding: 10px; } .collect-link-card .ant-card-body { padding: 14px; } .collect-link-success { min-height: 320px; padding: 16px 4px 4px; } .collect-link-success-icon { font-size: 52px; } .collect-link-success-products { padding: 10px 16px; } } /* ===== 兑换中心 (Redeem Page) ===== */ .redeem-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: #f5f7fb; } .redeem-card { width: min(520px, 100%); } .redeem-order-input { flex: 1; margin-bottom: 0; } /* ===== H5 领取入口页(`/h5`,只有前缀没有订单号) ===== */ /* 复用领取页的卡片与背景,只把单卡在视口内垂直居中 */ .h5-claim-entry { justify-content: center; } /* ===== 买家页面响应式断点 ===== */ @media (max-width: 720px) { .claim-page { padding: 14px; } .claim-header-card .ant-card-body, .claim-content-card .ant-card-body { gap: 14px; } .claim-header-copy { padding-right: 150px; } .claim-header-copy h1 { font-size: 24px; line-height: 1.22; } .claim-header-copy p { font-size: 14px; line-height: 1.4; } .claim-step-indicator { top: 16px; right: 16px; max-width: 140px; } .claim-step-dots { gap: 5px; } .claim-step-dot { width: 26px; height: 26px; font-size: 13px; } .claim-step-progress-text { font-size: 12px; } .claim-info-grid { grid-template-columns: 1fr; } .claim-qr-block { padding: 12px; } .claim-qr-guide-panel { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 8px; max-width: 100%; } .claim-scan-label { min-height: 128px; padding: 8px 4px; font-size: 14px; } .claim-qr-code { max-width: 232px; padding: 8px; } .claim-save-hint { font-size: 13px; } .claim-role-panel-item { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; } .claim-role-panel-item span { font-size: 12px; } .claim-role-panel-item strong { font-size: 16px; } .claim-action-row { display: flex; flex-direction: column; align-items: stretch; } .claim-action-row .ant-space-item, .claim-action-row .ant-btn, .claim-action-tooltip-wrap { width: 100%; } .claim-meta-footer { justify-content: flex-start; } .claim-result-header { display: grid; } } @media (max-width: 480px) { .claim-page { padding: 12px; gap: 10px; } .claim-header-card .ant-card-body, .claim-content-card .ant-card-body { gap: 12px; } .claim-header-copy { padding-right: 112px; } .claim-header-copy h1 { font-size: 22px; } .claim-step-indicator { position: absolute; top: 16px; right: 16px; max-width: 100px; align-items: flex-end; } .claim-step-dot { width: 26px; height: 26px; font-size: 12px; } .claim-step-dots { gap: 5px; } .claim-step-progress-text { text-align: right; font-size: 12px; } .claim-uid-step-title.ant-typography { font-size: 18px !important; } .claim-uid-guide-image { max-height: 140px; } } @media (max-width: 420px) { .claim-header-copy { padding-right: 124px; } .claim-header-copy h1 { font-size: 22px; } .claim-header-copy p { padding-right: 0; } .claim-step-indicator { max-width: 116px; } }