2026-07-17 11:54:43 +08:00

458 lines
8.2 KiB
CSS

:root {
color-scheme: dark;
--coin-seller-bg: #06221b;
--coin-seller-text: #fff;
--coin-seller-muted: rgba(255, 255, 255, 0.7);
--coin-seller-gold: #ffebbb;
--coin-seller-button-text: #773924;
}
* {
box-sizing: border-box;
}
html,
body {
width: 100%;
min-height: 100%;
margin: 0;
}
body {
min-height: 100svh;
overflow-x: hidden;
background: #020b09;
color: var(--coin-seller-text);
font-family:
'Source Han Sans SC',
'Noto Sans SC',
-apple-system,
BlinkMacSystemFont,
'Segoe UI',
Arial,
sans-serif;
-webkit-font-smoothing: antialiased;
text-rendering: geometricPrecision;
}
button,
a {
font: inherit;
-webkit-tap-highlight-color: transparent;
}
[hidden] {
display: none !important;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.coin-seller-page {
width: min(100%, 480px);
min-height: 100svh;
margin: 0 auto;
overflow: clip;
background: var(--coin-seller-bg);
container-type: inline-size;
}
.coin-seller-stage {
position: relative;
min-height: max(100svh, 243.1481cqw);
isolation: isolate;
}
.coin-seller-hero {
position: relative;
z-index: 0;
width: 100%;
height: 142.5cqw;
overflow: hidden;
pointer-events: none;
-webkit-mask-image: linear-gradient(
to bottom,
#000 0%,
#000 83.8%,
transparent 94.7%,
transparent 100%
);
mask-image: linear-gradient(
to bottom,
#000 0%,
#000 83.8%,
transparent 94.7%,
transparent 100%
);
}
.coin-seller-hero img {
position: absolute;
inset: 0 auto auto 0;
display: block;
width: 100%;
height: auto;
user-select: none;
}
.coin-seller-region {
position: relative;
z-index: 1;
width: 100%;
margin-top: -7.5cqw;
padding: 0 3.3333cqw 11.5741cqw;
}
.seller-list {
display: flex;
flex-direction: column;
gap: 2.963cqw;
width: 100%;
padding: 0;
margin: 0;
list-style: none;
}
.seller-card,
.seller-skeleton-card {
position: relative;
width: 100%;
aspect-ratio: 1008 / 183;
overflow: visible;
}
.seller-card-skin,
.seller-skeleton-skin {
position: absolute;
z-index: 0;
inset: 0;
display: block;
width: 100%;
height: 100%;
pointer-events: none;
user-select: none;
}
.seller-avatar-shell {
position: absolute;
z-index: 1;
left: 3.6706%;
top: 17.4863%;
width: 11.8056%;
aspect-ratio: 1;
overflow: hidden;
border: 0.2778cqw solid var(--coin-seller-gold);
border-radius: 50%;
background: #0e4136;
}
.seller-avatar,
.seller-avatar-fallback {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.seller-avatar {
z-index: 1;
inset: auto;
left: -17.83%;
top: -8.53%;
display: block;
width: 123.26%;
height: 164.36%;
object-fit: cover;
opacity: 0;
transition: opacity 120ms ease;
}
.seller-avatar.is-loaded {
opacity: 1;
}
.seller-avatar-fallback {
display: grid;
place-items: center;
color: rgba(255, 235, 187, 0.92);
background: #0f5548;
font-size: 4.1667cqw;
font-weight: 700;
line-height: 1;
text-transform: uppercase;
}
.seller-country {
position: absolute;
z-index: 1;
left: 17.8571%;
top: 25.6831%;
width: 4.8611%;
height: 18.0328%;
overflow: hidden;
border-radius: 0.2778cqw;
}
.seller-flag,
.seller-flag-code {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.seller-flag {
z-index: 1;
display: block;
object-fit: cover;
opacity: 0;
}
.seller-flag.is-loaded {
opacity: 1;
}
.seller-flag-code {
display: grid;
place-items: center;
overflow: hidden;
color: #fff;
background: #17483d;
font-size: 1.3889cqw;
font-weight: 800;
line-height: 1;
}
.seller-name,
.seller-display-id {
position: absolute;
z-index: 1;
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
direction: auto;
}
.seller-name {
left: 24.3056%;
top: 24.0437%;
right: 27.4802%;
color: var(--coin-seller-text);
font-size: 3.7037cqw;
font-weight: 500;
line-height: 3.3333cqw;
}
.seller-display-id {
left: 17.8571%;
top: 56.2842%;
right: 34%;
color: var(--coin-seller-muted);
font-size: 2.7778cqw;
font-weight: 400;
line-height: 3.3333cqw;
}
.seller-contact,
.seller-retry {
position: absolute;
z-index: 2;
display: grid;
place-items: center;
overflow: hidden;
padding: 0;
border: 0;
color: var(--coin-seller-button-text);
background: transparent;
text-align: center;
text-decoration: none;
cursor: pointer;
}
.seller-contact {
left: 74.0079%;
top: 33.8798%;
width: 21.0317%;
height: 31.694%;
border-radius: 999px;
font-size: 2.7778cqw;
font-weight: 700;
line-height: 3.3333cqw;
}
.seller-contact img,
.seller-retry img {
position: absolute;
z-index: -1;
inset: 0;
display: block;
width: 100%;
height: 100%;
pointer-events: none;
user-select: none;
}
.seller-contact span,
.seller-retry span {
position: relative;
z-index: 1;
max-width: 90%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.seller-contact[aria-disabled='true'] {
cursor: default;
filter: saturate(0.42);
opacity: 0.58;
}
.seller-contact:focus-visible,
.seller-retry:focus-visible {
outline: 0.5556cqw solid #fff;
outline-offset: 0.5556cqw;
}
.seller-message {
display: grid;
min-height: 33.8889cqw;
place-items: center;
padding: 6.6667cqw;
border: 0.2778cqw solid rgba(255, 235, 187, 0.78);
background: rgba(3, 38, 30, 0.94);
box-shadow: inset 0 0 0 0.8333cqw rgba(141, 64, 34, 0.44);
text-align: center;
}
.seller-message p {
max-width: 78%;
margin: 0;
color: rgba(255, 255, 255, 0.88);
font-size: 3.3333cqw;
font-weight: 500;
line-height: 1.45;
}
.seller-error {
padding-bottom: 14.4444cqw;
}
.seller-retry {
left: 50%;
bottom: 5.5556cqw;
width: 21.0317cqw;
height: 5.3704cqw;
transform: translateX(-50%);
border-radius: 999px;
font-size: 2.7778cqw;
font-weight: 700;
line-height: 3.3333cqw;
}
.seller-skeleton-card {
overflow: hidden;
}
.seller-skeleton-avatar,
.seller-skeleton-line,
.seller-skeleton-button {
position: absolute;
z-index: 1;
overflow: hidden;
background: rgba(255, 255, 255, 0.12);
}
.seller-skeleton-avatar::after,
.seller-skeleton-line::after,
.seller-skeleton-button::after {
position: absolute;
inset: 0;
content: '';
background: linear-gradient(
100deg,
transparent 15%,
rgba(255, 235, 187, 0.32) 50%,
transparent 85%
);
transform: translateX(-110%);
animation: seller-shimmer 1.4s ease-in-out infinite;
}
.seller-skeleton-avatar {
left: 3.6706%;
top: 17.4863%;
width: 11.8056%;
aspect-ratio: 1;
border: 0.2778cqw solid rgba(255, 235, 187, 0.62);
border-radius: 50%;
}
.seller-skeleton-line {
left: 17.8571%;
height: 12%;
border-radius: 999px;
}
.seller-skeleton-name {
top: 27%;
width: 43%;
}
.seller-skeleton-id {
top: 58%;
width: 26%;
}
.seller-skeleton-button {
left: 74.0079%;
top: 33.8798%;
width: 21.0317%;
height: 31.694%;
border-radius: 999px;
}
@keyframes seller-shimmer {
to {
transform: translateX(110%);
}
}
@media (prefers-reduced-motion: reduce) {
.seller-avatar {
transition: none;
}
.seller-skeleton-avatar::after,
.seller-skeleton-line::after,
.seller-skeleton-button::after {
animation: none;
}
}
@supports not (container-type: inline-size) {
.coin-seller-stage {
min-height: max(100svh, 243.1481vw);
}
.coin-seller-hero {
height: 142.5vw;
}
.coin-seller-region {
margin-top: -7.5vw;
padding-inline: 3.3333vw;
padding-bottom: 11.5741vw;
}
}