初始化
This commit is contained in:
+587
@@ -0,0 +1,587 @@
|
||||
:root {
|
||||
color: #2f3137;
|
||||
background: #f3f3f4;
|
||||
font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-width: 320px;
|
||||
background: #f3f3f4;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
button,
|
||||
input {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
button {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
padding: 0 16px 32px;
|
||||
}
|
||||
|
||||
.shell {
|
||||
width: min(1116px, 100%);
|
||||
margin: 0 auto;
|
||||
background: #f7f7f8;
|
||||
min-height: 100vh;
|
||||
padding: 12px 12px 28px;
|
||||
}
|
||||
|
||||
.topbar {
|
||||
display: grid;
|
||||
grid-template-columns: max-content 1fr;
|
||||
gap: 16px;
|
||||
align-items: center;
|
||||
padding: 2px 0 12px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.brand-mark {
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 2px solid #f5c451;
|
||||
border-radius: 50%;
|
||||
color: #a56a00;
|
||||
background: #fff8d9;
|
||||
}
|
||||
|
||||
.brand strong,
|
||||
.brand span {
|
||||
display: block;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.brand strong {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.brand span {
|
||||
color: #8e929c;
|
||||
font-size: 11px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.search {
|
||||
height: 38px;
|
||||
border: 1px solid #ffad1f;
|
||||
border-radius: 999px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 0 10px 0 14px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.search svg {
|
||||
color: #9a9da5;
|
||||
flex: none;
|
||||
}
|
||||
|
||||
.search input {
|
||||
border: 0;
|
||||
outline: 0;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
color: #33363d;
|
||||
}
|
||||
|
||||
.search button,
|
||||
.loadmore button,
|
||||
.state button {
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
background: #ff6680;
|
||||
color: #fff;
|
||||
min-height: 30px;
|
||||
padding: 0 16px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.hero {
|
||||
position: relative;
|
||||
min-height: 118px;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
color: #fff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
padding: 18px 28px;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
isolation: isolate;
|
||||
}
|
||||
|
||||
.hero::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: -1;
|
||||
background:
|
||||
linear-gradient(90deg, rgba(23, 26, 32, 0.88), rgba(23, 26, 32, 0.12)),
|
||||
radial-gradient(circle at 75% 50%, rgba(255, 209, 79, 0.48), transparent 28%),
|
||||
linear-gradient(135deg, #242734, #62342c 54%, #14161d);
|
||||
}
|
||||
|
||||
.hero-green::before {
|
||||
background:
|
||||
linear-gradient(90deg, rgba(20, 32, 29, 0.88), rgba(20, 32, 29, 0.18)),
|
||||
radial-gradient(circle at 74% 40%, rgba(92, 214, 161, 0.38), transparent 28%),
|
||||
linear-gradient(135deg, #192d2b, #2f5946 56%, #15191d);
|
||||
}
|
||||
|
||||
.hero-orange::before {
|
||||
background:
|
||||
linear-gradient(90deg, rgba(33, 25, 19, 0.9), rgba(33, 25, 19, 0.16)),
|
||||
radial-gradient(circle at 74% 44%, rgba(255, 176, 66, 0.42), transparent 30%),
|
||||
linear-gradient(135deg, #2a211d, #74512d 55%, #17171c);
|
||||
}
|
||||
|
||||
.hero-copy span,
|
||||
.hero-copy p {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
color: rgba(255, 255, 255, 0.82);
|
||||
}
|
||||
|
||||
.hero-copy h1 {
|
||||
margin: 8px 0;
|
||||
font-size: clamp(24px, 4vw, 38px);
|
||||
line-height: 1.05;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.hero-badge {
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
border-radius: 50%;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 2px solid rgba(255, 255, 255, 0.68);
|
||||
background: rgba(255, 255, 255, 0.16);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.notice {
|
||||
min-height: 38px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: #656a76;
|
||||
padding: 0 8px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.notice span,
|
||||
.segmented,
|
||||
.sorts,
|
||||
.rangebar,
|
||||
.summary,
|
||||
.grid {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.notice svg {
|
||||
color: #24a662;
|
||||
flex: none;
|
||||
}
|
||||
|
||||
.filters {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
padding: 10px;
|
||||
background: #fff;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.segmented,
|
||||
.sorts {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.segmented button,
|
||||
.sorts button {
|
||||
min-height: 34px;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: #777b85;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
border-radius: 6px;
|
||||
padding: 0 18px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.segmented button.active,
|
||||
.sorts button.active {
|
||||
color: #ff506d;
|
||||
background: #fff0f3;
|
||||
}
|
||||
|
||||
.segmented span {
|
||||
color: #b4b7bd;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.rangebar {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 36px 36px;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.rangebar label {
|
||||
display: grid;
|
||||
grid-template-columns: max-content 1fr 1fr;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.rangebar label span {
|
||||
color: #757985;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.rangebar input {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
height: 34px;
|
||||
border: 1px solid #eceef2;
|
||||
border-radius: 6px;
|
||||
padding: 0 8px;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.icon-action {
|
||||
width: 36px;
|
||||
height: 34px;
|
||||
border: 1px solid #eceef2;
|
||||
border-radius: 6px;
|
||||
background: #fff;
|
||||
color: #606571;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
.summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
margin: 12px 0;
|
||||
}
|
||||
|
||||
.summary div {
|
||||
min-width: 0;
|
||||
min-height: 58px;
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
align-content: center;
|
||||
box-shadow: 0 1px 8px rgba(24, 26, 32, 0.04);
|
||||
}
|
||||
|
||||
.summary strong {
|
||||
font-size: 22px;
|
||||
color: #33363d;
|
||||
}
|
||||
|
||||
.summary span {
|
||||
font-size: 12px;
|
||||
color: #8e929c;
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.card {
|
||||
position: relative;
|
||||
min-height: 206px;
|
||||
background: #fff;
|
||||
border-radius: 8px;
|
||||
padding: 16px 12px 50px;
|
||||
box-shadow: 0 2px 12px rgba(24, 26, 32, 0.06);
|
||||
}
|
||||
|
||||
.card-head,
|
||||
.coin-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.card h2 {
|
||||
margin: 0;
|
||||
font-size: 20px;
|
||||
line-height: 1.2;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.card p {
|
||||
margin: 6px 0 0;
|
||||
color: #8e929c;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.price {
|
||||
text-align: right;
|
||||
flex: none;
|
||||
}
|
||||
|
||||
.price strong {
|
||||
color: #ff435f;
|
||||
font-size: 21px;
|
||||
}
|
||||
|
||||
.price span {
|
||||
display: block;
|
||||
color: #8b8f99;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.coin-row {
|
||||
align-items: center;
|
||||
border-bottom: 1px solid #f0f1f4;
|
||||
margin: 8px 0 10px;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.coin-row strong {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.coin-row span {
|
||||
color: #ff435f;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.badges,
|
||||
.chips {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.badges {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.badge,
|
||||
.chip {
|
||||
max-width: 100%;
|
||||
min-height: 24px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
border-radius: 5px;
|
||||
font-size: 12px;
|
||||
padding: 0 8px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.badge {
|
||||
background: #f0f8f3;
|
||||
color: #1e9b59;
|
||||
}
|
||||
|
||||
.badge.hot {
|
||||
background: #fff0f2;
|
||||
color: #ff435f;
|
||||
}
|
||||
|
||||
.chip-green {
|
||||
color: #169950;
|
||||
background: #effbf4;
|
||||
border: 1px solid #c8f0d7;
|
||||
}
|
||||
|
||||
.chip-red {
|
||||
color: #ff435f;
|
||||
background: #fff3f5;
|
||||
border: 1px solid #ffd7df;
|
||||
}
|
||||
|
||||
.chip-purple {
|
||||
color: #6d44e8;
|
||||
background: #f4f0ff;
|
||||
border: 1px solid #ddd2ff;
|
||||
}
|
||||
|
||||
.chip-gold {
|
||||
color: #b87400;
|
||||
background: #fff7df;
|
||||
border: 1px solid #ffe6a0;
|
||||
}
|
||||
|
||||
.remark {
|
||||
margin-top: 8px;
|
||||
color: #ff6a00;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.copy {
|
||||
position: absolute;
|
||||
right: 12px;
|
||||
bottom: 12px;
|
||||
min-width: 64px;
|
||||
height: 30px;
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
background: #ff6f86;
|
||||
color: #fff;
|
||||
font-weight: 700;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 4px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.state,
|
||||
.loadmore {
|
||||
min-height: 92px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
color: #8c909a;
|
||||
}
|
||||
|
||||
.state.error {
|
||||
color: #ff435f;
|
||||
}
|
||||
|
||||
.loadmore button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.loadmore span {
|
||||
color: #999da7;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.spin {
|
||||
animation: spin 0.9s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 920px) {
|
||||
.topbar {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.rangebar {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.page {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.shell {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.hero {
|
||||
min-height: 108px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.hero-badge {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.summary {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.segmented,
|
||||
.sorts {
|
||||
justify-content: flex-start;
|
||||
flex-wrap: wrap;
|
||||
overflow-x: hidden;
|
||||
max-width: 100%;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
.segmented::-webkit-scrollbar,
|
||||
.sorts::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.segmented button,
|
||||
.sorts button {
|
||||
flex: 0 0 auto;
|
||||
padding: 0 16px;
|
||||
}
|
||||
|
||||
.hero-copy h1 {
|
||||
font-size: 22px;
|
||||
line-height: 1.15;
|
||||
}
|
||||
|
||||
.grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.rangebar {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.rangebar label {
|
||||
grid-template-columns: 52px 1fr 1fr;
|
||||
}
|
||||
|
||||
.icon-action {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user