Files
xiaoxia-saas/apps/web/src/pages/subscription/UpgradeSubscription.css
T
灵应 24f1e47bf5
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Staging E2E Tests (push) Failing after 88h31m2s
Deploy / Deploy Staging (push) Failing after 88h33m31s
CI/CD Pipeline / Frontend Lint (push) Failing after 88h33m40s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 88h33m40s
feat: P0-1 全局CSS变量体系对齐 — radius变量+硬编码清理
- global.css: radius变量对齐V21 (xs=8, sm=14, md=18, lg=24, xl=28, pill=999)
- main.tsx: Ant Design ConfigProvider borderRadius同步 (14/24/8)
- 全项目19个CSS文件硬编码圆角值替换为CSS变量
- 重点页面: generate/home/Admin/voice-clone/accounts/duplication
- auth页面: Login/Register/ForgotPassword/ResetPassword
- 组件: clone-modal/clone-voice-modal
- 其他: Plans/UpgradeSubscription/MyTemplates/ProfileSettings/index.css
- tsc零错误
2026-07-05 20:19:27 +08:00

192 lines
3.5 KiB
CSS

/* 升级/降级页面 - P1-3: 全部使用 CSS 变量 */
.xx-upgrade-page {
max-width: 900px;
margin: 0 auto;
padding: 40px 24px;
}
/* 套餐卡片 */
.xx-upgrade-plans {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin-bottom: 40px;
}
@media (max-width: 768px) {
.xx-upgrade-plans {
grid-template-columns: 1fr;
}
}
.xx-upgrade-card {
background: var(--bg-elevated);
border: 2px solid var(--border-color);
border-radius: var(--radius-lg);
padding: 28px 24px;
text-align: center;
cursor: pointer;
transition: all 0.25s ease;
position: relative;
}
.xx-upgrade-card:hover {
border-color: var(--primary-color);
box-shadow: 0 8px 30px
color-mix(in srgb, var(--primary-color) 10%, transparent);
}
.xx-upgrade-card.selected {
border-color: var(--primary-color);
box-shadow:
0 0 0 3px color-mix(in srgb, var(--primary-color) 12%, transparent),
0 8px 30px color-mix(in srgb, var(--primary-color) 10%, transparent);
}
.xx-upgrade-card.current {
border-color: var(--secondary-color);
}
.xx-current-badge {
position: absolute;
top: -10px;
right: 16px;
background: var(--secondary-color);
color: var(--text-inverse);
padding: 3px 12px;
border-radius: 999px;
font-size: 12px;
font-weight: 700;
}
.xx-upgrade-card h3 {
font-size: 20px;
font-weight: 800;
color: var(--text-primary);
margin: 0 0 16px;
}
.xx-price {
margin-bottom: 8px;
}
/* ── BillingCycleSwitch 组件 ──────────────────────── */
.xx-billing-cycle-switch {
display: inline-flex;
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
overflow: hidden;
}
.xx-billing-cycle-btn {
padding: 6px 14px;
font-size: 13px;
font-weight: 600;
border: none;
background: var(--bg-primary);
color: var(--text-secondary);
cursor: pointer;
transition: all 0.2s;
position: relative;
}
.xx-billing-cycle-btn:first-child {
border-right: 1px solid var(--border-color);
}
.xx-billing-cycle-btn.active {
background: var(--primary-color);
color: var(--text-inverse);
}
.xx-save {
display: inline-block;
margin-left: 4px;
font-size: 11px;
color: var(--secondary-color);
font-weight: 600;
}
.xx-billing-cycle-btn.active .xx-save {
color: var(--text-inverse);
opacity: 0.85;
}
/* 操作区 */
.xx-upgrade-actions {
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
}
.xx-auto-renew-section {
display: flex;
align-items: center;
gap: 8px;
color: var(--text-secondary);
font-size: 14px;
}
.xx-cancel-btn {
margin-top: 8px;
}
/* ── Spinner 组件 ───────────────────────────────── */
.xx-spinner {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 40px 0;
}
.xx-spinner-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--primary-color);
animation: xx-spinner-bounce 1.2s ease-in-out infinite;
}
.xx-spinner-dot:nth-child(2) {
animation-delay: 0.15s;
}
.xx-spinner-dot:nth-child(3) {
animation-delay: 0.3s;
}
.xx-spinner--small .xx-spinner-dot {
width: 6px;
height: 6px;
}
@keyframes xx-spinner-bounce {
0%,
80%,
100% {
transform: scale(0.6);
opacity: 0.4;
}
40% {
transform: scale(1);
opacity: 1;
}
}
@media (max-width: 480px) {
.upgrade-container {
padding: var(--space-md);
}
.upgrade-actions {
flex-direction: column;
}
.upgrade-actions button {
width: 100%;
}
}