:root {
  --ink: #080707;
  --ink-soft: #100c0b;
  --panel: rgba(17, 12, 10, 0.9);
  --panel-strong: #15100e;
  --red: #bd2c22;
  --red-bright: #db3b2c;
  --red-deep: #52140f;
  --gold: #c69539;
  --gold-light: #f0cd76;
  --teal: #38c6b2;
  --white: #f2e5c9;
  --text: #d9cab1;
  --muted: #988b7a;
  --line: rgba(194, 145, 55, 0.28);
  --sans: "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  --serif: "STKaiti", KaiTi, "Songti SC", serif;
}
* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
.page-background {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image: url("assets/xtl-fyld-1920x1200.webp");
  background-position: center top;
  background-size: cover;
}
.page-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 7, 7, 0.30) 0%, rgba(16, 12, 11, 0.10) 47%, rgba(8, 7, 7, 0.0) 100%),
    linear-gradient(90deg, rgba(8, 7, 7, 0.58), rgba(48, 19, 13, 0.24), rgba(8, 7, 7, 0.58));
}
.ember-particles {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.ember-particles i {
  position: absolute;
  bottom: -12px;
  left: var(--ember-x);
  width: var(--ember-size);
  height: calc(var(--ember-size) * 1.8);
  background: #e33722;
  box-shadow: 0 0 5px rgba(255, 67, 35, 0.88), 0 0 10px rgba(157, 17, 10, 0.52);
  opacity: 0;
  transform: translate3d(0, 0, 0) rotate(18deg);
  animation: emberRise var(--ember-duration) linear infinite;
  animation-delay: var(--ember-delay);
  will-change: transform, opacity;
}
.ember-particles i:nth-child(1) { --ember-x: 4%; --ember-size: 2px; --ember-duration: 9s; --ember-delay: -2s; --ember-drift: 24px; }
.ember-particles i:nth-child(2) { --ember-x: 11%; --ember-size: 3px; --ember-duration: 12s; --ember-delay: -8s; --ember-drift: -18px; }
.ember-particles i:nth-child(3) { --ember-x: 19%; --ember-size: 2px; --ember-duration: 10s; --ember-delay: -5s; --ember-drift: 15px; }
.ember-particles i:nth-child(4) { --ember-x: 28%; --ember-size: 4px; --ember-duration: 14s; --ember-delay: -11s; --ember-drift: -28px; }
.ember-particles i:nth-child(5) { --ember-x: 37%; --ember-size: 2px; --ember-duration: 11s; --ember-delay: -4s; --ember-drift: 20px; }
.ember-particles i:nth-child(6) { --ember-x: 44%; --ember-size: 3px; --ember-duration: 13s; --ember-delay: -9s; --ember-drift: -12px; }
.ember-particles i:nth-child(7) { --ember-x: 52%; --ember-size: 2px; --ember-duration: 9s; --ember-delay: -6s; --ember-drift: 27px; }
.ember-particles i:nth-child(8) { --ember-x: 59%; --ember-size: 4px; --ember-duration: 15s; --ember-delay: -13s; --ember-drift: -22px; }
.ember-particles i:nth-child(9) { --ember-x: 66%; --ember-size: 2px; --ember-duration: 10s; --ember-delay: -3s; --ember-drift: 17px; }
.ember-particles i:nth-child(10) { --ember-x: 73%; --ember-size: 3px; --ember-duration: 12s; --ember-delay: -10s; --ember-drift: -26px; }
.ember-particles i:nth-child(11) { --ember-x: 81%; --ember-size: 2px; --ember-duration: 11s; --ember-delay: -7s; --ember-drift: 14px; }
.ember-particles i:nth-child(12) { --ember-x: 87%; --ember-size: 4px; --ember-duration: 14s; --ember-delay: -5s; --ember-drift: -19px; }
.ember-particles i:nth-child(13) { --ember-x: 93%; --ember-size: 2px; --ember-duration: 9s; --ember-delay: -8s; --ember-drift: 22px; }
.ember-particles i:nth-child(14) { --ember-x: 97%; --ember-size: 3px; --ember-duration: 13s; --ember-delay: -12s; --ember-drift: -15px; }
@keyframes emberRise {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(18deg) scale(0.72); }
  12% { opacity: 0.88; }
  72% { opacity: 0.5; }
  100% { opacity: 0; transform: translate3d(var(--ember-drift), -108vh, 0) rotate(56deg) scale(1.14); }
}
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: linear-gradient(180deg, rgba(0, 0, 0, .98) 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, 0) 100%);
  border-bottom: 0;
  backdrop-filter: none;
}
.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(176, 112, 36, 0.52);
  pointer-events: none;
}
.site-header.scrolled::after {
  display: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-seal {
  width: 220px;
  height: 100px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}
.brand > span:last-child {
  display: flex;
  flex-direction: column;
}
.brand strong {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 18px;
}
.brand small {
  margin-top: 2px;
  color: #a98447;
  font-size: 10px;
  letter-spacing: 2px;
}
.source-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 20px;
  color: #fff4ce;
  background: linear-gradient(180deg, #bd2c22, #7d170f);
  border: 1px solid #e46049;
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(127, 20, 14, 0.34);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.source-link:hover {
  color: #fff4ce;
  filter: brightness(1.14);
  transform: translateY(-1px);
}
main {
  min-height: calc(100vh - 132px);
  padding: 72px 24px 90px;
}
.query-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}
.query-heading {
  margin-bottom: 42px;
  text-align: center;
}
.query-heading p {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 4px;
}
.query-heading h1 {
  margin: 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 600;
}
.query-heading i {
  position: relative;
  display: block;
  width: 150px;
  height: 1px;
  margin: 18px auto;
  background: rgba(198, 149, 57, 0.45);
}
.query-heading i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}
.query-heading span {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 2px;
}
.query-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}
.search-field {
  height: 54px;
  display: grid;
  grid-template-columns: 28px 1fr 38px;
  align-items: center;
  gap: 9px;
  padding: 0 8px 0 16px;
  background: rgba(10, 7, 10, 0.68);
  border: 1px solid rgba(198, 149, 57, 0.4);
  border-radius: 5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-field:focus-within {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(198, 149, 57, 0.16);
}
.search-icon {
  color: var(--gold-light);
  font-size: 27px;
  line-height: 1;
}
.search-field input {
  min-width: 0;
  width: 100%;
  color: var(--white);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}
.search-field input::placeholder {
  color: rgba(217, 202, 177, 0.52);
}
.search-field input::-webkit-search-cancel-button {
  display: none;
}
#clearSearch {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  background: transparent;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-size: 22px;
  opacity: 0;
  pointer-events: none;
}
#clearSearch.visible {
  opacity: 1;
  pointer-events: auto;
}
#clearSearch:hover {
  background: rgba(198, 149, 57, 0.13);
}
.result-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.result-count strong {
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 500;
    line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.result-count span {
  color: var(--muted);
  font-size: 12px;
}

/* ========== 新增一级分类标签样式 ========== */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  margin: 0;
}
.category-filter-section {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(198, 149, 57, 0.32);
}
.filter-section-heading {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
}
.filter-section-heading strong {
  color: var(--gold-light);
  font-size: 12px;
}
.filter-section-heading span {
  color: var(--muted);
  font-size: 11px;
}
.tab-btn {
  min-height: 34px;
  padding: 0 18px;
  color: rgba(242, 229, 201, 0.72);
  background: rgba(17, 12, 10, 0.92);
  border: 1px solid rgba(176, 112, 36, 0.4);
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: 0.2s ease;
}
.tab-btn.active,
.tab-btn:hover {
  color: #fff6dd;
  background: var(--red);
  border-color: var(--red-bright);
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin-bottom: 0;
}
.quick-filters button {
  min-height: 32px;
  padding: 0 14px;
  color: rgba(242, 229, 201, 0.72);
  background: rgba(17, 12, 10, 0.92);
  border: 1px solid rgba(176, 112, 36, 0.4);
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}
.quick-filters button:hover,
.quick-filters button.active {
  color: #1a0804;
  background: var(--gold);
  border-color: var(--gold);
}
.quick-filter-section {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 6px;
  margin-bottom: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(198, 149, 57, 0.32);
}
.quick-filter-heading {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.quick-filter-heading > strong {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  color: var(--gold-light);
  font-size: 12px;
  white-space: nowrap;
}
.quick-filter-toggle {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  color: rgba(240, 205, 118, 0.72);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
}
.quick-filter-toggle:hover {
  color: var(--gold-light);
}
.quick-filter-toggle i {
  display: inline-block;
  font-style: normal;
  transition: transform 0.2s ease;
}
.quick-filter-toggle[aria-expanded="false"] i {
  transform: rotate(180deg);
}
.quick-filters[hidden] {
  display: none;
}
.monster-filter-section {
  margin-bottom: 22px;
}
.table-frame {
  scroll-margin-top: 88px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(198, 149, 57, 0.28);
  border-radius: 7px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}
.drop-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.drop-table th {
  padding: 16px 20px;
  color: var(--gold-light);
  background: rgba(45, 10, 8, 0.83);
  border-bottom: 1px solid rgba(181, 49, 38, 0.45);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-align: left;
}
.drop-table th:first-child,
.drop-table td:first-child {
  width: 22%;
}
.drop-table td {
  padding: 17px 20px;
  color: rgba(217, 202, 177, 0.82);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.drop-table td:first-child {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}
.drop-table tbody tr:last-child td {
  border-bottom: 0;
}
.drop-table tbody tr:hover td {
  background: rgba(198, 149, 57, 0.08);
}
mark {
  padding: 1px 2px;
  color: #1a0804;
  background: var(--gold-light);
  border-radius: 2px;
}
.drop-rate {
  font-weight: 700;
}
.rate-low {
  color: #ff5a4f;
  text-shadow: 0 0 6px rgba(218, 44, 36, 0.28);
}
.rate-mid-low {
  color: #3f7fda;
  text-shadow: 0 0 6px rgba(47, 95, 180, 0.3);
}
.rate-mid {
  color: #66c9ff;
  text-shadow: 0 0 6px rgba(72, 170, 224, 0.3);
}
.rate-high {
  color: #55e68c;
  text-shadow: 0 0 6px rgba(31, 176, 91, 0.28);
}
.drop-rate mark {
  color: inherit;
}
.mobile-results {
  display: none;
  scroll-margin-top: 80px;
}
.empty-state {
  min-height: 240px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--muted);
  background: rgba(17, 12, 10, 0.88);
  border: 1px solid rgba(198, 149, 57, 0.24);
  border-radius: 7px;
}
.empty-state[hidden] {
  display: none;
}
.empty-state span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(198, 149, 57, 0.4);
  border-radius: 50%;
  font-family: var(--serif);
}
.empty-state strong {
  color: rgba(242, 229, 201, 0.72);
  font-size: 14px;
}
footer {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  color: rgba(152, 139, 122, 0.62);
  background: rgba(13, 10, 9, 0.94);
  border-top: 1px solid rgba(198, 149, 57, 0.18);
  font-size: 11px;
}
.back-top {
  position: fixed;
  z-index: 15;
  right: 22px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  color: var(--gold-light);
  background: rgba(24, 17, 14, 0.92);
  border: 1px solid rgba(198, 149, 57, 0.45);
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.back-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
@media (max-width: 760px) {
  .site-header {
    height: 68px;
    gap: 12px;
    padding: 0 18px;
  }
  .brand-seal {
    width: clamp(120px, 27vw, 160px);
    height: 62px;
  }
  .brand strong {
    font-size: 14px;
  }
  .brand small {
    font-size: 8px;
  }
  .source-link {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }
  main {
    padding: 58px 18px 72px;
  }
  .query-heading {
    margin-bottom: 34px;
  }
  .query-heading h1 {
    font-size: 38px;
  }
  .query-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
  .result-count {
    justify-self: end;
    gap: 5px;
  }
  .result-count strong {
    font-size: 26px;
  }
  .quick-filter-section {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .category-filter-section {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
  }
  .filter-section-heading {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }
  .table-frame {
    display: none;
  }
  .mobile-results {
    display: grid;
    gap: 10px;
  }
  .drop-card {
    padding: 18px;
    background: rgba(17, 12, 10, 0.92);
    border: 1px solid rgba(198, 149, 57, 0.25);
    border-radius: 6px;
    backdrop-filter: blur(10px);
  }
  .drop-card h2 {
    margin: 0 0 11px;
    padding-bottom: 10px;
    color: var(--white);
    border-bottom: 1px solid rgba(198, 149, 57, 0.2);
    font-family: var(--serif);
    font-size: 18px;
  }
  .drop-card p {
    margin: 0;
    color: rgba(217, 202, 177, 0.78);
    font-size: 12px;
    line-height: 1.85;
    overflow-wrap: anywhere;
  }
  footer {
    flex-direction: column;
    justify-content: center;
    min-height: 78px;
    padding: 15px 18px;
    text-align: center;
  }
  .category-tabs {
    gap: 8px;
  }
  .tab-btn {
    padding: 0 14px;
    font-size: 12px;
  }
}
@media (max-width: 430px) {
  .brand > span:last-child {
    display: none;
  }
  .brand-seal {
    width: clamp(120px, 38vw, 150px);
  }
  .source-link {
    min-height: 38px;
    padding: 0 10px;
    font-size: 11px;
  }
  .search-field {
    height: 50px;
    grid-template-columns: 24px minmax(0, 1fr) 34px;
    gap: 6px;
    padding-left: 12px;
  }
  .search-icon {
    font-size: 23px;
  }
  .result-count strong {
    font-size: 23px;
  }
  .result-count span {
    font-size: 10px;
  }
  .quick-filters {
    flex-wrap: nowrap;
    margin-right: -18px;
    padding-right: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .quick-filters::-webkit-scrollbar {
    display: none;
  }
  .quick-filters button {
    flex: 0 0 auto;
  }
  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -18px;
    padding-right: 18px;
    scrollbar-width: none;
  }
  .category-tabs::-webkit-scrollbar {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
  .ember-particles {
    display: none;
  }
}
