Files

379 lines
16 KiB
CSS

/* 咸鱼喵喵 · 截图辅助工具 —— 控制面板样式 */
.world-map-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:16px; margin-top:12px; }
#world-map-viewport { height:560px; min-width:0; position:relative; overflow:hidden; border:1px solid var(--border); border-radius:10px; background:#121019; touch-action:none; cursor:grab; }
#world-map-viewport:active { cursor:grabbing; }
#world-map-viewport:focus-visible { outline:2px solid var(--accent); }
#world-map-svg { width:100%; height:100%; display:block; user-select:none; }
#world-map-empty { position:absolute; inset:0; pointer-events:none; padding:70px 20px; }
#world-map-empty[hidden] { display:none; }
.world-floor { fill:#635375; stroke:#706480; stroke-width:.4; }
.world-cell.unexplored .world-floor { fill:#302b3d; }
.world-wall { fill:none; stroke:#d3c7e2; stroke-width:2; }
.world-cell.unexplored .world-wall { stroke:#8e829f; stroke-dasharray:4 3; }
.world-cell-outline { fill:none; stroke:transparent; stroke-width:2; pointer-events:none; }
.world-cell:hover .world-floor { fill:#847098; }
.world-cell.selected .world-cell-outline { stroke:#ff8ab8; stroke-width:3; }
.world-cell.current .world-cell-outline { stroke:#5fd39a; stroke-width:3; }
.world-player { fill:#5fd39a; stroke:#12271d; stroke-width:2; pointer-events:none; }
.world-marker { cursor:pointer; }
.world-marker rect { fill:#21152c; stroke:#bd92cb; stroke-width:.7; }
.world-marker text { fill:#ffd46b; font-size:13px; text-anchor:middle; font-weight:bold; }
.world-marker.collected { filter:grayscale(1); opacity:.65; }
.world-marker .world-marker-state { fill:white; stroke:#15101e; stroke-width:2; paint-order:stroke; font-size:11px; }
.world-map-detail { min-width:0; max-height:560px; overflow:auto; padding:14px; border:1px solid var(--border); border-radius:10px; overflow-wrap:anywhere; }
.world-map-detail h3 { margin-top:0; }
.world-detail-item { padding:12px 0; border-top:1px solid var(--border); }
.world-detail-item.focused { border-left:3px solid var(--accent); padding-left:9px; }
.world-detail-item p { margin:6px 0; }
.world-detail-item .item-art, .world-detail-item .item-art img { width:36px; height:36px; flex-basis:36px; }
.world-map-controls select { max-width:100%; }
#panel-world-map { min-width:0; }
@media(max-width:760px) {
.world-map-layout { grid-template-columns:minmax(0,1fr); }
#world-map-viewport { height:440px; }
.world-map-detail { max-height:360px; }
.world-map-controls label { max-width:100%; }
}
:root {
--bg: #14121a;
--bg-card: #1e1b26;
--bg-input: #2a2634;
--bg-hover: #332e40;
--border: #35303f;
--text: #e9e6f0;
--text-dim: #9d97ac;
--accent: #ff8ab8;
--accent-dk: #d96a96;
--ok: #5fd39a;
--warn: #f0b849;
--danger: #f07070;
--radius: 10px;
}
* { box-sizing: border-box; }
body {
margin: 0;
background: var(--bg);
color: var(--text);
font: 14px/1.6 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
padding-bottom: 48px;
}
/* ---------- 顶栏 ---------- */
/* 顶部三件套(标题栏 + 状态条 + 快捷开关)整体吸顶 */
.topsticky {
position: sticky; top: 0; z-index: 50;
box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.topbar {
display: flex; align-items: center; justify-content: space-between;
flex-wrap: wrap; gap: 12px;
padding: 14px 22px;
background: linear-gradient(180deg, #241f2e, #1a1722);
border-bottom: 1px solid var(--border);
}
.brand-name { font-size: 17px; font-weight: 700; color: var(--accent); }
.brand-sub { display: block; font-size: 12px; color: var(--text-dim); font-weight: 400; }
.status-wrap { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.dot {
width: 9px; height: 9px; border-radius: 50%;
background: var(--text-dim); display: inline-block;
box-shadow: 0 0 0 0 rgba(95,211,154,.6);
}
.dot.on { background: var(--ok); animation: pulse 2.4s infinite; }
.dot.off { background: var(--danger); }
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(95,211,154,.5); }
70% { box-shadow: 0 0 0 8px rgba(95,211,154,0); }
100% { box-shadow: 0 0 0 0 rgba(95,211,154,0); }
}
/* ---------- 状态条 ---------- */
.statusbar {
display: flex; flex-wrap: wrap; gap: 10px;
padding: 12px 22px;
background: #191623;
border-bottom: 1px solid var(--border);
}
.stat {
display: flex; align-items: baseline; gap: 7px;
background: var(--bg-card); border: 1px solid var(--border);
border-radius: 8px; padding: 5px 12px;
}
.stat label { font-size: 12px; color: var(--text-dim); }
.stat b { font-size: 14px; font-variant-numeric: tabular-nums; }
/* 「当前连接」——整行独占,连到原版时整块变红 */
.stat.game-src { flex: 1 1 100%; }
.stat.game-src b {
font-family: Consolas, monospace; font-size: 12px;
word-break: break-all;
}
.stat.game-src.sandbox b { color: var(--ok); }
.stat.game-src.original {
background: #3a2222; border-color: var(--danger);
}
.stat.game-src.original b { color: #ff9b9b; font-weight: 700; }
.stat.game-src.other b { color: var(--warn); }
/* ---------- 常驻快捷开关条 ---------- */
.quickbar {
display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
padding: 9px 22px;
background: #1d1a27;
border-bottom: 1px solid var(--border);
}
.qb-label {
font-size: 12px; color: var(--text-dim);
margin-right: 2px; user-select: none;
}
.qb-sep {
width: 1px; height: 18px; background: var(--border);
margin: 0 8px;
}
/* 胶囊开关:高亮 = 这个开关是"开着/显示着"的 */
.chip {
padding: 5px 14px; font-size: 13px;
border-radius: 999px;
background: #262231; border: 1px solid var(--border);
color: var(--text-dim);
transition: background .12s, color .12s, border-color .12s;
}
.chip:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--accent); color: var(--text); }
.chip.on {
background: #4a2a3c; border-color: var(--accent);
color: #ffd7e8; font-weight: 700;
}
.chip.on::before {
content: '●'; font-size: 9px; margin-right: 5px;
color: var(--accent); vertical-align: 1px;
}
.chip.danger { border-color: #7a3a3a; color: #ffc9c9; }
.chip.danger:hover { background: #6a3232; border-color: var(--danger); }
/* ---------- 标签页 ---------- */
.tabs {
display: flex; gap: 4px; flex-wrap: wrap;
padding: 14px 22px 0;
}
.tab {
background: transparent; color: var(--text-dim);
border: 1px solid transparent; border-bottom: none;
border-radius: 8px 8px 0 0;
padding: 9px 18px; cursor: pointer; font-size: 14px;
font-family: inherit;
}
.tab:hover { background: var(--bg-hover); color: var(--text); }
.tab.active {
background: var(--bg-card); color: var(--accent);
border-color: var(--border); font-weight: 700;
}
/* ---------- 面板 ---------- */
main { padding: 0 22px; }
.panel { display: none; }
.panel.active { display: block; }
.card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 18px 20px;
margin: 16px 0;
}
.card h2 {
margin: 0 0 6px; font-size: 15px; color: var(--accent);
font-weight: 700;
}
.hint { margin: 0 0 14px; font-size: 13px; color: var(--text-dim); }
.hint b { color: var(--text); }
.note {
margin-top: 14px; padding: 10px 14px;
background: #232030; border-left: 3px solid var(--accent);
border-radius: 6px; font-size: 13px; color: var(--text-dim);
}
.note b { color: var(--text); }
/* 警告性质的提示条 */
.note.warn-note {
border-left-color: var(--warn);
background: #2b2620;
color: #e0d5c2;
}
.note.warn-note b { color: var(--warn); }
.warn-card { border-color: #5a4630; background: #241f1a; }
.warn-card h2 { color: var(--warn); }
.warn-list { margin: 0; padding-left: 20px; font-size: 13px; color: #d8cfc0; }
.warn-list li { margin: 6px 0; }
.warn-list b { color: var(--warn); }
code {
background: #2a2634; padding: 1px 6px; border-radius: 4px;
font-family: Consolas, monospace; font-size: 12px; color: var(--accent);
}
/* ---------- 控件 ---------- */
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.mt { margin-top: 12px; }
.row label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-dim); }
input[type="number"], input[type="search"], input[type="text"] {
background: var(--bg-input); color: var(--text);
border: 1px solid var(--border); border-radius: 7px;
padding: 8px 11px; font: inherit; font-size: 13px;
}
input[type="number"] { width: 92px; }
input[type="search"] { flex: 1; min-width: 200px; }
input:focus { outline: none; border-color: var(--accent); }
button {
background: var(--bg-input); color: var(--text);
border: 1px solid var(--border); border-radius: 7px;
padding: 8px 15px; cursor: pointer; font: inherit; font-size: 13px;
transition: background .12s, border-color .12s;
}
button:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--accent); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { background: var(--accent-dk); border-color: var(--accent); color: #fff; font-weight: 700; }
button.primary:hover:not(:disabled) { background: var(--accent); }
button.danger { background: #4a2626; border-color: #7a3a3a; color: #ffc9c9; }
button.danger:hover:not(:disabled) { background: #6a3232; }
.chk { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-dim); cursor: pointer; }
input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }
.toggles { display: flex; flex-direction: column; gap: 10px; }
.toggle {
display: flex; align-items: center; gap: 10px;
background: var(--bg-input); border: 1px solid var(--border);
border-radius: 8px; padding: 11px 15px; cursor: pointer;
font-size: 14px; transition: border-color .12s;
}
.toggle:hover { border-color: var(--accent); }
.toggle input { width: 17px; height: 17px; }
.pill {
display: inline-block; background: var(--bg-input);
border: 1px solid var(--border); border-radius: 999px;
padding: 3px 12px; font-size: 12px; color: var(--text-dim);
}
/* ---------- 设置表单 ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; align-items: center; }
.field > span { font-size: 13px; color: var(--text); }
.field > em {
grid-column: 2; font-style: normal;
font-size: 12px; color: var(--text-dim); line-height: 1.5;
}
.field > em b { color: var(--warn); }
.field input { width: 100%; max-width: 420px; }
.steps { margin: 0; padding-left: 22px; font-size: 13px; color: var(--text-dim); }
.steps li { margin: 7px 0; }
.steps b { color: var(--text); }
/* ---------- 列表 ---------- */
.list {
margin-top: 12px; max-height: 320px; overflow-y: auto;
border: 1px solid var(--border); border-radius: 8px;
background: #191623;
}
.list.tall { max-height: 560px; }
.empty { padding: 26px; text-align: center; color: var(--text-dim); font-size: 13px; }
.item {
display: flex; align-items: center; gap: 12px;
padding: 9px 14px; border-bottom: 1px solid #241f2e;
font-size: 13px;
}
.item:last-child { border-bottom: none; }
.item:hover { background: var(--bg-hover); }
.item .grow { flex: 1; min-width: 0; }
.item .name { color: var(--text); }
.item .meta { font-size: 12px; color: var(--text-dim); }
.item .num {
font-family: Consolas, monospace; font-size: 12px;
color: var(--text-dim); min-width: 44px;
}
.item .tag {
font-size: 11px; padding: 1px 7px; border-radius: 4px;
background: #2f2a3c; color: var(--text-dim); white-space: nowrap;
}
.item .tag.common { background: #3a2a38; color: var(--accent); }
.item .tag.ok { background: #1f3a2c; color: var(--ok); }
.item .tag.danger { background: #4a2626; color: #ff9b9b; }
/* 分类小标题行 */
.item.cat-head {
background: #221e2c; color: var(--text-dim);
font-size: 12px; font-weight: 700;
padding: 7px 14px;
position: sticky; top: 0; z-index: 2;
}
.item.cat-head.warn-head { background: #2b2420; color: var(--warn); }
.item button { padding: 4px 11px; font-size: 12px; }
/* 开关行 */
.switch-on { color: var(--ok); font-weight: 700; }
.switch-off { color: var(--text-dim); }
/* ---------- 提示条 ---------- */
.toast {
position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
background: #2a2634; border: 1px solid var(--accent);
color: var(--text); padding: 11px 22px; border-radius: 9px;
font-size: 13px; opacity: 0; pointer-events: none;
transition: opacity .2s, transform .2s; z-index: 999;
max-width: 80vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: var(--danger); background: #3a2222; }
.toast.ok { border-color: var(--ok); background: #1f3329; }
.trainer-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 16px; }
.trainer-stat { padding: 14px; border: 1px solid var(--border); border-radius: 8px; }
.trainer-stat .row { margin-top: 12px; flex-wrap: wrap; }
.trainer-stat input, #trainer-items input[type=number] { width: 95px; }
#trainer-items .item { flex-wrap: wrap; }
/* Inventory and collection encyclopedia */
select { background:var(--bg-input); color:var(--text); border:1px solid var(--border); border-radius:6px; padding:8px 10px; font:inherit; max-width:100%; }
#photo-state:empty { display:none; }
.inventory-row { align-items: flex-start; }
#combat-outgoing,#combat-incoming { width:100px; }
.inventory-main { display:flex; gap:16px; flex:1 1 430px; min-width:0; }
.item-art { display:flex; align-items:center; justify-content:center; flex:0 0 76px; width:76px; height:76px; border:1px solid var(--border); border-radius:12px; background:rgba(255,255,255,.035); }
.item-art img { display:block; width:64px; height:64px; object-fit:contain; image-rendering:pixelated; }
.icon-placeholder { color:var(--text-dim); font-size:28px; }
#trainer-items .inventory-row { padding:16px; gap:16px; }
#trainer-items .inventory-row .name { font-size:18px; line-height:1.5; margin-bottom:4px; }
#trainer-items .inventory-row .meta { font-size:13px; }
#trainer-items .inventory-row .item-description { font-size:16px; line-height:1.75; color:#d6d1df; margin-top:6px; }
.inventory-row.missing { border-left: 3px solid #b9bcc8; }
.inventory-row.owned { border-left: 3px solid #5ea988; }
.item-actions { display:flex; flex-wrap:wrap; gap:6px; align-items:center; justify-content:flex-end; }
.item-actions input { width:90px; }
.collection-regions { display:flex; flex-wrap:wrap; gap:10px; margin:16px 0; }
.collection-region { display:grid; gap:5px; text-align:left; min-width:155px; }
.collection-region span { font-size:12px; opacity:.8; }
.collection-region progress { width:100%; height:7px; accent-color:#6f8e72; }
.catalog-list { display:grid; gap:10px; margin-top:16px; }
.catalog-item { border:1px solid var(--border, #d9dce5); border-radius:10px; overflow:hidden; }
.catalog-item > summary { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px; padding:16px; cursor:pointer; }
.catalog-item > summary::before { content:'▸'; opacity:.6; }
.catalog-item[open] > summary::before { content:'▾'; }
.catalog-title { flex:1; font-weight:600; }
.catalog-content { padding:0 16px 16px; }
.catalog-location { display:flex; align-items:center; gap:12px; border-top:1px solid var(--border, #d9dce5); padding:12px 0; }
.shop-sources { margin-top:14px; }
.shop-sources summary { cursor:pointer; }
.tag.warn { background:#fff0d1; color:#865313; }
[data-nudge] { touch-action:none; user-select:none; min-width:44px; }
@media(max-width:700px) { .inventory-row { flex-wrap:wrap; } .item-actions { width:100%; justify-content:flex-start; } .catalog-item > summary { align-items:flex-start; } .catalog-location { flex-wrap:wrap; } }