77 <img :src =" titleImg" alt =" Chess Dragon" class =" title-img" />
88 </div >
99 <div class =" home-buttons" >
10- <button class =" btn btn-home" @click =" startSetup('ai')" >人机对战 </button >
11- <button class =" btn btn-home" @click =" startSetup('human')" >双人对战 </button >
12- <button class =" btn btn-home btn-home--secondary" @click =" handleRemote" >远程对战 </button >
10+ <button class =" btn btn-home" @click =" startSetup('ai')" >人机对局 </button >
11+ <button class =" btn btn-home" @click =" startSetup('human')" >双人对局 </button >
12+ <button class =" btn btn-home btn-home--secondary" @click =" handleRemote" >远程对局 </button >
1313 </div >
1414 </section >
1515
5252 </label >
5353 </div >
5454
55- <!-- 强度设置(仅人机对战 ) -->
55+ <!-- 强度设置(仅人机对局 ) -->
5656 <div v-if =" gameMode === 'ai'" class =" setup-section" >
5757 <h3 >强度</h3 >
5858 <div class =" option-group" >
6464 </div >
6565 </div >
6666
67- <!-- AI 风格设置(仅人机对战 ) -->
67+ <!-- AI 风格设置(仅人机对局 ) -->
6868 <div v-if =" gameMode === 'ai'" class =" setup-section" >
6969 <h3 >AI 风格</h3 >
7070 <div class =" option-group" >
@@ -303,7 +303,7 @@ const handleStart = () => {
303303 justify-content : center ;
304304 align-items : center ;
305305 padding : 20px ;
306- background-color : #f0f0f0 ;
306+ background-color : var ( --color-page-bg ) ;
307307}
308308
309309.home-panel {
@@ -341,35 +341,35 @@ const handleStart = () => {
341341 padding : 14px 0 ;
342342 font-size : 1.15rem ;
343343 font-weight : 600 ;
344- border : 2px solid #212529 ;
345- background : #fff ;
346- color : #212529 ;
344+ border : 2px solid var ( --color-surface-border ) ;
345+ background : var ( --color-surface ) ;
346+ color : var ( --color-text-primary ) ;
347347 cursor : pointer ;
348348 transition : background-color 0.15s , color 0.15s ;
349349}
350350
351351.btn-home :hover {
352- background : #212529 ;
353- color : #fff ;
352+ background : var ( --color-surface-border ) ;
353+ color : var ( --color-text-on-primary ) ;
354354}
355355
356356.btn-home--secondary {
357- border-color : #888 ;
358- color : #666 ;
357+ border-color : var ( --color-border-secondary ) ;
358+ color : var ( --color-text-muted ) ;
359359}
360360
361361.btn-home--secondary :hover {
362- background : #888 ;
363- color : #fff ;
362+ background : var ( --color-border-secondary ) ;
363+ color : var ( --color-text-on-primary ) ;
364364}
365365
366366.setup-panel {
367367 width : min (560px , 100% );
368368 max-height : 90vh ;
369369 overflow : auto ;
370370 padding : 20px ;
371- background : #fff ;
372- box-shadow : 2px 2px 0 #909294 ;
371+ background : var ( --color-surface ) ;
372+ box-shadow : 2px 2px 0 var ( --color-surface-shadow ) ;
373373}
374374
375375.title {
@@ -399,7 +399,7 @@ const handleStart = () => {
399399 align-items : center ;
400400 gap : 6px ;
401401 padding : 8px 10px ;
402- border : 1px solid #d0d0d0 ;
402+ border : 1px solid var ( --color-border-light ) ;
403403 cursor : pointer ;
404404}
405405
@@ -413,22 +413,22 @@ const handleStart = () => {
413413}
414414
415415.difficulty-card.active {
416- border-color : #212529 ;
417- background : #212529 ;
418- color : #fff ;
416+ border-color : var ( --color-surface-border ) ;
417+ background : var ( --color-surface-border ) ;
418+ color : var ( --color-text-on-primary ) ;
419419}
420420
421421.fen-input {
422422 width : 100% ;
423423 box-sizing : border-box ;
424424 margin-top : 8px ;
425425 padding : 8px ;
426- border : 1px solid #d0d0d0 ;
426+ border : 1px solid var ( --color-border-light ) ;
427427}
428428
429429.fen-hint {
430430 margin : 4px 0 0 ;
431- color : #c33 ;
431+ color : var ( --color-error ) ;
432432 font-size : 0.85rem ;
433433}
434434
@@ -442,7 +442,7 @@ const handleStart = () => {
442442
443443.error-message {
444444 margin : 0 0 12px ;
445- color : #c33 ;
445+ color : var ( --color-error ) ;
446446 font-size : 0.95rem ;
447447}
448448
0 commit comments