/* 石器传奇 · 官网专栏（mir-*.html 共用）：底座仍是 styles.css；本文件只放专栏自己的版面。
   风格：明亮卡通的石器头图 + 石板骨饰的标题条 + 暖色羊皮纸内容卡；文字一律上色，不用灰字。
   CSP 禁内联样式：动态效果由 mir-column.js 通过 CSSOM 设置。 */
:root {
  --mc-stone: #2e2620;
  --mc-stone2: #4b3d2f;
  --mc-stone3: #6b5640;
  --mc-bone: #f6ead2;
  --mc-parch: #fffaf0;
  --mc-parch2: #fdf1d8;
  --mc-line: #e7d3ab;
  --mc-gold: #e09a12;
  --mc-gold2: #ffd56b;
  --mc-ink: #3a2816;
  --mc-sub: #8a5527;
  --mc-red: #c8361f;
  --mc-green: #2d8f3a;
  --mc-blue: #2a74c9;
  --mc-purple: #8a47cf;
  --mc-orange: #df5f0b;
  --mc-teal: #12857a;
  --mc-radius: 18px;
  --mc-shadow: 0 5px 0 rgba(90, 52, 23, .1), 0 16px 30px -16px rgba(60, 32, 10, .45);
}

body.mir-col { background-color: #fbf3e2; color: var(--mc-ink); }
body.mir-col .topbar { z-index: 3; }
.mc-chip-page { margin-left: 2px; padding: 4px 12px; color: #fff; background: linear-gradient(180deg, #e0492c, #a8231a); border: 2px solid #fff; border-radius: 999px; box-shadow: 0 2px 0 rgba(120, 30, 10, .3); font-size: 12.5px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; }

/* ================= 头图 ================= */
.mc-hero { position: relative; z-index: 1; width: min(100% - 24px, 1180px); margin: 14px auto 0; overflow: hidden; border: 3px solid #fff; border-radius: 26px; box-shadow: var(--mc-shadow); background: #7cc6ef; }
.mc-hero-bg { display: block; width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.mc-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 10, 0, 0) 40%, rgba(25, 14, 4, .78) 100%); pointer-events: none; }
.mc-hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; min-height: 520px; padding: 26px 22px 30px; text-align: center; }
.mc-hero-logo { width: min(78%, 520px); height: auto; filter: drop-shadow(0 6px 10px rgba(40, 18, 0, .45)); animation: mc-float 4.5s ease-in-out infinite; }
.mc-hero h1 { margin: 0; color: #fff; font-family: var(--font-title); font-size: clamp(26px, 4.4vw, 44px); letter-spacing: 6px; text-shadow: 0 3px 0 #7a2d0c, 0 0 18px rgba(255, 160, 40, .7); }
.mc-hero-lead { max-width: 760px; margin: 0; color: #fff6dc; font-size: clamp(14px, 1.9vw, 17px); line-height: 1.75; text-shadow: 0 2px 4px rgba(0, 0, 0, .7); }
.mc-hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.mc-hero-facts li { padding: 5px 13px; color: #3a2008; background: linear-gradient(180deg, #fff2c6, #ffd46a); border: 2px solid #fff; border-radius: 999px; box-shadow: 0 3px 0 rgba(120, 60, 0, .35); font-size: 13px; font-weight: 800; }
.mc-hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.mc-hero.mc-hero-sm .mc-hero-in { min-height: 230px; justify-content: center; }
.mc-hero.mc-hero-sm .mc-hero-logo { width: min(52%, 300px); animation: none; }
.mc-hero.mc-hero-sm h1 { font-size: clamp(24px, 3.6vw, 36px); }
@keyframes mc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ================= 专栏导航（石板条） ================= */
.mc-nav { position: sticky; top: 0; z-index: 2; width: min(100% - 24px, 1180px); margin: 12px auto 0; background: linear-gradient(180deg, #4d3e2f, #2f251c); border: 2px solid #8a6a43; border-radius: 16px; box-shadow: 0 4px 0 rgba(40, 20, 0, .25), inset 0 1px 0 rgba(255, 230, 170, .2); }
.mc-nav ul { display: flex; gap: 4px; margin: 0; padding: 6px; overflow-x: auto; list-style: none; scrollbar-width: thin; scrollbar-color: #8a6a43 transparent; }
.mc-nav a { display: flex; align-items: center; gap: 5px; padding: 8px 12px; color: #ffe6a8; border-radius: 11px; font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.mc-nav a:hover { color: #fff; background: rgba(255, 210, 110, .16); }
.mc-nav a.on { color: #3a1e00; background: linear-gradient(180deg, #ffe08a, #f0a92a); box-shadow: 0 2px 0 #9a5a08; }
.mc-nav a .ico { font-size: 15px; }

/* ================= 主体 ================= */
.mc-main { position: relative; z-index: 1; width: min(100% - 24px, 1180px); margin: 18px auto 30px; }
.mc-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start; }
.mc-toc { position: sticky; top: 74px; max-height: calc(100vh - 90px); overflow-y: auto; padding: 12px 10px; background: var(--mc-parch); border: 2px solid var(--mc-line); border-radius: var(--mc-radius); box-shadow: var(--mc-shadow); }
.mc-toc b { display: block; margin: 0 6px 6px; color: var(--mc-red); font-size: 13px; letter-spacing: 2px; }
.mc-toc a { display: block; padding: 6px 8px; color: var(--mc-sub); border-radius: 9px; font-size: 13.5px; font-weight: 700; line-height: 1.35; text-decoration: none; }
.mc-toc a:hover { color: var(--mc-ink); background: var(--mc-parch2); }
.mc-toc a.on { color: #fff; background: linear-gradient(180deg, #c8592a, #9a3410); }
.mc-toc-m { display: none; }
.mc-content { min-width: 0; }

.mc-intro { margin: 0 0 18px; padding: 18px 22px; color: var(--mc-ink); background: linear-gradient(180deg, #fff6df, #fff0cf); border: 2px solid #f0d394; border-radius: var(--mc-radius); box-shadow: var(--mc-shadow); font-size: 15px; line-height: 1.85; }
.mc-intro strong { color: var(--mc-red); }

.mc-sec { margin: 0 0 22px; padding: 0 0 18px; background: var(--mc-parch); border: 2px solid var(--mc-line); border-radius: var(--mc-radius); box-shadow: var(--mc-shadow); scroll-margin-top: 80px; overflow: hidden; }
.mc-sec > h2 { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 13px 20px 12px; color: #ffe7a6; background: linear-gradient(180deg, #54442f, #2f251b); border-bottom: 3px solid #b88a3a; font-family: var(--font-title); font-size: 22px; font-weight: 400; letter-spacing: 2px; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.mc-sec > h2 .no { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; color: #3a1e00; background: radial-gradient(circle at 35% 30%, #fff1b8, #f0a92a 70%); border: 2px solid #fff3c8; border-radius: 50%; box-shadow: 0 2px 0 #7a4400; font-family: var(--font-body); font-size: 15px; font-weight: 900; text-shadow: none; }
.mc-sec > h2 small { margin-left: auto; color: #ffcf7a; font-family: var(--font-body); font-size: 12px; letter-spacing: 1px; }
.mc-sec > *:not(h2) { margin-left: 20px; margin-right: 20px; }
.mc-sec h3 { margin: 20px 20px 8px; color: var(--mc-red); font-size: 17.5px; letter-spacing: 1px; }
.mc-sec h3::before { content: "◆ "; color: var(--mc-gold); }
.mc-sec h4 { margin: 14px 20px 6px; color: var(--mc-teal); font-size: 15px; }
.mc-sec p { margin-top: 0; margin-bottom: 10px; font-size: 14.5px; line-height: 1.85; }
.mc-sec ul, .mc-sec ol { margin-top: 0; margin-bottom: 12px; padding-left: 22px; font-size: 14.5px; line-height: 1.85; }
.mc-sec li { margin: 2px 0; }
.mc-sec li::marker { color: var(--mc-gold); }
.mc-sec strong, .mc-sec b { color: var(--mc-red); }
.mc-sec em { color: var(--mc-blue); font-style: normal; font-weight: 700; }
.mc-sec a { color: var(--mc-blue); font-weight: 700; }
.mc-sec kbd, .mc-kbd { display: inline-block; min-width: 22px; padding: 0 6px; color: #fff3cf; background: linear-gradient(180deg, #5b4a37, #33281e); border: 1px solid #1d150e; border-radius: 6px; box-shadow: 0 2px 0 #120c07; font: 800 12.5px/1.6 var(--font-body); text-align: center; }

.c-red { color: var(--mc-red); } .c-gold { color: #b57400; } .c-green { color: var(--mc-green); } .c-blue { color: var(--mc-blue); }
.c-purple { color: var(--mc-purple); } .c-orange { color: var(--mc-orange); } .c-teal { color: var(--mc-teal); } .c-sub { color: var(--mc-sub); }

/* 提示条 */
.mc-note { padding: 11px 15px; color: #5a3410; background: #fff3d1; border: 2px dashed #e9b552; border-radius: 14px; font-size: 14px; line-height: 1.75; }
.mc-note.ok { color: #1d5a24; background: #ebf8e5; border-color: #8fcd78; }
.mc-note.warn { color: #7a1d0c; background: #ffe9e2; border-color: #f0a08a; }
.mc-note.info { color: #17406f; background: #e8f3ff; border-color: #8dbcef; }
.mc-note b, .mc-note strong { color: inherit; }

/* 小标签 */
.mc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; padding: 0; list-style: none; }
.mc-chip { display: inline-block; padding: 2px 10px; color: #6a3a08; background: #fff0c4; border: 1.5px solid #f0c66a; border-radius: 999px; font-size: 12.5px; font-weight: 800; line-height: 1.6; white-space: nowrap; }
.mc-chip.red { color: #9a1d0c; background: #ffe2da; border-color: #f2a08a; }
.mc-chip.green { color: #1f6a2a; background: #e3f6dc; border-color: #9fd38a; }
.mc-chip.blue { color: #1c5596; background: #e3efff; border-color: #9cc2ef; }
.mc-chip.purple { color: #6a2fa8; background: #f1e6ff; border-color: #c9a6f0; }
.mc-chip.stone { color: #ffe6a8; background: #4b3d2f; border-color: #8a6a43; }

/* 卡片网格 */
.mc-grid { display: grid; gap: 14px; margin-bottom: 14px; }
.mc-grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mc-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mc-grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mc-card { position: relative; padding: 14px 16px; background: #fff; border: 2px solid var(--mc-line); border-radius: 15px; box-shadow: 0 3px 0 rgba(120, 70, 20, .1); font-size: 14px; line-height: 1.75; }
.mc-card h4 { margin: 0 0 6px; color: var(--mc-red); font-size: 16px; }
.mc-card p { margin: 0 0 6px; font-size: 13.8px; }
.mc-card .tag { position: absolute; top: -10px; right: 12px; padding: 1px 9px; color: #fff; background: var(--mc-orange); border: 2px solid #fff; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.mc-card ul { padding-left: 18px; margin: 0; font-size: 13.8px; }

/* 首页入口卡 */
.mc-entry { display: flex; flex-direction: column; gap: 6px; min-height: 100%; padding: 16px 16px 14px; color: var(--mc-ink); background: linear-gradient(180deg, #fffdf6, #fff2d4); border: 2px solid #efd39a; border-radius: 18px; box-shadow: 0 4px 0 rgba(120, 70, 20, .12); text-decoration: none; transition: transform .3s var(--ease-jelly), box-shadow .3s ease; }
.mc-entry:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 8px 0 rgba(120, 70, 20, .12), 0 18px 30px -16px rgba(90, 40, 0, .5); }
.mc-entry .ico { display: grid; place-items: center; width: 52px; height: 52px; color: #fff; background: linear-gradient(180deg, #e2672b, #a8331a); border: 3px solid #fff; border-radius: 16px; box-shadow: 0 3px 0 rgba(90, 30, 0, .3); font-size: 26px; }
.mc-entry strong { color: var(--mc-red); font-size: 17px; }
.mc-entry small { color: var(--mc-sub); font-size: 13px; line-height: 1.6; }
.mc-entry .go { margin-top: auto; color: var(--mc-blue); font-size: 13px; font-weight: 800; }

/* ================= 图片 ================= */
.mc-fig { margin: 0 0 14px; }
.mc-fig a { display: block; overflow: hidden; background: #241b13; border: 3px solid #3b2f24; border-radius: 14px; box-shadow: 0 0 0 2px #d9b77a, 0 6px 16px -8px rgba(40, 18, 0, .6); cursor: zoom-in; }
.mc-fig img { display: block; width: 100%; height: auto; transition: transform .4s var(--ease-out); }
.mc-fig a:hover img { transform: scale(1.025); }
.mc-fig figcaption { margin-top: 7px; color: var(--mc-sub); font-size: 13px; font-weight: 700; line-height: 1.6; text-align: center; }
.mc-fig figcaption::before { content: "▲ "; color: var(--mc-gold); font-size: 11px; }
.mc-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 6px; }
.mc-figs.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mc-figs.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 像素图标与怪物图像（mir-atlas.css 给定位） */
.mi { width: 36px; height: 36px; }
.mi.s { width: 26px; height: 26px; }
.mi.l { width: 48px; height: 48px; }
.mm { width: 64px; height: 70px; }
.mm.l { width: 88px; height: 96px; }
.mb { width: 120px; height: 132px; }
.mn { width: 56px; height: 76px; }
.mf { width: 64px; height: 64px; }

/* ================= 表格 ================= */
.mc-tw { margin-bottom: 14px; overflow-x: auto; border: 2px solid #d8bf8f; border-radius: 14px; background: #fff; -webkit-overflow-scrolling: touch; }
.mc-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.6; }
.mc-tbl th { position: sticky; top: 0; padding: 8px 10px; color: #ffe6a8; background: linear-gradient(180deg, #54442f, #33281e); font-weight: 800; text-align: left; white-space: nowrap; }
.mc-tbl td { padding: 7px 10px; border-top: 1px solid #f0e2c4; vertical-align: top; }
.mc-tbl tr:nth-child(even) td { background: #fffaf0; }
.mc-tbl tr:hover td { background: #fff1cf; }
.mc-tbl td.n { white-space: nowrap; font-weight: 800; }
.mc-tbl td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mc-tbl .mi, .mc-tbl .mm { margin-right: 6px; }
/* 技能表：“效果”列给足宽度，技能书标签可换行，避免效果文字被挤成一字一行 */
.mc-sktbl td:last-child { min-width: 240px; }
.mc-sktbl td.bk { min-width: 100px; max-width: 130px; }
.mc-sktbl td.bk .mc-chip { white-space: normal; line-height: 1.45; }
.mc-sktbl td.tr { white-space: normal; min-width: 92px; }
/* 城镇 NPC 卡片网格 */
.mc-npcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 6px 0 14px; }
.mc-npc { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; background: #fffaf0; border: 1.5px solid #f0dcae; border-radius: 12px; }
.mc-npc .mn { flex: none; width: 40px; height: 54px; }
.mc-npc > span:last-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; }
.mc-npc b { color: #5a2a08; font-size: 14px; }
.mc-npc em { color: #a07a4a; font-size: 12px; font-style: normal; font-variant-numeric: tabular-nums; }
.mc-npc small { flex-basis: 100%; color: #6a5236; font-size: 12.5px; line-height: 1.5; }
@media (max-width: 600px) {
  .mc-npcs { grid-template-columns: 1fr 1fr; gap: 6px; }
  .mc-npc { gap: 4px; padding: 4px 6px 4px 2px; border-radius: 10px; }
  .mc-npc .mn { width: 30px; height: 40px; }
  .mc-npc b { font-size: 13px; }
  .mc-npc em { font-size: 11px; }
  .mc-npc small { font-size: 11.5px; line-height: 1.4; }
}

/* 品质染色（与游戏一致：普通 → 极品 → 骨王金 → 三神兵橙 → 灭龙红金） */
.q-r0 { color: #4a3420; }
.q-r1 { color: #1f8a33; }
.q-r2 { color: #1f63c4; }
.q-r3 { color: #8a3fd0; }
.q-q4 { color: #b47a00; background: linear-gradient(90deg, #a86c00, #e8b11c, #a86c00); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 900; }
.q-q5 { background: linear-gradient(90deg, #d04a00, #ff9a1f, #d04a00); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 900; }
.q-q6 { background: linear-gradient(90deg, #d4a000 0%, #ffd23a 35%, #ff3a1a 65%, #b80c00 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 900; }

/* 时间线 / 路线 */
.mc-route { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; padding: 0; list-style: none; counter-reset: rt; }
.mc-route li { position: relative; padding: 12px 12px 10px; background: linear-gradient(180deg, #fff, #fff4dc); border: 2px solid #efcf8e; border-radius: 14px; font-size: 13px; line-height: 1.6; counter-increment: rt; }
.mc-route li::before { content: counter(rt); position: absolute; top: -12px; left: 10px; display: grid; place-items: center; width: 24px; height: 24px; color: #fff; background: var(--mc-red); border: 2px solid #fff; border-radius: 50%; font-size: 12px; font-weight: 900; }
.mc-route li b { display: block; color: var(--mc-red); font-size: 15px; }
.mc-route li span { color: var(--mc-teal); font-weight: 800; }

.mc-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 14px; }
.mc-kv div { padding: 10px 12px; background: #fff; border: 2px solid var(--mc-line); border-radius: 13px; }
.mc-kv strong { display: block; color: var(--mc-red); font-size: 19px; line-height: 1.3; }
.mc-kv span { color: var(--mc-sub); font-size: 12.5px; font-weight: 700; }

/* 职业 */
.mc-job { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: start; }
.mc-bcard { text-align: center; }
.mc-bcard .mb { display: block; margin: 0 auto 4px; }
.mc-job-art { position: relative; display: flex; justify-content: center; gap: 4px; padding: 10px 6px 0; background: radial-gradient(ellipse at 50% 85%, #ffe9a8 0%, #ffd27a 28%, rgba(255, 210, 122, 0) 60%), linear-gradient(180deg, #a9dcff, #e6f6ff); border: 3px solid #fff; border-radius: 20px; box-shadow: var(--mc-shadow); overflow: hidden; }
.mc-job-art img { width: 48%; height: auto; object-fit: contain; }
.mc-job-art .tagline { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px; color: #fff; background: rgba(40, 20, 4, .72); font-size: 13px; font-weight: 800; text-align: center; }
.mc-sprites { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 10px; }
.mc-sprites figure { margin: 0; padding: 6px 8px 4px; background: #fff; border: 2px solid var(--mc-line); border-radius: 12px; text-align: center; }
.mc-sprites img { display: block; height: 104px; width: auto; margin: 0 auto; image-rendering: pixelated; }
.mc-sprites figcaption { color: var(--mc-sub); font-size: 12px; font-weight: 800; }

/* 灯箱 */
.mc-lb { position: fixed; inset: 0; z-index: 50; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; background: rgba(18, 10, 4, .88); }
.mc-lb.open { display: flex; }
.mc-lb img { max-width: 100%; max-height: calc(100vh - 110px); border: 3px solid #d9b77a; border-radius: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); background: #000; }
.mc-lb p { margin: 0; color: #ffe6a8; font-size: 14px; font-weight: 700; text-align: center; }
.mc-lb button { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; color: #3a1e00; background: linear-gradient(180deg, #ffe08a, #f0a92a); border: 2px solid #fff; border-radius: 50%; font-size: 22px; font-weight: 900; cursor: pointer; }
.mc-lb .x { top: 14px; right: 14px; }
.mc-lb .pv { left: 14px; top: 50%; }
.mc-lb .nx { right: 14px; top: 50%; }

/* 页脚 */
.mc-foot { position: relative; z-index: 1; margin-top: auto; padding: 22px 16px 26px; color: #ffe6a8; background: linear-gradient(180deg, #3d3024, #241b13); border-top: 3px solid #b88a3a; font-size: 13px; text-align: center; }
.mc-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-bottom: 8px; }
.mc-foot a { color: #ffd56b; font-weight: 700; text-decoration: none; }
.mc-foot a:hover { color: #fff; }
.mc-foot p { margin: 4px 0; color: #e8cf98; }

.mc-top-btn { position: fixed; right: 16px; bottom: 18px; z-index: 4; display: grid; place-items: center; width: 46px; height: 46px; color: #3a1e00; background: linear-gradient(180deg, #ffe08a, #f0a92a); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 4px 10px rgba(60, 30, 0, .4); font-size: 20px; font-weight: 900; text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.mc-top-btn.show { opacity: 1; pointer-events: auto; }

/* ================= 数据资料库（mir-data.html） ================= */
.md-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.md-tabs button { padding: 8px 14px; color: var(--mc-sub); background: #fff; border: 2px solid var(--mc-line); border-radius: 12px; font-size: 14px; font-weight: 800; cursor: pointer; }
.md-tabs button:hover { color: var(--mc-ink); border-color: #e2b85a; }
.md-tabs button.on { color: #fff; background: linear-gradient(180deg, #d9602a, #a3331a); border-color: #7a2410; box-shadow: 0 2px 0 #5a1a08; }
.md-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; padding: 10px 12px; background: #fff; border: 2px solid var(--mc-line); border-radius: 14px; }
.md-bar input[type="search"] { flex: 1 1 220px; min-width: 0; height: 40px; padding: 0 12px; color: var(--mc-ink); background: #fffdf6; border: 2px solid #e6cd9a; border-radius: 10px; font-size: 14.5px; }
.md-bar select { height: 40px; max-width: 46%; padding: 0 8px; color: var(--mc-ink); background: #fffdf6; border: 2px solid #e6cd9a; border-radius: 10px; font-size: 14px; }
.md-bar label { display: flex; align-items: center; gap: 4px; color: var(--mc-sub); font-size: 13px; font-weight: 800; }
.md-count { margin-left: auto; color: var(--mc-teal); font-size: 13px; font-weight: 800; }
#mdFilters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.md-tbl th[data-sort] { cursor: pointer; }
.md-tbl th[data-sort]::after { content: " ⇅"; color: #b8955a; font-size: 11px; }
.md-tbl th.asc::after { content: " ▲"; color: #ffd56b; }
.md-tbl th.desc::after { content: " ▼"; color: #ffd56b; }
.md-tbl td { vertical-align: middle; }
.md-tbl tr.md-row { cursor: pointer; }
.md-tbl tr.md-open td { background: #fff1cf !important; }
.md-tbl tr.md-detail td { padding: 0; background: #fffaf0 !important; }
.md-det { padding: 12px 14px 14px; font-size: 13.5px; line-height: 1.8; }
.md-det h5 { margin: 8px 0 4px; color: var(--mc-red); font-size: 14px; }
.md-det p { margin: 0 0 6px; }
.md-det ul { margin: 0 0 6px; padding-left: 18px; }
.md-src { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.md-src li { padding: 2px 9px; background: #fff; border: 1.5px solid #ecd6a8; border-radius: 999px; font-size: 12.5px; line-height: 1.6; }
.md-src li i { margin-right: 4px; color: #fff; font-style: normal; font-size: 11px; padding: 0 5px; border-radius: 6px; background: var(--mc-stone3); }
.md-src li i.boss { background: var(--mc-red); }
.md-src li i.shop { background: var(--mc-teal); }
.md-src li i.craft { background: var(--mc-purple); }
.md-src li i.quest { background: var(--mc-blue); }
.md-src li i.ev { background: var(--mc-orange); }
.lb-r0 { color: #4a3420; } .lb-r1 { color: #2d7a2d; } .lb-r2 { color: #1f63c4; } .lb-r3 { color: #8a3fd0; } .lb-r4 { color: #c8361f; } .lb-r5 { color: #b80c00; font-weight: 900; }
.md-more { display: block; margin: 12px auto 0; padding: 9px 22px; color: #3a1e00; background: linear-gradient(180deg, #ffe08a, #f0a92a); border: 2px solid #fff; border-radius: 999px; box-shadow: 0 3px 0 #9a5a08; font-size: 14px; font-weight: 900; cursor: pointer; }
.md-empty { padding: 26px; color: var(--mc-sub); font-weight: 800; text-align: center; }
.md-name { display: flex; align-items: center; gap: 6px; font-weight: 800; }
.md-sub { display: block; color: var(--mc-sub); font-size: 12px; font-weight: 700; }

/* ================= 响应式 ================= */
@media (max-width: 980px) {
  .mc-layout { grid-template-columns: minmax(0, 1fr); }
  .mc-toc { display: none; }
  .mc-toc-m { display: block; margin: 0 0 14px; background: var(--mc-parch); border: 2px solid var(--mc-line); border-radius: 14px; }
  .mc-toc-m summary { padding: 10px 14px; color: var(--mc-red); font-weight: 900; cursor: pointer; }
  .mc-toc-m nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
  .mc-toc-m a { padding: 4px 10px; color: var(--mc-sub); background: #fff; border: 1.5px solid var(--mc-line); border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; }
  .mc-grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-route { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mc-job { grid-template-columns: minmax(0, 1fr); }
  .mc-job-art { max-width: 420px; }
  .mc-figs.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mc-hero-in { min-height: 380px; padding: 18px 12px 20px; }
  .mc-hero.mc-hero-sm .mc-hero-in { min-height: 170px; }
  .mc-hero-facts li { font-size: 12px; padding: 4px 10px; }
  .mc-sec > h2 { font-size: 18px; padding: 11px 14px; }
  .mc-sec > h2 small { display: none; }
  .mc-sec > *:not(h2) { margin-left: 13px; margin-right: 13px; }
  .mc-sec h3 { margin-left: 13px; margin-right: 13px; }
  .mc-sec h4 { margin-left: 13px; }
  .mc-grid.g2, .mc-grid.g3, .mc-grid.g4 { grid-template-columns: minmax(0, 1fr); }
  .mc-figs, .mc-figs.c3, .mc-figs.c4 { grid-template-columns: minmax(0, 1fr); }
  .mc-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-intro { padding: 14px; font-size: 14px; }
  .md-bar select { max-width: 100%; flex: 1 1 40%; }
  .md-tbl td { white-space: nowrap; }
  .md-tbl td.wrap { min-width: 220px; white-space: normal; }
  .md-tbl tr.md-detail td { white-space: normal; }
  .md-det { position: sticky; left: 0; max-width: calc(100vw - 56px); }
  .md-tbl td.n.wrap { min-width: 150px; }
  .mc-tbl { font-size: 12.8px; }
  .mc-chip-page { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mc-hero-logo { animation: none; }
}
