2ebdb08a2f
修复仅用 useDidShow 导致一直加载中;顶栏标题左右等宽居中;走马灯改用 View 双份文本动画。发版默认改生产。 Co-authored-by: Cursor <cursoragent@cursor.com>
244 lines
4.4 KiB
CSS
244 lines
4.4 KiB
CSS
/* 门店详情 */
|
|
.store-detail-page {
|
|
background: var(--color-background);
|
|
}
|
|
|
|
.store-detail-hero {
|
|
background: var(--color-card);
|
|
}
|
|
|
|
.store-detail-carousel-wrap {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 280px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.store-detail-carousel {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.store-detail-carousel-item,
|
|
.store-detail-carousel-image,
|
|
.store-detail-carousel-placeholder {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.store-detail-carousel-placeholder {
|
|
background: var(--color-surface-container);
|
|
}
|
|
|
|
.store-detail-carousel-dots {
|
|
position: absolute;
|
|
bottom: 16px;
|
|
left: 0;
|
|
right: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.store-detail-carousel-dot {
|
|
height: 4px;
|
|
width: 6px;
|
|
margin: 0 3px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.45);
|
|
}
|
|
|
|
.store-detail-carousel-dot--active {
|
|
width: 20px;
|
|
background: #fff;
|
|
}
|
|
|
|
.store-detail-info-card {
|
|
margin: -40px var(--space-page) 16px;
|
|
position: relative;
|
|
z-index: 2;
|
|
background: var(--color-card);
|
|
border-radius: var(--radius-lg);
|
|
padding: 20px 16px;
|
|
box-shadow: var(--shadow-card);
|
|
}
|
|
|
|
.store-detail-name {
|
|
display: block;
|
|
font-family: var(--font-headline);
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: var(--color-ink-black);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.store-detail-meta {
|
|
display: block;
|
|
font-size: 13px;
|
|
color: var(--color-on-surface-variant);
|
|
margin-bottom: 6px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.store-detail-meta--flex {
|
|
flex: 1;
|
|
min-width: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.store-detail-row {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.store-detail-action {
|
|
flex-shrink: 0;
|
|
padding: 2px 10px;
|
|
border-radius: 999px;
|
|
background: rgba(166, 29, 36, 0.08);
|
|
color: var(--color-heritage-red);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.store-detail-intro {
|
|
display: block;
|
|
font-size: 14px;
|
|
color: var(--color-on-surface);
|
|
line-height: 1.7;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.store-detail-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.store-detail-tag {
|
|
padding: 4px 10px;
|
|
margin-right: 8px;
|
|
margin-bottom: 8px;
|
|
border-radius: 999px;
|
|
background: rgba(166, 29, 36, 0.08);
|
|
color: var(--color-heritage-red);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.store-detail-marquee {
|
|
margin: 0 var(--space-page) 12px;
|
|
padding: 8px 0;
|
|
border-radius: var(--radius-lg);
|
|
background: rgba(166, 29, 36, 0.06);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.store-detail-marquee-track {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
width: max-content;
|
|
animation-name: store-detail-marquee-scroll;
|
|
animation-timing-function: linear;
|
|
animation-iteration-count: infinite;
|
|
will-change: transform;
|
|
}
|
|
|
|
.store-detail-marquee-item {
|
|
flex: 0 0 auto;
|
|
padding: 0 24px;
|
|
white-space: nowrap;
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
color: #666;
|
|
}
|
|
|
|
@keyframes store-detail-marquee-scroll {
|
|
from {
|
|
transform: translate3d(0, 0, 0);
|
|
}
|
|
to {
|
|
transform: translate3d(-50%, 0, 0);
|
|
}
|
|
}
|
|
|
|
.store-detail-section {
|
|
background: var(--color-card);
|
|
margin: 0 var(--space-page) 16px;
|
|
border-radius: var(--radius-lg);
|
|
padding: 16px;
|
|
box-shadow: var(--shadow-card);
|
|
}
|
|
|
|
.store-detail-section-title {
|
|
display: block;
|
|
font-family: var(--font-headline);
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
margin-bottom: 10px;
|
|
color: var(--color-on-surface);
|
|
}
|
|
|
|
.store-detail-env-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 8px;
|
|
}
|
|
|
|
.store-detail-env-item {
|
|
position: relative;
|
|
width: 100%;
|
|
aspect-ratio: 1;
|
|
border-radius: var(--radius-md, 8px);
|
|
overflow: hidden;
|
|
background: var(--color-surface-container);
|
|
}
|
|
|
|
.store-detail-env-img {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
}
|
|
|
|
.store-detail-bar {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 50;
|
|
padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 12px);
|
|
display: flex;
|
|
background: rgba(255, 255, 255, 0.95);
|
|
border-top: 1px solid rgba(226, 190, 188, 0.1);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.store-detail-bar-btn {
|
|
flex: 1;
|
|
height: 48px;
|
|
border-radius: 999px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.store-detail-bar-btn--ghost {
|
|
background: rgba(166, 29, 36, 0.08);
|
|
color: var(--color-heritage-red);
|
|
margin-right: 12px;
|
|
}
|
|
|
|
.store-detail-bar-btn--primary {
|
|
background: var(--color-heritage-red);
|
|
color: #fff;
|
|
}
|
|
|
|
.store-detail-bar-btn--full {
|
|
flex: 1;
|
|
margin-right: 0;
|
|
}
|