Skip to content

Let's use AI to Earn!

样式

daoyian0a86b464a639
diff --git a/src/app/[lng]/pricing/page.tsx b/src/app/[lng]/pricing/page.tsx
index df0e3126..d5e9b73a 100644
--- a/src/app/[lng]/pricing/page.tsx
+++ b/src/app/[lng]/pricing/page.tsx
@@ -121,9 +121,15 @@ export default function PricingPage() {
</span>
)}
<div className={styles.price}>
- ${plan.price} USD
+ <span className={styles.currency}>$</span>
+ <span className={styles.amount}>{plan.price}</span>
<span className={styles.period}>/{t('month')}</span>
</div>
+ {billingCycle === 'yearly' && plan.price > 0 && (
+ <div className={styles.monthlyPrice}>
+ ${(plan.price * 12).toFixed(0)} USD/{t('yearly')}
+ </div>
+ )}
</div>
</div>
diff --git a/src/app/[lng]/pricing/pricing.module.scss b/src/app/[lng]/pricing/pricing.module.scss
index 9ee39334..7fddecc0 100644
--- a/src/app/[lng]/pricing/pricing.module.scss
+++ b/src/app/[lng]/pricing/pricing.module.scss
@@ -1,6 +1,6 @@
.pricingPage {
- background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
- padding: 40px 0;
+ background: #ffffff;
+ padding: 20px 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
@@ -13,25 +13,21 @@
.header {
text-align: center;
margin-bottom: 60px;
- color: #1f2937;
.title {
- font-size: 3rem;
- font-weight: 800;
+ font-size: 2.5rem;
+ font-weight: 700;
+ color: #1f2937;
margin-bottom: 16px;
- background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
- background-clip: text;
- letter-spacing: -1px;
+ letter-spacing: -0.025em;
}
.subtitle {
- font-size: 1.25rem;
+ font-size: 1.125rem;
color: #6b7280;
max-width: 600px;
margin: 0 auto;
- font-weight: 500;
+ line-height: 1.6;
}
}
@@ -41,124 +37,97 @@
margin-bottom: 60px;
.toggleContainer {
- background: #ffffff;
- border-radius: 50px;
- padding: 6px;
+ background: #f3f4f6;
+ border-radius: 8px;
+ padding: 4px;
display: flex;
- border: 2px solid #e5e7eb;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
+ border: 1px solid #e5e7eb;
.toggleButton {
background: transparent;
border: none;
color: #6b7280;
padding: 12px 24px;
- border-radius: 50px;
+ border-radius: 6px;
cursor: pointer;
font-size: 1rem;
font-weight: 600;
- transition: all 0.3s ease;
+ transition: all 0.2s ease;
position: relative;
display: flex;
align-items: center;
gap: 8px;
&.active {
- background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
- color: white;
- box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
+ background: #ffffff;
+ color: #1f2937;
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
&:hover:not(.active) {
- background: #f3f4f6;
+ background: #e5e7eb;
color: #374151;
}
- .saveBadge {
- background: #ef4444;
- color: white;
- padding: 4px 10px;
- border-radius: 12px;
- font-size: 0.75rem;
- font-weight: 700;
- margin-left: 4px;
- box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
- }
+ .saveBadge {
+ background: #C026D2;
+ color: white;
+ padding: 2px 8px;
+ border-radius: 6px;
+ font-size: 0.75rem;
+ font-weight: 600;
+ margin-left: 4px;
+ }
}
}
}
.pricingCards {
display: grid;
- grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
- gap: 30px;
- margin-bottom: 80px;
+ grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
+ gap: 24px;
+ margin-bottom: 60px;
}
.pricingCard {
- background: white;
- border-radius: 24px;
- padding: 40px;
- box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
+ background: #ffffff;
+ border-radius: 16px;
+ padding: 32px;
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
position: relative;
transition: all 0.3s ease;
- border: 2px solid transparent;
+ border: 1px solid #e5e7eb;
&:hover {
- transform: translateY(-8px);
- box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
- }
-
- // Free套餐特殊样式
- &:not(.popular) {
- border: 2px solid #e5e7eb;
- box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
-
- &:hover {
- border-color: #4f46e5;
- box-shadow: 0 15px 40px rgba(79, 70, 229, 0.15);
- }
+ transform: translateY(-2px);
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
&.popular {
- border-color: #4f46e5;
- transform: scale(1.05);
- box-shadow: 0 25px 50px rgba(79, 70, 229, 0.15);
+ border-color: #C026D2;
+ box-shadow: 0 4px 12px rgba(192, 38, 210, 0.15);
- &::before {
- content: '';
+ .popularBadge {
position: absolute;
- top: -2px;
- left: -2px;
- right: -2px;
- bottom: -2px;
- background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
- border-radius: 24px;
- z-index: -1;
+ top: -12px;
+ right: 20px;
+ background: #C026D2;
+ color: white;
+ padding: 6px 12px;
+ border-radius: 12px;
+ font-size: 0.75rem;
+ font-weight: 600;
}
}
-
- .popularBadge {
- position: absolute;
- top: -12px;
- right: 20px;
- background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
- color: white;
- padding: 10px 18px;
- border-radius: 20px;
- font-size: 0.875rem;
- font-weight: 700;
- box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
- }
}
.cardHeader {
text-align: center;
- margin-bottom: 30px;
+ margin-bottom: 32px;
.planName {
- font-size: 2rem;
- font-weight: 800;
+ font-size: 1.5rem;
+ font-weight: 700;
color: #1f2937;
margin-bottom: 16px;
}
@@ -166,20 +135,32 @@
.priceContainer {
.originalPrice {
display: block;
- font-size: 1.125rem;
+ font-size: 1rem;
color: #9ca3af;
text-decoration: line-through;
- margin-bottom: 4px;
+ margin-bottom: 8px;
}
.price {
- font-size: 2.5rem;
- font-weight: 800;
- color: #4f46e5;
display: flex;
align-items: baseline;
justify-content: center;
- gap: 4px;
+ gap: 2px;
+ margin-bottom: 8px;
+
+ .currency {
+ font-size: 1.5rem;
+ font-weight: 600;
+ color: #C026D2;
+ }
+
+ .amount {
+ font-size: 3rem;
+ font-weight: 800;
+ color: #1f2937;
+ line-height: 1;
+ letter-spacing: -0.025em;
+ }
.period {
font-size: 1rem;
@@ -187,22 +168,30 @@
font-weight: 500;
}
}
+
+ .monthlyPrice {
+ font-size: 0.875rem;
+ color: #6b7280;
+ font-weight: 500;
+ margin-top: 4px;
+ text-align: center;
+ }
}
}
.planFeatures {
.mainFeatures {
- margin-bottom: 30px;
- padding: 24px;
- background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
- border-radius: 16px;
- border: 1px solid #e5e7eb;
+ margin-bottom: 32px;
+ padding: 20px;
+ background: #f8fafc;
+ border-radius: 12px;
+ border: 1px solid #e2e8f0;
.featureItem {
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: 16px;
+ margin-bottom: 12px;
&:last-child {
margin-bottom: 0;
@@ -211,46 +200,47 @@
.featureLabel {
font-weight: 600;
color: #374151;
+ font-size: 0.875rem;
}
.featureValue {
font-weight: 700;
color: #1f2937;
- font-size: 1.1rem;
+ font-size: 0.875rem;
}
}
}
.featuresList {
- margin-bottom: 30px;
+ margin-bottom: 32px;
.featureRow {
display: flex;
align-items: center;
- margin-bottom: 16px;
- gap: 12px;
+ margin-bottom: 10px;
+ gap: 10px;
.checkIcon {
color: #10b981;
- font-size: 1.125rem;
+ font-size: 1rem;
flex-shrink: 0;
background: #ecfdf5;
- padding: 4px;
- border-radius: 50%;
+ padding: 2px;
+ border-radius: 4px;
}
.closeIcon {
color: #ef4444;
- font-size: 1.125rem;
+ font-size: 1rem;
flex-shrink: 0;
background: #fef2f2;
- padding: 4px;
- border-radius: 50%;
+ padding: 2px;
+ border-radius: 4px;
}
.featureText {
- font-size: 0.95rem;
- color: #1f2937;
+ font-size: 0.875rem;
+ color: #374151;
line-height: 1.5;
font-weight: 500;
@@ -266,84 +256,42 @@
.ctaButton {
width: 100%;
- height: 52px;
- border-radius: 16px;
- font-size: 1.125rem;
- font-weight: 700;
+ height: 48px;
+ border-radius: 8px;
+ font-size: 1rem;
+ font-weight: 600;
border: none;
- transition: all 0.3s ease;
+ transition: all 0.2s ease;
&.ant-btn-primary {
- background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
- box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
+ background: #C026D2;
+ color: white;
&:hover {
- transform: translateY(-2px);
- box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
- background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
+ background: #a21caf;
+ transform: translateY(-1px);
+ box-shadow: 0 2px 8px rgba(192, 38, 210, 0.25);
+ }
+
+ &:active {
+ transform: translateY(0);
}
}
&.ant-btn-default {
background: #ffffff;
color: #374151;
- border: 2px solid #d1d5db;
- font-weight: 600;
+ border: 1px solid #d1d5db;
&:hover {
background: #f9fafb;
- border-color: #4f46e5;
- color: #4f46e5;
- transform: translateY(-2px);
- box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
+ border-color: #C026D2;
+ color: #C026D2;
+ transform: translateY(-1px);
}
- }
-}
-.faqSection {
- background: white;
- border-radius: 24px;
- padding: 60px 40px;
- box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
- border: 1px solid #e5e7eb;
-
- .faqTitle {
- text-align: center;
- font-size: 2.5rem;
- font-weight: 800;
- color: #1f2937;
- margin-bottom: 40px;
- }
-
- .faqList {
- max-width: 800px;
- margin: 0 auto;
-
- .faqItem {
- margin-bottom: 30px;
- padding: 24px;
- background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
- border-radius: 16px;
- border-left: 4px solid #4f46e5;
- border: 1px solid #e5e7eb;
-
- &:last-child {
- margin-bottom: 0;
- }
-
- .faqQuestion {
- font-size: 1.125rem;
- font-weight: 700;
- color: #1f2937;
- margin-bottom: 8px;
- }
-
- .faqAnswer {
- color: #6b7280;
- line-height: 1.6;
- margin: 0;
- font-weight: 500;
- }
+ &:active {
+ transform: translateY(0);
}
}
}
@@ -351,7 +299,7 @@
// 响应式设计
@media (max-width: 768px) {
.pricingPage {
- padding: 20px 0;
+ padding: 40px 0;
}
.container {
@@ -375,8 +323,8 @@
.toggleContainer {
.toggleButton {
- padding: 10px 20px;
- font-size: 0.9rem;
+ padding: 10px 16px;
+ font-size: 0.875rem;
}
}
}
@@ -384,57 +332,61 @@
.pricingCards {
grid-template-columns: 1fr;
gap: 20px;
- margin-bottom: 60px;
+ margin-bottom: 40px;
}
.pricingCard {
- padding: 30px 20px;
+ padding: 24px 20px;
&.popular {
transform: none;
}
- }
- .cardHeader {
- .planName {
- font-size: 1.75rem;
- }
+ .cardHeader {
+ .planName {
+ font-size: 1.25rem;
+ }
+
+ .priceContainer {
+ .price {
+ .currency {
+ font-size: 1.25rem;
+ }
+
+ .amount {
+ font-size: 2.5rem;
+ }
- .priceContainer {
- .price {
- font-size: 2rem;
+ .period {
+ font-size: 0.875rem;
+ }
+ }
}
}
- }
-
- .faqSection {
- padding: 40px 20px;
- .faqTitle {
- font-size: 2rem;
+ .planFeatures {
+ .mainFeatures {
+ padding: 16px;
+ }
}
}
}
@media (max-width: 480px) {
- .header {
- .title {
- font-size: 1.75rem;
- }
- }
-
.pricingCard {
- padding: 25px 16px;
- }
-
- .cardHeader {
- .planName {
- font-size: 1.5rem;
- }
-
- .priceContainer {
- .price {
- font-size: 1.75rem;
+ padding: 20px 16px;
+
+ .cardHeader {
+ .priceContainer {
+ .price {
+ .currency {
+ font-size: 1rem;
+ }
+
+ .amount {
+ font-size: 2rem;
+ }
+ }
}
}
}