:root {
  --forest: #173831; --forest-deep: #102d27; --green: #246a51; --paper: #f1f3ec;
  --surface: #fffefa; --ink: #243c33; --muted: #64735c; --line: #dfe5da; --amber: #d9ab56;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.5 var(--sans); }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:disabled, input:disabled { cursor: wait; opacity: .55; }
a { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #cf963c; outline-offset: 3px; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 20px; top: -90px; z-index: 20; background: var(--forest); color: white; padding: 12px; }
.skip-link:focus { top: 12px; }
.app-shell { display: grid; grid-template-columns: 218px minmax(0, 1fr); height: 100dvh; min-height: 0; }
.sidebar { display: flex; flex-direction: column; min-height: 0; padding: 30px 20px 22px; background: var(--forest-deep); color: #ecf1e7; position: relative; overflow: hidden; }
.sidebar::after { content: ""; position: absolute; pointer-events: none; inset: 0; opacity: .1; background-image: repeating-linear-gradient(130deg, transparent 0 55px, #a4bdac 56px, transparent 57px); }
.sidebar > * { position: relative; z-index: 1; }
.sidebar > :not(.category-nav) { flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-symbol { display: grid; place-items: center; width: 43px; height: 49px; border: 1px solid #66846a; border-radius: 12px 12px 20px 20px; background: #21473b; color: #edcb80; flex-shrink: 0; }
.brand-symbol svg { width: 29px; height: 29px; }
.brand-text { font: 8px Georgia, serif; letter-spacing: 2px; color: #b6c7b9; }
.brand-text strong { display: block; font: 600 19px var(--serif); letter-spacing: 1px; color: #f9f6e7; margin-top: 5px; }
.sidebar-caption { font-size: 11px; color: #a6bfa9; margin: 22px 0 24px; }
.category-nav { display: flex; flex-direction: column; gap: 5px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.nav-caption { color: #8fac98; font-size: 10px; letter-spacing: 2px; margin: 22px 12px 8px; }
.nav-caption:first-child { margin-top: 0; }
.category-button { display: flex; flex-shrink: 0; align-items: center; gap: 11px; min-height: 46px; border: 1px solid transparent; border-radius: 8px; background: transparent; padding: 11px 12px; color: #b9cfc1; text-align: left; }
.category-button:hover { background: #25453a; color: white; }
.category-button.active { color: #f6e3b2; background: #345142; border-color: #657853; box-shadow: inset 3px 0 #d7af60; }
.nav-icon { width: 19px; height: 19px; display: inline-flex; flex-shrink: 0; }
.nav-icon svg { width: 100%; height: 100%; }
.category-label { flex: 1; font-size: 13px; }
.category-count { font: 11px Georgia, serif; opacity: .7; }
.sidebar-bottom { border-top: 1px solid #385448; padding: 19px 12px 0; }
.edition-label { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #cad9c9; }
.status-dot { width: 5px; height: 5px; background: #a9c994; border-radius: 50%; }
.game-version { font-size: 9px; color: #93ac9b; line-height: 1.8; margin: 8px 0 12px; overflow-wrap: anywhere; }
.sidebar-bottom a { display: flex; justify-content: space-between; color: #a6bcae; font-size: 10px; text-decoration: none; padding: 4px 0; }
.sidebar-bottom a:hover { color: #f6e3b2; }
.main-content { height: 100%; min-height: 0; min-width: 0; padding: 28px 32px 12px; display: flex; flex-direction: column; }
.page-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.header-actions { display: flex; flex-direction: column; align-items: end; gap: 8px; flex-shrink: 0; }
.page-help { position: relative; font-size: 11px; }
.page-help summary { cursor: pointer; }
.page-help p { position: absolute; right: 0; top: 24px; z-index: 10; width: 250px; margin: 0; padding: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 6px 18px #0004; line-height: 1.8; }
.query-tools { flex-shrink: 0; position: relative; z-index: 2; background: var(--paper); }
.eyebrow { font: 9px Georgia, serif; color: #7e9079; letter-spacing: 2.1px; }
h1 { font: 600 32px/1.4 var(--serif); letter-spacing: 2px; margin: 6px 0; }
.page-header p { margin: 0; color: #697b6c; font-size: 12px; }
.header-emblem { border-left: 1px solid #d7dece; padding-left: 28px; color: #788e72; display: flex; align-items: center; gap: 14px; }
.header-emblem svg { width: 65px; height: 65px; }
.header-emblem span { writing-mode: vertical-rl; font: 11px var(--serif); letter-spacing: 3px; }
.search-toolbar { display: flex; align-items: end; gap: 12px; }
.search-field { flex: 1; min-width: 0; }
.search-field > span, .select-field > span { display: block; font-size: 11px; font-weight: 600; margin-bottom: 7px; color: #5c7360; }
.input-wrap { position: relative; }
.input-wrap svg { position: absolute; left: 13px; top: 14px; width: 18px; height: 18px; color: #6f8a73; }
.input-wrap input { border: 1px solid #cfd9c9; background: var(--surface); border-radius: 9px; height: 46px; width: 100%; padding: 10px 14px; min-width: 0; }
.input-wrap:has(svg) input { padding-left: 40px; padding-right: 42px; }
.input-wrap input::placeholder { color: #8c988b; font-size: 12px; }
kbd { position: absolute; right: 12px; top: 12px; font: 12px Georgia, serif; border: 1px solid #dfe5d8; border-radius: 4px; padding: 1px 6px; color: #8c988b; pointer-events: none; }
.select-field select { height: 46px; border: 1px solid #cfd9c9; border-radius: 9px; background: #fffefa; padding: 0 28px 0 12px; }
.reset-button { border: 1px solid #cfd9c9; border-radius: 9px; background: transparent; height: 46px; padding: 0 17px; font-size: 12px; }
.reset-button:hover { background: #e4eade; }
.player-filters { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 0 17px; border-bottom: 1px solid #dce3d5; }
.filter-select { display: flex; gap: 8px; align-items: center; font-size: 11px; color: #6c7e6b; }
.filter-select select { border: 1px solid #d2ddcd; border-radius: 6px; background: transparent; padding: 5px 22px 5px 8px; max-width: 150px; }
.effect-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-chip { font-size: 11px; border: 1px solid #d5dece; border-radius: 6px; background: transparent; padding: 6px 10px; color: #526d58; }
.filter-chip.active { background: #246a51; border-color: #246a51; color: white; }
.filter-chip:hover { border-color: #66826a; }
.check-filter { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #617862; margin-left: auto; cursor: pointer; }
input[type="checkbox"] { accent-color: var(--green); width: 14px; height: 14px; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 12px; min-height: 45px; }
.results-toolbar strong { font-size: 12px; font-weight: 600; }
#filterSummary { font-size: 10px; color: #778974; margin-left: 10px; }
.results-toolbar label { display: flex; gap: 6px; align-items: center; font-size: 10px; color: #6c7e6b; }
.results-toolbar select { border: 0; background: transparent; font-size: 11px; padding: 4px 0; max-width: 150px; }
.workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(355px, .85fr); gap: 20px; }
.entries-panel { min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.entry-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bdcbbb transparent; padding: 1px 6px 12px 1px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; align-content: start; }
.entry-card { display: flex; flex-direction: column; border: 1px solid #dce4d5; border-radius: 12px; background: var(--surface); padding: 15px; text-align: left; min-width: 0; position: relative; }
.entry-card:hover { border-color: #95b395; box-shadow: 0 5px 16px #263e2b0a; }
.entry-card.active { border-color: #3b825f; box-shadow: 0 0 0 1px #3b825f; background: #fbfef6; }
.card-top { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.entry-art { display: grid; place-items: center; width: 55px; height: 55px; border-radius: 10px; background: #edf1e4; flex-shrink: 0; overflow: hidden; position: relative; color: #759070; }
.entry-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, #fffdf18a, transparent 70%); }
.entry-art img { width: 100%; height: 100%; object-fit: contain; padding: 4px; position: relative; }
.entry-art svg { width: 28px; height: 28px; opacity: .6; }
.card-heading { min-width: 0; flex: 1; }
.entry-name { display: block; font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.entry-meta { color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; font-size: 10px; margin-top: 4px; }
.entry-meta .quality-label { color: #916b30; }
.tag-list { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { border: 1px solid #dce5cf; border-radius: 5px; background: #edf3e4; padding: 3px 7px; font-size: 10px; color: #5b7446; line-height: 1.5; }
button.tag:hover { border-color: #7e9e61; background: #e0ebd2; }
.tag-count { font: 11px Georgia, serif; margin-left: 4px; color: #62734b; }
.card-tags { min-height: 23px; margin-bottom: 12px; }
.card-tag-label { align-self: center; color: var(--muted); font-size: 10px; margin-right: 3px; }
.card-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(48px,1fr)); border-top: 1px solid #e5eadf; padding-top: 10px; gap: 4px; }
.card-stat { display: flex; flex-direction: column; gap: 3px; font-size: 10px; color: var(--muted); }
.card-stat b { font: 600 16px Georgia, serif; color: #396952; }
.card-stat b.negative { color: #9a4830; }
.card-stat b.zero { color: #62735b; }
.entry-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #62735b; font-size: 11px; line-height: 1.8; margin-top: 10px; }
.entry-description.material-preview { -webkit-line-clamp: 1; }
.effect-chip b { font: 600 12px Georgia, serif; color: #396952; margin-left: 3px; }
.entry-materials { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px 10px; margin-top: 10px; align-items: center; }
.entry-materials-level, .entry-material-note { color: var(--muted); font-size: 10px; }
.entry-material { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 11px; color: #526d45; }
.entry-material .entry-art { width: 26px; height: 26px; border-radius: 5px; background: #f1f5e9; }
.entry-material .entry-art img { padding: 1px; }
.entry-material .entry-art svg { width: 16px; height: 16px; }
.entry-material-name { overflow-wrap: anywhere; }
.entry-material-count { font: 600 12px Georgia, serif; color: #396952; white-space: nowrap; }
@media (min-width: 721px) {
  .entry-materials { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .entry-materials-level, .entry-material-note { grid-column: 1 / -1; }
}
.loading-state { color: #768b73; padding: 45px 15px; grid-column: 1 / -1; }
.empty-state { text-align: center; padding: 55px 20px; color: var(--muted); }
.empty-state > span { font: 48px Georgia, serif; color: #7d9775; }
.empty-state h2 { font: 600 19px var(--serif); color: var(--ink); }
.empty-state p { font-size: 12px; line-height: 1.9; }
.empty-state button, .load-error button { border: 0; border-radius: 6px; background: var(--green); color: white; padding: 11px 16px; font-size: 12px; margin-top: 12px; }
.detail-panel { margin: 0; padding: 0; border: 1px solid #d7e0d0; border-radius: 14px; background: var(--surface); color: var(--ink); width: auto; height: 100%; max-width: none; max-height: 100%; overflow: hidden; position: relative; min-width: 0; min-height: 0; align-self: stretch; box-shadow: 0 7px 30px #1b392308; }
.detail-panel[open] { display: flex; flex-direction: column; }
.detail-panel::backdrop { background: #0f282ad9; backdrop-filter: blur(3px); }
.detail-toolbar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e1e7db; background: #f8faf2; padding: 0 23px; height: 43px; min-height: 43px; color: #67805e; font-size: 10px; letter-spacing: 1px; }
.close-detail { display: none; border: 0; background: transparent; padding: 8px 0 8px 10px; font-size: 12px; }
.detail-content { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bdcbbb transparent; min-height: 0; flex: 1; padding: 25px 25px 30px; }
.detail-hero { display: flex; align-items: center; gap: 17px; margin-bottom: 19px; }
.detail-art { width: 86px; height: 86px; border-radius: 15px; background: #edf1e3; }
.detail-hero-text { min-width: 0; }
.detail-category { color: #8f824f; font-size: 10px; letter-spacing: 1px; }
.detail-hero h2 { font: 600 26px/1.4 var(--serif); letter-spacing: .5px; margin: 6px 0 4px; overflow-wrap: anywhere; }
.detail-id { color: var(--muted); font: 10px Georgia, serif; }
.section-heading { font-size: 12px; font-weight: 600; margin: 0 0 13px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-heading span { color: var(--muted); font-size: 10px; font-weight: normal; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(74px,1fr)); gap: 6px; margin: 0; }
.stat-tile { padding: 11px 4px 10px; border: 1px solid #e0e7d7; background: #f7faf1; border-radius: 8px; text-align: center; }
.stat-tile dt { color: #62735b; font-size: 10px; }
.stat-tile dd { margin: 5px 0 0; font: 600 22px Georgia, serif; color: #327256; }
.stat-tile.negative { background: #fff3ec; border-color: #efd5c6; }
.stat-tile.negative dd { color: #9a4830; }
.stat-tile.zero dd { color: #62735b; }
.stat-help { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.detail-section { margin: 23px 0; }
.food-note { border-left: 3px solid #d6b568; padding: 9px 12px; background: #f8f3e4; border-radius: 0 6px 6px 0; font-size: 12px; line-height: 1.8; color: #786b42; margin: 15px 0; }
.food-info { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; margin-top: 10px; color: var(--muted); }
.food-info b { color: #4f724c; font-weight: 500; }
.detail-description { color: var(--muted); font-size: 12px; line-height: 1.9; margin: 13px 0; }
.quality-tabs { display: flex; gap: 5px; margin: 0 0 14px; }
.quality-tab { flex: 1; border: 1px solid #dae4d1; background: transparent; border-radius: 6px; padding: 8px 3px; font-size: 11px; color: #798570; }
.quality-tab.active { background: #325c43; border-color: #325c43; color: #f7ebc6; }
.quality-tab[data-quality="失败"].active { background: #9d5d43; border-color: #9d5d43; color: white; }
.product-caption { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.ingredient-group { margin: 12px 0; }
.ingredient-label { font-size: 10px; color: var(--muted); margin-bottom: 8px; }
.relation-values { display: flex; flex-wrap: wrap; gap: 6px; }
.relation-item { display: inline-flex; align-items: center; gap: 5px; background: #f1f5e9; border: 1px solid #dfe7d5; border-radius: 6px; padding: 7px 9px; font-size: 11px; text-decoration: none; color: #526d45; max-width: 100%; overflow-wrap: anywhere; }
a.relation-item:hover { border-color: #80a06b; background: #e6efdb; }
.relation-id { color: #849178; font-size: 9px; }
.relation-item .entry-art { width: 24px; height: 24px; border-radius: 4px; background: transparent; }
.relation-item .entry-art img { padding: 0; }
.highlights { margin: 0; }
.highlight-row { display: grid; grid-template-columns: 83px minmax(0,1fr); padding: 10px 0; gap: 10px; border-bottom: 1px solid #e8ecdf; font-size: 12px; line-height: 1.8; }
.highlight-row dt { color: var(--muted); font-size: 11px; }
.highlight-row dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.recipe-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none; border-top: 1px solid #e6ebdf; padding: 10px 0; }
.recipe-link .recipe-name { font-size: 12px; font-weight: 600; }
.recipe-link .recipe-hint { display: block; color: var(--muted); font-size: 10px; font-weight: normal; margin-top: 3px; }
.recipe-link .recipe-effect { font: 12px Georgia, var(--sans); color: #4b7752; white-space: nowrap; }
.recipe-link:hover .recipe-name { color: #247357; }
.more-recipes { border: 1px solid #c8d8bd; border-radius: 7px; background: #edf4e5; padding: 10px; width: 100%; font-size: 11px; color: #456d39; margin-top: 6px; }
.notes-list { padding-left: 18px; color: #6b7e61; font-size: 12px; line-height: 1.9; }
.raw-details { border-top: 1px solid #e1e7da; margin-top: 25px; }
.raw-details summary { cursor: pointer; color: var(--muted); font-size: 10px; padding: 16px 0; }
.config-fields { margin: 0; }
.config-row { display: grid; grid-template-columns: minmax(90px,.7fr) minmax(0,1fr); gap: 10px; padding: 9px 0; border-top: 1px solid #ecefe5; font-size: 11px; line-height: 1.8; }
.config-row dt { color: var(--muted); overflow-wrap: anywhere; }
.config-row dt small { display: block; font-size: 9px; color: var(--muted); }
.config-row dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.detail-source { margin-top: 15px; font: 9px/1.9 Georgia, var(--sans); color: var(--muted); overflow-wrap: anywhere; }
.detail-placeholder { display: grid; place-items: center; min-height: 250px; color: var(--muted); font-size: 12px; }
.load-error { padding: 23px; border: 1px solid #debea0; border-radius: 10px; background: #fff4e9; margin-top: 15px; }
.load-error h2 { font-size: 16px; }
.load-error p { font-size: 12px; }
.page-footer { display: flex; flex-shrink: 0; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 9px; margin-top: 12px; }
.page-footer a { text-decoration: none; margin-left: 4px; }
.noscript { padding: 20px; }
.detail-permalink { display: inline-block; margin-top: 8px; color: var(--green); font-size: 11px; text-underline-offset: 3px; }
@media (min-width: 1650px) {
  .main-content { padding: 35px 44px 16px; }
  .workspace { grid-template-columns: minmax(0,1fr) 475px; gap: 27px; }
  .entry-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .entry-card { padding: 18px; }
}
@media (max-width: 1250px) {
  .app-shell { grid-template-columns: 190px minmax(0,1fr); }
  .sidebar { padding: 25px 15px 18px; }
  .brand-text strong { font-size: 17px; }
  .main-content { padding: 24px 22px 12px; }
  .workspace { grid-template-columns: minmax(0,1fr) minmax(325px,.95fr); gap: 14px; }
  .entry-list { grid-template-columns: minmax(0,1fr); }
  .card-top { margin-bottom: 10px; }
  .card-tags { min-height: 0; }
  .detail-content { padding: 22px; }
  .player-filters { gap: 10px; }
  .check-filter { margin-left: 0; }
  .filter-chip { padding: 5px 8px; }
}
@media (max-width: 960px) {
  .app-shell { display: flex; flex-direction: column; }
  .sidebar { padding: 15px 22px 0; }
  .brand { margin-bottom: 17px; }
  .brand-symbol { height: 37px; width: 35px; border-radius: 9px; }
  .brand-symbol svg { width: 25px; height: 25px; }
  .brand-text { display: flex; align-items: baseline; gap: 12px; }
  .brand-text strong { margin: 0; font-size: 18px; }
  .sidebar { flex-shrink: 0; }
  .sidebar-caption, .sidebar-bottom, .nav-caption { display: none; }
  .category-nav { flex: none; flex-direction: row; overflow-x: auto; overflow-y: hidden; padding-bottom: 13px; scrollbar-width: none; }
  .category-button { flex-shrink: 0; padding: 8px 11px; min-height: 36px; gap: 7px; }
  .category-label { font-size: 12px; }
  .category-count { font-size: 10px; }
  .nav-icon { width: 16px; height: 16px; }
  .main-content { flex: 1; height: auto; min-height: 0; padding-top: 22px; }
  .page-header { margin-bottom: 18px; }
  h1 { font-size: 29px; }
  .header-emblem svg { width: 48px; height: 48px; }
}
@media (max-width: 720px) {
  .app-shell { display: block; height: auto; min-height: 100dvh; }
  .sidebar { padding: 14px 16px 0; }
  .brand-text { font-size: 7px; letter-spacing: 1.5px; }
  .main-content { height: auto; min-height: 0; padding: 22px 16px 16px; }
  .query-tools { position: sticky; top: 0; padding-top: 8px; margin-top: -8px; box-shadow: 0 6px 10px #0003; }
  .header-actions { gap: 7px; }
  .page-header { margin-bottom: 20px; }
  .page-header p { font-size: 11px; }
  h1 { font-size: 27px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.6px; }
  .header-emblem { padding-left: 12px; }
  .header-emblem svg { width: 42px; height: 42px; }
  .header-emblem span { display: none; }
  .search-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px 8px; }
  #materialField, #ingredientField { grid-row: 2; grid-column: 1; }
  #qualityField { grid-row: 2; grid-column: 2; }
  #resetSearch { grid-row: 1; grid-column: 2; padding: 0 14px; }
  .player-filters { padding: 13px 0; gap: 10px; }
  .effect-filters { order: 3; width: 100%; gap: 5px; }
  .filter-chip { flex: 1; padding: 6px 4px; font-size: 10px; white-space: nowrap; }
  .check-filter { margin-left: auto; }
  .results-toolbar { padding: 12px 0; }
  #filterSummary { display: none; }
  .workspace { display: block; }
  .entry-list { overflow: visible; padding-right: 1px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .entry-card { padding: 12px 11px; border-radius: 10px; }
  .card-top { gap: 8px; align-items: start; }
  .entry-art { width: 41px; height: 41px; border-radius: 8px; }
  .entry-name { font-size: 12px; }
  .entry-meta { font-size: 9px; gap: 3px; }
  .card-tags { gap: 4px; margin-bottom: 10px; }
  .tag { font-size: 9px; padding: 2px 5px; }
  .card-stat { font-size: 10px; }
  .card-stat b { font-size: 14px; }
  .card-stats { gap: 8px 4px; }
  .card-stat { align-items: center; }
  .entry-description { font-size: 10px; }
  .entry-card.active { box-shadow: none; border-color: #dce4d5; background: var(--surface); }
  .detail-panel { position: fixed; inset: 9px; width: calc(100% - 18px); height: calc(100dvh - 18px); border-radius: 14px; }
  .detail-panel:not([open]) { display: none; }
  .detail-toolbar { padding: 0 20px; height: 47px; min-height: 47px; }
  .close-detail { display: block; }
  .detail-content { padding: 24px 20px 30px; }
  .detail-art { width: 82px; height: 82px; }
  .detail-hero h2 { font-size: 25px; }
  .stat-tile dd { font-size: 21px; }
  .page-footer { margin-top: 20px; line-height: 1.8; }
  .page-footer span:last-child { text-align: right; }
}
@media (max-width: 360px) {
  .main-content { padding-left: 12px; padding-right: 12px; }
  .entry-list { grid-template-columns: minmax(0,1fr); }
  .entry-name { font-size: 14px; }
  .entry-art { width: 48px; height: 48px; }
  .card-stat { font-size: 10px; }
  .card-stat b { font-size: 15px; }
}
@media (prefers-reduced-motion: no-preference) {
  .entry-card { transition: border-color .15s, box-shadow .15s, background .15s; }
  .main-content { animation: arrive .3s ease-out; }
  @keyframes arrive { from { opacity: .5; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
}

/* 猎物页：稀有度星级与捕获信息卡片 */
.prey-rarity { color: #cf963c; font-size: 12px; letter-spacing: 2px; }
.entry-meta .prey-rarity + span::before { content: "· "; }
