hyapp-h5/vip/fami.css
2026-07-17 11:54:43 +08:00

931 lines
18 KiB
CSS

:root {
--fami-gold-1: #b77c44;
--fami-gold-2: #fee5bb;
--fami-gold-3: #bf854a;
--fami-gold-4: #fcdfb3;
--fami-gold-5: #c0864b;
--fami-gold-6: #fbe8d4;
--fami-text-gradient: linear-gradient(
110.5deg,
var(--fami-gold-1) 0.3%,
var(--fami-gold-2) 19.9%,
var(--fami-gold-3) 42.7%,
var(--fami-gold-4) 61.5%,
var(--fami-gold-5) 79.8%,
var(--fami-gold-6) 100.7%
);
--fami-tab-gradient: linear-gradient(180deg, #fff9cc 0%, #da9642 100%);
--fami-design-width: 375px;
--fami-bottom-bar-height: 64px;
}
* {
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
}
html,
body {
width: 100%;
min-height: 100%;
margin: 0;
overflow: hidden;
background: #0d0714;
color: #fee5bb;
font-family:
-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Arial,
sans-serif;
}
button,
input {
font: inherit;
}
button {
margin: 0;
padding: 0;
border: 0;
color: inherit;
background: transparent;
}
button:focus-visible,
input:focus-visible + i {
outline: 2px solid #fee5bb;
outline-offset: 2px;
}
[hidden] {
display: none !important;
}
.fami-vip-mount {
position: relative;
width: min(100vw, 480px);
height: 100dvh;
margin: 0 auto;
overflow: hidden;
}
.fami-vip {
position: relative;
width: 375px;
height: 100dvh;
min-height: 560px;
overflow: hidden;
direction: ltr;
background: #000;
transform-origin: left top;
isolation: isolate;
}
.fami-vip__scroll {
position: absolute;
inset: 0;
z-index: 1;
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior-y: contain;
scrollbar-width: none;
touch-action: pan-y;
background: #000;
}
.fami-vip__scroll::-webkit-scrollbar,
.fami-vip__levels::-webkit-scrollbar,
.fami-vip__outfit-viewport::-webkit-scrollbar {
display: none;
}
.fami-vip__scroll.is-locked {
overflow: hidden;
touch-action: none;
}
.fami-vip__top-background {
position: absolute;
z-index: -1;
top: 0;
left: 0;
display: block;
width: 375px;
height: 406px;
object-fit: cover;
pointer-events: none;
user-select: none;
}
.fami-vip__status-space {
position: relative;
height: 48px;
}
.fami-vip__sticky-navigation {
position: sticky;
top: 0;
z-index: 30;
width: 375px;
height: 88px;
}
.fami-vip__sticky-navigation::before {
content: '';
position: absolute;
inset: 0;
z-index: 0;
border-bottom: 1px solid transparent;
background: rgba(9, 4, 3, 0);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0);
opacity: 0;
pointer-events: none;
transition:
opacity 180ms ease,
background-color 180ms ease,
border-color 180ms ease,
box-shadow 180ms ease;
-webkit-backdrop-filter: blur(0) saturate(100%);
backdrop-filter: blur(0) saturate(100%);
}
.fami-vip__sticky-navigation.is-stuck::before {
border-bottom-color: rgba(254, 229, 187, 0.18);
background: rgba(9, 4, 3, 0.62);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
opacity: 1;
-webkit-backdrop-filter: blur(18px) saturate(135%);
backdrop-filter: blur(18px) saturate(135%);
}
.fami-vip__header {
position: relative;
z-index: 1;
width: 375px;
height: 44px;
}
.fami-vip__nav-button {
position: absolute;
top: 10px;
z-index: 2;
width: 24px;
height: 24px;
cursor: pointer;
}
.fami-vip__nav-button::before {
content: '';
position: absolute;
inset: -8px;
}
.fami-vip__nav-button img {
display: block;
width: 24px;
height: 24px;
pointer-events: none;
}
.fami-vip__back {
left: 12px;
}
.fami-vip__settings {
left: 303px;
}
.fami-vip__help {
left: 339px;
}
.fami-vip__wordmark {
position: absolute;
top: 8px;
left: 125px;
display: block;
width: 125px;
height: 28px;
object-fit: cover;
pointer-events: none;
}
.fami-vip__levels {
position: relative;
z-index: 1;
width: 375px;
height: 44px;
overflow-x: auto;
overflow-y: hidden;
scroll-behavior: smooth;
scrollbar-width: none;
touch-action: pan-x;
}
.fami-vip__level-track {
display: flex;
width: max-content;
min-width: 375px;
height: 44px;
gap: 3px;
padding: 0 12px;
}
.fami-vip__level-button {
position: relative;
flex: 0 0 56px;
width: 56px;
height: 44px;
overflow: hidden;
cursor: pointer;
}
.fami-vip__level-button::before {
content: '';
position: absolute;
top: 10px;
left: 0;
width: 56px;
height: 24px;
opacity: 0;
background: url('./assets/fami/layers/level-active.png') center / 56px 24px
no-repeat;
transition: opacity 120ms ease;
}
.fami-vip__level-button span {
position: relative;
z-index: 1;
display: block;
width: 100%;
height: 44px;
font-size: 16px;
font-weight: 510;
line-height: 44px;
text-align: center;
text-transform: uppercase;
white-space: nowrap;
background: var(--fami-tab-gradient);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.fami-vip__level-button[aria-selected='true']::before {
opacity: 1;
}
.fami-vip__level-button[aria-selected='true'] span {
font-size: 17px;
}
.fami-vip__hero {
position: relative;
z-index: 2;
width: 375px;
height: 224px;
pointer-events: none;
}
.fami-vip__hero-layer {
position: absolute;
top: 0;
left: 102px;
display: block;
width: 170px;
height: 170px;
object-fit: contain;
user-select: none;
}
.fami-vip__section {
position: relative;
width: 375px;
}
.fami-vip__section-title {
display: flex;
width: max-content;
height: 27px;
margin: 0 auto;
align-items: center;
justify-content: center;
gap: 2px;
font-size: 16px;
font-weight: 400;
line-height: normal;
letter-spacing: 0.32px;
text-align: center;
text-transform: capitalize;
white-space: nowrap;
background: var(--fami-text-gradient);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 0 0 4px rgba(250, 199, 94, 0.5);
}
.fami-vip__section-title span {
unicode-bidi: plaintext;
}
.fami-vip__wreath {
display: block;
flex: 0 0 17px;
width: 17px;
height: 27px;
object-fit: contain;
}
.fami-vip__wreath--right {
transform: rotate(180deg) scaleY(-1);
}
.fami-vip__outfit-viewport {
position: relative;
width: 375px;
height: 135px;
margin-top: 10px;
overflow-x: auto;
overflow-y: hidden;
scrollbar-width: none;
touch-action: pan-x pan-y;
}
.fami-vip__outfit-list {
display: flex;
width: max-content;
min-width: 375px;
height: 135px;
align-items: flex-start;
}
.fami-vip__outfit-card {
position: relative;
flex: 0 0 124px;
width: 124px;
height: 135px;
margin-right: -12px;
overflow: visible;
cursor: pointer;
}
.fami-vip__outfit-card:last-child {
margin-right: 0;
}
.fami-vip__outfit-skin {
position: absolute;
top: 0;
left: 0;
display: block;
width: 124px;
height: 103px;
pointer-events: none;
}
.fami-vip__outfit-media {
position: absolute;
top: 14.083px;
left: 23.705px;
display: block;
width: 76.553px;
height: 78.917px;
object-fit: contain;
pointer-events: none;
}
.fami-vip__outfit-name {
position: absolute;
top: 107px;
left: 18px;
display: -webkit-box;
width: 88px;
max-height: 28px;
overflow: hidden;
color: #fdd7b2;
font-size: 10px;
font-weight: 400;
line-height: 14px;
text-align: center;
text-transform: capitalize;
unicode-bidi: plaintext;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.fami-vip__outfit-empty,
.fami-vip__privilege-empty {
display: flex;
width: 100%;
min-height: 96px;
align-items: center;
justify-content: center;
color: rgba(254, 229, 187, 0.62);
font-size: 12px;
line-height: 16px;
text-align: center;
}
.fami-vip__privilege-section {
margin-top: 20px;
}
.fami-vip__privilege-grid {
display: grid;
width: 351px;
margin: 10px 12px 0;
grid-template-columns: repeat(3, 81px);
grid-auto-rows: 96px;
justify-content: space-between;
gap: 10px 0;
}
.fami-vip__privilege-item {
position: relative;
display: flex;
width: 81px;
height: 96px;
flex-direction: column;
align-items: center;
color: #fee5bb;
cursor: pointer;
}
.fami-vip__privilege-item.is-locked .fami-vip__privilege-icon,
.fami-vip__privilege-item.is-locked .fami-vip__privilege-name {
opacity: 0.5;
}
.fami-vip__privilege-icon {
position: relative;
display: grid;
flex: 0 0 52px;
width: 52px;
height: 52px;
place-items: center;
border-radius: 50%;
background: linear-gradient(135deg, #000 15%, #222024 100%);
transition: opacity 120ms ease;
}
.fami-vip__privilege-icon::before {
content: '';
position: absolute;
inset: 0;
padding: 2px;
border-radius: 50%;
background: radial-gradient(
circle at 0 0,
#b77c44 0%,
#fee5bb 21.9%,
#bf854a 42.2%,
#fcdfb3 60.9%,
#c0864b 79.2%,
#fbe8d4 100%
);
pointer-events: none;
-webkit-mask:
linear-gradient(#000 0 0) content-box,
linear-gradient(#000 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
}
.fami-vip__privilege-icon img {
display: block;
width: 30.33px;
height: 30.33px;
object-fit: contain;
pointer-events: none;
}
.fami-vip__privilege-icon img[src$='pretty-id.svg'] {
height: 27.854637px;
}
.fami-vip__privilege-icon img[src$='vehicle.svg'] {
height: 27.030392px;
}
.fami-vip__privilege-icon img[src$='notice.svg'] {
width: 33px;
height: 33px;
transform: translate(0.165009px, 0.165009px);
}
.fami-vip__privilege-name {
display: -webkit-box;
width: 81px;
max-height: 32px;
margin-top: 12px;
overflow: hidden;
font-size: 12px;
font-weight: 600;
line-height: 16px;
text-align: center;
text-transform: capitalize;
unicode-bidi: plaintext;
transition: opacity 120ms ease;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.fami-vip__content-spacer {
width: 100%;
height: calc(var(--fami-bottom-bar-height) + 20px);
}
.fami-vip__bottom-bar {
position: absolute;
right: 0;
bottom: 0;
left: 0;
z-index: 20;
width: 375px;
height: var(--fami-bottom-bar-height);
overflow: hidden;
background:
radial-gradient(
292px 111px at 50% -8px,
rgba(97, 52, 11, 0.38) 0%,
rgba(33, 14, 1, 0.08) 72%,
transparent 100%
),
linear-gradient(180deg, #0d0202 0%, #000 100%);
box-shadow: 0 -7px 18px rgba(0, 0, 0, 0.52);
}
.fami-vip__bottom-bar::before {
content: '';
position: absolute;
inset: 0 0 auto;
height: 1px;
background: linear-gradient(
90deg,
transparent 0%,
rgba(183, 124, 68, 0.42) 10%,
#fee5bb 50%,
rgba(183, 124, 68, 0.42) 90%,
transparent 100%
);
}
.fami-vip__price {
position: absolute;
top: 30px;
left: 12px;
display: flex;
height: 22px;
align-items: center;
gap: 3px;
color: #ffb200;
font-size: 14px;
font-weight: 600;
line-height: normal;
white-space: nowrap;
}
.fami-vip__price img {
display: block;
width: 22px;
height: 22px;
object-fit: contain;
}
.fami-vip__price span {
unicode-bidi: plaintext;
}
.fami-vip__active-state {
position: absolute;
top: 17px;
left: 12px;
display: flex;
width: 190px;
height: 42px;
flex-direction: column;
justify-content: space-between;
color: #ffb200;
unicode-bidi: plaintext;
}
.fami-vip__active-state strong {
overflow: hidden;
font-size: 16px;
font-weight: 600;
line-height: 19px;
text-overflow: ellipsis;
white-space: nowrap;
}
.fami-vip__active-state span {
overflow: hidden;
font-size: 10px;
font-weight: 400;
line-height: 12px;
text-overflow: ellipsis;
white-space: nowrap;
}
.fami-vip__cta {
position: absolute;
top: 21px;
left: 239px;
width: 126px;
height: 39px;
overflow: hidden;
color: #3d2000;
font-size: 16px;
font-weight: 700;
line-height: 20px;
text-align: center;
letter-spacing: -0.5px;
cursor: pointer;
}
.fami-vip__cta img {
position: absolute;
inset: 0;
display: block;
width: 126px;
height: 39px;
object-fit: cover;
pointer-events: none;
}
.fami-vip__cta span {
position: relative;
z-index: 1;
display: grid;
width: 100%;
height: 39px;
place-items: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.fami-vip__cta:disabled {
cursor: default;
filter: grayscale(0.32) brightness(0.72);
}
.fami-vip__load-layer {
position: absolute;
inset: 136px 0 var(--fami-bottom-bar-height);
z-index: 18;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #fee5bb;
background: rgba(0, 0, 0, 0.48);
text-align: center;
transition: opacity 160ms ease;
}
.fami-vip[data-page-state='ready'] .fami-vip__load-layer {
visibility: hidden;
opacity: 0;
pointer-events: none;
}
.fami-vip__spinner {
width: 28px;
height: 28px;
border: 2px solid rgba(254, 229, 187, 0.26);
border-top-color: #fee5bb;
border-radius: 50%;
animation: fami-vip-spin 800ms linear infinite;
}
.fami-vip[data-page-state='error'] .fami-vip__spinner {
display: none;
}
.fami-vip__load-layer p {
max-width: 280px;
margin: 14px 0 0;
font-size: 13px;
line-height: 18px;
unicode-bidi: plaintext;
}
.fami-vip__retry {
min-width: 96px;
height: 34px;
margin-top: 14px;
padding: 0 18px;
border: 1px solid #fee5bb;
border-radius: 17px;
color: #fee5bb;
cursor: pointer;
}
.fami-vip__modal {
position: absolute;
inset: 0;
z-index: 60;
display: grid;
place-items: center;
}
.fami-vip__modal-backdrop {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
cursor: pointer;
background: rgba(0, 0, 0, 0.72);
backdrop-filter: blur(3px);
}
.fami-vip__dialog {
position: relative;
z-index: 1;
width: 315px;
min-height: 188px;
padding: 28px 24px 24px;
border: 1px solid rgba(254, 229, 187, 0.72);
border-radius: 18px;
color: #fee5bb;
background:
radial-gradient(
circle at 50% 0,
rgba(141, 77, 19, 0.32),
transparent 58%
),
linear-gradient(180deg, #1b0d08 0%, #070201 100%);
box-shadow:
0 18px 60px rgba(0, 0, 0, 0.72),
inset 0 0 24px rgba(227, 153, 67, 0.1);
text-align: center;
}
.fami-vip__dialog-close {
position: absolute;
top: 8px;
right: 10px;
width: 32px;
height: 32px;
color: #fee5bb;
font-size: 25px;
line-height: 32px;
cursor: pointer;
}
.fami-vip__dialog h2 {
margin: 8px 0 10px;
color: #fee5bb;
font-size: 18px;
font-weight: 700;
line-height: 24px;
unicode-bidi: plaintext;
}
.fami-vip__dialog p {
margin: 0;
color: rgba(254, 229, 187, 0.76);
font-size: 13px;
line-height: 19px;
unicode-bidi: plaintext;
}
.fami-vip__dialog-icon {
display: grid;
width: 52px;
height: 52px;
margin: 0 auto;
place-items: center;
border: 2px solid #dba35a;
border-radius: 50%;
background: linear-gradient(135deg, #000, #222024);
}
.fami-vip__dialog-icon img {
width: 30.33px;
height: 30.33px;
}
.fami-vip__detail-state {
display: inline-flex;
min-width: 76px;
height: 24px;
margin-top: 16px;
padding: 0 12px;
align-items: center;
justify-content: center;
border: 1px solid rgba(254, 229, 187, 0.58);
border-radius: 12px;
font-size: 11px;
line-height: 22px;
}
.fami-vip__settings-dialog {
min-height: 214px;
text-align: left;
}
.fami-vip__settings-dialog h2 {
text-align: center;
}
.fami-vip__setting-row {
position: relative;
display: flex;
height: 52px;
align-items: center;
justify-content: space-between;
border-top: 1px solid rgba(254, 229, 187, 0.14);
color: #fee5bb;
font-size: 13px;
line-height: 18px;
cursor: pointer;
}
.fami-vip__setting-row span {
max-width: 210px;
unicode-bidi: plaintext;
}
.fami-vip__setting-row input {
position: absolute;
opacity: 0;
pointer-events: none;
}
.fami-vip__setting-row i {
position: relative;
flex: 0 0 42px;
width: 42px;
height: 24px;
border-radius: 12px;
background: rgba(254, 229, 187, 0.2);
transition: background 140ms ease;
}
.fami-vip__setting-row i::after {
content: '';
position: absolute;
top: 3px;
left: 3px;
width: 18px;
height: 18px;
border-radius: 50%;
background: #fee5bb;
transition: transform 140ms ease;
}
.fami-vip__setting-row input:checked + i {
background: #a66a29;
}
.fami-vip__setting-row input:checked + i::after {
transform: translateX(18px);
}
.fami-vip__setting-row input:disabled + i {
opacity: 0.45;
}
.fami-vip__media-dialog {
width: 335px;
min-height: 390px;
}
.fami-vip__media-stage {
display: grid;
width: 270px;
height: 300px;
margin: 4px auto 0;
overflow: hidden;
place-items: center;
border-radius: 12px;
background: rgba(0, 0, 0, 0.55);
}
.fami-vip__media-stage img,
.fami-vip__media-stage video,
.fami-vip__media-stage canvas {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
}
@keyframes fami-vip-spin {
to {
transform: rotate(360deg);
}
}
@media (prefers-reduced-motion: reduce) {
.fami-vip__levels {
scroll-behavior: auto;
}
.fami-vip__spinner {
animation-duration: 1.6s;
}
}