UI: 商店弹窗改为蓝白风格,与现有设置弹窗保持一致

This commit is contained in:
2026-02-27 16:09:10 +08:00
parent 8ac540c65b
commit 1e2c304754
+91 -95
View File
@@ -317,92 +317,93 @@
{{-- ═══════════ 商店弹窗 ═══════════ --}} {{-- ═══════════ 商店弹窗 ═══════════ --}}
<style> <style>
/* 商店弹窗整体 */ /* 商店弹窗遮罩 */
#shop-modal { #shop-modal {
display: none; display: none;
position: fixed; position: fixed;
inset: 0; inset: 0;
background: rgba(0, 0, 0, .75); background: rgba(0, 0, 0, .5);
z-index: 9999; z-index: 9999;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
/* 弹窗主体 */ /* 弹窗主体 — 与设置弹窗同风格 */
#shop-modal-inner { #shop-modal-inner {
background: linear-gradient(160deg, #0f0c29 0%, #1a1060 50%, #10092b 100%); background: #fff;
border: 1px solid #4f46e5; border-radius: 8px;
border-radius: 14px;
width: 520px; width: 520px;
max-width: 95vw; max-width: 95vw;
max-height: 80vh; max-height: 84vh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
box-shadow: 0 16px 60px rgba(99, 102, 241, .45), 0 0 0 1px rgba(99, 102, 241, .2); box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
overflow: hidden; overflow: hidden;
position: relative;
} }
/* 标题栏 */ /* 标题栏 — 与设置/头像弹窗一致 */
#shop-modal-header { #shop-modal-header {
padding: 12px 16px; background: linear-gradient(135deg, #336699, #5a8fc0);
background: linear-gradient(135deg, #1e1b4b, #312e81); color: #fff;
border-bottom: 1px solid #4338ca; padding: 10px 16px;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 8px; gap: 10px;
flex-shrink: 0; flex-shrink: 0;
} }
#shop-modal-title { #shop-modal-title {
font-size: 14px; font-size: 14px;
font-weight: 800; font-weight: bold;
color: #e0e7ff;
flex: 1; flex: 1;
letter-spacing: .5px;
} }
#shop-modal-jjb { #shop-modal-jjb {
font-size: 12px; font-size: 12px;
color: #a5b4fc; color: #d0e8ff;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 4px; gap: 3px;
background: rgba(0, 0, 0, .2);
padding: 2px 8px;
border-radius: 10px;
} }
#shop-modal-jjb strong { #shop-modal-jjb strong {
color: #fbbf24; color: #ffe082;
font-size: 13px; font-size: 13px;
} }
#shop-week-badge { #shop-week-badge {
font-size: 10px;
background: #4338ca;
padding: 2px 8px;
border-radius: 10px;
color: #c7d2fe;
display: none; display: none;
font-size: 10px;
background: rgba(255, 255, 255, .2);
padding: 2px 7px;
border-radius: 10px;
color: #fff;
} }
#shop-modal-close { #shop-modal-close {
cursor: pointer; cursor: pointer;
font-size: 20px; font-size: 18px;
color: #6366f1; opacity: .8;
transition: opacity .15s;
line-height: 1; line-height: 1;
transition: color .15s;
} }
#shop-modal-close:hover { #shop-modal-close:hover {
color: #fff; opacity: 1;
} }
/* Toast */ /* Toast */
#shop-toast { #shop-toast {
display: none; display: none;
margin: 6px 14px 0; margin: 6px 12px 0;
padding: 6px 12px; padding: 5px 10px;
border-radius: 6px; border-radius: 4px;
font-size: 12px; font-size: 12px;
font-weight: 700; font-weight: bold;
flex-shrink: 0; flex-shrink: 0;
} }
@@ -410,52 +411,49 @@
#shop-items-list { #shop-items-list {
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
padding: 12px 14px; padding: 10px 12px;
display: grid; display: grid;
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
gap: 10px; gap: 8px;
align-content: start; align-content: start;
scrollbar-width: thin; background: #f6faff;
scrollbar-color: #4338ca #0f0c29;
} }
/* 分组独占一整行 */ /* 分组标题 — 独占一整行 */
.shop-group-header { .shop-group-header {
grid-column: 1 / -1; grid-column: 1 / -1;
font-size: 11px; font-size: 11px;
font-weight: 800; font-weight: bold;
color: #818cf8; color: #336699;
letter-spacing: .8px; padding: 6px 4px 4px;
padding: 6px 0 4px; border-bottom: 1px solid #cde;
border-bottom: 1px solid #312e81;
display: flex; display: flex;
align-items: center; align-items: baseline;
gap: 6px; gap: 6px;
} }
.shop-group-header span { .shop-group-header span {
font-size: 9px; font-size: 10px;
color: #6b7280; color: #888;
font-weight: 400; font-weight: normal;
} }
/* 商品卡 */ /* 商品卡 */
.shop-card { .shop-card {
background: linear-gradient(135deg, #1e1b4b 60%, #2a2570); background: #fff;
border: 1px solid #3730a3; border: 1px solid #d0e4f5;
border-radius: 10px; border-radius: 6px;
padding: 10px; padding: 10px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 6px; gap: 5px;
transition: border-color .2s, box-shadow .2s, transform .15s; transition: border-color .2s, box-shadow .2s;
cursor: default; cursor: default;
} }
.shop-card:hover { .shop-card:hover {
border-color: #6366f1; border-color: #5a8fc0;
box-shadow: 0 0 12px rgba(99, 102, 241, .4); box-shadow: 0 2px 8px rgba(51, 102, 153, .18);
transform: translateY(-1px);
} }
.shop-card-top { .shop-card-top {
@@ -465,21 +463,21 @@
} }
.shop-card-icon { .shop-card-icon {
font-size: 22px; font-size: 20px;
flex-shrink: 0; flex-shrink: 0;
} }
.shop-card-name { .shop-card-name {
font-size: 12px; font-size: 12px;
font-weight: 700; font-weight: bold;
color: #e0e7ff; color: #225588;
flex: 1; flex: 1;
line-height: 1.3; line-height: 1.3;
} }
.shop-card-desc { .shop-card-desc {
font-size: 10px; font-size: 10px;
color: #6b7280; color: #888;
line-height: 1.4; line-height: 1.4;
flex: 1; flex: 1;
} }
@@ -489,105 +487,103 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
gap: 3px; gap: 3px;
background: linear-gradient(135deg, #4f46e5, #7c3aed); background: linear-gradient(135deg, #336699, #5a8fc0);
color: #fff; color: #fff;
border: none; border: none;
border-radius: 6px; border-radius: 4px;
padding: 5px 8px; padding: 5px 8px;
cursor: pointer; cursor: pointer;
font-size: 11px; font-size: 11px;
font-weight: 800; font-weight: bold;
transition: opacity .15s, transform .1s;
width: 100%; width: 100%;
margin-top: auto; margin-top: auto;
transition: opacity .15s;
} }
.shop-btn:hover { .shop-btn:hover {
opacity: .85; opacity: .85;
transform: scale(1.02);
} }
.shop-btn-use { .shop-btn-use {
background: linear-gradient(135deg, #7c3aed, #a855f7); background: linear-gradient(135deg, #7c3aed, #9f67e8);
} }
/* 改名内嵌模态 */ /* 改名内嵌遮罩 */
#shop-rename-overlay { #shop-rename-overlay {
display: none; display: none;
position: absolute; position: absolute;
inset: 0; inset: 0;
background: rgba(0, 0, 0, .8); background: rgba(0, 0, 0, .5);
z-index: 10001; z-index: 10001;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
border-radius: 14px; border-radius: 8px;
} }
#shop-rename-box { #shop-rename-box {
background: linear-gradient(160deg, #1e1b4b, #12103d); background: #fff;
border: 1px solid #6366f1; border: 1px solid #5a8fc0;
border-radius: 12px; border-radius: 8px;
padding: 18px 16px; padding: 16px 14px;
width: 240px; width: 230px;
box-shadow: 0 8px 40px rgba(99, 102, 241, .5); box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
} }
#shop-rename-box h4 { #shop-rename-box h4 {
font-size: 13px; font-size: 13px;
font-weight: 800; font-weight: bold;
color: #c7d2fe; color: #336699;
margin: 0 0 10px; margin: 0 0 10px;
} }
#rename-input { #rename-input {
width: 100%; width: 100%;
background: #312e81; border: 1px solid #aac;
border: 1px solid #4f46e5; border-radius: 4px;
border-radius: 6px; padding: 6px 8px;
padding: 7px 10px; color: #333;
color: #e0e7ff; font-size: 12px;
font-size: 13px;
box-sizing: border-box; box-sizing: border-box;
margin-bottom: 10px; margin-bottom: 8px;
outline: none; outline: none;
} }
#rename-input:focus { #rename-input:focus {
border-color: #818cf8; border-color: #336699;
} }
.rename-btn-row { .rename-btn-row {
display: flex; display: flex;
gap: 8px; gap: 6px;
} }
#rename-confirm { #rename-confirm {
flex: 1; flex: 1;
background: linear-gradient(135deg, #4f46e5, #7c3aed); background: #336699;
color: #fff; color: #fff;
border: none; border: none;
border-radius: 6px; border-radius: 4px;
padding: 7px; padding: 6px;
cursor: pointer; cursor: pointer;
font-size: 12px; font-size: 12px;
font-weight: 700; font-weight: bold;
} }
#rename-cancel { #rename-cancel {
flex: 1; flex: 1;
background: #374151; background: #eee;
color: #9ca3af; color: #555;
border: none; border: 1px solid #ccc;
border-radius: 6px; border-radius: 4px;
padding: 7px; padding: 6px;
cursor: pointer; cursor: pointer;
font-size: 12px; font-size: 12px;
} }
#rename-err { #rename-err {
color: #f87171; color: #c00;
font-size: 10px; font-size: 10px;
margin-top: 6px; margin-top: 5px;
min-height: 14px; min-height: 14px;
} }
</style> </style>