- 重写 tokens.scss:校准 10 级字号 + 4 结构 token 匹配实际设计值 - 更新 mixins.scss:4 个 mixin 引用 token 替代硬编码 - 68 SCSS 文件全面迁移:font-size px → var(--tk-font-*),辅助文字色 → var(--tk-text-secondary) - 清理 12 个页面的本地 mixin 重复定义 - elder-mode.scss 从 530 行缩减至 ~120 行:删除所有字号/颜色覆写,仅保留结构布局 - Token 覆盖率:634 引用 / 仅 3 个特殊硬编码值(72px/80px/21px) 关怀模式通过 CSS 变量级联自动生效,消除"打地鼠"问题。
226 lines
3.6 KiB
SCSS
226 lines
3.6 KiB
SCSS
@import '../../../styles/variables.scss';
|
|
@import '../../../styles/mixins.scss';
|
|
|
|
.detail-page {
|
|
min-height: 100vh;
|
|
background: $bg;
|
|
padding-bottom: 160px;
|
|
}
|
|
|
|
/* 顶部导航 */
|
|
.detail-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 32px;
|
|
padding-top: 48px;
|
|
background: $card;
|
|
box-shadow: $shadow-sm;
|
|
}
|
|
|
|
.back-btn {
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.back-text {
|
|
font-size: var(--tk-font-body-lg);
|
|
color: $pri;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.header-title {
|
|
font-family: 'Georgia', 'Times New Roman', serif;
|
|
font-size: var(--tk-font-num-lg);
|
|
font-weight: bold;
|
|
color: $tx;
|
|
}
|
|
|
|
.header-placeholder {
|
|
width: 60px;
|
|
}
|
|
|
|
/* 状态卡片 */
|
|
.status-card {
|
|
background: $card;
|
|
border-radius: $r-lg;
|
|
padding: 40px 32px;
|
|
margin: 20px 24px 24px;
|
|
box-shadow: $shadow-md;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.status-tag {
|
|
@include tag($bd-l, $tx3);
|
|
margin-bottom: 8px;
|
|
padding: 8px 32px;
|
|
border-radius: $r-pill;
|
|
|
|
&.tag-pending {
|
|
background: $wrn-l;
|
|
.status-tag-text { color: $wrn; }
|
|
}
|
|
|
|
&.tag-confirmed {
|
|
background: $acc-l;
|
|
.status-tag-text { color: $acc; }
|
|
}
|
|
|
|
&.tag-cancelled {
|
|
background: $bd-l;
|
|
.status-tag-text { color: $tx3; }
|
|
}
|
|
|
|
&.tag-completed {
|
|
background: $pri-l;
|
|
.status-tag-text { color: $pri; }
|
|
}
|
|
}
|
|
|
|
.status-tag-text {
|
|
font-size: var(--tk-font-body-lg);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.status-doctor {
|
|
font-family: 'Georgia', 'Times New Roman', serif;
|
|
font-size: var(--tk-font-num-lg);
|
|
font-weight: bold;
|
|
color: $tx;
|
|
}
|
|
|
|
.status-dept {
|
|
font-size: var(--tk-font-h1);
|
|
color: $tx2;
|
|
}
|
|
|
|
/* 详情信息 */
|
|
.info-section {
|
|
margin: 0 24px 24px;
|
|
background: $card;
|
|
border-radius: $r;
|
|
padding: 28px;
|
|
box-shadow: $shadow-sm;
|
|
}
|
|
|
|
.section-title {
|
|
@include section-title;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.info-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 18px 0;
|
|
border-bottom: 1px solid $bd-l;
|
|
}
|
|
|
|
.info-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.info-label-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.info-icon-serif {
|
|
font-family: 'Georgia', 'Times New Roman', serif;
|
|
font-size: var(--tk-font-body);
|
|
color: $pri;
|
|
background: $pri-l;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: $r-sm;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.info-label {
|
|
font-size: var(--tk-font-h1);
|
|
color: $tx2;
|
|
}
|
|
|
|
.info-value {
|
|
font-size: var(--tk-font-h1);
|
|
color: $tx;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.info-date {
|
|
@include serif-number;
|
|
}
|
|
|
|
.info-time {
|
|
@include serif-number;
|
|
}
|
|
|
|
.info-id {
|
|
@include serif-number;
|
|
font-size: var(--tk-font-body);
|
|
color: var(--tk-text-secondary);
|
|
word-break: break-all;
|
|
max-width: 400px;
|
|
text-align: right;
|
|
}
|
|
|
|
/* 温馨提示 */
|
|
.tips-card {
|
|
margin: 0 24px 24px;
|
|
background: $wrn-l;
|
|
border-radius: $r;
|
|
padding: 24px 28px;
|
|
}
|
|
|
|
.tips-title {
|
|
font-family: 'Georgia', 'Times New Roman', serif;
|
|
font-size: var(--tk-font-body-lg);
|
|
font-weight: bold;
|
|
color: $wrn;
|
|
margin-bottom: 12px;
|
|
display: block;
|
|
}
|
|
|
|
.tips-text {
|
|
font-size: var(--tk-font-h2);
|
|
color: $tx2;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* 底部操作 */
|
|
.bottom-bar {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 20px 24px;
|
|
padding-bottom: constant(safe-area-inset-bottom);
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
background: $card;
|
|
box-shadow: $shadow-md;
|
|
}
|
|
|
|
.cancel-btn {
|
|
background: $dan-l;
|
|
border-radius: $r-sm;
|
|
padding: 24px 0;
|
|
text-align: center;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.cancel-disabled {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.cancel-text {
|
|
font-size: var(--tk-font-num);
|
|
font-weight: bold;
|
|
color: $dan;
|
|
}
|