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

This commit is contained in:
2026-02-27 16:09:10 +08:00
parent 8ac540c65b
commit 1e2c304754

View File

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