zjk
2026-07-29 429208957f30ab9eedc5533a81aaa284048d09f5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
@import '../../../../style/ui-variables.less';
 
// 香型下发 loading 旋转动画
@keyframes fragrance-spin {
  from {
    transform: rotate(0deg);
  }
 
  to {
    transform: rotate(360deg);
  }
}
 
/* 香氛入口卡片 tf-card 样式(自包含,迁移自 temperature-fragrance-control.less) */
.fragrance-control {
  .tf-card {
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
    width: 312px;
    height: 240px;
    padding: 24px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
  }
 
  .tf-card-bottom {
    display: flex;
    flex-direction: column;
  }
 
  .tf-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
 
  .tf-card-header-left {
    display: flex;
    align-items: center;
  }
 
  .tf-card-header-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin-right: 8px;
  }
 
  .tf-card-header-title {
    font-size: 24px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: normal;
    color: @black-text-main;
  }
 
  /* 香氛名称,大小类似温度显示 */
  .tf-card-fragrance-name {
    font-size: 40px;
    font-weight: 500;
    line-height: 64px;
    color: @black-text-main;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: left;
  }
 
  .tf-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
 
  .tf-card-footer-text {
    font-size: 20px;
    line-height: normal;
    letter-spacing: normal;
    color: rgba(20, 30, 39, 0.5);
  }
 
  .tf-card-footer-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
  }
 
  /* 香氛入口卡片:背景随开关状态切换 */
  .tf-card-fragrance {
    &.is-open {
      background-image: url('https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/v2/fragrance-open-20260703.png');
    }
 
    &.is-close {
      background-image: url('https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/v2/fragrance-close-20260703.png');
 
      // 关闭态卡片文字统一弱化
      .tf-card-fragrance-name,
      .tf-card-footer-text {
        color: rgba(20, 30, 39, 0.3);
      }
    }
  }
 
  // 底部弹窗面板
  .fragrance-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
 
    &.show {
      pointer-events: auto;
    }
 
    .popup-mask {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.4);
      z-index: 102;
    }
 
    .popup-content {
      position: relative;
      z-index: 103;
      background: #FFFFFF;
      border-radius: 60px 60px 0 0;
      width: 100%;
      // 设计稿左右边距 24px
      padding: 0 0 calc(48px + env(safe-area-inset-bottom));
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      transform: translateY(100%);
    }
 
    .popup-header {
      height: 112px;
      padding-top: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      flex-shrink: 0;
 
      .popup-title {
        font-size: 32px;
        font-weight: 500;
        line-height: 32px;
        color: rgba(0, 0, 0, 0.9);
      }
 
      .popup-close {
        position: absolute;
        right: 32px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
      }
    }
 
    // 香型选择区
    .popup-scent-area {
      margin-top: 48px;
      padding: 0 56px;
    }
 
    .popup-scent-list {
      display: flex;
      align-items: stretch;
      justify-content: space-between;
 
      // 香型卡片:竖排香型名 + 香调描述,背景使用设计切图(选中/未选)
      .popup-scent-item {
        position: relative;
        flex-shrink: 0;
        // 设计稿卡片尺寸 90px × 208px
        width: 180px;
        height: 416px;
        padding: 24px 0 20px;
        box-sizing: border-box;
        border-radius: 64px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100% 100%;
        // 未选中背景图
        background-image: url('https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/v2/fragrance_item_unselect@2x.png');
 
        // 下发中禁止重复点击
        &.disabled {
          opacity: 0.6;
        }
 
        // 下发中 loading 图标(叠加于卡片上部,水平居中,旋转)
        .popup-scent-loading {
          position: absolute;
          top: 40px;
          left: 50%;
          width: 64px;
          height: 64px;
          margin: 0 0 0 -32px;
          z-index: 1;
          animation: fragrance-spin 1s linear infinite;
        }
 
        .popup-scent-name {
          // 香型名竖排
          writing-mode: vertical-rl;
          letter-spacing: 16px;
          font-size: 32px;
          line-height: 48px;
          font-weight: 500;
          color: rgba(20, 30, 39, 0.3);
        }
 
        // 选中背景图 + 白色文字
        &.active {
          background-image: url('https://s.xiaopeng.com/xp-fe/robot-taxi/imgs/v2/fragrance_item_select@2x.png');
 
          .popup-scent-name {
            color: #FFFFFF;
          }
        }
      }
    }
 
    .popup-scent-empty {
      padding: 96px 0;
      text-align: center;
      font-size: 28px;
      line-height: 40px;
      color: rgba(0, 0, 0, 0.4);
    }
  }
}