/* 柳条人 · Wickerman 部件词缀表 */
:root {
  --bg: #0b0a09;
  --bg-2: #100e0c;
  --bg-3: #15120f;
  --line: #2a2521;
  --txt: #e9e3d7;
  --muted: #9a917f;
  --gold: #e0b563;
  --gold-2: #f4d79b;
  --blue: #8f96ff;
  --low: #8b8578;
  --med: #6f9fd8;
  --high: #e0b563;
  --uber: #c98cff;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--txt);
  font: 15px/1.7 "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }

/* topbar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px;
  background: rgba(11,10,9,.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.topbar .mark {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center;
  border: 1px solid #3c3226; border-radius: 50%;
  color: var(--gold); font-size: 16px;
  background: radial-gradient(circle at 50% 40%, rgba(224,181,99,.22), transparent 70%);
}
.topbar h1 { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.topbar p { margin: 0; font-size: 11.5px; color: var(--muted); letter-spacing: .08em; white-space: nowrap; }
.spacer { flex: 1 1 auto; }
.topbar .tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

/* layout */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* hero */
.hero { padding: 58px 0 26px; }
.kicker { font-size: 11.5px; letter-spacing: .22em; color: var(--gold); }
.hero h1 { margin: 10px 0 6px; font-size: 40px; line-height: 1.2; letter-spacing: .01em; font-weight: 600; }
.hero .en { color: #6f6759; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; }
.hero .lead { margin: 18px 0 0; max-width: 74ch; font-size: 16px; color: #c3baa8; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.facts b { color: var(--gold-2); font-weight: 600; font-variant-numeric: tabular-nums; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 13px; margin: 34px 0 8px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--bg-3); }
.card h3 { margin: 0 0 6px; font-size: 14px; color: var(--gold-2); font-weight: 600; }
.card p { margin: 0; font-size: 13.2px; color: #a49b8b; line-height: 1.75; }
.slots { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.slot {
  font-size: 11.5px; color: #c9bda3; border: 1px solid #3a3329; border-radius: 999px;
  padding: 2px 9px; background: #171410;
}
.slot em { font-style: normal; color: #7c7364; margin-left: 4px; }

/* toolbar */
.toolbar { position: sticky; top: 55px; z-index: 30; background: rgba(11,10,9,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 12px 0; }
.toolbar .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search { position: relative; flex: 1 1 260px; max-width: 340px; }
.search input {
  width: 100%; padding: 8px 12px 8px 32px; background: #14110e; color: var(--txt);
  border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; outline: none;
}
.search input::placeholder { color: #6b6459; }
.search input:focus { border-color: #5b4a2f; box-shadow: 0 0 0 3px rgba(224,181,99,.08); }
.search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.chip {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.chip:hover { color: var(--gold-2); }
.chip.on { border-color: #6d562c; color: var(--gold-2); background: rgba(224,181,99,.08); }
.count { margin-left: auto; font-size: 12px; color: #625b50; font-variant-numeric: tabular-nums; }

/* table */
.tbl-wrap { margin: 22px 0 10px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
thead th {
  position: sticky; top: 111px; z-index: 10;
  background: #17130f; text-align: left; padding: 10px 16px; font-weight: 600;
  color: #cbbfa8; border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: .06em;
}
tbody td { padding: 11px 16px; border-bottom: 1px solid #1c1815; vertical-align: top; overflow-wrap: anywhere; }
tbody tr:hover td { background: #14110e; }
td.nm { width: 230px; }
.vars .var { flex-wrap: wrap; }
td.nm .nmline { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
td.nm .zh { color: var(--txt); font-size: 14px; }
td.nm .en { display: block; color: #5f584d; font-size: 10.5px; margin-top: 2px; letter-spacing: .02em; }
td.nm .slotTag {
  font-size: 10.5px; color: #a99b80; border: 1px solid #3a3329; border-radius: 4px;
  padding: 0 5px; line-height: 1.6; background: #171410; white-space: nowrap;
}
td.vars { color: var(--blue); font-size: 12.8px; line-height: 1.65; }
.var { display: flex; gap: 8px; align-items: flex-start; }
.var + .var { margin-top: 4px; }
.tier {
  flex: 0 0 auto; margin-top: 2px; font-size: 10.5px; letter-spacing: .06em;
  border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; line-height: 1.5;
  color: var(--muted); opacity: .95;
}
.tier.t-low { color: var(--low); }
.tier.t-med { color: var(--med); }
.tier.t-high { color: var(--high); }
.tier.t-uber { color: var(--uber); }
.tier.t-num { color: #7f9c8a; }
.var .tx { flex: 1 1 auto; min-width: 0; }
.var .zh { color: var(--blue); }
.var .en { color: #6f685b; font-size: 11.2px; line-height: 1.5; margin-top: 1px; letter-spacing: .01em; }

/* notes & footer */
.notes { margin: 26px 0 8px; padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid #6d562c; border-radius: 0 10px 10px 0; background: #100e0c; font-size: 13px; color: #a99f8c; line-height: 1.8; }
.notes b { color: var(--gold-2); font-weight: 600; }
footer { border-top: 1px solid var(--line); margin-top: 46px; padding: 30px 0 56px; color: #5f584d; font-size: 12.5px; line-height: 1.9; }
footer a { color: #8a7c62; }
.empty { padding: 40px 16px; text-align: center; color: #6b6459; font-size: 13px; }

@media (max-width: 820px) {
  .hero h1 { font-size: 30px; }
  thead th { top: 0; position: static; }
  .toolbar { position: static; }
  td.nm { width: 130px; }
  td.nm .slotTag { display: none; }
  table { font-size: 13px; }
}
@media print {
  .topbar, .toolbar { display: none; }
  body { background: #fff; color: #111; }
  td.vars { color: #333; }
}
