feat(mobile): 全面重构移动端首页与详情页布局并统一3*3顶级保险高光视觉
This commit is contained in:
@@ -589,149 +589,57 @@
|
||||
}
|
||||
|
||||
.mobile-card {
|
||||
display: grid;
|
||||
grid-template-columns: 104px minmax(0, 1fr);
|
||||
column-gap: 8px;
|
||||
row-gap: 8px;
|
||||
overflow: hidden;
|
||||
padding: 8px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.card-cover {
|
||||
position: relative;
|
||||
display: grid;
|
||||
width: 104px;
|
||||
height: 104px;
|
||||
place-items: center;
|
||||
overflow: hidden;
|
||||
border-radius: 8px;
|
||||
background: #e2e8f0;
|
||||
color: #64748b;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.card-cover img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.card-cover-labels {
|
||||
position: absolute;
|
||||
left: 6px;
|
||||
top: 6px;
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.card-cover-labels em {
|
||||
padding: 2px 6px;
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 106, 0, 0.92);
|
||||
color: #fff;
|
||||
font-size: 10px;
|
||||
font-style: normal;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.card-main {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
flex-direction: column;
|
||||
padding: 0;
|
||||
gap: 8px;
|
||||
padding: 10px 12px;
|
||||
border-radius: 12px;
|
||||
background: #ffffff;
|
||||
border: 1px solid #e8edf5;
|
||||
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
|
||||
}
|
||||
|
||||
.card-title-row h2 {
|
||||
margin: 0;
|
||||
display: -webkit-box;
|
||||
min-height: 35px;
|
||||
overflow: hidden;
|
||||
color: #0f172a;
|
||||
font-size: 13px;
|
||||
line-height: 1.34;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
.mobile-card:active {
|
||||
transform: scale(0.99);
|
||||
border-color: #fed7aa;
|
||||
}
|
||||
|
||||
.card-meta-row {
|
||||
/* 顶部精简元信息栏 */
|
||||
.mobile-card-header {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
.mobile-listing-no,
|
||||
.rental-meta-badge {
|
||||
display: inline-flex;
|
||||
width: fit-content;
|
||||
align-items: center;
|
||||
min-height: 17px;
|
||||
padding: 1px 6px;
|
||||
border-radius: 999px;
|
||||
background: #f5f7fa;
|
||||
color: #64748b;
|
||||
font-size: 10px;
|
||||
font-weight: 800;
|
||||
line-height: 1.2;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.rental-meta-badge {
|
||||
gap: 2px;
|
||||
border: none;
|
||||
background: #f5f7fa;
|
||||
color: #64748b;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.meta-separator {
|
||||
color: #cbd5e1;
|
||||
}
|
||||
|
||||
.card-subtitle {
|
||||
width: fit-content;
|
||||
margin: 0;
|
||||
padding: 1px 6px;
|
||||
border-radius: 999px;
|
||||
background: #fff7ed;
|
||||
color: #ea580c;
|
||||
font-size: 10px;
|
||||
font-weight: 900;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.card-action-row {
|
||||
.header-tags-left {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.card-badges-row,
|
||||
.card-chip-row {
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.server-badge,
|
||||
.card-chip-row span {
|
||||
.code-badge {
|
||||
padding: 1px 6px;
|
||||
border-radius: 4px;
|
||||
background: #eff6ff;
|
||||
color: #2563eb;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.2px;
|
||||
}
|
||||
|
||||
.server-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
padding: 1px 5px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid transparent;
|
||||
background: #f1f5f9;
|
||||
color: #475569;
|
||||
padding: 1px 6px;
|
||||
border-radius: 4px;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
line-height: 1.35;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.server-badge.tone-wechat {
|
||||
@@ -741,7 +649,7 @@
|
||||
|
||||
.server-badge.tone-qq {
|
||||
background: #eff6ff;
|
||||
color: #1683ff;
|
||||
color: #0284c7;
|
||||
}
|
||||
|
||||
.server-badge.tone-scan {
|
||||
@@ -759,80 +667,345 @@
|
||||
color: #4f46e5;
|
||||
}
|
||||
|
||||
.card-chip-row span.tone-coin {
|
||||
border-color: #fed7aa;
|
||||
background: #fff7ed;
|
||||
color: #c2410c;
|
||||
.server-badge.tone-default {
|
||||
background: #f1f5f9;
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
.card-chip-row span.tone-insurance {
|
||||
border-color: #fed7aa;
|
||||
background: #fff7ed;
|
||||
color: #c2410c;
|
||||
.header-tags-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.card-chip-row span.tone-stamina {
|
||||
border-color: #fed7aa;
|
||||
background: #fff7ed;
|
||||
color: #c2410c;
|
||||
.aux-pill {
|
||||
padding: 1px 6px;
|
||||
border-radius: 4px;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.card-chip-row span.tone-load {
|
||||
border-color: #fed7aa;
|
||||
background: #fff7ed;
|
||||
color: #c2410c;
|
||||
.aux-pill.rental {
|
||||
background: #f0fdf4;
|
||||
color: #15803d;
|
||||
border: 1px solid #dcfce7;
|
||||
}
|
||||
|
||||
.card-chip-row span.tone-rank {
|
||||
border-color: #fed7aa;
|
||||
background: #fff7ed;
|
||||
color: #c2410c;
|
||||
.aux-pill.loss {
|
||||
background: #fffbeb;
|
||||
color: #b45309;
|
||||
border: 1px solid #fef3c7;
|
||||
}
|
||||
|
||||
.card-chip-row span.tone-weapon {
|
||||
border-color: #fed7aa;
|
||||
background: #fff7ed;
|
||||
color: #c2410c;
|
||||
/* 中部:封面 + 信息流 */
|
||||
.mobile-card-body {
|
||||
display: grid;
|
||||
grid-template-columns: 100px minmax(0, 1fr);
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.card-chip-row span.tone-asset {
|
||||
border-color: #fed7aa;
|
||||
background: #fff7ed;
|
||||
color: #c2410c;
|
||||
/* 左侧封面 */
|
||||
.mobile-card-media {
|
||||
position: relative;
|
||||
width: 100px;
|
||||
height: 90px;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
background: #f1f5f9;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.card-chip-row span.tone-time {
|
||||
border-color: #fed7aa;
|
||||
background: #fff7ed;
|
||||
color: #c2410c;
|
||||
.mobile-card-media img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.card-footer {
|
||||
margin-top: 5px;
|
||||
.media-empty {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
font-size: 16px;
|
||||
font-weight: 800;
|
||||
color: #cbd5e1;
|
||||
}
|
||||
|
||||
.price-col {
|
||||
.media-badges {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
left: 4px;
|
||||
display: flex;
|
||||
gap: 3px;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.media-badges .badge {
|
||||
padding: 1px 4px;
|
||||
border-radius: 4px;
|
||||
font-size: 9px;
|
||||
font-weight: 700;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.media-badges .badge.sale {
|
||||
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
|
||||
}
|
||||
|
||||
.media-badges .badge.gift {
|
||||
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
|
||||
}
|
||||
|
||||
.media-ratio {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 2px 4px;
|
||||
background: linear-gradient(to top, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.4));
|
||||
color: #fcd34d;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
text-align: center;
|
||||
backdrop-filter: blur(2px);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
/* 右侧信息流 */
|
||||
.mobile-card-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* 核心资产微卡 */
|
||||
.card-core-assets {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.core-asset-card {
|
||||
display: inline-flex;
|
||||
width: fit-content;
|
||||
max-width: 100%;
|
||||
align-items: baseline;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
padding: 2px 6px;
|
||||
border-radius: 6px;
|
||||
background: #f8fafc;
|
||||
border: 1px solid #e2e8f0;
|
||||
}
|
||||
|
||||
.price-col strong {
|
||||
color: #ef4444;
|
||||
font-size: 20px;
|
||||
.core-asset-card.coin-card {
|
||||
background: #fff9f5;
|
||||
border-color: #fed7aa;
|
||||
}
|
||||
|
||||
.core-asset-card.slot-card.top-insurance {
|
||||
background: #fff9f5;
|
||||
border-color: #fed7aa;
|
||||
}
|
||||
|
||||
.c-label {
|
||||
font-size: 10px;
|
||||
color: #64748b;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.c-val {
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.c-val.orange {
|
||||
color: #ea580c;
|
||||
}
|
||||
|
||||
.c-val.slate {
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
.c-val.amber {
|
||||
color: #b45309;
|
||||
}
|
||||
|
||||
/* 高光皮肤与物资 */
|
||||
.card-highlights {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.mobile-skin-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
padding: 1px 5px;
|
||||
border-radius: 4px;
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
background: #f8fafc;
|
||||
color: #334155;
|
||||
border: 1px solid #e2e8f0;
|
||||
white-space: nowrap;
|
||||
max-width: 120px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.mobile-skin-pill .quality-dot {
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.mobile-skin-pill.skin-type-melee {
|
||||
background: #faf5ff;
|
||||
color: #7e22ce;
|
||||
border-color: #f3e8ff;
|
||||
}
|
||||
.mobile-skin-pill.skin-type-melee .quality-dot {
|
||||
background: #a855f7;
|
||||
}
|
||||
|
||||
.mobile-skin-pill.skin-type-operatorGold,
|
||||
.mobile-skin-pill.skin-type-weaponGold {
|
||||
background: #fffbeb;
|
||||
color: #b45309;
|
||||
border-color: #fef3c7;
|
||||
}
|
||||
.mobile-skin-pill.skin-type-operatorGold .quality-dot,
|
||||
.mobile-skin-pill.skin-type-weaponGold .quality-dot {
|
||||
background: #f59e0b;
|
||||
}
|
||||
|
||||
.mobile-skin-pill.skin-type-operatorRed {
|
||||
background: #fff1f2;
|
||||
color: #be123c;
|
||||
border-color: #ffe4e6;
|
||||
}
|
||||
.mobile-skin-pill.skin-type-operatorRed .quality-dot {
|
||||
background: #f43f5e;
|
||||
}
|
||||
|
||||
.mobile-res-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
padding: 1px 5px;
|
||||
border-radius: 4px;
|
||||
background: #f8fafc;
|
||||
border: 1px solid #e2e8f0;
|
||||
font-size: 10px;
|
||||
color: #334155;
|
||||
}
|
||||
|
||||
.mobile-res-pill .r-label {
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.mobile-res-pill .r-qty {
|
||||
color: #ea580c;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.mobile-res-pill .r-gift {
|
||||
padding: 0 3px;
|
||||
border-radius: 2px;
|
||||
background: #10b981;
|
||||
color: #ffffff;
|
||||
font-size: 9px;
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* 价格与租用行动区 */
|
||||
.card-price-action {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 6px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.price-wrap {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.price-main {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
color: #ff5500;
|
||||
}
|
||||
|
||||
.price-main small {
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.price-main strong {
|
||||
font-size: 18px;
|
||||
font-weight: 900;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.rent-sub {
|
||||
padding: 1px 6px;
|
||||
border-radius: 999px;
|
||||
background: #fff7ed;
|
||||
color: #9a3412;
|
||||
.deposit-text {
|
||||
font-size: 10px;
|
||||
color: #94a3b8;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.rent-cta-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
height: 24px;
|
||||
padding: 0 9px;
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(135deg, #ff6a00 0%, #ff8533 100%);
|
||||
color: #ffffff;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
box-shadow: 0 2px 6px rgba(255, 106, 0, 0.25);
|
||||
}
|
||||
|
||||
/* 底部次要规格流 */
|
||||
.card-specs-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
flex-wrap: wrap;
|
||||
padding-top: 6px;
|
||||
border-top: 1px dashed #f1f5f9;
|
||||
}
|
||||
|
||||
.spec-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
padding: 1px 5px;
|
||||
border-radius: 4px;
|
||||
background: #f8fafc;
|
||||
border: 1px solid #edf2f7;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.spec-chip .k {
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.spec-chip .v {
|
||||
color: #334155;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.card-chip-row {
|
||||
|
||||
Reference in New Issue
Block a user