MediaWiki:Common.css:修订间差异

Plmxs18​(留言 | 贡献)
首页 v1.1:修正移动端对齐与顶部偏移
Plmxs18​(留言 | 贡献)
敌人档案:分隔线加深一档
 
(未显示同一用户的8个中间版本)
第1,126行: 第1,126行:
body.skin-minerva.page-首页 .minerva-header .mw-ui-icon-element{filter:invert(1) brightness(1.6) saturate(.25)}
body.skin-minerva.page-首页 .minerva-header .mw-ui-icon-element{filter:invert(1) brightness(1.6) saturate(.25)}
body.skin-minerva.page-首页 .minerva-header{background:linear-gradient(180deg,rgba(4,8,14,.72),rgba(4,8,14,0) 100%)}
body.skin-minerva.page-首页 .minerva-header{background:linear-gradient(180deg,rgba(4,8,14,.72),rgba(4,8,14,0) 100%)}
/* ============================================================
  记忆战场 v1(2026-11-15)
  强敌详情 .bdet / 强敌列表 .bcard
  ============================================================ */
/* --- 返回入口 --- */
.bdet-back{margin:0 0 8px;font-size:13px;line-height:1.7}
.bdet-back a{color:#8a6d33;text-decoration:none;border-bottom:1px dotted rgba(160,130,60,.55)}
.bdet-back a:hover{color:#5f4718;border-bottom-style:solid}
/* --- 详情主体 --- */
.bdet{max-width:100%;margin:0 0 1.4em;padding:18px 20px 20px;box-sizing:border-box;
  border:1px solid #e2d7bd;border-radius:6px;
  background:linear-gradient(172deg,#fcf8ee,#f4ecda);color:#3a3327;
  box-shadow:0 2px 10px rgba(120,100,60,.08)}
.bdet-head{position:relative;margin:-18px -20px 6px;padding:18px 20px 16px;
  background:linear-gradient(118deg,#2b3646,#1b232f 58%,#26384c);color:#eaf3fa}
.bdet-head::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;
  background:linear-gradient(90deg,#e8b53a,rgba(232,181,58,0) 72%)}
.bdet-eyebrow{margin:0 0 9px;font-size:11px;letter-spacing:.22em;color:#9fb2c8}
.bdet-name{display:flex;align-items:baseline;flex-wrap:wrap;gap:10px;
  font-size:clamp(19px,2.4vw,24px);font-weight:700;line-height:1.24;letter-spacing:.02em;color:#fff}
.bdet-rank{flex:none;font-size:.57em;font-weight:800;font-style:italic;letter-spacing:.05em;
  color:#ffd66b;text-shadow:0 1px 2px rgba(0,0,0,.45)}
.bdet-lab{display:flex;align-items:center;gap:8px;margin:20px 0 10px;
  font-size:12.5px;font-weight:700;letter-spacing:.14em;color:#8a6d33}
.bdet-lab::before{content:"";width:3px;height:13px;border-radius:1px;
  background:linear-gradient(#e8b53a,#c99422)}
.bdet-intro{font-size:14.5px;line-height:2;color:#4a4232;
  border-left:3px solid rgba(200,160,80,.35);padding-left:12px}
.bdet-intro p{margin:0 0 .6em}
.bdet-intro p:last-child{margin-bottom:0}
.bdet-skills{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bdet-sk{display:flex;flex-direction:column;gap:6px;min-width:0;
  padding:12px 14px;border:1px solid #e6dcc6;border-radius:5px;background:rgba(255,255,255,.55)}
.bdet-sk-n{display:flex;align-items:center;gap:7px;
  font-size:14.5px;font-weight:700;line-height:1.4;color:#1f4e79}
.bdet-sk-n::before{content:"";flex:none;width:3px;height:12px;border-radius:1px;
  background:linear-gradient(#4fb6e0,#1f4e79)}
.bdet-sk-d{font-size:13.5px;line-height:1.85;color:#453e30;overflow-wrap:break-word}
.bdet-sk-d p{margin:0 0 .5em}
.bdet-sk-d p:last-child{margin-bottom:0}
/* --- 列表页(记忆战场) --- */
.bcard{position:relative;display:flex;align-items:center;gap:16px;flex-wrap:wrap;
  margin:0 0 10px;padding:16px 18px;box-sizing:border-box;
  border:1px solid #e2d7bd;border-radius:6px;
  background:linear-gradient(172deg,#fcf8ee,#f4ecda);
  transition:border-color .2s,box-shadow .2s,transform .2s}
.bcard:hover{border-color:#d9c69c;box-shadow:0 9px 22px rgba(120,100,60,.16);transform:translateY(-2px)}
.bcard-r{flex:none;font-size:13px;font-weight:800;font-style:italic;letter-spacing:.05em;color:#d99f27}
.bcard-n{font-size:17px;font-weight:700;line-height:1.4;color:#2f2a20;min-width:0}
.bcard-n a{color:inherit;text-decoration:none}
.bcard-n a::after{content:"";position:absolute;inset:0;border-radius:6px}
.bcard-n a:focus-visible::after{outline:2px solid #c9a04a;outline-offset:-2px}
.bcard-m{margin-left:auto;font-size:12px;letter-spacing:.04em;color:#8a8171;white-space:nowrap}
/* --- 夜间 --- */
html.skin-theme-clientpref-night .bdet{background:linear-gradient(172deg,#23272e,#1b1e24);border-color:#3c4043;color:#d8dde4}
html.skin-theme-clientpref-night .bdet-lab{color:#c9a860}
html.skin-theme-clientpref-night .bdet-intro{color:#c6ccd4;border-left-color:#5b5238}
html.skin-theme-clientpref-night .bdet-sk{background:rgba(255,255,255,.05);border-color:#3c4043}
html.skin-theme-clientpref-night .bdet-sk-n{color:#7fb6dd}
html.skin-theme-clientpref-night .bdet-sk-d{color:#c6ccd4}
html.skin-theme-clientpref-night .bdet-back a{color:#c9a860;border-bottom-color:rgba(201,168,96,.45)}
html.skin-theme-clientpref-night .bcard{background:linear-gradient(172deg,#23272e,#1b1e24);border-color:#3c4043}
html.skin-theme-clientpref-night .bcard-n{color:#e6eaf0}
html.skin-theme-clientpref-night .bcard-m{color:#9aa5b1}
/* --- 手机 --- */
@media screen and (max-width:720px){
  .bdet{padding:14px 14px 16px}
  .bdet-head{margin:-14px -14px 4px;padding:15px 14px 14px}
  .bdet-name{font-size:18px;gap:7px}
  .bdet-intro{font-size:14px;line-height:1.9;padding-left:10px}
  .bdet-skills{grid-template-columns:1fr;gap:8px}
  .bdet-sk{padding:11px 12px}
  .bdet-sk-d{font-size:13px;line-height:1.8}
  .bcard{gap:10px;padding:14px}
  .bcard-r{order:1}
  .bcard-n{order:2;flex:1 1 100%;font-size:15.5px}
  .bcard-m{order:3;margin-left:0;font-size:11.5px}
}
/* 列表页引导句 */
.mz-lead{margin:0 0 12px;font-size:13.5px;line-height:1.9;color:#6b6558}
html.skin-theme-clientpref-night .mz-lead{color:#9aa5b1}
/* 跟随系统夜间 */
@media (prefers-color-scheme: dark){
  html.skin-theme-clientpref-os .bdet{background:linear-gradient(172deg,#23272e,#1b1e24);border-color:#3c4043;color:#d8dde4}
  html.skin-theme-clientpref-os .bdet-lab{color:#c9a860}
  html.skin-theme-clientpref-os .bdet-intro{color:#c6ccd4;border-left-color:#5b5238}
  html.skin-theme-clientpref-os .bdet-sk{background:rgba(255,255,255,.05);border-color:#3c4043}
  html.skin-theme-clientpref-os .bdet-sk-n{color:#7fb6dd}
  html.skin-theme-clientpref-os .bdet-sk-d{color:#c6ccd4}
  html.skin-theme-clientpref-os .bdet-back a{color:#c9a860;border-bottom-color:rgba(201,168,96,.45)}
  html.skin-theme-clientpref-os .bcard{background:linear-gradient(172deg,#23272e,#1b1e24);border-color:#3c4043}
  html.skin-theme-clientpref-os .bcard-n{color:#e6eaf0}
  html.skin-theme-clientpref-os .bcard-m{color:#9aa5b1}
  html.skin-theme-clientpref-os .mz-lead{color:#9aa5b1}
}
/* 出战特性标签 */
.bdet-tags{display:flex;flex-wrap:wrap;gap:8px}
.bdet-tag{display:inline-flex;align-items:center;gap:8px;padding:7px 13px;
  border:1px solid #e6dcc6;border-radius:4px;background:rgba(255,255,255,.6);
  font-size:13px;line-height:1;color:#3a3327}
.bdet-tag b{font-weight:700}
.bdet-tag em{font-style:normal;font-size:14px;font-weight:700;line-height:1}
.bdet-tag.up em{color:#1d8a55}
.bdet-tag.down em{color:#c0392b}
html.skin-theme-clientpref-night .bdet-tag{background:rgba(255,255,255,.05);border-color:#3c4043;color:#d8dde4}
html.skin-theme-clientpref-night .bdet-tag.up em{color:#6fce9b}
html.skin-theme-clientpref-night .bdet-tag.down em{color:#e08b76}
@media (prefers-color-scheme: dark){
  html.skin-theme-clientpref-os .bdet-tag{background:rgba(255,255,255,.05);border-color:#3c4043;color:#d8dde4}
  html.skin-theme-clientpref-os .bdet-tag.up em{color:#6fce9b}
  html.skin-theme-clientpref-os .bdet-tag.down em{color:#e08b76}
}
/* 单个技能占满整行 */
.bdet-skills:has(> .bdet-sk:only-child) > .bdet-sk{grid-column:1/-1}
/* ===== 记忆战场 v1 结束 ===== */
/* ===== 首页 v1.2(2026-11-15)记忆战场入口 ===== */
body.page-首页 .catkids.single .catkid{align-items:center}
/* ============================================================
  敌人档案 v1(2026-11-24)
  .edet 详情 / 首页图鉴三列
  ============================================================ */
.edet{max-width:100%;margin:0 0 1.4em;box-sizing:border-box;
  border:1px solid #e2d7bd;border-radius:6px;overflow:hidden;
  background:linear-gradient(172deg,#fcf8ee,#f4ecda);color:#3a3327;
  box-shadow:0 2px 10px rgba(120,100,60,.08)}
.edet-head{position:relative;display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;
  padding:16px 20px 15px;background:linear-gradient(118deg,#2b3646,#1b232f 58%,#26384c);color:#eaf3fa}
.edet-head::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;
  background:linear-gradient(90deg,#e8b53a,rgba(232,181,58,0) 72%)}
.edet-cls{font-size:11px;letter-spacing:.22em;color:#9fb2c8}
.edet-name{font-size:clamp(19px,2.4vw,24px);font-weight:700;line-height:1.24;letter-spacing:.02em;color:#fff}
.edet-meta{margin-left:auto;display:flex;align-items:center;gap:8px}
.edet-org,.edet-tag{font-size:11.5px;letter-spacing:.06em;line-height:1;padding:4px 8px;border-radius:3px;white-space:nowrap}
.edet-org{color:#e3c58c;border:1px solid rgba(217,180,120,.5);background:rgba(217,180,120,.08)}
.edet-tag{color:#f0a864;border:1px solid rgba(240,168,100,.5);background:rgba(240,168,100,.08)}
.edet-body{padding:18px 20px 0;font-size:14.5px;line-height:2;color:#4a4232}
.edet-body p{margin:0 0 .6em}
.edet-lines{padding:0 20px 18px}
.edet-line{margin-top:14px;padding-top:12px;border-top:1px dashed rgba(160,130,60,.46)}
.edet-say{font-size:13.8px;line-height:1.95;color:#453e30}
.edet-who{margin-top:5px;text-align:right;font-size:12.5px;color:#8a6d33;letter-spacing:.02em}
html.skin-theme-clientpref-night .edet{background:linear-gradient(172deg,#23272e,#1b1e24);border-color:#3c4043;color:#d8dde4}
html.skin-theme-clientpref-night .edet-body,
html.skin-theme-clientpref-night .edet-say{color:#c6ccd4}
html.skin-theme-clientpref-night .edet-who{color:#c9a860}
html.skin-theme-clientpref-night .edet-line{border-top-color:#3c4043}
html.skin-theme-clientpref-night .edet-cls{color:#8b9dad}
@media (prefers-color-scheme: dark){
  html.skin-theme-clientpref-os .edet{background:linear-gradient(172deg,#23272e,#1b1e24);border-color:#3c4043;color:#d8dde4}
  html.skin-theme-clientpref-os .edet-body,
  html.skin-theme-clientpref-os .edet-say{color:#c6ccd4}
  html.skin-theme-clientpref-os .edet-who{color:#c9a860}
  html.skin-theme-clientpref-os .edet-line{border-top-color:#3c4043}
}
@media screen and (max-width:720px){
  .edet-head{padding:14px 14px 13px;gap:3px 10px}
  .edet-name{font-size:19px}
  .edet-meta{margin-left:0;flex-basis:100%;margin-top:6px}
  .edet-body{padding:15px 14px 0;font-size:14px;line-height:1.9}
  .edet-lines{padding:0 14px 16px}
  .edet-line{margin-top:12px;padding-top:10px}
  .edet-say{font-size:13px;line-height:1.85}
  .edet-who{font-size:12px}
}
/* 首页图鉴:三列 */
body.page-首页 .cats.c3{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body.page-首页 .cats.c3 .catkids{grid-template-columns:1fr}
@media screen and (max-width:760px){
  body.page-首页 .cats.c3{grid-template-columns:1fr;gap:10px}
}
/* ===== 敌人档案 v1 结束 ===== */