后端 game_base: - 货币并入 game.rule(rate/note 字段),新增可配置规则类别 game.rule.category(world/faction/character/currency) - 新增「配置」菜单与规则类别配置子项 - /game/api/rules 按类别分组返回,/game/api/currencies 保持兼容 - 列表分组取消等级累计(aggregator=False,适配 Odoo18) - 1.2 pre-migrate 清理旧 game.currency 记录,避免外部ID冲突 前端/官网: - 世界数据大报表(index.html + .wd-* 样式) - 背景 5 板块同步、论坛汉化、过渡资源与 views 拆分(announcement/codex/forum/page/rule/story)
426 lines
10 KiB
CSS
426 lines
10 KiB
CSS
/* 宇森 - 登录认证样式 */
|
|
|
|
/* ---- Nav bar auth area ---- */
|
|
#auth-area {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.auth-btn {
|
|
background: rgba(100, 200, 255, 0.15);
|
|
border: 1px solid rgba(100, 200, 255, 0.35);
|
|
color: #c8e6ff;
|
|
padding: 6px 16px;
|
|
border-radius: 20px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
transition: all 0.25s;
|
|
}
|
|
.auth-btn:hover {
|
|
background: rgba(100, 200, 255, 0.25);
|
|
border-color: rgba(100, 200, 255, 0.6);
|
|
color: #fff;
|
|
}
|
|
|
|
.login-btn {}
|
|
.logout-btn {
|
|
background: rgba(255, 100, 100, 0.12);
|
|
border-color: rgba(255, 100, 100, 0.3);
|
|
color: #fcc;
|
|
}
|
|
.logout-btn:hover {
|
|
background: rgba(255, 100, 100, 0.22);
|
|
border-color: rgba(255, 100, 100, 0.5);
|
|
color: #fff;
|
|
}
|
|
|
|
.user-name {
|
|
color: #a8e6cf;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* ---- Login Modal ---- */
|
|
#login-modal {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 9999;
|
|
}
|
|
|
|
.login-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: rgba(5, 8, 16, 0.8);
|
|
backdrop-filter: blur(6px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.login-box {
|
|
background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(10, 18, 35, 0.98));
|
|
border: 1px solid rgba(100, 200, 255, 0.2);
|
|
border-radius: 16px;
|
|
padding: 36px 32px;
|
|
width: 360px;
|
|
max-width: 90vw;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(100, 200, 255, 0.08);
|
|
}
|
|
|
|
.login-box h2 {
|
|
margin: 0 0 4px;
|
|
font-size: 22px;
|
|
background: linear-gradient(90deg, #4af, #a8e6cf);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.login-sub {
|
|
margin: 0 0 24px;
|
|
color: #6a8;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.login-box input {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
padding: 10px 14px;
|
|
margin-bottom: 12px;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border: 1px solid rgba(100, 200, 255, 0.2);
|
|
border-radius: 8px;
|
|
color: #e0e8f0;
|
|
font-size: 14px;
|
|
outline: none;
|
|
transition: border 0.2s;
|
|
}
|
|
.login-box input:focus {
|
|
border-color: rgba(100, 200, 255, 0.5);
|
|
background: rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.login-error {
|
|
color: #f66;
|
|
font-size: 12px;
|
|
min-height: 18px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.login-submit {
|
|
width: 100%;
|
|
padding: 11px;
|
|
margin-top: 4px;
|
|
background: linear-gradient(135deg, #2a6, #4af);
|
|
border: none;
|
|
border-radius: 8px;
|
|
color: #fff;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.25s;
|
|
}
|
|
.login-submit:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 20px rgba(68, 170, 255, 0.3);
|
|
}
|
|
.login-submit:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
.login-footer {
|
|
margin: 16px 0 0;
|
|
text-align: center;
|
|
font-size: 12px;
|
|
color: #557;
|
|
}
|
|
.login-footer a {
|
|
color: #4af;
|
|
text-decoration: none;
|
|
}
|
|
.login-footer a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* ==================================================
|
|
公告页 · 大气版(卡片 + 弹窗)
|
|
================================================== */
|
|
|
|
/* ---- 页面头 ---- */
|
|
#panel-announce h1 {
|
|
font-size: 44px;
|
|
letter-spacing: 8px;
|
|
margin-bottom: 10px;
|
|
text-align: center;
|
|
}
|
|
#panel-announce .page-sub {
|
|
text-align: center;
|
|
font-size: 13px;
|
|
letter-spacing: 5px;
|
|
color: #6b8aa8;
|
|
display: block;
|
|
margin: 0 auto 36px;
|
|
position: relative;
|
|
padding: 0 32px;
|
|
width: max-content;
|
|
}
|
|
#panel-announce .page-sub::before,
|
|
#panel-announce .page-sub::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 50%;
|
|
width: 36px;
|
|
height: 1px;
|
|
background: linear-gradient(90deg, transparent, #4af, transparent);
|
|
opacity: .7;
|
|
}
|
|
#panel-announce .page-sub::before { right: 100%; }
|
|
#panel-announce .page-sub::after { left: 100%; }
|
|
|
|
/* ---- 卡片列表 ---- */
|
|
.announce-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
}
|
|
.announce-card {
|
|
position: relative;
|
|
background: linear-gradient(135deg, rgba(20, 28, 48, 0.72), rgba(12, 18, 32, 0.72));
|
|
border: 1px solid rgba(120, 140, 200, 0.14);
|
|
border-left: 3px solid #a78bfa;
|
|
border-radius: 12px;
|
|
padding: 22px 28px 22px 26px;
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
transition: transform .22s ease, border-color .22s, box-shadow .22s, background .22s;
|
|
outline: none;
|
|
}
|
|
.announce-card::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
background: radial-gradient(600px circle at 0% 0%, rgba(167, 139, 250, 0.10), transparent 45%);
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
transition: opacity .25s;
|
|
}
|
|
.announce-card:hover,
|
|
.announce-card:focus-visible {
|
|
transform: translateY(-2px);
|
|
border-color: rgba(167, 139, 250, 0.4);
|
|
box-shadow: 0 14px 38px -18px rgba(167, 139, 250, 0.55),
|
|
0 0 0 1px rgba(167, 139, 250, 0.12);
|
|
}
|
|
.announce-card:hover::before,
|
|
.announce-card:focus-visible::before { opacity: 1; }
|
|
|
|
.announce-card.priority-important { border-left-color: #fbbf24; }
|
|
.announce-card.priority-important:hover,
|
|
.announce-card.priority-important:focus-visible {
|
|
box-shadow: 0 14px 38px -18px rgba(251, 191, 36, 0.5),
|
|
0 0 0 1px rgba(251, 191, 36, 0.14);
|
|
}
|
|
.announce-card.priority-urgent {
|
|
border-left-color: #f87171;
|
|
background: linear-gradient(135deg, rgba(42, 20, 30, 0.72), rgba(22, 12, 18, 0.72));
|
|
}
|
|
.announce-card.priority-urgent:hover,
|
|
.announce-card.priority-urgent:focus-visible {
|
|
box-shadow: 0 14px 38px -18px rgba(248, 113, 113, 0.55),
|
|
0 0 0 1px rgba(248, 113, 113, 0.18);
|
|
}
|
|
|
|
.announce-card .meta-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 12px;
|
|
color: #6b7d92;
|
|
letter-spacing: 1px;
|
|
margin-bottom: 10px;
|
|
position: relative;
|
|
}
|
|
.announce-card .date { font-variant-numeric: tabular-nums; }
|
|
.announce-card .dot {
|
|
width: 3px; height: 3px; border-radius: 50%;
|
|
background: #4a5568;
|
|
}
|
|
.announce-card .badge {
|
|
font-size: 11px;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
letter-spacing: 1.5px;
|
|
border: 1px solid currentColor;
|
|
}
|
|
.announce-card .badge.normal { color: #6b7d92; }
|
|
.announce-card .badge.important { color: #fbbf24; background: rgba(251, 191, 36, 0.08); }
|
|
.announce-card .badge.urgent { color: #f87171; background: rgba(248, 113, 113, 0.10); }
|
|
|
|
.announce-card .title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #e8eef7;
|
|
line-height: 1.55;
|
|
margin-bottom: 8px;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
.announce-card .preview {
|
|
font-size: 14px;
|
|
color: #8b9bb2;
|
|
line-height: 1.75;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
margin-bottom: 12px;
|
|
}
|
|
.announce-card .more {
|
|
font-size: 13px;
|
|
color: #a78bfa;
|
|
letter-spacing: 1.5px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
transition: gap .2s;
|
|
}
|
|
.announce-card:hover .more,
|
|
.announce-card:focus-visible .more { gap: 8px; }
|
|
.announce-card .more .arrow { transition: transform .2s; display: inline-block; }
|
|
.announce-card:hover .more .arrow,
|
|
.announce-card:focus-visible .more .arrow { transform: translateX(3px); }
|
|
|
|
.announce-empty {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: #556677;
|
|
font-size: 15px;
|
|
}
|
|
|
|
/* ---- 弹窗 ---- */
|
|
.announce-modal {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 2000;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 40px 20px;
|
|
}
|
|
.announce-modal.open {
|
|
display: flex;
|
|
animation: annFade .2s ease;
|
|
}
|
|
@keyframes annFade { from { opacity: 0; } to { opacity: 1; } }
|
|
|
|
.announce-modal .backdrop {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: rgba(4, 7, 14, 0.72);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
cursor: pointer;
|
|
}
|
|
.announce-modal .dialog {
|
|
position: relative;
|
|
width: 100%;
|
|
max-width: 720px;
|
|
max-height: calc(100vh - 80px);
|
|
background: linear-gradient(160deg, #0e1626, #0a1020);
|
|
border: 1px solid rgba(167, 139, 250, 0.22);
|
|
border-radius: 16px;
|
|
box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7),
|
|
0 0 60px -20px rgba(167, 139, 250, 0.3);
|
|
display: flex;
|
|
flex-direction: column;
|
|
animation: annPop .28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
|
|
overflow: hidden;
|
|
}
|
|
@keyframes annPop {
|
|
from { opacity: 0; transform: translateY(20px) scale(0.96); }
|
|
to { opacity: 1; transform: none; }
|
|
}
|
|
.announce-modal .head {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
padding: 28px 32px 20px;
|
|
border-bottom: 1px solid rgba(120, 140, 200, 0.12);
|
|
flex-shrink: 0;
|
|
gap: 16px;
|
|
}
|
|
.announce-modal .head .title {
|
|
font-size: 22px;
|
|
font-weight: 600;
|
|
color: #f0f4fb;
|
|
line-height: 1.5;
|
|
margin-bottom: 8px;
|
|
padding-right: 8px;
|
|
}
|
|
.announce-modal .head .meta {
|
|
font-size: 12px;
|
|
color: #6b7d92;
|
|
letter-spacing: 1.5px;
|
|
}
|
|
.announce-modal .close {
|
|
width: 34px;
|
|
height: 34px;
|
|
border-radius: 8px;
|
|
background: rgba(120, 140, 200, 0.08);
|
|
border: none;
|
|
color: #8b9bb2;
|
|
font-size: 20px;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
transition: background .2s, color .2s;
|
|
}
|
|
.announce-modal .close:hover {
|
|
background: rgba(167, 139, 250, 0.18);
|
|
color: #a78bfa;
|
|
}
|
|
.announce-modal .body {
|
|
padding: 24px 32px 32px;
|
|
overflow-y: auto;
|
|
font-size: 15px;
|
|
line-height: 1.9;
|
|
color: #c0cad9;
|
|
}
|
|
.announce-modal .body p { color: #c0cad9; font-size: 15px; margin-bottom: 12px; line-height: 1.9; }
|
|
.announce-modal .body p:last-child { margin-bottom: 0; }
|
|
.announce-modal .body strong { color: #e8eef7; }
|
|
.announce-modal .body a { color: #a78bfa; }
|
|
.announce-modal .body h1,
|
|
.announce-modal .body h2,
|
|
.announce-modal .body h3 { color: #e8eef7; margin: 18px 0 10px; }
|
|
.announce-modal .body ul,
|
|
.announce-modal .body ol { padding-left: 22px; margin-bottom: 12px; }
|
|
.announce-modal .body li { margin-bottom: 4px; }
|
|
.announce-modal .body code {
|
|
background: rgba(120, 140, 200, 0.12);
|
|
padding: 1px 6px;
|
|
border-radius: 4px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* ---- 响应式 ---- */
|
|
@media (max-width: 768px) {
|
|
#panel-announce h1 { font-size: 34px; letter-spacing: 5px; }
|
|
#panel-announce .page-sub { font-size: 12px; letter-spacing: 4px; margin-bottom: 28px; }
|
|
.announce-card { padding: 18px 18px 18px 20px; }
|
|
.announce-card .title { font-size: 16px; }
|
|
.announce-card .preview { font-size: 13px; }
|
|
.announce-modal { padding: 16px 12px; }
|
|
.announce-modal .head { padding: 20px 20px 14px; }
|
|
.announce-modal .head .title { font-size: 18px; }
|
|
.announce-modal .body { padding: 18px 20px 24px; font-size: 14px; }
|
|
}
|