feat(subscription): enhance styling and layout for subscription components

This commit is contained in:
2026-06-26 15:23:21 +08:00
parent fdcb7c56f1
commit f0ba1756b6
4 changed files with 113 additions and 67 deletions
@@ -1,11 +1,18 @@
.section {
margin: 18px -30px 0;
overflow: hidden;
border: 1px solid rgba(246, 87, 160, 0.12);
border-radius: 28px;
background: rgba(255, 255, 255, 0.78);
box-shadow: 0 18px 45px rgba(246, 87, 160, 0.11);
backdrop-filter: blur(18px);
}
.summary {
position: relative;
padding: 10px 10px 16px;
background: #d9d9d9;
padding: 18px 18px 22px;
background:
linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 235, 243, 0.92) 54%, rgba(246, 87, 160, 0.16) 100%),
#ffffff;
}
.title {
@@ -17,20 +24,20 @@
}
.titleText {
color: #111111;
color: #181014;
font-size: 20px;
font-weight: 800;
}
.renewText {
color: #7d7d7d;
font-size: 14px;
color: #9a707e;
font-size: 13px;
font-weight: 700;
}
.subtitle {
margin: 8px 0 0;
color: #666666;
color: #6f5961;
font-size: 15px;
font-weight: 700;
line-height: 1.3;
@@ -42,7 +49,7 @@
bottom: -12px;
width: 24px;
height: 24px;
background: #d9d9d9;
background: #ffe8f0;
transform: translateX(-50%) rotate(45deg);
}
@@ -51,26 +58,28 @@
z-index: 1;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
padding: 14px 10px 0;
gap: 9px;
padding: 18px 10px 12px;
}
.planCard {
display: flex;
min-width: 0;
min-height: 116px;
min-height: 118px;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 12px 6px 10px;
border: 0;
border-radius: 14px;
background: #f4f4f4;
color: #111111;
padding: 12px 6px 11px;
border: 1px solid rgba(246, 87, 160, 0.08);
border-radius: 20px;
background: #ffffff;
color: #181014;
cursor: pointer;
font: inherit;
text-align: center;
transition: background-color 0.15s ease, transform 0.05s ease;
box-shadow: 0 8px 22px rgba(26, 16, 20, 0.05);
transition: background-color 0.18s ease, box-shadow 0.18s ease,
color 0.18s ease, transform 0.12s ease;
}
.planCard:focus-visible {
@@ -79,11 +88,14 @@
}
.planCard:active {
transform: scale(0.98);
transform: translateY(1px) scale(0.985);
}
.selected {
background: #d9d9d9;
border-color: rgba(246, 87, 160, 0.55);
background: linear-gradient(180deg, #fff 0%, #fff2f8 100%);
box-shadow: 0 14px 30px rgba(246, 87, 160, 0.2);
color: #111111;
}
.planTitle {
@@ -109,7 +121,7 @@
.currency {
margin-bottom: 3px;
color: #777777;
color: #8b717a;
font-size: 12px;
font-weight: 700;
text-transform: lowercase;
@@ -117,7 +129,7 @@
.originalPrice {
margin-top: 10px;
color: #7c7c7c;
color: #9c8b91;
font-size: 14px;
font-weight: 800;
line-height: 1;
@@ -126,7 +138,9 @@
@media (max-width: 360px) {
.planGrid {
gap: 8px;
gap: 7px;
padding-right: 8px;
padding-left: 8px;
}
.planTitle {