/* ============================================================
   MRO 官网门户 —— AA 蓝白
   与 tools/RechargeWeb/assets/style.css、游戏内 overlay 同一套色系
   主色 #1d5fb4 / 底色 #eef3fa / 行高 27px / 白卡片
   ============================================================ */
:root {
    --aa-blue: #1d5fb4;
    --aa-blue-d: #164a8c;
    --aa-blue-l: #3d82d8;
    --aa-bg: #eef3fa;
    --aa-line: #d6e2f2;
    --aa-text: #1c2b3a;
    --aa-sub: #5f7590;
    --aa-warn: #b4451d;
    --aa-gold: #b8860b;
    --aa-ok: #1a7a4c;
    --row: 27px;
    --wrap: 1060px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--aa-bg);
    color: var(--aa-text);
    font: 14px/1.65 "Microsoft YaHei", "微软雅黑", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--aa-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.main { padding-top: 18px; padding-bottom: 54px; }

/* ---------------- 顶栏 ---------------- */
.topbar {
    background: var(--aa-blue);
    border-bottom: 2px solid var(--aa-blue-d);
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar-in {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.brand { display: flex; align-items: center; gap: 9px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 6px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.32);
    font-size: 11px; font-weight: 700; letter-spacing: .5px; color: #fff;
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-size: 15px; font-weight: 500; letter-spacing: .4px; }
.brand-txt i { font-style: normal; font-size: 11px; opacity: .75; }

.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
    color: rgba(255,255,255,.86);
    font-size: 13px;
    height: var(--row);
    line-height: var(--row);
    padding: 0 11px;
    border-radius: 4px;
}
.nav a:hover { background: rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.nav a.on { background: rgba(255,255,255,.2); color: #fff; }

.topbar-right { display: flex; align-items: center; gap: 8px; }
.qq { color: rgba(255,255,255,.8); font-size: 12px; }

.user-chip {
    width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--aa-blue-d);
    font-size: 13px; font-weight: 500;
}

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-block;
    height: var(--row);
    line-height: calc(var(--row) - 2px);
    padding: 0 14px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid var(--aa-blue);
    background: var(--aa-blue);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.btn:hover { background: var(--aa-blue-l); border-color: var(--aa-blue-l); text-decoration: none; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.btn-white { background: #fff; color: var(--aa-blue); border-color: var(--aa-line); }
.btn-white:hover { background: #f4f9ff; border-color: var(--aa-blue-l); }
.btn-gold { background: var(--aa-gold); border-color: var(--aa-gold); color: #fff; }
.btn-gold:hover { background: #cf9a17; border-color: #cf9a17; }
.btn-mini { height: 22px; line-height: 20px; padding: 0 9px; font-size: 12px; }
.btn-danger { background: #fff; color: var(--aa-warn); border-color: #e3b7a6; }
.btn-danger:hover { background: #fdf2ee; }

/* ---------------- 卡片容器 ---------------- */
.card {
    background: #fff;
    border: 1px solid var(--aa-line);
    border-radius: 6px;
    margin-bottom: 16px;
    overflow: hidden;
}
.card > h2 {
    margin: 0;
    padding: 0 14px;
    height: 38px; line-height: 38px;
    font-size: 14px; font-weight: 500;
    color: var(--aa-blue-d);
    background: linear-gradient(#f7fbff, #eef4fc);
    border-bottom: 1px solid var(--aa-line);
    display: flex; align-items: center; justify-content: space-between;
}
.card > h2 .more { font-size: 12px; font-weight: 400; color: var(--aa-sub); }
.card .body { padding: 14px; }

/* ---------------- 首页 Hero ---------------- */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f2f8ff 55%, #e6f0fc 100%);
    border: 1px solid var(--aa-line);
    border-radius: 8px;
    padding: 26px 26px 22px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute; right: -60px; top: -70px;
    width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(29,95,180,.16), rgba(29,95,180,0) 70%);
}
.hero h1 { margin: 0 0 6px; font-size: 24px; font-weight: 600; color: var(--aa-blue-d); letter-spacing: .5px; }
.hero p.sub { margin: 0 0 16px; color: var(--aa-sub); font-size: 13px; }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-stats .s { display: flex; flex-direction: column; }
.hero-stats .s b { font-size: 19px; font-weight: 600; color: var(--aa-blue-d); line-height: 1.2; }
.hero-stats .s span { font-size: 12px; color: var(--aa-sub); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------- 两栏布局 ---------------- */
.cols { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }

/* ---------------- 图鉴卡片墙 ---------------- */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.filters a {
    height: var(--row); line-height: calc(var(--row) - 2px);
    padding: 0 12px; font-size: 13px;
    border: 1px solid var(--aa-line); border-radius: 4px;
    background: #fff; color: var(--aa-sub);
}
.filters a:hover { border-color: var(--aa-blue-l); text-decoration: none; }
.filters a.on { background: var(--aa-blue); border-color: var(--aa-blue); color: #fff; }

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}
.gcard {
    background: #fff;
    border: 1px solid var(--aa-line);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s, transform .15s;
    display: flex; flex-direction: column;
}
.gcard:hover {
    border-color: var(--aa-blue-l);
    box-shadow: 0 4px 14px rgba(29,95,180,.12);
    transform: translateY(-1px);
    text-decoration: none;
}
.gcard .cover {
    height: 118px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 40px; font-weight: 600;
    letter-spacing: 2px;
    position: relative;
}
.gcard .cover::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(0,0,0,.10));
}
.gcard .cover span { position: relative; z-index: 1; opacity: .95; }
.gcard .cover-img {
    position: relative; z-index: 1;
    max-height: 94px; max-width: 84%;
    object-fit: contain;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,.28));
}
.gcard .meta { padding: 9px 11px 11px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.gcard .nm { font-size: 14px; font-weight: 500; color: var(--aa-text); line-height: 1.3; }
.gcard .sb { font-size: 12px; color: var(--aa-sub); line-height: 1.35; min-height: 16px; }
.gcard .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.gcard .score { font-size: 13px; font-weight: 600; color: var(--aa-gold); }
.gcard .score i { font-style: normal; font-size: 11px; color: var(--aa-sub); font-weight: 400; }

.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip {
    font-size: 11px; line-height: 17px; padding: 0 6px;
    border-radius: 3px; color: var(--aa-blue-d);
    background: #eef4fc; border: 1px solid #dbe7f7;
}

/* ---------------- 侧栏列表 ---------------- */
.side-list { display: flex; flex-direction: column; }
.side-list .it {
    display: flex; gap: 8px; align-items: baseline;
    padding: 7px 0; border-bottom: 1px dashed #e8eff8;
    font-size: 13px;
}
.side-list .it:last-child { border-bottom: none; }
.side-list .it .t { flex: 1; color: var(--aa-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list .it .d { font-size: 11px; color: var(--aa-sub); white-space: nowrap; }
.rank-no {
    display: inline-flex; align-items: center; justify-content: center;
    width: 17px; height: 17px; border-radius: 3px;
    font-size: 11px; font-weight: 600;
    background: #eef4fc; color: var(--aa-sub);
}
.rank-no.top1 { background: #b8860b; color: #fff; }
.rank-no.top2 { background: #8fa4bb; color: #fff; }
.rank-no.top3 { background: #b47d5a; color: #fff; }

/* ---------------- 公告列表 ---------------- */
.news-list { display: flex; flex-direction: column; }
.news-it {
    display: block; padding: 12px 2px;
    border-bottom: 1px dashed #e8eff8;
    color: inherit;
}
.news-it:last-child { border-bottom: none; }
.news-it:hover { text-decoration: none; background: #f9fcff; }
.news-it .top { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.news-it .title { font-size: 14px; font-weight: 500; color: var(--aa-text); }
.news-it:hover .title { color: var(--aa-blue); }
.news-it .sum { font-size: 12px; color: var(--aa-sub); line-height: 1.6; }
.news-it .foot { font-size: 11px; color: #93a6bb; margin-top: 4px; display: flex; gap: 12px; }

.badge {
    display: inline-block; height: 18px; line-height: 16px;
    padding: 0 6px; border-radius: 3px; font-size: 11px;
    border: 1px solid var(--aa-line); color: var(--aa-sub); background: #f6f9fd;
}
.badge.pin { color: #fff; background: var(--aa-warn); border-color: var(--aa-warn); }
.badge.cat { color: var(--aa-blue-d); background: #eef4fc; border-color: #dbe7f7; }

/* ---------------- 文章正文 ---------------- */
.article { font-size: 14px; line-height: 1.9; color: #223140; }
.article h3 { font-size: 15px; color: var(--aa-blue-d); margin: 20px 0 8px; }
.article p { margin: 0 0 12px; }
.article ul, .article ol { margin: 0 0 12px; padding-left: 22px; }
.article li { margin: 3px 0; }
.article hr { border: none; border-top: 1px dashed var(--aa-line); margin: 18px 0; }
.article code {
    font-family: Consolas, monospace; font-size: 12.5px;
    background: #f3f7fc; border: 1px solid #e2ebf7; border-radius: 3px; padding: 1px 5px;
}
.article pre {
    background: #f7fafd; border: 1px solid var(--aa-line); border-radius: 6px;
    padding: 12px; overflow-x: auto; font-size: 12.5px; line-height: 1.7;
}
.article blockquote {
    margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--aa-blue);
    background: #f3f8ff; color: #2c4562; border-radius: 0 4px 4px 0;
}
.article .tbl { width: 100%; border-collapse: collapse; font-size: 13px; margin: 0 0 12px; }
.article .tbl th { background: #f5f9fe; color: var(--aa-sub); font-weight: 500; }
.article .tbl th, .article .tbl td { border: 1px solid var(--aa-line); padding: 6px 9px; text-align: left; }

/* ---------------- 评论 ---------------- */
.cmt { padding: 12px 0; border-bottom: 1px dashed #e8eff8; display: flex; gap: 10px; }
.cmt:last-child { border-bottom: none; }
.cmt .av {
    flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
    background: #eef4fc; color: var(--aa-blue-d);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; border: 1px solid #dbe7f7;
}
.cmt .who { font-size: 12px; color: var(--aa-sub); margin-bottom: 2px; }
.cmt .who b { color: var(--aa-text); font-weight: 500; font-size: 13px; margin-right: 6px; }
.cmt .txt { font-size: 13px; line-height: 1.7; color: #223140; white-space: pre-wrap; word-break: break-word; }
.cmt .stars { color: var(--aa-gold); font-size: 12px; letter-spacing: 1px; }

/* ---------------- 表单 ---------------- */
input[type=text], input[type=password], input[type=number], textarea, select {
    width: 100%;
    padding: 0 9px;
    border: 1px solid var(--aa-line);
    border-radius: 4px;
    font: 13px/1.6 "Microsoft YaHei", sans-serif;
    color: var(--aa-text);
    background: #fff;
}
input[type=text], input[type=password], input[type=number], select { height: 30px; }
textarea { padding: 7px 9px; min-height: 78px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--aa-blue-l); }
label { font-size: 13px; color: var(--aa-sub); display: block; margin: 12px 0 5px; }
label.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.hint { color: var(--aa-sub); font-size: 12px; }
.err { color: var(--aa-warn); font-size: 13px; margin: 8px 0 0; }
.flash {
    margin: 14px auto 0;
    max-width: var(--wrap);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid #a9d8bf; background: #eefaf3; color: var(--aa-ok);
}
.flash-warn { border-color: #e6d5a2; background: #fdf8e8; color: #8a6d1f; }

.narrow { max-width: 392px; margin: 36px auto 0; }
.form-row { display: flex; gap: 10px; }
.form-row > * { flex: 1; }

/* ---------------- 评分条 ---------------- */
.score-big { display: flex; align-items: baseline; gap: 10px; }
.score-big b { font-size: 30px; color: var(--aa-gold); font-weight: 600; line-height: 1; }
.score-big span { font-size: 12px; color: var(--aa-sub); }

.stars-pick { display: flex; gap: 4px; flex-wrap: wrap; }
.stars-pick input { display: none; }
.stars-pick label {
    margin: 0; cursor: pointer;
    width: 30px; height: 26px; line-height: 24px; text-align: center;
    border: 1px solid var(--aa-line); border-radius: 4px;
    background: #fff; color: var(--aa-sub); font-size: 12px;
}
.stars-pick input:checked + label { background: var(--aa-gold); border-color: var(--aa-gold); color: #fff; }
.stars-pick label:hover { border-color: var(--aa-gold); color: var(--aa-gold); }

/* ---------------- 表格 ---------------- */
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th {
    height: var(--row); text-align: left; font-weight: 500;
    color: var(--aa-sub); background: #f5f9fe;
    border-bottom: 1px solid var(--aa-line);
    padding: 0 8px; white-space: nowrap;
}
table.grid td {
    height: var(--row); border-bottom: 1px solid #edf2f9;
    padding: 0 8px;
}
table.grid tr:last-child td { border-bottom: none; }
table.grid tr:hover td { background: #f8fbff; }
.table-wrap { width: 100%; overflow-x: auto; }
.mono { font-family: Consolas, "Courier New", monospace; }

.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs a {
    height: var(--row); line-height: calc(var(--row) - 2px); padding: 0 12px;
    font-size: 13px; border: 1px solid var(--aa-line); border-radius: 4px;
    background: #fff; color: var(--aa-sub);
}
.tabs a.on { background: var(--aa-blue); border-color: var(--aa-blue); color: #fff; }

.pager { display: flex; gap: 6px; justify-content: center; padding: 14px 0 2px; }
.pager a, .pager span {
    height: 26px; line-height: 24px; min-width: 26px; text-align: center;
    padding: 0 8px; border: 1px solid var(--aa-line); border-radius: 4px;
    background: #fff; color: var(--aa-sub); font-size: 12px;
}
.pager .on { background: var(--aa-blue); border-color: var(--aa-blue); color: #fff; }
.pager .gap { border: none; background: transparent; color: var(--aa-sub); }

.footer {
    border-top: 1px solid var(--aa-line);
    background: #f7fafd;
    color: var(--aa-sub);
    font-size: 12px;
    padding: 16px 0 22px;
}
.footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.empty { padding: 26px 0; text-align: center; color: #93a6bb; font-size: 13px; }

@media (max-width: 760px) {
    .wrap { padding: 0 10px; }
    .main { padding-top: 12px; }
    .topbar-in { height: 46px; gap: 10px; }
    .nav { gap: 0; }
    .nav a { padding: 0 8px; font-size: 12px; }
    .qq { display: none; }
    .hero { padding: 18px 16px; }
    .hero h1 { font-size: 20px; }
    .hero-stats { gap: 16px; }
    .grid-cards { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .gcard .cover { height: 96px; font-size: 32px; }
}

.article pre.code{
    background:#f5f8fc; border:1px solid #dbe6f4; border-left:3px solid #1d5fb4;
    border-radius:6px; padding:12px 14px; margin:12px 0;
    font-family:Consolas,"Courier New",monospace; font-size:12.5px;
    line-height:1.85; color:#33475f; overflow-x:auto; white-space:pre;
}

/* ============================================================
   道具查询（?r=items）
   ============================================================ */
.it-search .body { padding: 16px; }
.it-search h1 { margin: 0 0 4px; font-size: 19px; font-weight: 600; color: var(--aa-blue-d); }
.it-search .hint { margin: 0 0 12px; }
.it-search .sb { display: flex; gap: 10px; }
.it-search .sb input { flex: 1; height: 38px; font-size: 14px; }
.it-search .sb .btn { height: 38px; line-height: 36px; padding: 0 22px; font-size: 14px; }
.it-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--aa-sub); align-items: center; }
.it-chips a {
    padding: 1px 9px; border-radius: 12px; background: #eef4fc;
    border: 1px solid #dbe7f7; color: var(--aa-blue-d); font-size: 12px;
}
.it-chips a:hover { background: #e2edfb; text-decoration: none; }

.it-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 980px) { .it-cards { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .it-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .it-cards { grid-template-columns: repeat(2, 1fr); } }
.it-card {
    display: flex; flex-direction: column; align-items: center;
    background: #fff; border: 1px solid var(--aa-line); border-radius: 6px;
    padding: 12px 8px 10px; color: inherit;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.it-card:hover {
    border-color: var(--aa-blue-l); box-shadow: 0 4px 14px rgba(29,95,180,.12);
    transform: translateY(-1px); text-decoration: none;
}
.it-card .pic { height: 100px; width: 100%; display: flex; align-items: center; justify-content: center; }
.it-card .pic .coll { max-height: 100px; max-width: 100%; image-rendering: pixelated; }
.it-card .pic .it-noicon { width: 75px; height: 100px; }
.it-card .nm {
    margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--aa-text);
    text-align: center; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.it-card .meta { margin-top: 3px; font-size: 11px; color: var(--aa-sub); text-align: center; }
.it-card:hover .nm { color: var(--aa-blue); }

.it-back { margin: 0 0 12px; font-size: 13px; }
.it-back a { color: var(--aa-blue); }

/* 引导页 */
.it-guide .body { padding: 24px 20px 28px; }
.it-guide-hero { max-width: 720px; margin: 0 auto; text-align: center; }
.it-guide-icon { margin-bottom: 8px; line-height: 0; }
.it-guide-icon svg { display: inline-block; }
.it-guide h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; color: var(--aa-blue-d); }
.it-guide p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.85; color: #33455c; }
.it-guide p b { color: var(--aa-blue-d); font-weight: 600; }
.it-guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
@media (max-width: 700px) { .it-guide-cards { grid-template-columns: 1fr; } }
.gcard-tip {
    background: #f7fafd; border: 1px solid var(--aa-line); border-radius: 6px;
    padding: 13px 13px; text-align: left;
}
.gcard-tip b { display: block; font-size: 13.5px; color: var(--aa-blue-d); margin-bottom: 4px; }
.gcard-tip span { font-size: 12.5px; color: var(--aa-sub); line-height: 1.7; }
.it-guide-note {
    font-size: 12.5px !important; color: var(--aa-sub) !important;
    border-top: 1px dashed var(--aa-line); padding-top: 14px; margin-top: 6px !important;
}
.it-guide-note code, .it-guide p code {
    font-family: Consolas, monospace; font-size: 12px;
    background: #f1f6fd; border: 1px solid #e2ebf7; border-radius: 3px; padding: 0 4px;
}

.it-noicon {
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #f4f9ff, #e3eefc);
    border: 1px dashed #c9dbf2; border-radius: 4px;
}
.it-noicon i { font-style: normal; font-size: 12px; color: #8aa3c0; letter-spacing: 1px; }
.it-card .pic .it-noicon i { font-size: 11px; }

.it-detail { max-width: 900px; margin-left: auto; margin-right: auto; }
.it-detail .body { padding: 16px; }
.it-head { display: flex; gap: 16px; align-items: flex-start; }
.it-picwrap { flex: 0 0 84px; width: 84px; text-align: center; }
.it-nopic { margin-top: 5px; font-size: 10.5px; color: #93a6bb; line-height: 1.3; }
.it-pic {
    width: 84px; height: 112px;
    border: 1px solid var(--aa-line); border-radius: 6px; background: #f8fbff;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.it-pic .coll { max-width: 96%; max-height: 96%; image-rendering: pixelated; }
.it-pic .it-noicon { width: 64px; height: 86px; }
.it-title { min-width: 0; }
.it-title h3 { margin: 2px 0 4px; font-size: 19px; font-weight: 600; color: var(--aa-text); }
.it-sub { font-size: 12.5px; color: var(--aa-sub); }
.it-sub b { color: var(--aa-text); font-weight: 500; }
.it-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.tag {
    display: inline-block; height: 20px; line-height: 18px; padding: 0 8px;
    border-radius: 3px; font-size: 12px;
    border: 1px solid #dbe7f7; background: #eef4fc; color: var(--aa-blue-d);
}
.tag.gold { border-color: #e8dcb8; background: #fdf8e8; color: var(--aa-gold); }

h4.sec {
    margin: 20px 0 9px; font-size: 14px; font-weight: 600; color: var(--aa-blue-d);
    padding-left: 9px; border-left: 3px solid var(--aa-blue); line-height: 1.2;
}
.it-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.kv {
    background: #f7fafd; border: 1px solid var(--aa-line); border-radius: 5px;
    padding: 6px 10px; font-size: 13px; color: var(--aa-text);
}
.kv b { display: block; font-size: 11.5px; font-weight: 400; color: var(--aa-sub); margin-bottom: 1px; }

.it-fx ul.fx { margin: 0 0 4px; padding-left: 20px; font-size: 13.5px; line-height: 1.75; }
.it-fx ul.fx li { margin: 1px 0; }
.it-fx li.fx-unk { color: #8a94a3; font-size: 12.5px; }
.fx-cond { margin: 10px 0 4px; }
.fx-cond span {
    display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 12px;
    background: #eef4fc; border: 1px solid #dbe7f7; color: var(--aa-blue-d);
}
.it-rawpre {
    margin: 0; padding: 10px 12px; background: #f7fafd; border: 1px solid var(--aa-line);
    border-radius: 5px; font: 12.5px/1.7 Consolas, monospace; color: #33455c;
    overflow-x: auto; white-space: pre-wrap; word-break: break-all;
}
.it-none { color: #93a6bb; font-size: 13px; padding: 4px 0; }
.sec-more { font-size: 12px; font-weight: 400; color: var(--aa-sub); margin-left: 4px; }
.it-desc { font-size: 13.5px; line-height: 1.75; color: #33455c; }
.it-desc div { margin: 1px 0; }
.it-set {
    border: 1px solid #e8dcb8; background: #fffdf5; border-radius: 6px;
    padding: 10px 12px; margin-top: 8px;
}
.it-set .need { font-size: 13px; color: #6b5a1e; line-height: 1.7; }
.it-set .need a { color: #8a6d1f; text-decoration: underline; }
.it-set .it-fx ul.fx { margin-top: 5px; }

/* ============================================================
   魔物查询（2026-11-02）
   沿用道具查询的卡片/详情骨架，多出「动图 + 属性相性 + 掉落 + 技能 + 地图」
   ============================================================ */

/* ---------- 结果卡片 ---------- */
.mb-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 980px) { .mb-cards { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 820px) { .mb-cards { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .mb-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .mb-cards { grid-template-columns: repeat(2, 1fr); } }

.mb-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 8px 6px 9px; border: 1px solid var(--aa-line); border-radius: 7px;
    background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.mb-card:hover {
    text-decoration: none; border-color: var(--aa-blue-l);
    box-shadow: 0 3px 12px rgba(29,95,180,.13); transform: translateY(-1px);
}
.mb-card .pic {
    width: 100%; height: 92px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg,#f7fbff,#eaf2fb);
    border: 1px solid #e2ecf8; border-radius: 6px;
}
.mb-card .mb-thumb {
    max-width: 84px; max-height: 84px; width: auto; height: auto;
    image-rendering: pixelated; image-rendering: crisp-edges;
}
.mb-card .nm {
    margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--aa-text);
    text-align: center; line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.mb-card .meta { font-size: 11px; color: var(--aa-sub); line-height: 1.5; }
.mb-card .meta.sub { color: #8ba0b8; }
/* AegisName：同名魔物（波利 / R_PORING / G_PORING …）靠它区分是哪一条记录 */
.mb-card .meta.ag {
    font-size: 9.5px; color: #a8b8ca; letter-spacing: .2px; margin-top: 1px;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mb-card:hover .nm { color: var(--aa-blue); }

/* 详情页底部「同族魔物」：同一套卡片，缩小一号 */
.mb-near { margin-top: 8px; }
.mb-near .mb-card { padding: 6px 5px 7px; }
.mb-near .mb-card .pic { height: 72px; }
.mb-near .mb-card .mb-thumb { max-width: 64px; max-height: 64px; }
.mb-near .mb-card .nm { font-size: 12px; }

/* 无精灵占位 */
.mb-nopic {
    display: flex; align-items: center; justify-content: center;
    width: 60px; height: 60px; border-radius: 6px;
    background: #eaf1fa; border: 1px dashed #c6d8ee;
}
.mb-nopic i {
    font-style: normal; font-size: 20px; font-weight: 700; color: #a9bed6;
}

/* ---------- 详情头部 ---------- */
.mb-detail { max-width: 940px; }
.mb-head { display: flex; gap: 18px; align-items: flex-start; }
.mb-picbox {
    flex: 0 0 168px; height: 168px; display: flex; align-items: center; justify-content: center;
    position: relative;
    background:
        radial-gradient(circle at 50% 62%, rgba(29,95,180,.10), transparent 62%),
        linear-gradient(180deg,#f8fbff,#e9f1fa);
    border: 1px solid #dee9f6; border-radius: 8px;
}
.mb-anim {
    max-width: 146px; max-height: 146px; width: auto; height: auto;
    image-rendering: pixelated; image-rendering: crisp-edges;
    filter: drop-shadow(0 4px 6px rgba(20,50,90,.18));
}
.mb-nopic-tip {
    position: absolute; bottom: 5px; left: 0; right: 0; text-align: center;
    font-size: 10.5px; color: #98abc0;
}
.mb-title { flex: 1; min-width: 0; }
.mb-title h3 {
    margin: 2px 0 3px; font-size: 21px; line-height: 1.3; color: var(--aa-blue-d);
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.mb-badge {
    font-size: 11px; font-weight: 700; letter-spacing: .5px;
    padding: 1px 7px; border-radius: 3px; color: #fff; background: #c0392b;
}
.mb-badge.mvp { background: linear-gradient(180deg,#e2603c,#c0392b); }
.mb-exp {
    margin-top: 9px; display: flex; gap: 8px; flex-wrap: wrap;
}
.mb-exp span {
    font-size: 12px; color: var(--aa-sub); background: #f2f7fd;
    border: 1px solid #e0eaf7; border-radius: 4px; padding: 2px 9px;
}
.mb-exp b { color: var(--aa-blue-d); font-size: 13px; }

/* 属性 tag 配色（按元素等级给不同深浅的蓝，避免全站一个色） */
.mb-el { background: #eaf2fd; border-color: #cfe0f5; color: #1a4d92; }
.mb-el-1 { background: #f0f6ff; }
.mb-el-2 { background: #e6f0fe; }
.mb-el-3 { background: #dcebfd; border-color: #b9d5f3; }
.mb-el-4 { background: #d2e4fb; border-color: #a7c8ee; }

/* ---------- 双栏 ---------- */
.mb-cols { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; margin-top: 4px; }
@media (max-width: 780px) { .mb-cols { grid-template-columns: 1fr; } }

.mb-tbl {
    border: 1px solid var(--aa-line); border-radius: 6px; overflow: hidden;
    display: grid; grid-template-columns: 1fr 1fr;
}
.mb-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 10px; height: 29px; font-size: 12.5px;
    border-bottom: 1px solid #edf3fa; border-right: 1px solid #edf3fa;
    background: #fff;
}
.mb-row:nth-child(4n+1), .mb-row:nth-child(4n+2) { background: #fafcff; }
.mb-row span { color: var(--aa-sub); }
.mb-row b { color: var(--aa-text); font-weight: 600; }
.mb-row b i { font-style: normal; font-weight: 400; color: #9db0c6; font-size: 11px; margin-left: 5px; }

.mb-attrs {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
}
.mb-attrs span {
    display: flex; flex-direction: column; align-items: center;
    padding: 6px 0 5px; border: 1px solid var(--aa-line); border-radius: 5px;
    background: #fafcff;
}
.mb-attrs i {
    font-style: normal; font-size: 10.5px; letter-spacing: .4px; color: var(--aa-sub);
}
.mb-attrs b { font-size: 15px; color: var(--aa-blue-d); line-height: 1.35; }

/* ---------- 属性相性 ---------- */
.mb-elembox {
    border: 1px solid var(--aa-line); border-radius: 6px; overflow: hidden;
}
.mb-elrow {
    display: grid; grid-template-columns: 46px 1fr 52px; align-items: center;
    gap: 8px; padding: 0 10px; height: 27px; font-size: 12.5px;
    border-bottom: 1px solid #edf3fa;
}
.mb-elrow:last-child { border-bottom: 0; }
.mb-elrow .nm { color: var(--aa-text); }
.mb-elrow .bar { height: 8px; background: #eef3fa; border-radius: 4px; overflow: hidden; }
.mb-elrow .bar i { display: block; height: 100%; border-radius: 4px; background: #b9c9da; }
.mb-elrow b { text-align: right; font-weight: 600; color: #6a7f96; }
.mb-elrow.weak { background: #fff7f5; }
.mb-elrow.weak .bar i { background: #d4573a; }
.mb-elrow.weak b { color: #b4451d; }
.mb-elrow.resi { background: #f6fbf8; }
.mb-elrow.resi .bar i { background: #3f9c6d; }
.mb-elrow.resi b { color: #1a7a4c; }
.mb-ellegend {
    margin-top: 7px; display: flex; gap: 14px; font-size: 11.5px; color: var(--aa-sub);
}
.mb-ellegend span::before {
    content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px;
    margin-right: 5px; vertical-align: 1px; background: #b9c9da;
}
.mb-ellegend .weak::before { background: #d4573a; }
.mb-ellegend .resi::before { background: #3f9c6d; }
.mb-tip {
    margin-top: 10px; padding: 8px 10px; font-size: 12px; line-height: 1.65;
    background: #f4f8fe; border: 1px solid #dfeaf8; border-left: 3px solid var(--aa-blue-l);
    border-radius: 0 5px 5px 0; color: #4a6076;
}

/* ---------- 掉落 ---------- */
.mb-drops {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 8px;
}
.mb-drop {
    display: flex; align-items: center; gap: 9px; padding: 7px 9px;
    border: 1px solid var(--aa-line); border-radius: 6px; background: #fff;
    transition: border-color .15s, background .15s;
}
.mb-drop:hover { text-decoration: none; border-color: var(--aa-blue-l); background: #f8fbff; }
.mb-drop .ic {
    flex: 0 0 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    background: #f3f8fd; border: 1px solid #e6eef8; border-radius: 5px;
}
.mb-drop .ic img { max-width: 30px; max-height: 30px; width: auto; height: auto; image-rendering: pixelated; }
.mb-drop .tx { min-width: 0; display: flex; flex-direction: column; }
.mb-drop .nm {
    font-size: 12.5px; color: var(--aa-text); line-height: 1.35;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mb-drop .rate { font-size: 11.5px; color: var(--aa-blue); font-weight: 600; }
.mb-drop.mvp { border-color: #efd9b4; background: #fffdf7; }
.mb-drop.mvp .rate { color: var(--aa-gold); }
.mb-noicon { font-style: normal; font-size: 13px; color: #b9c9da; }

/* ---------- 技能表 ---------- */
.mb-skwrap { overflow-x: auto; border: 1px solid var(--aa-line); border-radius: 6px; }
/* 窄屏才有：技能表 7 列放不下，提示可以横向滑动 */
.mb-skhint { display: none; }
.mb-skills { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 620px; }
.mb-skills th {
    background: #eff5fc; color: #4a6076; font-weight: 600; text-align: left;
    padding: 7px 10px; border-bottom: 1px solid #dde9f6; white-space: nowrap;
}
.mb-skills td {
    padding: 6px 10px; border-bottom: 1px solid #f0f5fb; color: #33455c;
}
.mb-skills tr:last-child td { border-bottom: 0; }
.mb-skills tr:nth-child(even) td { background: #fafcff; }
.mb-skills td.sk { color: var(--aa-blue-d); font-weight: 600; }

/* ---------- 地图 ---------- */
.mb-maps { display: flex; flex-wrap: wrap; gap: 7px; }
.mb-map {
    display: inline-flex; align-items: baseline; gap: 6px;
    padding: 3px 9px; border: 1px solid var(--aa-line); border-radius: 4px;
    background: #fbfdff; font-size: 12.5px;
}
.mb-map b { color: var(--aa-text); font-weight: 600; }
.mb-map i { font-style: normal; font-size: 11px; color: #9db0c6; }
.mb-map u { text-decoration: none; font-size: 11.5px; color: var(--aa-blue); }
.mb-map.boss { border-color: #efd9b4; background: #fffdf7; }
.mb-map.boss u { color: var(--aa-gold); }

/* ---------- 窄屏适配（魔物详情） ---------- */
@media (max-width: 640px) {
    .mb-head { flex-direction: column; align-items: center; text-align: center; }
    .mb-picbox { flex: 0 0 auto; width: 148px; height: 148px; }
    .mb-title h3, .it-tags, .mb-exp { justify-content: center; }
    .mb-tbl { grid-template-columns: 1fr; }
    .mb-row { height: 27px; }
    .mb-attrs { grid-template-columns: repeat(3, 1fr); }
    .mb-elrow { grid-template-columns: 34px 1fr 46px; gap: 6px; padding: 0 8px; font-size: 12px; }
    .mb-elrow .bar { height: 7px; }
    .mb-drops { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .mb-map { font-size: 12px; }
    .mb-skhint {
        display: block; margin: -2px 0 5px; font-size: 11px; color: #9db0c6;
    }
    .mb-map i { display: none; }
}
.mb-card { position: relative; }
.mb-mvp {
    position: absolute; top: 5px; right: 5px; z-index: 2;
    font-size: 9.5px; font-weight: 700; letter-spacing: .3px; color: #fff;
    padding: 0 4px; border-radius: 3px; line-height: 14px;
    background: linear-gradient(180deg,#e2603c,#c0392b);
}
