@@ -171,48 +171,39 @@ body {
171171}
172172
173173.scenario-list {
174- display : flex;
175- gap : 20px ;
176- overflow-x : auto;
177- overflow-y : hidden;
178- scroll-snap-type : x mandatory;
179- scroll-behavior : smooth;
180- -webkit-overflow-scrolling : touch;
174+ display : grid;
175+ grid-template-columns : repeat (auto-fit, minmax (340px , 1fr ));
176+ gap : 24px ;
181177 padding : 20px 0 ;
182178 margin : 0 ;
183- cursor : grab;
184- /* Safari 優化 */
185- -webkit-transform : translateZ (0 );
186- -webkit-backface-visibility : hidden;
187179}
188180
189181@media (max-width : 768px ) {
190182 .scenario-list {
183+ display : flex;
191184 gap : 15px ;
185+ overflow-x : auto;
186+ overflow-y : hidden;
187+ scroll-snap-type : x mandatory;
188+ scroll-behavior : smooth;
189+ -webkit-overflow-scrolling : touch;
192190 padding : 20px 0 ;
191+ cursor : grab;
192+ /* Safari 優化 */
193+ -webkit-transform : translateZ (0 );
194+ -webkit-backface-visibility : hidden;
195+ grid-template-columns : none;
193196 }
194197}
195198
196- .scenario-list ::-webkit-scrollbar {
197- height : 0 ;
198- }
199-
200- @media (min-width : 769px ) {
201- .scenario-list {
202- padding : 20px calc (max ((100vw - 1200px ) / 2 , 20px ));
203- margin : -20px calc (min ((100vw - 1200px ) / -2 , -20px ));
199+ @media (max-width : 768px ) {
200+ .scenario-list ::-webkit-scrollbar {
201+ height : 0 ;
204202 }
205203}
206204
207- /* 確保第一個和最後一個項目有足夠的空間 */
208- .scenario-item : first-child {
209- margin-left : 20px ;
210- }
211-
212- .scenario-item : last-child {
213- margin-right : 20px ;
214- }
215205
206+ /* 只在手機版添加邊距 */
216207@media (max-width : 768px ) {
217208 .scenario-item : first-child {
218209 margin-left : 20px ;
@@ -223,38 +214,25 @@ body {
223214 }
224215}
225216
226- @media (min-width : 769px ) {
227- .scenario-item : first-child {
228- margin-left : 0 ;
229- }
230-
231- .scenario-item : last-child {
232- margin-right : 0 ;
233- }
234- }
235-
236217.scenario-item {
237- background : rgba ( 255 , 255 , 255 , 0.72 ) ;
218+ background : # ffffff ;
238219 color : # 1d1d1f ;
239220 padding : 40px ;
240- border : 1px solid rgba ( 255 , 255 , 255 , 0.18 ) ;
221+ border : 1px solid # e5e5e7 ;
241222 border-radius : 18px ;
242223 transition : all 0.3s cubic-bezier (0.4 , 0 , 0.2 , 1 );
243224 position : relative;
244225 overflow : hidden;
245226 box-shadow : 0 4px 20px rgba (0 , 0 , 0 , 0.08 );
246- flex : 0 0 340px ;
247- scroll-snap-align : start;
248227 min-height : 420px ;
249228 display : flex;
250229 flex-direction : column;
251- backdrop-filter : blur (40px ) saturate (1.8 );
252- -webkit-backdrop-filter : blur (40px ) saturate (1.8 );
253230}
254231
255232@media (max-width : 768px ) {
256233 .scenario-item {
257234 flex : 0 0 calc (100vw - 80px );
235+ scroll-snap-align : start;
258236 padding : 20px ;
259237 min-height : 400px ;
260238 max-width : none;
@@ -277,7 +255,7 @@ body {
277255.scenario-item : hover {
278256 transform : translateY (-10px ) scale (1.02 );
279257 box-shadow : 0 20px 60px rgba (0 , 0 , 0 , 0.15 );
280- background : rgba ( 255 , 255 , 255 , 0.9 ) ;
258+ background : # ffffff ;
281259}
282260
283261.scenario-item : hover ::before {
@@ -512,13 +490,19 @@ body {
512490 font-size : 0.9rem ;
513491}
514492
515- /* 滾動指示器 */
493+ /* 滾動指示器 - 只在手機版顯示 */
516494.scroll-indicator {
517- display : flex;
518- justify-content : center;
519- gap : 8px ;
520- margin-top : 32px ;
521- padding : 20px ;
495+ display : none;
496+ }
497+
498+ @media (max-width : 768px ) {
499+ .scroll-indicator {
500+ display : flex;
501+ justify-content : center;
502+ gap : 8px ;
503+ margin-top : 32px ;
504+ padding : 20px ;
505+ }
522506}
523507
524508.scroll-dot {
@@ -536,59 +520,7 @@ body {
536520 box-shadow : 0 2px 8px rgba (0 , 0 , 0 , 0.2 );
537521}
538522
539- /* 添加滑動提示漸變 */
540- .scenario-wrapper ::after {
541- content : '' ;
542- position : absolute;
543- top : 20px ;
544- right : 0 ;
545- bottom : 20px ;
546- width : 80px ;
547- background : linear-gradient (to left,
548- rgba (251 , 251 , 253 , 0.95 ) 0% ,
549- rgba (251 , 251 , 253 , 0.8 ) 20% ,
550- rgba (251 , 251 , 253 , 0.4 ) 60% ,
551- rgba (251 , 251 , 253 , 0 ) 100%
552- );
553- pointer-events : none;
554- z-index : 1 ;
555- opacity : 1 ;
556- transition : opacity 0.3s cubic-bezier (0.4 , 0 , 0.2 , 1 );
557- }
558-
559- .scenario-wrapper ::before {
560- content : '' ;
561- position : absolute;
562- top : 20px ;
563- left : 0 ;
564- bottom : 20px ;
565- width : 80px ;
566- background : linear-gradient (to right,
567- rgba (251 , 251 , 253 , 0.95 ) 0% ,
568- rgba (251 , 251 , 253 , 0.8 ) 20% ,
569- rgba (251 , 251 , 253 , 0.4 ) 60% ,
570- rgba (251 , 251 , 253 , 0 ) 100%
571- );
572- pointer-events : none;
573- z-index : 1 ;
574- opacity : 0 ;
575- transition : opacity 0.3s cubic-bezier (0.4 , 0 , 0.2 , 1 );
576- }
577-
578- @media (min-width : 769px ) {
579- .scenario-wrapper ::after ,
580- .scenario-wrapper ::before {
581- width : 100px ;
582- }
583- }
584-
585- .scenario-wrapper .scrolled ::before {
586- opacity : 1 ;
587- }
588-
589- .scenario-wrapper .scrolled-end ::after {
590- opacity : 0 ;
591- }
523+ /* 移除滑動提示漸變效果 */
592524
593525/* 場景卡片內容細節樣式 */
594526.scenario-details {
0 commit comments