/* 怪物物品掉落表 */

.drops-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 26px 0 0; padding: 0; color: var(--muted); font-size: 13px; letter-spacing: 0.1em; }
.drops-stats b { margin-right: 6px; font: 600 26px/1 "Segoe UI", var(--font-body); color: var(--gold); letter-spacing: 0; font-variant-numeric: tabular-nums; }

.drops-toolbar { position: sticky; top: var(--header-h); z-index: 20; border-bottom: 1px solid rgba(230, 196, 124, 0.14); background: rgba(6, 10, 22, 0.92); backdrop-filter: blur(10px); }
.toolbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 0; }
.drops-search { position: relative; flex: 1 1 320px; display: flex; align-items: center; }
.drops-search > .ico { position: absolute; left: 14px; color: var(--gold-2); pointer-events: none; }
.drops-search input {
  width: 100%; height: 44px; padding: 0 40px 0 42px; border: 1px solid rgba(230, 196, 124, 0.28); background: rgba(3, 6, 14, 0.7);
  color: #fff; font-size: 14px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.drops-search input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230, 196, 124, 0.14); }
.drops-search input::-webkit-search-cancel-button { display: none; }
.search-clear { position: absolute; right: 6px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); }
.search-clear:hover { color: var(--paper); }

.drops-tabs { display: flex; gap: 4px; }
.drops-tabs button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid transparent; background: none; color: var(--muted); font-size: 14px; letter-spacing: 0.06em; }
.drops-tabs button span { font-size: 12px; color: rgba(155, 169, 196, 0.7); font-variant-numeric: tabular-nums; }
.drops-tabs button:hover { color: var(--paper); }
.drops-tabs button[aria-selected="true"] { border-color: var(--line); background: var(--gold-soft); color: var(--gold); }
.drops-tabs button[aria-selected="true"] span { color: var(--gold-2); }

.view-toggle { display: inline-flex; border: 1px solid var(--line); }
.view-toggle button { height: 38px; padding: 0 16px; border: 0; background: none; color: var(--muted); font-size: 14px; }
.view-toggle button[aria-pressed="true"] { background: linear-gradient(180deg, #f6dfa6, #d6a957); color: #241707; }

.drops-layout { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 24px; padding-bottom: 40px; }
.drops-count { margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.drops-count b { color: var(--gold); }

.drops-list { list-style: none; margin: 0; padding: 0; border: 1px solid rgba(230, 196, 124, 0.14); background: rgba(10, 17, 36, 0.6); }
.drops-list > li + li { border-top: 1px solid rgba(230, 196, 124, 0.08); }
.drop-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: none; text-align: left; transition: background 0.15s; }
.drop-row:hover { background: rgba(230, 196, 124, 0.06); }
.drop-row[aria-pressed="true"] { background: linear-gradient(90deg, rgba(230, 196, 124, 0.16), rgba(230, 196, 124, 0.02)); box-shadow: inset 3px 0 0 var(--gold); }
.row-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.row-main strong { font: 18px/1.3 var(--font-display); letter-spacing: 0.08em; color: var(--paper); font-weight: 400; }
.drop-row[aria-pressed="true"] .row-main strong { color: var(--gold); }
.row-meta { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-icons { display: flex; gap: 3px; flex: none; }
.row-icons img, .row-icons .icon-fallback { width: 30px; height: 30px; }
.row-icon { flex: none; }
.more-row { padding: 12px; text-align: center; }
mark { background: rgba(230, 196, 124, 0.3); color: #fff; border-radius: 2px; padding: 0 1px; }

.cat-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 2px; background: var(--muted); }
.cat-dot.cat-dungeon { background: var(--q-purple); }
.cat-dot.cat-world { background: var(--q-orange); }
.cat-dot.cat-event { background: var(--ice); }
.cat-chip.cat-dungeon { border-color: rgba(198, 144, 255, 0.45); color: var(--q-purple); }
.cat-chip.cat-world { border-color: rgba(255, 179, 92, 0.45); color: var(--q-orange); }
.cat-chip.cat-event { border-color: var(--line-ice); color: var(--ice); }

/* 物品品质 */
img.q-green, .icon-fallback.q-green { border: 1px solid rgba(127, 220, 127, 0.55); }
img.q-blue, .icon-fallback.q-blue { border: 1px solid rgba(111, 185, 255, 0.65); }
img.q-purple, .icon-fallback.q-purple { border: 1px solid rgba(198, 144, 255, 0.7); box-shadow: 0 0 8px rgba(198, 144, 255, 0.25); }
img.q-orange, .icon-fallback.q-orange { border: 1px solid rgba(255, 179, 92, 0.8); box-shadow: 0 0 10px rgba(255, 179, 92, 0.3); }
.icon-fallback { display: inline-grid; place-items: center; background: #1a2442; color: var(--paper); font-size: 14px; }
.q-text-green { color: var(--q-green) !important; }
.q-text-blue { color: var(--q-blue) !important; }
.q-text-purple { color: var(--q-purple) !important; }
.q-text-orange { color: var(--q-orange) !important; }
.q-chip-green { border-color: rgba(127, 220, 127, 0.5) !important; color: var(--q-green) !important; }
.q-chip-blue { border-color: rgba(111, 185, 255, 0.5) !important; color: var(--q-blue) !important; }
.q-chip-purple { border-color: rgba(198, 144, 255, 0.5) !important; color: var(--q-purple) !important; }
.q-chip-orange { border-color: rgba(255, 179, 92, 0.5) !important; color: var(--q-orange) !important; }

/* 详情 */
.drops-detail { position: sticky; top: calc(var(--header-h) + 90px); min-height: 420px; padding: 28px 30px; border: 1px solid var(--line); background: radial-gradient(90% 60% at 100% 0%, rgba(143, 202, 255, 0.07), transparent 60%), linear-gradient(180deg, rgba(19, 32, 63, 0.85), rgba(8, 13, 28, 0.9)); }
.drops-detail.is-inline { position: static; min-height: 0; margin: 0; padding: 20px 16px; border-width: 1px 0 0; }
.detail-empty { display: grid; place-items: center; gap: 12px; min-height: 360px; color: var(--muted); text-align: center; }
.detail-empty .ico { width: 42px; height: 42px; color: var(--gold-2); opacity: 0.6; }

.detail-head h2 { margin-top: 10px; font: clamp(30px, 3.4vw, 42px)/1.2 var(--font-display); letter-spacing: 0.12em; color: var(--gold); }
.detail-head.is-item { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.detail-head.is-item .detail-note { grid-column: 1 / -1; }
.detail-head.is-item h2 { margin-top: 8px; }
.item-hero img, .item-hero .icon-fallback { width: 72px; height: 72px; }
.detail-facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 6px 34px; margin: 16px 0 0; }
.detail-facts div { display: flex; flex-direction: column; }
.detail-facts dt { font-size: 12px; color: var(--muted); letter-spacing: 0.14em; }
.detail-facts dd { margin: 2px 0 0; font-size: 16px; color: var(--paper); font-variant-numeric: tabular-nums; }
.detail-facts dd small { margin-left: 4px; font-size: 11px; color: var(--muted); }
.detail-note { margin-top: 14px; padding: 8px 12px; border-left: 2px solid var(--gold-2); background: rgba(230, 196, 124, 0.05); color: rgba(239, 231, 213, 0.85); font-size: 14px; }
.spawn-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 12px 0 0; padding: 0; }
.spawn-list li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line-ice); color: var(--ice); font-size: 13px; }
.spawn-list b { font-weight: 400; color: var(--paper); font-variant-numeric: tabular-nums; }
.spawn-list small { color: var(--muted); }
.spawn-list .ico { width: 14px; height: 14px; }

.detail-groups { display: grid; gap: 14px; margin-top: 24px; }
.drop-group { border: 1px solid rgba(230, 196, 124, 0.14); background: rgba(3, 6, 14, 0.35); }
.drop-group header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-bottom: 1px solid rgba(230, 196, 124, 0.1); font-size: 13px; }
.group-no { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--gold-2); color: var(--gold); font-size: 12px; }
.drop-group header strong { color: var(--paper); font-weight: 500; letter-spacing: 0.04em; }
.group-pick { padding: 0 6px; border: 1px solid var(--line-ice); color: var(--ice); font-size: 12px; line-height: 20px; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 10px; }
.item-cell { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; width: 100%; height: 100%; padding: 9px 10px; border: 1px solid rgba(230, 196, 124, 0.1); background: rgba(8, 13, 28, 0.7); text-align: left; transition: background 0.15s, border-color 0.15s; }
.item-cell:hover { background: rgba(230, 196, 124, 0.08); border-color: rgba(230, 196, 124, 0.35); }
.item-cell.is-hit { background: rgba(230, 196, 124, 0.14); }
.item-cell img, .item-cell .icon-fallback { grid-row: 1 / 3; width: 44px; height: 44px; }
.item-name { font-size: 13px; line-height: 1.35; align-self: end; }
.item-rate { display: flex; align-items: baseline; gap: 6px; font: 600 15px/1.3 "Segoe UI", var(--font-body); color: #fff; font-variant-numeric: tabular-nums; align-self: start; }
.item-rate small { font: 11px var(--font-body); color: var(--muted); }

.detail-sub { margin-top: 26px; font: 20px var(--font-display); color: var(--paper); letter-spacing: 0.1em; }
.detail-sub small { margin-left: 8px; font: 12px var(--font-body); color: var(--muted); letter-spacing: 0.04em; }
.source-list { list-style: none; margin: 12px 0 0; padding: 0; border: 1px solid rgba(230, 196, 124, 0.14); }
.source-list li + li { border-top: 1px solid rgba(230, 196, 124, 0.08); }
.source-list button { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; width: 100%; padding: 12px 16px; border: 0; background: none; text-align: left; }
.source-list button:hover { background: rgba(230, 196, 124, 0.06); }
.source-main { display: flex; flex-direction: column; }
.source-main strong { font: 18px var(--font-display); color: var(--paper); font-weight: 400; letter-spacing: 0.08em; }
.source-main small { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.source-rate { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; }
.source-rate b { font: 600 18px "Segoe UI", var(--font-body); color: var(--gold); font-variant-numeric: tabular-nums; }
.source-rate small { font-size: 11px; color: var(--muted); }
.source-bar { grid-column: 1 / -1; height: 3px; background: rgba(143, 202, 255, 0.1); }
.source-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ice), var(--gold)); }

.drops-empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); }
.drops-empty .text-link { margin-top: 10px; border: 0; background: none; font-size: 14px; }

.drops-notes { padding: 10px 0 30px; }
.drops-notes h2 { font: 22px var(--font-display); color: var(--gold); letter-spacing: 0.1em; }
.drops-notes ol { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.drops-notes li + li { margin-top: 6px; }
.drops-notes strong { color: var(--paper); font-weight: 500; }

@media (max-width: 1100px) {
  .detail-facts { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 900px) {
  .drops-layout { grid-template-columns: 1fr; }
  .drops-toolbar { position: static; }
  .drops-tabs { overflow-x: auto; flex: 1 1 100%; }
  .view-toggle { flex: none; }
  .row-icons img:nth-child(n+4) { display: none; }
}
@media (max-width: 520px) {
  .drops-tabs button { padding: 0 10px; }
  .item-grid { grid-template-columns: 1fr 1fr; }
  .item-cell { grid-template-columns: 36px 1fr; padding: 8px; }
  .item-cell img, .item-cell .icon-fallback { width: 36px; height: 36px; }
  .item-rate small { display: none; }
  .row-icons { display: none; }
}
