fix: align MainMenu colors with gold design system, add backdrop blur and focus-visible

This commit is contained in:
2026-06-12 15:43:02 +08:00
parent 8e8a0b5d99
commit ee0861ff6d

View File

@@ -44,6 +44,8 @@ const { t } = useI18n()
position: fixed; position: fixed;
inset: 0; inset: 0;
background: rgba(0, 0, 0, 0.45); background: rgba(0, 0, 0, 0.45);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -80,28 +82,36 @@ const { t } = useI18n()
background: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.12);
} }
.menu-btn:focus-visible,
.menu-sub:focus-visible {
outline: 2px solid #c9a84c;
outline-offset: 2px;
border-radius: 2px;
}
.menu-btn.primary { .menu-btn.primary {
background: rgba(255, 255, 255, 0.1); background: rgba(201, 168, 76, 0.15);
border-color: rgba(201, 168, 76, 0.3);
padding: 20px 72px; padding: 20px 72px;
font-size: 24px; font-size: 24px;
letter-spacing: 6px; letter-spacing: 6px;
} }
.menu-btn.primary:hover { .menu-btn.primary:hover {
background: rgba(255, 255, 255, 0.2); background: rgba(201, 168, 76, 0.25);
} }
.menu-btn.secondary { .menu-btn.secondary {
background: rgba(100, 200, 255, 0.06); background: rgba(201, 168, 76, 0.06);
border-color: rgba(100, 200, 255, 0.2); border-color: rgba(201, 168, 76, 0.15);
color: #7cb8e4; color: #c9a84c;
font-size: 14px; font-size: 14px;
padding: 12px 40px; padding: 12px 40px;
letter-spacing: 2px; letter-spacing: 2px;
} }
.menu-btn.secondary:hover { .menu-btn.secondary:hover {
background: rgba(100, 200, 255, 0.12); background: rgba(201, 168, 76, 0.12);
} }
.menu-sub-row { .menu-sub-row {
@@ -114,8 +124,8 @@ const { t } = useI18n()
.menu-sub { .menu-sub {
background: none; background: none;
border: none; border: none;
color: #777; color: #999;
font-size: 13px; font-size: 14px;
cursor: pointer; cursor: pointer;
padding: 4px 8px; padding: 4px 8px;
transition: color 0.15s; transition: color 0.15s;