/* 游戏百科：中性页面、蓝色资料链接，色彩主要来自游戏素材。 */
:root {
  --paper: #f1f2f4;
  --paper-2: #fff;
  --paper-3: #f2f3f5;
  --ink: #292e35;
  --ink-2: #58616b;
  --ink-3: #69727c;
  --line: #d8dde3;
  --link: #285f9c;
  --leaf: #285f9c;
  --leaf-d: #285f9c;
  --leaf-l: #edf3fa;
  --magic: #805087;
  --magic-l: #f4eff6;
  --gold: #866128;
  --q0: #59616b;
  --q1: #376849;
  --q2: #805087;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 85px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.75 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: 28px; line-height: 1.45; font-weight: 600; }
h2 { margin: 28px 0 14px; padding-bottom: 6px; border-bottom: 1px solid #bdc6d0; font-size: 19px; font-weight: 600; }
h3 { margin: 24px 0 10px; font-size: 16px; }
p { margin-bottom: 14px; }
:focus-visible { outline: 2px solid #4d82be; outline-offset: 3px; }
[hidden] { display: none !important; }
.game-icon { display: inline-block; vertical-align: middle; object-fit: contain; flex-shrink: 0; }
.utility-symbol { font-size: 24px; line-height: 1; color: #737d88; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 15px; padding: 10px; background: white; }
.skip-link:focus { top: 8px; }

/* 页首及百科导航 */
.site-header { height: 62px; background: #343d48; border-bottom: 3px solid #7595b6; color: #fff; }
.header-inner { max-width: 1380px; padding: 0 24px; height: 100%; margin: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-text { font-weight: 600; font-size: 20px; letter-spacing: .5px; }
.brand-text b { display: inline-block; margin-left: 7px; padding-left: 11px; border-left: 1px solid #6f7987; color: #d6e4f4; font: 600 14px/1.2 system-ui, sans-serif; letter-spacing: 1px; }
.header-label { color: #bec7d1; font-size: 12px; }
.header-search { margin-left: auto; display: flex; width: 310px; height: 33px; background: #fff; border: 1px solid #b9c4ce; border-radius: 3px; overflow: hidden; }
.header-search input { background: transparent; border: 0; padding: 5px 11px; width: 100%; min-width: 0; font-size: 12px; color: var(--ink); }
.header-search button { flex-shrink: 0; border: 0; border-left: 1px solid #cad1d8; padding: 0 13px; background: #e9edf2; color: #35495e; font-size: 12px; }
.header-search button:hover { background: #dbe6f1; }
.site-shell { max-width: 1380px; padding: 24px 24px 0; margin: auto; display: grid; grid-template-columns: 166px minmax(0, 1fr); gap: 25px; }
.sidebar { min-width: 0; padding-top: 3px; }
.sidebar-emblem { display: flex; flex-direction: column; align-items: center; color: #3e4855; margin-bottom: 23px; }
.sidebar-emblem:hover { text-decoration: none; }
.sidebar-emblem strong { font-size: 19px; letter-spacing: 2px; margin: 8px 0 1px; }
.sidebar-emblem>span { font-size: 10px; color: var(--ink-2); }
.sidebar-label { color: #525d6b; font-size: 12px; border-bottom: 1px solid #cbd2da; margin: 19px 7px 9px; padding-bottom: 5px; }
.sidebar nav { display: grid; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: 9px; padding: 7px 8px; font-size: 13px; border-left: 3px solid transparent; }
.nav-link small { margin-left: auto; font-size: 10px; color: var(--ink-3); }
.nav-link.active { color: #253c58; background: #e1e8f0; border-left-color: #6389b5; font-weight: 600; }
.nav-link:hover { background: #e6ebf1; text-decoration: none; }
.sidebar-extra>a { display: block; font-size: 12px; padding: 3px 12px; }
.sidebar-extra p { padding: 1px 8px; font-size: 11px; color: var(--ink-2); line-height: 1.85; }
.page-column { min-width: 0; }
.page-tabs { height: 34px; display: flex; align-items: stretch; font-size: 12px; gap: 0; }
.page-tabs>span { padding: 6px 18px; border: 1px solid var(--line); border-bottom: 0; background: white; color: #343d48; position: relative; top: 1px; z-index: 1; }
.page-tabs>a { padding: 6px 17px; border-right: 1px solid var(--line); }
.page-tabs>a:last-child { margin-left: auto; border: 0; padding-right: 2px; }
.page-content { min-width: 0; padding: 28px 30px 35px; background: #fff; border: 1px solid var(--line); min-height: 650px; }
.site-footer { display: flex; align-items: center; gap: 15px; padding: 21px 0; color: #656e78; font-size: 11px; }
.site-footer strong { font-size: 11px; font-weight: 500; }
.site-footer p { margin: 0; }
.site-footer a { margin-left: auto; white-space: nowrap; }
.site-footer { flex-wrap: wrap; }
.site-footer .copyright { width: 100%; order: 9; padding-top: 10px; border-top: 1px solid var(--line); font-size: 10px; color: #7b848e; letter-spacing: .2px; }

/* 首页内容门户 */
.home-page { padding: 20px; }
.wiki-cover { position: relative; height: 230px; overflow: hidden; background: #dce8f0; border: 1px solid #c5d4dd; }
.wiki-cover>img { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; display: block; }
.wiki-cover>span { position: absolute; right: 0; bottom: 0; padding: 5px 12px; font-size: 10px; color: #38424c; background: #ffffffeb; }
.wiki-welcome { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 22px 3px 17px; }
.wiki-welcome h1 { font-size: 28px; margin: 0 0 9px; }
.wiki-welcome h1 span { color: #5b6a7d; font: 400 24px Georgia, serif; margin-left: 8px; }
.wiki-welcome p { margin: 3px 0; font-size: 12px; line-height: 1.9; color: #505964; }
.wiki-welcome p a { margin: 0 2px; }
.wiki-totals { display: flex; gap: 0; margin: 0; flex-shrink: 0; }
.wiki-totals>div { padding: 3px 17px; border-left: 1px solid var(--line); text-align: center; display: flex; flex-direction: column-reverse; }
.wiki-totals dt { font-size: 11px; color: #626e7c; }
.wiki-totals dd { margin: 0; font: 400 26px/1.4 Georgia, serif; color: #3c495a; }
.wiki-notice { display: flex; gap: 12px; padding: 9px 13px; background: #f8f5ec; border: 1px solid #e4dbc0; font-size: 11px; align-items: baseline; }
.wiki-notice strong { color: #795d30; flex-shrink: 0; font-weight: 600; }
.wiki-notice p { margin: 0; color: #645e51; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #edf0f4; border: 1px solid #cdd5df; border-left: 3px solid #849ab4; padding: 7px 11px; margin: 0 0 12px; font-size: 15px; font-weight: 600; color: #364556; }
.section-title h2 { font: inherit; border: 0; margin: 0; padding: 0; }
.section-title>a { font-size: 11px; font-weight: 400; white-space: nowrap; }
.wiki-navigation { margin: 22px 0 25px; }
.portal-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); padding: 5px 0 16px; }
.portal-link { display: flex; align-items: center; gap: 12px; padding: 7px 13px; border-right: 1px solid var(--line); }
.portal-link:last-child { border: 0; }
.portal-link:hover { background: #f5f7fa; text-decoration: none; }
.portal-link:hover strong { text-decoration: underline; }
.portal-link strong { font-size: 15px; font-weight: 600; }
.portal-link p { font-size: 10px; line-height: 1.8; color: var(--ink-2); margin: 4px 0 0; }
.portal-link small { font-size: 10px; color: var(--ink-3); }
.home-columns { display: grid; grid-template-columns: minmax(0, 1fr) 265px; gap: 24px; }
.home-primary, .home-secondary { min-width: 0; }
.item-directory { border: 1px solid var(--line); border-bottom: 0; }
.directory-row { display: grid; grid-template-columns: 75px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.directory-label { display: flex; align-items: center; justify-content: center; background: #f6f7f9; border-right: 1px solid var(--line); font-size: 12px; }
.directory-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 10px 5px; gap: 4px; }
.directory-items>a { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; font-size: 11px; }
.directory-items img { object-fit: contain; image-rendering: pixelated; }
.home-recipes { margin-top: 24px; }
.home-recipes .table-scroll { margin-top: 0; }
.home-recipes table { font-size: 11px; }
.home-recipes td, .home-recipes th { padding: 9px 10px; }
.home-recipes .cell-item { gap: 7px; }
.home-recipes .cell-item img { width: 30px; height: 30px; }
.home-secondary p { font-size: 12px; line-height: 1.95; margin: 12px 1px; }
.about-game dl { font-size: 11px; margin: 14px 0; border-top: 1px solid var(--line); }
.about-game dl>div { display: flex; padding: 8px 0; gap: 16px; border-bottom: 1px solid var(--line); }
.about-game dt { flex-shrink: 0; color: var(--ink-2); }
.about-game dd { margin: 0; }
.about-game>a { font-size: 12px; }
.getting-started { margin-top: 25px; }
.getting-started ol { padding-left: 25px; font-size: 12px; }
.getting-started li { padding-left: 2px; margin-bottom: 14px; }
.getting-started li::marker { color: #798999; }
.getting-started p { font-size: 11px; color: var(--ink-2); margin: 3px 0; }

/* 图鉴列表与内页标题 */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--ink-3); margin: 0 0 19px; flex-wrap: wrap; }
.page-heading { display: flex; align-items: center; gap: 15px; padding-bottom: 17px; border-bottom: 1px solid #bdc6d0; margin-bottom: 22px; }
.heading-icon { display: grid; place-items: center; width: 47px; flex-shrink: 0; }
.heading-icon .game-icon { width: 42px !important; height: 42px !important; }
.page-heading h1 { font-size: 27px; margin-bottom: 4px; }
.lede { color: var(--ink-2); font-size: 13px; }
.page-heading .lede { margin: 0; font-size: 12px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.catalog-search { display: flex; align-items: center; gap: 10px; border: 1px solid #aeb9c7; border-radius: 2px; padding: 7px 11px; max-width: 420px; flex: 1; }
.catalog-search input { border: 0; width: 100%; min-width: 0; outline: 0; font-size: 12px; }
.catalog-search:focus-within { outline: 2px solid #7296bd; outline-offset: 1px; }
.count { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-bottom: 20px; padding: 11px 0; border-top: 1px solid #e7eaef; border-bottom: 1px solid #e7eaef; }
.filters .label { font-size: 12px; color: var(--ink-2); margin-right: 8px; }
.chip { padding: 4px 11px; background: #f7f8fa; border: 1px solid #d2d9e1; border-radius: 2px; font-size: 12px; color: var(--link); }
.chip:hover { background: #e7eef7; }
.chip[aria-pressed="true"] { background: #e2ebf7; color: #244b77; border-color: #8ea9c8; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 10px; }
.grid a { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 8px 12px; border: 1px solid #dde2e8; background: #fafbfc; }
.grid a:hover { background: #f1f5fa; border-color: #9cb4cf; text-decoration: none; }
.grid a:hover .nm { text-decoration: underline; }
.grid img { width: 54px; height: 54px; object-fit: contain; image-rendering: pixelated; margin: 4px 0 10px; }
.grid .nm { font-size: 12px; line-height: 1.5; }
.grid .sub { font-size: 10px; color: var(--ink-3); margin-top: 5px; }
.noimg { display: grid; place-items: center; width: 54px; height: 54px; margin: 4px 0 10px; background: #eff1f4; color: var(--ink-3); }
.noimg:after { content: "暂无图标"; font-size: 10px; }
.empty { padding: 45px 15px; border: 1px solid var(--line); background: #fafbfc; text-align: center; color: var(--ink-2); }
.empty p { font-size: 12px; margin: 10px 0 18px; }
.tag { display: inline-block; vertical-align: middle; background: #eef0f3; color: #586573; border: 1px solid #dce1e7; font-size: 10px; line-height: 1.6; padding: 2px 6px; border-radius: 2px; }
.tag.leaf { background: #eff4f9; color: #3d638c; border-color: #d6e1ed; }
.tag.magic { background: var(--magic-l); color: var(--magic); border-color: #e3d9e8; }
.tag.gold { background: #fbf5e8; color: var(--gold); border-color: #e9dec5; }
.q0 { color: var(--q0); }.q1 { color: var(--q1); }.q2 { color: var(--q2); }

/* 数据表、物品属性及世界观正文 */
.table-scroll { overflow-x: auto; border: 1px solid #cdd5df; margin: 16px 0 24px; }
table { border-collapse: collapse; width: 100%; font-size: 12px; background: white; text-align: left; }
thead th { padding: 11px 13px; color: #344558; font-size: 11px; font-weight: 600; background: #edf1f6; border-bottom: 1px solid #cdd5df; white-space: nowrap; }
tbody td { padding: 12px 13px; border-bottom: 1px solid #e0e5eb; vertical-align: middle; }
tbody tr:nth-child(even) { background: #f8f9fb; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #eff4f9; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cell-item { display: flex; align-items: center; gap: 9px; min-width: 100px; }
.cell-item img { width: 34px; height: 34px; flex-shrink: 0; object-fit: contain; image-rendering: pixelated; }
.recipe-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.recipe-row img { width: 28px; height: 28px; object-fit: contain; image-rendering: pixelated; }
.plus, .arrow { color: var(--ink-3); font-size: 12px; }
.card { padding: 13px 15px; border: 1px solid var(--line); background: #f8f9fb; }
.note { border: 1px solid #ded8c8; background: #faf7ef; color: #73644a; padding: 12px 15px; font-size: 12px; margin: 22px 0; }
.table-hint { font-size: 11px; color: var(--ink-3); margin: 0 0 10px; }
.recipes-page table { min-width: 710px; }
.crops-page table { min-width: 680px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 28px; align-items: start; }
.detail-body { min-width: 0; }
.detail-body h1 { border-bottom: 1px solid #bbc5d0; padding-bottom: 11px; }
.detail-body .lede { margin-bottom: 15px; }
.infobox { grid-column: 2; grid-row: 1; position: sticky; top: 20px; border: 1px solid #bfcad7; background: #f8f9fb; overflow: hidden; }
.infobox-head { background: #e7edf5; border-bottom: 1px solid #c6d1df; color: #334b68; padding: 9px 14px; text-align: center; font-size: 15px; font-weight: 600; }
.infobox-art { display: grid; place-items: center; min-height: 162px; border-bottom: 1px solid #d6dee7; background: white; }
.infobox-art img { width: 92px; height: 92px; object-fit: contain; image-rendering: pixelated; }
.infobox dl { margin: 0; padding: 3px 13px 7px; font-size: 12px; }
.infobox dl>div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #e0e5eb; }
.infobox dl>div:last-child { border: 0; }
.infobox dt { color: var(--ink-2); flex-shrink: 0; }
.infobox dd { margin: 0; text-align: right; }
.detail-body .grid { grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); }
.lore-layout { display: grid; grid-template-columns: minmax(0, 1fr) 145px; gap: 35px; }
.lore-body { font-size: 14px; line-height: 1.95; min-width: 0; }
.lore-body h2:first-child { margin-top: 0; }
.lore-body table { min-width: 420px; }
.toc { align-self: start; position: sticky; top: 25px; padding: 12px 14px; border: 1px solid #cdd5df; background: #f7f8fa; font-size: 12px; }
.toc strong { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 8px; }
.toc a { display: block; margin: 8px 0; }

@media (max-width: 1180px) {
  .site-shell { grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 20px 18px 0; }
  .page-content { padding: 23px; }
  .home-page { padding: 17px; }
  .portal-link { gap: 9px; padding: 7px 9px; }
  .portal-link .game-icon { width: 40px !important; height: 40px !important; }
  .portal-link strong { font-size: 13px; }
  .portal-link p { display: none; }
  .portal-link small { display: block; margin-top: 4px; }
  .home-columns { grid-template-columns: minmax(0, 1fr) 220px; gap: 18px; }
  .wiki-totals>div { padding: 3px 12px; }
  .directory-row { grid-template-columns: 65px minmax(0, 1fr); }
  .directory-items>a { font-size: 10px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 22px; }
}
@media (max-width: 960px) {
  .header-label { display: none; }
  .site-shell { display: block; padding: 0 20px; }
  .sidebar { padding: 0; }
  .sidebar-emblem, .sidebar>.sidebar-label, .sidebar-extra { display: none; }
  .sidebar nav { display: flex; overflow-x: auto; gap: 0; padding: 11px 0; }
  .nav-link { border-left: 0; border-bottom: 2px solid transparent; padding: 7px 14px; flex-shrink: 0; }
  .nav-link.active { border-bottom-color: #6389b5; }
  .nav-link small { display: none; }
  .page-tabs { margin-top: 1px; }
  .page-content { min-height: 600px; }
  .wiki-cover { height: 205px; }
  .wiki-welcome { gap: 15px; }
  .wiki-welcome h1 { font-size: 25px; }
  .wiki-totals>div { padding: 3px 10px; }
  .wiki-totals dd { font-size: 23px; }
  .home-columns { grid-template-columns: minmax(0, 1fr) 225px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 15px; }
  .site-header { height: auto; }
  .header-inner { flex-wrap: wrap; padding: 10px 16px 13px; gap: 10px; }
  .brand-text { font-size: 19px; }
  .brand>.game-icon { width: 32px !important; height: 32px !important; }
  .brand-text b { font-size: 12px; }
  .header-search { width: 100%; height: 32px; }
  .site-shell { padding: 0 10px; }
  .sidebar nav { padding: 7px 0; }
  .nav-link { font-size: 11px; padding: 7px 9px; gap: 6px; }
  .nav-link .game-icon { width: 21px !important; height: 21px !important; }
  .page-tabs { height: 32px; font-size: 11px; }
  .page-tabs>span, .page-tabs>a { padding: 5px 11px; }
  .page-content { padding: 20px 15px; min-height: 450px; }
  .home-page { padding: 11px; }
  .wiki-cover { height: 160px; }
  .wiki-cover>img { object-position: center 63%; }
  .wiki-cover>span { font-size: 8px; padding: 3px 6px; }
  .wiki-welcome { flex-direction: column; align-items: stretch; padding: 17px 2px 13px; gap: 13px; }
  .wiki-welcome h1 { font-size: 24px; }
  .wiki-welcome h1 span { font-size: 22px; }
  .wiki-welcome p { font-size: 12px; }
  .wiki-totals { border-top: 1px solid #e2e6eb; padding-top: 9px; }
  .wiki-totals>div { flex: 1; padding: 0 12px; flex-direction: row; gap: 10px; align-items: baseline; justify-content: center; }
  .wiki-totals>div:first-child { border: 0; }
  .wiki-totals dd { font-size: 21px; }
  .wiki-notice { font-size: 10px; padding: 7px 9px; gap: 9px; }
  .wiki-navigation { margin: 18px 0; }
  .section-title { font-size: 14px; padding: 6px 9px; margin-bottom: 10px; }
  .section-title>a { font-size: 10px; }
  .portal-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; padding: 3px 0 14px; }
  .portal-link { padding: 5px 9px; gap: 11px; }
  .portal-link:nth-child(even) { border: 0; }
  .portal-link .game-icon { width: 40px !important; height: 40px !important; }
  .portal-link strong { font-size: 13px; }
  .portal-link small { font-size: 10px; }
  .home-columns { display: block; }
  .home-secondary { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
  .getting-started { margin: 0; }
  .directory-row { grid-template-columns: 56px minmax(0, 1fr); }
  .directory-label { font-size: 10px; }
  .directory-items { padding: 9px 3px; gap: 2px; }
  .directory-items>a { font-size: 9px; gap: 4px; }
  .directory-items img { width: 31px; height: 31px; }
  .home-recipes table { min-width: 420px; }
  .site-footer { flex-wrap: wrap; font-size: 10px; gap: 6px 10px; padding: 17px 2px; }
  .site-footer p { order: 3; width: 100%; font-size: 9px; }
  .site-footer .copyright { font-size: 9px; line-height: 1.7; padding-top: 8px; }
  .breadcrumb { font-size: 10px; margin-bottom: 18px; }
  .page-heading { gap: 10px; margin-bottom: 18px; padding-bottom: 15px; }
  .heading-icon { width: 35px; }
  .heading-icon .game-icon { width: 34px !important; height: 34px !important; }
  .page-heading h1 { font-size: 24px; }
  .page-heading .lede { font-size: 11px; }
  .catalog-toolbar { gap: 10px; }
  .count { font-size: 10px; }
  .catalog-search { gap: 7px; padding: 6px 9px; }
  .catalog-search input { font-size: 11px; }
  .filters { padding: 9px 0; gap: 5px; }
  .filters .label { display: none; }
  .chip { padding: 4px 9px; font-size: 11px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .grid a { padding: 11px 5px; }
  .grid img { width: 46px; height: 46px; }
  .grid .nm { font-size: 11px; }
  .detail-layout { display: flex; flex-direction: column; gap: 22px; }
  .infobox { position: static; width: 100%; }
  .infobox-art { min-height: 140px; }
  .infobox dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; font-size: 11px; }
  .detail-body { width: 100%; }
  .detail-body h1 { font-size: 25px; }
  .detail-body table { min-width: 410px; }
  .detail-body .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lore-layout { display: flex; flex-direction: column; gap: 20px; }
  .toc { position: static; order: -1; display: flex; align-items: center; flex-wrap: wrap; gap: 7px 13px; width: 100%; padding: 10px 12px; }
  .toc strong, .toc a { font-size: 11px; margin: 0; }
  .lore-body { font-size: 13px; }
  .table-hint { font-size: 10px; }
}
