109109 backdrop-filter : blur (4px ); /* 轻微模糊,保持背景可见 */
110110 position : relative;
111111 z-index : 1 ; /* 确保在遮罩层之上 */
112+ box-sizing : border-box;
113+ overflow : visible;
114+ min-width : 0 ;
115+ display : flex;
116+ flex-direction : column;
117+ align-items : center;
118+ justify-content : center;
112119}
113120
114121/* 夜间模式下的内容区域 */
124131 font-size : 28px ;
125132 font-family : 'Nunito' , 'Quicksand' , sans-serif;
126133 font-weight : 400 ;
134+ word-wrap : break-word;
135+ overflow-wrap : break-word;
136+ overflow : hidden;
137+ width : 100% ;
138+ max-width : 100% ;
139+ box-sizing : border-box;
140+ text-align : center;
141+ align-self : center;
127142}
128143
129- .puzzle-info {
144+ .start-content . puzzle-info {
130145 background : var (--light-pink );
131146 padding : 20px ;
132147 border-radius : 12px ;
133- margin-bottom : 32px ;
148+ margin : 0 20 px 32px 20 px !important ;
134149 border : 2px solid var (--primary-pink );
135150 box-shadow : 0 4px 12px rgba (248 , 165 , 194 , 0.2 );
151+ width : auto !important ;
152+ max-width : 200px !important ;
153+ min-width : 180px ;
154+ box-sizing : border-box;
155+ overflow : hidden;
156+ word-wrap : break-word;
157+ text-align : center;
158+ align-self : center;
136159}
137160
138- .puzzle-info p {
161+ .start-content . puzzle-info p {
139162 margin : 8px 0 ;
140163 color : var (--text-secondary );
141164 font-size : 16px ;
142165 font-family : 'Nunito' , 'Quicksand' , sans-serif;
166+ word-wrap : break-word;
167+ overflow-wrap : break-word;
168+ white-space : normal;
169+ overflow : hidden;
143170}
144171
145172.start-actions {
146173 display : flex;
147174 gap : 12px ;
148175 justify-content : center;
176+ width : 100% ;
177+ max-width : 100% ;
178+ box-sizing : border-box;
179+ flex-wrap : wrap;
180+ align-self : center;
149181}
150182
151183/* 主要按钮 */
580612
581613/* 响应式设计 */
582614@media (max-width : 768px ) {
615+ .start-content {
616+ max-width : 350px ;
617+ padding : 30px 20px ;
618+ }
619+
620+ .start-content h2 {
621+ font-size : 24px ;
622+ margin-bottom : 20px ;
623+ }
624+
625+ .start-content .puzzle-info {
626+ padding : 16px ;
627+ margin : 0 16px 24px 16px !important ;
628+ max-width : 180px !important ;
629+ min-width : 150px ;
630+ width : auto !important ;
631+ }
632+
633+ .start-content .puzzle-info p {
634+ font-size : 14px ;
635+ margin : 6px 0 ;
636+ }
637+
638+ .start-actions {
639+ gap : 10px ;
640+ }
641+
583642 .game-header {
584643 flex-direction : column;
585644 gap : 16px ;
611670 .preview-footer {
612671 padding : 15px ;
613672 }
673+ }
614674
675+ /* 小屏幕优化 */
676+ @media (max-width : 480px ) {
677+ .puzzle-game-start {
678+ padding : 20px ;
679+ }
680+
681+ .start-content {
682+ max-width : 300px ;
683+ padding : 20px 16px ;
684+ }
685+
686+ .start-content h2 {
687+ font-size : 20px ;
688+ margin-bottom : 16px ;
689+ }
690+
691+ .start-content .puzzle-info {
692+ padding : 12px ;
693+ margin : 0 12px 20px 12px !important ;
694+ max-width : 160px !important ;
695+ min-width : 140px ;
696+ width : auto !important ;
697+ }
698+
699+ .start-content .puzzle-info p {
700+ font-size : 13px ;
701+ margin : 4px 0 ;
702+ }
703+
704+ .start-actions {
705+ gap : 8px ;
706+ flex-direction : column;
707+ align-items : center;
708+ }
709+
710+ .start-actions button {
711+ width : 100% ;
712+ max-width : 200px ;
713+ }
615714}
0 commit comments