Files
xiaoxia-saas/apps/web/src/pages/subscription/Plans.css
T
2026-06-26 17:48:28 +08:00

217 lines
4.2 KiB
CSS

/* V21 定价页面 */
.xx-plans-page {
max-width: 1200px;
margin: 0 auto;
padding: 60px 24px;
}
/* 页面头部 */
.xx-page-head {
text-align: center;
margin-bottom: 60px;
}
.xx-page-head h2 {
font-size: 42px;
font-weight: 900;
color: var(--slate, #0f172a);
margin: 0 0 16px;
letter-spacing: -0.02em;
}
.xx-page-head p {
font-size: 18px;
color: var(--muted, #64748b);
margin: 0;
max-width: 560px;
margin-left: auto;
margin-right: auto;
}
/* 定价卡片网格 - 4列 */
.xx-plans-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 24px;
margin-top: 30px;
}
@media (max-width: 1200px) {
.xx-plans-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.xx-plans-grid {
grid-template-columns: 1fr;
max-width: 400px;
margin-left: auto;
margin-right: auto;
}
}
/* V21 定价卡片 */
.xx-plan-card {
background: rgba(255,255,255,0.94);
border: 1px solid rgba(226,232,240,0.95);
border-radius: 28px;
box-shadow: 0 24px 70px rgba(15,23,42,0.09);
padding: 32px 28px;
position: relative;
transition: all 0.3s;
display: flex;
flex-direction: column;
}
.xx-plan-card:hover {
border-color: var(--indigo, #4f46e5);
box-shadow: 0 32px 90px rgba(79,70,229,0.15);
transform: translateY(-4px);
}
.xx-plan-card.featured {
border: 2px solid var(--indigo, #4f46e5);
box-shadow: 0 0 0 4px rgba(79,70,229,0.1), 0 32px 90px rgba(79,70,229,0.15);
transform: scale(1.02);
}
.xx-plan-card.featured:hover {
transform: scale(1.02) translateY(-4px);
}
/* 推荐标签 */
.xx-badge {
position: absolute;
top: -12px;
left: 50%;
transform: translateX(-50%);
background: linear-gradient(135deg, #6366f1, #4f46e5);
color: white;
padding: 6px 16px;
border-radius: 999px;
font-size: 12px;
font-weight: 850;
white-space: nowrap;
}
/* 企业版定制标签 */
.xx-badge.enterprise {
background: linear-gradient(135deg, #f59e0b, #d97706);
}
/* 套餐名称 */
.xx-plan-card h3 {
font-size: 22px;
font-weight: 900;
color: var(--slate, #0f172a);
margin: 0 0 20px;
text-align: center;
}
/* 价格 */
.xx-plan-price {
text-align: center;
margin-bottom: 12px;
}
.xx-plan-price .currency {
font-size: 18px;
font-weight: 700;
color: var(--muted, #64748b);
vertical-align: top;
}
.xx-plan-price .amount {
font-size: 48px;
font-weight: 900;
color: var(--indigo, #4f46e5);
line-height: 1;
}
.xx-plan-price .period {
font-size: 16px;
color: var(--muted, #64748b);
font-weight: 500;
}
/* 企业版价格 */
.xx-plan-price.custom .amount {
font-size: 32px;
}
/* 描述 */
.xx-plan-description {
color: var(--muted, #64748b);
font-size: 14px;
text-align: center;
margin-bottom: 24px;
padding-bottom: 24px;
border-bottom: 1px solid var(--line, #e2e8f0);
}
/* 功能列表 */
.xx-features {
margin-top: 8px;
padding-top: 24px;
flex: 1;
}
.xx-feature {
display: flex;
gap: 12px;
align-items: flex-start;
color: var(--muted, #64748b);
font-size: 14px;
margin-bottom: 16px;
line-height: 1.5;
}
.xx-feature span:first-child {
color: var(--green, #10b981);
font-weight: 900;
flex-shrink: 0;
}
/* 订阅按钮 */
.xx-subscribe-btn {
width: 100%;
margin-top: 24px;
padding: 14px 24px !important;
font-size: 15px !important;
font-weight: 850 !important;
border-radius: 14px !important;
transition: all 0.2s !important;
}
.xx-subscribe-btn.primary {
background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
color: white !important;
border: none !important;
box-shadow: 0 14px 26px rgba(79,70,229,0.22) !important;
}
.xx-subscribe-btn.primary:hover {
box-shadow: 0 18px 34px rgba(79,70,229,0.28) !important;
transform: translateY(-1px);
}
.xx-subscribe-btn.ghost {
background: white !important;
border: 1px solid var(--line, #e2e8f0) !important;
color: var(--slate, #0f172a) !important;
}
.xx-subscribe-btn.ghost:hover {
border-color: var(--indigo, #4f46e5) !important;
color: var(--indigo, #4f46e5) !important;
}
/* 企业版按钮 */
.xx-subscribe-btn.enterprise {
background: linear-gradient(135deg, #f59e0b, #d97706) !important;
color: white !important;
border: none !important;
box-shadow: 0 14px 26px rgba(245,158,11,0.22) !important;
}