refactor(styles): 按业务流程与平台拆分客户样式

- 将买家领取页拆分为领取、补资料、兑换和响应式模块
- 将客户履约公共流程与斗鱼、虎牙、微博平台样式分离
- 保持样式加载顺序和最终构建产物不变
This commit is contained in:
yml
2026-11-18 11:00:28 +08:00
parent f23e8792b2
commit 919fb2767b
18 changed files with 3861 additions and 3839 deletions
@@ -0,0 +1,453 @@
.customer-binding-stage {
display: flex;
flex-direction: column;
gap: 14px;
padding: 16px;
}
.customer-binding-session-card {
display: flex;
flex-direction: column;
gap: 10px;
padding: 18px;
border: 1px solid #78350f;
border-radius: 12px;
background: rgba(120, 53, 15, 0.22);
}
.customer-binding-session-title {
margin: 0;
color: #fbbf24;
font-size: 16px;
font-weight: 700;
}
.customer-binding-session-desc {
margin: 0 0 4px;
color: #fcd34d;
font-size: 13px;
line-height: 1.6;
}
.customer-binding-qr-error {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
padding: 24px 12px;
text-align: center;
}
.customer-binding-qr-error p {
margin: 0;
color: #fca5a5;
font-size: 15px;
font-weight: 600;
}
.customer-binding-qr-error span {
color: #cbd5e1;
font-size: 13px;
line-height: 1.6;
overflow-wrap: anywhere;
}
/* antd Alert 在绑定阶段统一走深色卡片,避免浅色块破坏整体深色风格 */
.customer-binding-stage .ant-alert {
align-items: flex-start;
padding: 12px 14px;
border: 1px solid #3a4150;
border-radius: 12px;
background: #212733;
}
.customer-binding-stage .ant-alert .ant-alert-message {
color: #e2e8f0;
font-size: 14px;
font-weight: 600;
}
/* antd v6 的标题节点是 .ant-alert-title(v5 为 .ant-alert-message) */
.customer-binding-stage .ant-alert .ant-alert-title {
color: #e2e8f0;
font-size: 14px;
font-weight: 600;
line-height: 1.5;
}
.customer-binding-stage .ant-alert .ant-alert-description {
color: #cbd5e1;
font-size: 13px;
line-height: 1.6;
}
.customer-binding-stage .ant-alert-warning {
border-color: #78350f;
background: rgba(120, 53, 15, 0.22);
}
.customer-binding-stage .ant-alert-warning .ant-alert-icon,
.customer-binding-stage .ant-alert-warning .ant-alert-message,
.customer-binding-stage .ant-alert-warning .ant-alert-title {
color: #fbbf24;
}
.customer-binding-stage .ant-alert-warning .ant-alert-description {
color: #fcd34d;
}
.customer-binding-stage .ant-alert-error {
border-color: #7f1d1d;
background: rgba(127, 29, 29, 0.24);
}
.customer-binding-stage .ant-alert-error .ant-alert-icon,
.customer-binding-stage .ant-alert-error .ant-alert-message,
.customer-binding-stage .ant-alert-error .ant-alert-title {
color: #fca5a5;
}
.customer-binding-stage .ant-alert-error .ant-alert-description {
color: #fecaca;
}
.customer-binding-stage .ant-alert-success {
border-color: #065f46;
background: rgba(6, 78, 59, 0.28);
}
.customer-binding-stage .ant-alert-success .ant-alert-icon,
.customer-binding-stage .ant-alert-success .ant-alert-message,
.customer-binding-stage .ant-alert-success .ant-alert-title {
color: #6ee7b7;
}
.customer-binding-stage .ant-alert-success .ant-alert-description {
color: #a7f3d0;
}
.customer-binding-role-actions {
display: flex;
flex-direction: column;
gap: 12px;
width: 100%;
}
.customer-binding-role-actions .customer-binding-confirm.ant-btn {
height: 52px;
border-radius: 14px;
background: #2563eb !important;
border-color: #2563eb !important;
color: #fff !important;
font-size: 17px;
font-weight: 600;
}
.customer-binding-role-actions .customer-binding-confirm.ant-btn:hover,
.customer-binding-role-actions .customer-binding-confirm.ant-btn:focus-visible {
background: #1d4ed8 !important;
border-color: #1d4ed8 !important;
color: #fff !important;
}
.customer-binding-role-actions .customer-binding-rebind.ant-btn {
height: 48px;
border-radius: 14px;
background: transparent !important;
border-color: #3a4150 !important;
color: #cbd5e1 !important;
font-size: 16px;
font-weight: 500;
}
.customer-binding-role-actions .customer-binding-rebind.ant-btn .anticon {
color: #f59e0b;
}
.customer-binding-role-actions .customer-binding-rebind.ant-btn:hover,
.customer-binding-role-actions .customer-binding-rebind.ant-btn:focus-visible {
background: rgba(245, 158, 11, 0.08) !important;
border-color: #b45309 !important;
color: #fbbf24 !important;
}
.customer-binding-role-actions .customer-binding-accept.ant-btn {
height: 46px;
border-radius: 12px;
background: transparent !important;
border-color: transparent !important;
color: #94a3b8 !important;
font-size: 15px;
font-weight: 500;
}
.customer-binding-role-actions .customer-binding-accept.ant-btn:hover,
.customer-binding-role-actions .customer-binding-accept.ant-btn:focus-visible {
background: rgba(148, 163, 184, 0.1) !important;
border-color: transparent !important;
color: #e2e8f0 !important;
}
.customer-binding-info {
padding: 16px;
border: 1px solid #3a4150;
border-radius: 12px;
background: #212733;
display: flex;
flex-direction: column;
gap: 10px;
}
.customer-binding-info h3 {
margin: 0 0 4px;
color: #9aa3b2;
font-size: 13px;
font-weight: 500;
}
.customer-binding-info h3 small {
color: #64748b;
font-weight: 400;
}
.customer-binding-info > div {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
color: #cbd5e1;
font-size: 14px;
line-height: 1.5;
}
.customer-binding-info > div > span {
flex: 0 0 auto;
white-space: nowrap;
}
.customer-binding-info > div strong {
flex: 1 1 auto;
min-width: 0;
color: #fff;
text-align: right;
overflow-wrap: anywhere;
}
.customer-binding-alert {
padding: 12px 14px;
border-radius: 8px;
border: 1px solid transparent;
font-size: 14px;
}
.customer-binding-alert.is-warning {
color: #fbbf24;
border-color: #78350f;
background: rgba(120, 53, 15, 0.25);
}
.customer-binding-alert.is-info {
color: #93c5fd;
border-color: #1e3a8a;
background: rgba(30, 58, 138, 0.3);
}
.customer-binding-verify {
padding: 18px;
border: 1px solid #3a4150;
border-radius: 12px;
background: transparent;
display: flex;
flex-direction: column;
gap: 16px;
text-align: center;
}
.customer-binding-verify p {
margin: 0;
color: #e5e7eb;
font-size: 16px;
line-height: 1.6;
}
.customer-binding-qr-card {
padding: 18px;
border-radius: 12px;
background: #fff;
color: #111827;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}
.customer-binding-qr-card h3 {
margin: 0;
color: #6b7280;
font-size: 14px;
font-weight: 500;
}
.customer-binding-qr-hint {
margin: 0;
color: #6b7280;
font-size: 13px;
}
.customer-binding-qr-tip {
margin: 0;
color: #f59e0b;
font-size: 13px;
}
.customer-binding-qr-countdown {
margin: 0;
color: #6b7280;
font-size: 13px;
}
.customer-binding-qr-actions {
width: 100%;
margin-top: 4px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.customer-binding-qr-actions .ant-btn {
height: 40px;
border-radius: 8px;
}
/* 斗鱼客户领取页沿用后台深色二维码面板,避免大块纯白卡片刺眼。 */
.customer-choice-switch {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 3px;
padding: 3px;
overflow: hidden;
border: 1px solid #354052;
border-radius: 10px;
background: #171d27;
}
.customer-choice-option {
height: 42px;
min-width: 0;
padding: 0 10px;
color: #aeb8c8;
border: 0;
border-radius: 8px;
outline: none;
background: transparent;
font: inherit;
font-size: 14px;
cursor: pointer;
transition: color 100ms ease;
}
.customer-choice-option:hover {
color: #e2e8f0;
background: #242c39;
}
.customer-choice-option.is-selected {
color: #fff;
background: #2f6fed;
font-weight: 700;
}
.customer-choice-option:focus-visible {
outline: 2px solid #60a5fa;
outline-offset: 2px;
}
.customer-binding-next.ant-btn {
width: 100%;
height: 52px;
margin-top: 6px;
border-radius: 14px;
background: #2563eb !important;
border-color: #2563eb !important;
color: #fff !important;
font-size: 17px;
font-weight: 600;
}
.customer-binding-modal-footer {
display: flex;
flex-direction: column;
gap: 10px;
}
.customer-binding-modal-actions {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.customer-binding-modal-actions .ant-btn {
height: 42px;
border-radius: 8px;
}
.customer-binding-modal-actions.is-mismatch {
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.customer-binding-modal-error {
margin: 0;
color: #dc2626;
font-size: 13px;
text-align: center;
}
.customer-binding-modal-warning {
margin: 0;
color: #d97706;
font-size: 13px;
text-align: center;
}
.customer-binding-compare {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.customer-binding-compare-side {
display: flex;
flex-direction: column;
gap: 6px;
padding: 14px;
border: 1px solid rgba(15, 23, 42, 0.12);
border-radius: 6px;
background: rgba(15, 23, 42, 0.04);
}
.customer-binding-compare-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
color: #64748b;
font-size: 13px;
}
.customer-binding-compare-side strong {
color: #0f172a;
font-size: 16px;
word-break: break-all;
}
.customer-binding-compare-side em {
color: #64748b;
font-style: normal;
font-size: 13px;
}
@media (max-width: 480px) {
.customer-binding-compare {
grid-template-columns: minmax(0, 1fr);
}
}