品牌行按胶囊按钮位置计算安全区,hero 改为眉题+双行标题+装饰图形; 预约卡片压到两行:日期与状态胶囊一行、服务与就诊人一行,状态复用记录页语气档; 「联系我们」入口并入「联系客服」。
259 lines
9.4 KiB
Plaintext
259 lines
9.4 KiB
Plaintext
@import "../../styles/service-icons.wxss";
|
|
|
|
/* 首页精修:纸面主视觉、白色服务面板、轻量工具卡。
|
|
装饰图形不承担内容;字号和色彩仍消费全局令牌。 */
|
|
.page-bg { min-height: 100vh; background: var(--paper); }
|
|
.container { padding: 0 32rpx 24rpx; }
|
|
.topbar { box-sizing: border-box; padding-top: 120rpx; }
|
|
.brand { display: flex; align-items: center; gap: 14rpx; }
|
|
.brand-logo { width: 48rpx; height: 48rpx; }
|
|
.brand-name {
|
|
color: var(--ink);
|
|
font-size: var(--fs-30);
|
|
font-weight: 600;
|
|
letter-spacing: 2rpx;
|
|
}
|
|
.hero { padding: 24rpx 0 12rpx; }
|
|
.hero-intro { position: relative; min-height: 218rpx; }
|
|
.hero-eyebrow {
|
|
position: relative;
|
|
z-index: 1;
|
|
color: var(--muted);
|
|
font-size: var(--fs-24);
|
|
letter-spacing: 2rpx;
|
|
}
|
|
.hero-title {
|
|
position: relative;
|
|
z-index: 1;
|
|
width: 72%;
|
|
margin-top: 18rpx;
|
|
font-size: 60rpx;
|
|
font-weight: 600;
|
|
line-height: 1.35;
|
|
letter-spacing: 0;
|
|
}
|
|
.hero-title-main, .hero-title-accent { display: block; }
|
|
.hero-title-main { color: var(--ink); }
|
|
.hero-title-accent { color: var(--brand-strong); }
|
|
.hero-art {
|
|
position: absolute;
|
|
top: 8rpx;
|
|
right: 8rpx;
|
|
width: 164rpx;
|
|
height: 196rpx;
|
|
pointer-events: none;
|
|
}
|
|
.hero-arch {
|
|
position: absolute;
|
|
top: 12rpx;
|
|
right: 12rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-sizing: border-box;
|
|
width: 136rpx;
|
|
height: 176rpx;
|
|
border: 2rpx solid var(--brand-line);
|
|
border-radius: 90rpx 90rpx 28rpx 28rpx;
|
|
background: var(--brand-soft);
|
|
transform: rotate(8deg);
|
|
}
|
|
.hero-art-logo { width: 64rpx; height: 64rpx; opacity: 0.8; }
|
|
.hero-orbit {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
box-sizing: border-box;
|
|
width: 160rpx;
|
|
height: 192rpx;
|
|
border: 2rpx solid var(--sep);
|
|
border-radius: 100rpx 100rpx 40rpx 40rpx;
|
|
transform: rotate(-8deg);
|
|
}
|
|
.hero-art-dot { position: absolute; top: 4rpx; right: 6rpx; width: 12rpx; height: 12rpx; border: 6rpx solid var(--paper); border-radius: 50%; background: var(--brand-strong); }
|
|
/* v2 的 button 默认 :not([size]) 规则会压窄按钮;显式 size 并提高选择器优先级。 */
|
|
button.hero-cta[size="default"] {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
max-width: none;
|
|
min-height: 96rpx;
|
|
margin: 28rpx 0 0;
|
|
padding: 20rpx 28rpx;
|
|
border-radius: 24rpx;
|
|
background: var(--brand-strong);
|
|
color: var(--white);
|
|
font-size: var(--fs-32);
|
|
font-weight: 600;
|
|
line-height: 1.5;
|
|
text-align: left;
|
|
box-shadow: var(--shadow-cta);
|
|
}
|
|
.hero-cta::after { border: none; }
|
|
button.hero-cta.action-hover { background: var(--brand-ink); }
|
|
.cta-arrow { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48rpx; height: 48rpx; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
|
|
.hero-trust {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8rpx;
|
|
margin-top: 20rpx;
|
|
padding: 0 4rpx;
|
|
color: var(--muted);
|
|
font-size: var(--fs-24);
|
|
line-height: 1.6;
|
|
}
|
|
.trust-item { display: flex; align-items: center; gap: 10rpx; }
|
|
.trust-check { flex-shrink: 0; width: 12rpx; height: 7rpx; margin-top: -4rpx; border-bottom: 2rpx solid var(--brand-ink); border-left: 2rpx solid var(--brand-ink); transform: rotate(-45deg); }
|
|
.pending-section { padding: 4rpx 0; }
|
|
.pending-heading { color: var(--muted); font-size: var(--fs-26); }
|
|
.pending-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
margin-top: 16rpx;
|
|
padding: 24rpx;
|
|
border: 2rpx solid var(--line);
|
|
border-radius: 28rpx;
|
|
background: var(--white);
|
|
}
|
|
.pending-content { flex: 1; min-width: 0; }
|
|
/* 首行:日期居左强调,状态胶囊靠右;状态色只包文字本身 */
|
|
.pending-top {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12rpx;
|
|
margin-bottom: 8rpx;
|
|
}
|
|
.pending-when { color: var(--brand-ink); font-size: var(--fs-30); font-weight: 600; white-space: nowrap; }
|
|
.pending-status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
padding: 4rpx 16rpx;
|
|
border: 2rpx solid transparent;
|
|
border-radius: 10rpx;
|
|
font-size: var(--fs-24);
|
|
font-weight: 600;
|
|
line-height: 1.4;
|
|
white-space: nowrap;
|
|
}
|
|
/* 状态语气档与 recordlist / recorddetail 同一套,色值读 app.wxss 令牌 */
|
|
.chip-tone-wait { background: var(--status-wait-bg); border-color: var(--status-wait-line); color: var(--status-wait-ink); }
|
|
.chip-tone-doing { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-strong); }
|
|
.chip-tone-done { background: var(--status-done-bg); border-color: var(--status-done-line); color: var(--status-done-ink); }
|
|
.chip-tone-cancel { background: var(--status-cancel-bg); border-color: var(--status-cancel-line); color: var(--status-cancel-ink); }
|
|
.chip-tone-neutral { background: transparent; border-color: var(--sep); color: var(--muted); }
|
|
/* 第二行:服务名 + 就诊人同行;服务名过长时截断,就诊人完整保留 */
|
|
.pending-meta { display: flex; align-items: baseline; gap: 12rpx; min-width: 0; }
|
|
.pending-service {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
color: var(--ink);
|
|
font-size: var(--fs-28);
|
|
font-weight: 600;
|
|
line-height: 1.5;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.pending-patient { flex-shrink: 0; color: var(--muted); font-size: var(--fs-24); line-height: 1.5; white-space: nowrap; }
|
|
.section { margin-top: 32rpx; }
|
|
.section-head {
|
|
margin-bottom: 16rpx;
|
|
padding: 0 4rpx;
|
|
}
|
|
.section-title { display: block; color: var(--ink); font-size: var(--fs-34); font-weight: 600; line-height: 1.5; }
|
|
.assist-grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
padding: 12rpx 8rpx;
|
|
border: 2rpx solid var(--line);
|
|
border-radius: 28rpx;
|
|
background: var(--white);
|
|
box-shadow: var(--shadow-card);
|
|
}
|
|
.assist-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
box-sizing: border-box;
|
|
width: 25%;
|
|
min-width: 0;
|
|
padding: 20rpx 2rpx;
|
|
border-radius: 16rpx;
|
|
}
|
|
.assist-icon { flex-shrink: 0; width: 56rpx; height: 56rpx; margin-bottom: 14rpx; }
|
|
.assist-name { color: var(--ink-2); font-size: var(--fs-28); line-height: 1.6; text-align: center; word-break: break-all; }
|
|
.quick-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 16rpx;
|
|
}
|
|
.quick-item {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: calc((100% - 16rpx) / 2);
|
|
min-width: 0;
|
|
padding: 24rpx;
|
|
border: 2rpx solid var(--line);
|
|
border-radius: 24rpx;
|
|
background: var(--white);
|
|
box-sizing: border-box;
|
|
}
|
|
.quick-top { display: flex; align-items: center; gap: 12rpx; min-width: 0; padding-right: 24rpx; }
|
|
.quick-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48rpx; height: 48rpx; border-radius: 14rpx; background: var(--brand-soft); }
|
|
.quick-arrow { position: absolute; top: 34rpx; right: 16rpx; display: flex; align-items: center; justify-content: center; }
|
|
.quick-info { min-width: 0; margin-top: 12rpx; }
|
|
.quick-name { color: var(--ink); font-size: var(--fs-30); font-weight: 600; line-height: 1.5; word-break: break-all; }
|
|
.quick-desc { display: block; color: var(--muted); font-size: var(--fs-24); line-height: 1.6; word-break: break-all; }
|
|
.quick-item-full { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8rpx 20rpx; width: 100%; min-height: 96rpx; padding: 22rpx 48rpx 22rpx 24rpx; background: var(--brand-soft); border-color: var(--brand-line); }
|
|
.quick-item-full .quick-top { padding-right: 0; }
|
|
.quick-item-full .quick-icon { background: transparent; }
|
|
.quick-item-full .quick-arrow { right: 16rpx; top: 50%; transform: translateY(-50%); }
|
|
.quick-item-full .quick-info { margin-top: 0; }
|
|
/* 低频职业培训入口下沉,与就医预约保持业务分区。 */
|
|
.training-entry {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16rpx;
|
|
margin-top: 28rpx;
|
|
min-height: 88rpx;
|
|
padding: 20rpx 4rpx;
|
|
border-top: 2rpx solid var(--line);
|
|
}
|
|
.training-mark { position: relative; flex-shrink: 0; width: 48rpx; height: 60rpx; border: 2rpx solid var(--sep); border-radius: 6rpx; background: var(--white); }
|
|
.training-mark::before, .training-mark::after { content: ''; position: absolute; left: 10rpx; right: 10rpx; height: 2rpx; background: var(--sep); }
|
|
.training-mark::before { top: 14rpx; }
|
|
.training-mark::after { top: 24rpx; }
|
|
.training-mark-line { position: absolute; left: 17rpx; bottom: 8rpx; width: 12rpx; height: 12rpx; border: 2rpx solid var(--brand-ink); border-radius: 50%; }
|
|
/* 单行入口:标题吸收余量,把 chevron 推到右边缘 */
|
|
.training-title { flex: 1; min-width: 0; margin: 0; color: var(--ink); font-size: var(--fs-28); font-weight: 600; line-height: 1.5; }
|
|
.surface-hover { background: var(--brand-soft); }
|
|
.page-footer { padding: 12rpx 0 0; text-align: center; }
|
|
.footer-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 4rpx; }
|
|
.footer-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 88rpx;
|
|
padding: 0 12rpx;
|
|
color: var(--muted);
|
|
font-size: var(--fs-24);
|
|
}
|
|
.footer-link:active { color: var(--brand-ink); }
|
|
.footer-sep { width: 2rpx; height: 16rpx; margin: 0 8rpx; background: var(--sep); }
|
|
.footer-space { height: calc(100rpx + env(safe-area-inset-bottom)); }
|
|
|
|
/* 大字或窄屏下装饰先退让,不能通过缩小正文换取排版。 */
|
|
@media (max-width: 340px) {
|
|
.hero-title { width: 100%; }
|
|
.hero-art { display: none; }
|
|
.hero-trust { flex-wrap: wrap; justify-content: flex-start; gap: 12rpx 24rpx; }
|
|
.quick-list { gap: 12rpx; }
|
|
.quick-item { width: 100%; }
|
|
.quick-item-full .quick-info { margin-top: 0; }
|
|
} |