/* 江湖资料站 · 全局样式（数据驱动，Nudge 变量消费） */
:root {
  --site-bg: #f6f1e6;
  --site-fg: #2a2620;
  --site-accent: #b3402f;
  --site-on-accent: #fbf7ee;
  --site-surface: #fffcf4;
  --site-muted: #7d7466;
  --site-border: #ded4c0;
  --site-font: "LXGW WenKai", "KaiTi", "STKaiti", "SimSun", serif;
  --site-radius: 10px;
  --site-space: 1;
  --site-type: 1;
  --site-motion: 1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--site-bg);
  color: var(--site-fg);
  font-family: var(--site-font);
  line-height: 1.7;
}

::selection { background: var(--site-accent); color: var(--site-on-accent); }

a { color: var(--site-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--site-surface) 92%, transparent);
  border-bottom: 1px solid var(--site-border);
  backdrop-filter: blur(6px);
}
.site-header .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: calc(10px * var(--site-space)) calc(20px * var(--site-space));
  display: flex;
  align-items: center;
  gap: calc(16px * var(--site-space));
  flex-wrap: wrap;
}
.brand {
  font-size: calc(22px * var(--site-type));
  color: var(--site-fg);
  letter-spacing: 2px;
}
.brand b { color: var(--site-accent); }
.site-nav { display: flex; gap: calc(4px * var(--site-space)); margin-left: auto; flex-wrap: wrap; }
.site-nav a {
  padding: calc(6px * var(--site-space)) calc(14px * var(--site-space));
  border-radius: var(--site-radius);
  color: var(--site-fg);
  transition: background calc(180ms * var(--site-motion));
}
.site-nav a:hover { background: color-mix(in srgb, var(--site-accent) 12%, transparent); text-decoration: none; }
.site-nav a.active { background: var(--site-accent); color: var(--site-on-accent); }

.mobile-home { display: none; }

@media (max-width: 640px) {
  .site-header .inner { flex-wrap: nowrap; padding: calc(8px * var(--site-space)) calc(16px * var(--site-space)); gap: calc(12px * var(--site-space)); }
  .brand { font-size: calc(20px * var(--site-type)); letter-spacing: 1px; }
  .site-nav { display: none; }
  .mobile-home {
    display: inline-block;
    margin-left: auto;
    flex-shrink: 0;
    padding: calc(4px * var(--site-space)) calc(12px * var(--site-space));
    border: 1px solid var(--site-border);
    border-radius: 999px;
    font-size: calc(14px * var(--site-type));
    color: var(--site-fg);
  }
  .mobile-home:hover { text-decoration: none; border-color: var(--site-accent); color: var(--site-accent); }
}

/* ---------- 布局 ---------- */
main { max-width: 1080px; margin: 0 auto; padding: calc(24px * var(--site-space)) calc(20px * var(--site-space)) calc(64px * var(--site-space)); }

.section { margin-bottom: calc(40px * var(--site-space)); }
.section-title {
  font-size: calc(28px * var(--site-type));
  margin-bottom: calc(16px * var(--site-space));
  padding-left: calc(12px * var(--site-space));
  border-left: 4px solid var(--site-accent);
}

/* ---------- 首页 ---------- */
.hero {
  padding: calc(48px * var(--site-space)) calc(24px * var(--site-space));
  background:
    radial-gradient(ellipse at 80% 10%, color-mix(in srgb, var(--site-accent) 10%, transparent), transparent 60%),
    var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  margin-bottom: calc(32px * var(--site-space));
}
.hero h1 { font-size: calc(48px * var(--site-type)); letter-spacing: 4px; margin-bottom: calc(8px * var(--site-space)); }
.hero p { color: var(--site-muted); font-size: calc(17px * var(--site-type)); max-width: 40em; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: calc(16px * var(--site-space));
}
.card {
  display: block;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(20px * var(--site-space));
  color: var(--site-fg);
  transition: transform calc(180ms * var(--site-motion)), box-shadow calc(180ms * var(--site-motion));
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--site-fg) 10%, transparent);
  text-decoration: none;
}
.card h3 { font-size: calc(20px * var(--site-type)); margin-bottom: calc(6px * var(--site-space)); }
.card h3 a { color: var(--site-accent); }
.card p { color: var(--site-muted); font-size: calc(14px * var(--site-type)); }

.tool-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: calc(12px * var(--site-space));
}
.tool-grid .card { padding: calc(14px * var(--site-space)) calc(16px * var(--site-space)); }
.tool-grid .card h3 { font-size: calc(17px * var(--site-type)); margin-bottom: 0; }

.notice-list { list-style: none; }
.notice-list li {
  padding: calc(10px * var(--site-space)) 0;
  border-bottom: 1px dashed var(--site-border);
  display: flex;
  align-items: baseline;
  gap: calc(12px * var(--site-space));
}
.notice-list li .txt { flex: 1 1 auto; min-width: 0; }
.notice-list li .date { flex: 0 0 auto; white-space: nowrap; }
.notice-list .tag {
  flex-shrink: 0;
  font-size: calc(13px * var(--site-type));
  color: var(--site-on-accent);
  background: var(--site-accent);
  border-radius: calc(var(--site-radius) / 2);
  padding: 0 calc(8px * var(--site-space));
  height: fit-content;
}
.notice-list .date { color: var(--site-muted); font-size: calc(13px * var(--site-type)); margin-left: auto; }

@media (max-width: 640px) {
  .notice-list li { flex-wrap: wrap; }
  .notice-list li .txt { flex-basis: calc(100% - 60px); }
  .notice-list .date { margin-left: 0; }
}

/* ---------- 筛选栏 ---------- */
.filters {
  display: flex;
  gap: calc(12px * var(--site-space));
  flex-wrap: wrap;
  margin-bottom: calc(20px * var(--site-space));
  align-items: end;
}
.field label {
  display: block;
  font-size: calc(13px * var(--site-type));
  color: var(--site-muted);
  margin-bottom: calc(4px * var(--site-space));
}
.field input, .field select {
  font-family: inherit;
  font-size: calc(15px * var(--site-type));
  color: var(--site-fg);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(8px * var(--site-space)) calc(12px * var(--site-space));
  min-width: 140px;
  transition: border-color calc(180ms * var(--site-motion));
}
.field input:focus, .field select:focus { outline: none; border-color: var(--site-accent); }
.result-count { color: var(--site-muted); font-size: calc(14px * var(--site-type)); align-self: center; }

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
}
table { border-collapse: collapse; width: 100%; font-size: calc(15px * var(--site-type)); }
th, td { padding: calc(10px * var(--site-space)) calc(14px * var(--site-space)); text-align: left; border-bottom: 1px solid var(--site-border); }
thead th {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--site-accent) 8%, var(--site-surface));
  white-space: nowrap;
}
thead th.sortable { cursor: pointer; user-select: none; }
thead th.sortable:hover { color: var(--site-accent); }
thead th .arrow { color: var(--site-muted); font-size: 0.8em; }
tbody tr { transition: background calc(180ms * var(--site-motion)); }
tbody tr:hover { background: color-mix(in srgb, var(--site-accent) 6%, transparent); }
tbody tr:last-child td { border-bottom: none; }

.badge {
  display: inline-block;
  font-size: calc(13px * var(--site-type));
  border-radius: calc(var(--site-radius) / 2);
  padding: 0 calc(8px * var(--site-space));
  border: 1px solid var(--site-border);
  color: var(--site-muted);
  background: color-mix(in srgb, var(--site-bg) 60%, var(--site-surface));
}
.badge.accent { color: var(--site-accent); border-color: color-mix(in srgb, var(--site-accent) 40%, var(--site-border)); }
.badge.muted { color: var(--site-muted); }

.empty {
  text-align: center;
  color: var(--site-muted);
  padding: calc(32px * var(--site-space)) 0;
}

/* ---------- 改版记录 ---------- */
.changelog { display: grid; gap: calc(16px * var(--site-space)); }
.log-entry {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(14px * var(--site-space)) calc(18px * var(--site-space));
}
.log-entry h3 {
  color: var(--site-accent);
  font-size: calc(15px * var(--site-type));
  letter-spacing: 1px;
  margin-bottom: calc(6px * var(--site-space));
}
.log-entry ul { list-style: none; }
.log-entry li {
  position: relative;
  padding-left: calc(14px * var(--site-space));
  color: var(--site-muted);
  font-size: calc(14px * var(--site-type));
  line-height: 1.7;
}
.log-entry li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.6em);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--site-accent);
  opacity: 0.6;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--site-border);
  color: var(--site-muted);
  font-size: calc(13px * var(--site-type));
  text-align: center;
  padding: calc(24px * var(--site-space)) calc(20px * var(--site-space));
}

/* ---------- 首页卡片 ---------- */
.card {
  display: block;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(20px * var(--site-space));
  color: var(--site-fg);
  transition: transform calc(180ms * var(--site-motion)), box-shadow calc(180ms * var(--site-motion));
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--site-fg) 10%, transparent);
}
.card p { color: var(--site-muted); font-size: calc(14px * var(--site-type)); }

/* ---------- 页内标题与脚注 ---------- */
.page-title {
  font-size: calc(36px * var(--site-type));
  margin-bottom: calc(16px * var(--site-space));
  border-left: 6px solid var(--site-accent);
  padding-left: calc(14px * var(--site-space));
}
.footnote {
  margin-top: calc(20px * var(--site-space));
  color: var(--site-muted);
  font-size: calc(13px * var(--site-type));
}

/* ---------- 分类索引页 ---------- */
.notice-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: calc(16px * var(--site-space));
}
.chips { display: flex; flex-wrap: wrap; gap: calc(8px * var(--site-space)); }
.entry-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: calc(8px * var(--site-space));
}
.entry-grid li a,
.entry-grid li .soon {
  display: block;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(8px * var(--site-space)) calc(12px * var(--site-space));
  transition: border-color calc(180ms * var(--site-motion)), background calc(180ms * var(--site-motion));
}
.entry-grid li a:hover { border-color: var(--site-accent); }
.entry-grid li .soon { color: var(--site-muted); }

/* ---------- 分栏标签与条目 ---------- */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: calc(6px * var(--site-space));
  margin-bottom: calc(14px * var(--site-space));
}
.tab {
  font-family: inherit;
  font-size: calc(13px * var(--site-type));
  padding: calc(4px * var(--site-space)) calc(11px * var(--site-space));
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) / 1.5);
  background: var(--site-surface);
  color: var(--site-fg);
  cursor: pointer;
  transition: border-color calc(180ms * var(--site-motion)), color calc(180ms * var(--site-motion));
}
.tab:hover { border-color: var(--site-accent); color: var(--site-accent); }
.tab.active { background: var(--site-accent); border-color: var(--site-accent); color: var(--site-on-accent); }
#faction-tabs .tab,
#chapter-tabs .tab {
  font-size: calc(15px * var(--site-type));
  padding: calc(6px * var(--site-space)) calc(16px * var(--site-space));
}
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: calc(6px * var(--site-space));
}
.chip {
  display: inline-block;
  text-align: center;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) / 1.5);
  padding: calc(5px * var(--site-space)) calc(12px * var(--site-space));
  font-size: calc(14px * var(--site-type));
  line-height: 1.5;
  color: var(--site-fg);
  transition: border-color calc(180ms * var(--site-motion));
}
.chip:hover { border-color: var(--site-accent); }
.chip-note { color: var(--site-muted); font-size: calc(14px * var(--site-type)); }

/* ---------- 数据页：副标题与行内明细 ---------- */
.page-sub {
  color: var(--site-muted);
  font-size: calc(14px * var(--site-type));
  margin: calc(-8px * var(--site-space)) 0 calc(16px * var(--site-space));
}

/* ---------- 攻略文章 ---------- */
.article-body { max-width: 52em; }
.article-body p { margin-bottom: calc(12px * var(--site-space)); }
.article-body .article-note {
  color: var(--site-muted);
  font-size: calc(14px * var(--site-type));
  padding-left: calc(12px * var(--site-space));
  border-left: 3px solid var(--site-border);
}
.article-body .sub-title {
  font-size: calc(20px * var(--site-type));
  margin: calc(24px * var(--site-space)) 0 calc(10px * var(--site-space));
  color: var(--site-accent);
}
.article-body h4 {
  font-size: calc(17px * var(--site-type));
  margin: calc(20px * var(--site-space)) 0 calc(8px * var(--site-space));
  padding-left: calc(10px * var(--site-space));
  border-left: 3px solid var(--site-accent);
}
.rank-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: calc(6px * var(--site-space)) calc(14px * var(--site-space));
  margin: 0 0 calc(16px * var(--site-space));
  font-size: calc(14px * var(--site-type));
}
.rank-list dt { color: var(--site-accent); white-space: nowrap; }
.rank-list dd { margin: 0; }
.plan-list { margin: 0 0 calc(12px * var(--site-space)) calc(1.2em); }
.plan-list li { margin-bottom: calc(8px * var(--site-space)); }
.formula {
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  background: color-mix(in srgb, var(--site-accent) 5%, var(--site-surface));
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(8px * var(--site-space)) calc(12px * var(--site-space));
  margin: 0 0 calc(12px * var(--site-space));
  font-size: calc(13px * var(--site-type));
  overflow-x: auto;
}
.material-table th { white-space: nowrap; }
.material-table td.hot { color: var(--site-accent); font-weight: 600; }
.eval-table td { line-height: 1.5; }
.eval-table td:first-child { color: var(--site-muted); }
.zc-rows { display: grid; gap: calc(10px * var(--site-space)); }
.zc-row {
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(10px * var(--site-space)) calc(12px * var(--site-space));
  background: var(--site-surface);
}
.zc-row > select {
  width: 100%;
  font-family: inherit;
  font-size: calc(15px * var(--site-type));
  color: var(--site-fg);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(6px * var(--site-space)) calc(10px * var(--site-space));
  margin-bottom: calc(6px * var(--site-space));
}
.zc-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: calc(6px * var(--site-space));
  font-size: calc(13px * var(--site-type));
  color: var(--site-accent);
}
.zc-row-head button {
  font-family: inherit;
  font-size: calc(12px * var(--site-type));
  cursor: pointer;
  padding: 2px 8px;
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) / 2);
  background: transparent;
  color: var(--site-muted);
}
.zc-row-head button:hover:not(:disabled) { border-color: var(--site-accent); color: var(--site-accent); }
.zc-row-head button:disabled { opacity: 0.4; cursor: not-allowed; }
.zc-row .calc-note { margin: 6px 0 8px; }
[hidden] { display: none !important; }
a.chip { text-decoration: none; }
.jh-back-wrap { margin: 0 0 calc(12px * var(--site-space)); }
.jh-map-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(8px * var(--site-space));
  margin: 0 0 calc(14px * var(--site-space));
}
.jh-map-head h2 {
  margin: 0;
  font-size: calc(26px * var(--site-type));
  border-left: none;
  padding-left: 0;
}
.jh-map-head a {
  color: var(--site-muted);
  font-size: calc(13px * var(--site-type));
  white-space: nowrap;
}
.jh-map-head a:hover { color: var(--site-accent); }
.jh-source { color: var(--site-muted); font-size: calc(13px * var(--site-type)); }
.route-line {
  white-space: pre-wrap;
  tab-size: 4;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-search { margin: 0 0 calc(28px * var(--site-space)); }
.search-box {
  display: flex;
  gap: calc(8px * var(--site-space));
  max-width: 760px;
}
.search-box input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: calc(16px * var(--site-type));
  color: var(--site-fg);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(10px * var(--site-space)) calc(14px * var(--site-space));
}
.search-box input:focus {
  outline: none;
  border-color: var(--site-accent);
}
.search-box button {
  font-family: inherit;
  font-size: calc(15px * var(--site-type));
  color: var(--site-on-accent);
  background: var(--site-accent);
  border: 1px solid var(--site-accent);
  border-radius: var(--site-radius);
  padding: calc(10px * var(--site-space)) calc(20px * var(--site-space));
  cursor: pointer;
}
.search-results {
  max-width: 760px;
  margin-top: calc(8px * var(--site-space));
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-surface);
  overflow: hidden;
}
.search-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 420px;
  overflow-y: auto;
}
.search-result-list li + li { border-top: 1px solid var(--site-border); }
.search-result-list a {
  display: block;
  padding: calc(12px * var(--site-space)) calc(14px * var(--site-space));
  color: var(--site-fg);
  text-decoration: none;
}
.search-result-list a:hover {
  background: color-mix(in srgb, var(--site-accent) 8%, transparent);
}
.search-result-title {
  color: var(--site-accent);
  font-weight: 600;
}
.search-result-type {
  margin-left: calc(8px * var(--site-space));
  color: var(--site-muted);
  font-size: calc(12px * var(--site-type));
}
.search-result-snippet {
  margin: calc(4px * var(--site-space)) 0 0;
  color: var(--site-muted);
  font-size: calc(13px * var(--site-type));
  line-height: 1.65;
}
.search-result-snippet mark,
.search-result-title mark {
  background: color-mix(in srgb, var(--site-accent) 22%, transparent);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}
.search-empty,
.search-count {
  padding: calc(12px * var(--site-space)) calc(14px * var(--site-space));
  color: var(--site-muted);
  font-size: calc(14px * var(--site-type));
}
.search-count { border-bottom: 1px solid var(--site-border); }
.mask-toolbar { margin: 0 0 calc(20px * var(--site-space)); }
.mask-search input {
  width: 100%;
  max-width: 760px;
  font-family: inherit;
  font-size: calc(16px * var(--site-type));
  color: var(--site-fg);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(10px * var(--site-space)) calc(14px * var(--site-space));
}
.mask-search input:focus { outline: none; border-color: var(--site-accent); }
.mask-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(10px * var(--site-space));
  margin-top: calc(10px * var(--site-space));
}
.mask-filter-row label {
  display: inline-flex;
  align-items: center;
  gap: calc(6px * var(--site-space));
  color: var(--site-muted);
  font-size: calc(13px * var(--site-type));
}
.mask-filter-row select {
  font-family: inherit;
  font-size: calc(13px * var(--site-type));
  color: var(--site-fg);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) / 1.5);
  padding: calc(5px * var(--site-space)) calc(8px * var(--site-space));
}
.mask-reset {
  font-family: inherit;
  font-size: calc(13px * var(--site-type));
  cursor: pointer;
  color: var(--site-muted);
  background: transparent;
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) / 1.5);
  padding: calc(5px * var(--site-space)) calc(12px * var(--site-space));
}
.mask-reset:hover { color: var(--site-accent); border-color: var(--site-accent); }
.mask-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: calc(10px * var(--site-space));
  margin-bottom: calc(14px * var(--site-space));
}
.mask-summary-item {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(10px * var(--site-space)) calc(12px * var(--site-space));
}
.mask-summary-label {
  display: block;
  color: var(--site-muted);
  font-size: calc(12px * var(--site-type));
  margin-bottom: calc(4px * var(--site-space));
}
.mask-summary-value {
  color: var(--site-accent);
  font-size: calc(17px * var(--site-type));
  font-weight: 600;
}
.mask-result-count {
  color: var(--site-muted);
  font-size: calc(13px * var(--site-type));
  margin-bottom: calc(10px * var(--site-space));
}
.mask-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: calc(12px * var(--site-space));
}
.mask-card {
  position: relative;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(10px * var(--site-space));
  cursor: pointer;
  transition: transform calc(160ms * var(--site-motion)), border-color calc(160ms * var(--site-motion)), box-shadow calc(160ms * var(--site-motion));
}
.mask-card:hover,
.mask-card:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: var(--site-accent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--site-fg) 10%, transparent);
}
.mask-card-media { margin-bottom: calc(8px * var(--site-space)); }
.mask-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: color-mix(in srgb, var(--site-bg) 60%, var(--site-surface));
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) / 1.5);
}
.mask-card-image.is-missing { opacity: 0.3; }
.mask-fav {
  position: absolute;
  top: calc(8px * var(--site-space));
  right: calc(8px * var(--site-space));
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--site-border);
  background: color-mix(in srgb, var(--site-surface) 88%, transparent);
  color: var(--site-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.mask-fav:hover,
.mask-fav.active { color: var(--site-accent); border-color: var(--site-accent); }
.mask-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.mask-card-title {
  font-size: calc(16px * var(--site-type));
  line-height: 1.3;
  margin: 0;
}
.mask-score-badge {
  flex: none;
  color: var(--site-accent);
  border: 1px solid color-mix(in srgb, var(--site-accent) 40%, var(--site-border));
  border-radius: calc(var(--site-radius) / 2);
  padding: 0 calc(6px * var(--site-space));
  font-size: calc(11px * var(--site-type));
  white-space: nowrap;
}
.mask-card-id { color: var(--site-muted); font-size: calc(11px * var(--site-type)); margin: 2px 0 6px; }
.mask-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.mask-tags .badge { font-size: calc(11px * var(--site-type)); }
.mask-card-single {
  color: var(--site-muted);
  font-size: calc(12px * var(--site-type));
  line-height: 1.5;
  margin: 7px 0 0;
}
.mask-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(18px * var(--site-space));
  background: color-mix(in srgb, #000 55%, transparent);
  overflow-y: auto;
}
.mask-modal-panel {
  position: relative;
  width: min(860px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--site-bg);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(22px * var(--site-space));
}
.mask-modal-close {
  position: absolute;
  top: calc(10px * var(--site-space));
  right: calc(10px * var(--site-space));
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--site-border);
  background: var(--site-surface);
  color: var(--site-fg);
  font-size: 20px;
  cursor: pointer;
}
.mask-modal-close:hover { color: var(--site-accent); border-color: var(--site-accent); }
body.mask-modal-open { overflow: hidden; }
.mask-detail {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: calc(20px * var(--site-space));
  align-items: start;
}
.mask-detail-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: color-mix(in srgb, var(--site-bg) 60%, var(--site-surface));
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
}
.mask-detail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mask-detail-head h2 { margin: 0; font-size: calc(26px * var(--site-type)); }
.mask-detail-score { color: var(--site-accent); font-weight: 600; white-space: nowrap; }
.mask-detail-id { color: var(--site-muted); font-size: calc(12px * var(--site-type)); margin: 2px 0 10px; }
.mask-detail-desc { color: var(--site-fg); line-height: 1.8; margin: 0 0 12px; }
.mask-detail-copy h3 {
  font-size: calc(16px * var(--site-type));
  color: var(--site-accent);
  margin: calc(18px * var(--site-space)) 0 calc(6px * var(--site-space));
}
.mask-detail-fav {
  font-family: inherit;
  font-size: calc(13px * var(--site-type));
  cursor: pointer;
  color: var(--site-fg);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(6px * var(--site-space)) calc(12px * var(--site-space));
}
.mask-detail-fav.active { color: var(--site-accent); border-color: var(--site-accent); }
.mask-title-list, .mask-upgrade-list { margin: 0; padding-left: 1.2em; }
.mask-title-line { margin: 4px 0; line-height: 1.6; }
.mask-title-name { font-weight: 600; }
.mask-title-need { color: var(--site-muted); font-size: calc(12px * var(--site-type)); margin-left: 6px; }
.mask-title-line.is-complete .mask-title-name { color: var(--site-accent); }
.mask-upgrade-list { color: var(--site-muted); font-size: calc(13px * var(--site-type)); line-height: 1.7; }
@media (max-width: 700px) {
  .mask-detail { grid-template-columns: 1fr; }
  .mask-detail-media { max-width: 220px; margin: 0 auto; }
  .mask-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
}
.wiki-content { max-width: 100%; }
.wiki-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: calc(12px * var(--site-space)) auto;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
}
.wiki-content h2 {
  font-size: calc(22px * var(--site-type));
  margin: calc(24px * var(--site-space)) 0 calc(10px * var(--site-space));
  padding-left: calc(10px * var(--site-space));
  border-left: 3px solid var(--site-accent);
}
.wiki-content h3 {
  font-size: calc(19px * var(--site-type));
  margin: calc(20px * var(--site-space)) 0 calc(8px * var(--site-space));
  color: var(--site-accent);
}
.wiki-content h4 {
  font-size: calc(16px * var(--site-type));
  margin: calc(16px * var(--site-space)) 0 calc(6px * var(--site-space));
  padding-left: calc(8px * var(--site-space));
  border-left: 3px solid var(--site-border);
  color: var(--site-fg);
}
.wiki-content p { line-height: 1.8; }
.wiki-content ul,
.wiki-content ol {
  margin: calc(8px * var(--site-space)) 0 calc(12px * var(--site-space));
  padding-left: 1.6em;
}
.wiki-content li { margin: calc(4px * var(--site-space)) 0; line-height: 1.7; }
.wiki-content blockquote {
  margin: calc(12px * var(--site-space)) 0;
  padding-left: calc(12px * var(--site-space));
  border-left: 3px solid var(--site-border);
  color: var(--site-muted);
}
.wiki-content table { margin: calc(12px * var(--site-space)) 0; }
.wiki-content th,
.wiki-content td { border: 1px solid var(--site-border); }
.wiki-content hr {
  border: none;
  border-top: 1px solid var(--site-border);
  margin: calc(18px * var(--site-space)) 0;
}
.stat-pairs {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: calc(6px * var(--site-space)) calc(16px * var(--site-space));
  margin: 0 0 calc(16px * var(--site-space));
  font-size: calc(14px * var(--site-type));
}
.stat-pairs dt { color: var(--site-muted); }
.stat-pairs dd { margin: 0; }

/* ---------- 计算器 ---------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: calc(24px * var(--site-space));
  align-items: start;
}
.calc-inputs .sub-title {
  font-size: calc(18px * var(--site-type));
  color: var(--site-accent);
  margin: calc(16px * var(--site-space)) 0 calc(10px * var(--site-space));
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: calc(10px * var(--site-space)) calc(14px * var(--site-space));
}
.calc-field { display: flex; flex-direction: column; gap: calc(4px * var(--site-space)); font-size: calc(13px * var(--site-type)); color: var(--site-muted); }
.calc-field input {
  font-family: inherit;
  font-size: calc(15px * var(--site-type));
  color: var(--site-fg);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(6px * var(--site-space)) calc(10px * var(--site-space));
  width: 100%;
}
.calc-field input:focus { outline: none; border-color: var(--site-accent); }
.calc-field select {
  font-family: inherit;
  font-size: calc(15px * var(--site-type));
  color: var(--site-fg);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(6px * var(--site-space)) calc(10px * var(--site-space));
  width: 100%;
}
.calc-field select:focus { outline: none; border-color: var(--site-accent); }
.calc-note {
  color: var(--site-muted);
  font-size: calc(13px * var(--site-type));
  margin: calc(-2px * var(--site-space)) 0 calc(10px * var(--site-space));
}
.calc-mode { display: flex; gap: calc(8px * var(--site-space)); margin-bottom: calc(16px * var(--site-space)); }
.calc-mode button {
  font-family: inherit;
  font-size: calc(16px * var(--site-type));
  letter-spacing: 2px;
  cursor: pointer;
  padding: calc(8px * var(--site-space)) calc(24px * var(--site-space));
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-surface);
  color: var(--site-muted);
  transition: background calc(180ms * var(--site-motion)), color calc(180ms * var(--site-motion));
}
.calc-mode button:hover { border-color: var(--site-accent); color: var(--site-accent); }
.calc-mode button.active { background: var(--site-accent); border-color: var(--site-accent); color: var(--site-on-accent); }
.calc-group-title {
  font-size: calc(14px * var(--site-type));
  color: var(--site-accent);
  letter-spacing: 1px;
  margin: calc(14px * var(--site-space)) 0 calc(6px * var(--site-space));
}
.locked-pairs dt { display: flex; align-items: center; gap: calc(6px * var(--site-space)); }
.locked-pairs dt svg { width: 11px; height: 11px; flex: none; opacity: 0.55; }
.locked-pairs dd, .calc-result dd { font-variant-numeric: tabular-nums; }
.calc-notes {
  margin-top: calc(14px * var(--site-space));
  padding-top: calc(10px * var(--site-space));
  border-top: 1px dashed var(--site-border);
  color: var(--site-muted);
  font-size: calc(12px * var(--site-type));
  list-style: none;
}
.calc-notes li { margin-bottom: calc(6px * var(--site-space)); padding-left: calc(12px * var(--site-space)); position: relative; }
.calc-notes li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--site-accent); opacity: 0.6; }
.calc-result {
  position: sticky;
  top: calc(84px * var(--site-space));
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--site-accent) var(--site-bg);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(16px * var(--site-space)) calc(18px * var(--site-space));
}
.calc-result::-webkit-scrollbar { width: 8px; }
.calc-result::-webkit-scrollbar-track { background: var(--site-bg); border-radius: 4px; }
.calc-result::-webkit-scrollbar-thumb { background: var(--site-accent); border-radius: 4px; }
.calc-result::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--site-accent) 80%, var(--site-fg)); }
.calc-result .section-title { font-size: calc(22px * var(--site-type)); margin-bottom: calc(12px * var(--site-space)); }
@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; }
  .calc-result { position: static; max-height: none; }
}
.article-body .section-title { margin-top: calc(28px * var(--site-space)); }
.article-figure { margin: 0 0 calc(20px * var(--site-space)); }
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-surface);
}
.article-figure figcaption { color: var(--site-muted); font-size: calc(13px * var(--site-type)); margin-top: calc(6px * var(--site-space)); }
.table-wrap tbody tr.expandable { cursor: pointer; }
.table-wrap tbody tr.expandable:hover { background: color-mix(in srgb, var(--site-accent) 8%, transparent); }
.table-wrap tbody tr.expanded { background: color-mix(in srgb, var(--site-accent) 12%, transparent); }
.detail-row { display: none; }
.detail-row.open { display: table-row; }
.detail-row > td { background: color-mix(in srgb, var(--site-accent) 5%, var(--site-surface)); }
.detail-body { padding: calc(8px * var(--site-space)) calc(4px * var(--site-space)) calc(14px * var(--site-space)); }
.detail-body h4 {
  color: var(--site-accent);
  font-size: calc(14px * var(--site-type));
  margin: calc(12px * var(--site-space)) 0 calc(6px * var(--site-space));
}
.props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: calc(4px * var(--site-space)) calc(16px * var(--site-space));
  font-size: calc(13px * var(--site-type));
}
.props dt { color: var(--site-muted); }
.props dd { margin: 0; }
.detail-note { color: var(--site-muted); font-size: calc(13px * var(--site-type)); margin-top: calc(10px * var(--site-space)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 摘梦阁价目表 ---------- */
.zm-info {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-left: 4px solid var(--site-accent);
  border-radius: var(--site-radius);
  padding: calc(16px * var(--site-space)) calc(18px * var(--site-space));
  margin: 0 0 calc(20px * var(--site-space));
}
.zm-info-lead { font-size: calc(15px * var(--site-type)); margin-bottom: calc(8px * var(--site-space)); }
.zm-info-lead strong { color: var(--site-accent); }
.zm-info ul { list-style: none; display: grid; gap: calc(4px * var(--site-space)); }
.zm-info li {
  position: relative;
  padding-left: calc(14px * var(--site-space));
  color: var(--site-muted);
  font-size: calc(13px * var(--site-type));
}
.zm-info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--site-accent);
  opacity: 0.55;
}
.zm-info li strong { color: var(--site-fg); }

.zm-toolbar { margin: 0 0 calc(18px * var(--site-space)); }
.zm-search input {
  width: 100%;
  max-width: 760px;
  font-family: inherit;
  font-size: calc(16px * var(--site-type));
  color: var(--site-fg);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(10px * var(--site-space)) calc(14px * var(--site-space));
}
.zm-search input:focus { outline: none; border-color: var(--site-accent); }
.zm-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(10px * var(--site-space));
  margin-top: calc(10px * var(--site-space));
}
.zm-filter-row label {
  display: inline-flex;
  align-items: center;
  gap: calc(6px * var(--site-space));
  color: var(--site-muted);
  font-size: calc(13px * var(--site-type));
}
.zm-filter-row select {
  font-family: inherit;
  font-size: calc(13px * var(--site-type));
  color: var(--site-fg);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) / 1.5);
  padding: calc(5px * var(--site-space)) calc(8px * var(--site-space));
  max-width: calc(180px * var(--site-space));
}
.zm-reset {
  font-family: inherit;
  font-size: calc(13px * var(--site-type));
  cursor: pointer;
  color: var(--site-muted);
  background: transparent;
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) / 1.5);
  padding: calc(5px * var(--site-space)) calc(12px * var(--site-space));
}
.zm-reset:hover { color: var(--site-accent); border-color: var(--site-accent); }

.zm-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: calc(10px * var(--site-space));
  margin-bottom: calc(14px * var(--site-space));
}
.zm-summary-item {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(10px * var(--site-space)) calc(12px * var(--site-space));
}
.zm-summary-label {
  display: block;
  color: var(--site-muted);
  font-size: calc(12px * var(--site-type));
  margin-bottom: calc(4px * var(--site-space));
}
.zm-summary-value { color: var(--site-accent); font-size: calc(17px * var(--site-type)); font-weight: 600; }
.zm-result-count { color: var(--site-muted); font-size: calc(13px * var(--site-type)); margin-bottom: calc(10px * var(--site-space)); }

.zm-table-wrap {
  overflow-x: auto;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
}
.zm-table { width: 100%; border-collapse: collapse; font-size: calc(14px * var(--site-type)); }
.zm-table th {
  text-align: left;
  white-space: nowrap;
  color: var(--site-muted);
  font-size: calc(12px * var(--site-type));
  letter-spacing: 1px;
  padding: calc(9px * var(--site-space)) calc(10px * var(--site-space));
  border-bottom: 1px solid var(--site-border);
  background: color-mix(in srgb, var(--site-bg) 55%, var(--site-surface));
}
.zm-table td {
  padding: calc(8px * var(--site-space)) calc(10px * var(--site-space));
  border-bottom: 1px solid color-mix(in srgb, var(--site-border) 55%, transparent);
  vertical-align: middle;
}
.zm-table tbody tr:last-child td { border-bottom: 0; }
.zm-table tbody tr:hover { background: color-mix(in srgb, var(--site-accent) 6%, transparent); }
.zm-cell-name { font-weight: 600; }
.zm-cell-group, .zm-cell-sub { color: var(--site-muted); }
.zm-cell-price { color: var(--site-accent); font-weight: 600; white-space: nowrap; }
.zm-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zm-table .badge { font-size: calc(11px * var(--site-type)); }

@media (max-width: 720px) {
  .zm-table-wrap { border: 0; background: transparent; overflow: visible; }
  .zm-table, .zm-table tbody, .zm-table tr, .zm-table td { display: block; width: 100%; }
  .zm-table thead { display: none; }
  .zm-table tbody tr {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    padding: calc(10px * var(--site-space)) calc(12px * var(--site-space));
    margin-bottom: calc(8px * var(--site-space));
  }
  .zm-table tbody tr:hover { background: var(--site-surface); }
  .zm-table td {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: calc(10px * var(--site-space));
    padding: calc(2px * var(--site-space)) 0;
    border: 0;
    text-align: left;
  }
  .zm-table td::before {
    content: attr(data-label);
    flex: none;
    width: calc(76px * var(--site-space));
    color: var(--site-muted);
    font-size: calc(12px * var(--site-type));
  }
  .zm-table td.zm-cell-name {
    font-size: calc(16px * var(--site-type));
    padding-bottom: calc(6px * var(--site-space));
    margin-bottom: calc(4px * var(--site-space));
    border-bottom: 1px dashed var(--site-border);
  }
  .zm-table td.zm-cell-name::before { display: none; }
  .zm-table td.zm-num { justify-content: flex-start; }
  .zm-filter-row select { max-width: none; }
}

/* ---------- 家具查询表 ---------- */
.jj-toolbar { margin: 0 0 calc(18px * var(--site-space)); }
.jj-search input {
  width: 100%;
  max-width: 760px;
  font-family: inherit;
  font-size: calc(16px * var(--site-type));
  color: var(--site-fg);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(10px * var(--site-space)) calc(14px * var(--site-space));
}
.jj-search input:focus { outline: none; border-color: var(--site-accent); }
.jj-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(10px * var(--site-space));
  margin-top: calc(10px * var(--site-space));
}
.jj-filter-row label {
  display: inline-flex;
  align-items: center;
  gap: calc(6px * var(--site-space));
  color: var(--site-muted);
  font-size: calc(13px * var(--site-type));
}
.jj-filter-row select {
  font-family: inherit;
  font-size: calc(13px * var(--site-type));
  color: var(--site-fg);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) / 1.5);
  padding: calc(5px * var(--site-space)) calc(8px * var(--site-space));
  max-width: calc(170px * var(--site-space));
}
.jj-reset {
  font-family: inherit;
  font-size: calc(13px * var(--site-type));
  cursor: pointer;
  color: var(--site-muted);
  background: transparent;
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) / 1.5);
  padding: calc(5px * var(--site-space)) calc(12px * var(--site-space));
}
.jj-reset:hover { color: var(--site-accent); border-color: var(--site-accent); }

.jj-result-count { color: var(--site-muted); font-size: calc(13px * var(--site-type)); margin-bottom: calc(10px * var(--site-space)); }

.jj-table-wrap {
  overflow-x: auto;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
}
.jj-table {
  width: 100%;
  min-width: calc(980px * var(--site-space));
  border-collapse: collapse;
  table-layout: fixed;
  font-size: calc(13px * var(--site-type));
}
.jj-table th:nth-child(1) { width: 13%; }
.jj-table th:nth-child(2) { width: 8%; }
.jj-table th:nth-child(3) { width: 7%; }
.jj-table th:nth-child(4) { width: 5%; }
.jj-table th:nth-child(5) { width: 7%; }
.jj-table th:nth-child(6) { width: 5%; }
.jj-table th:nth-child(7) { width: 21%; }
.jj-table th:nth-child(8) { width: 24%; }
.jj-table th:nth-child(9) { width: 10%; }
.jj-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  white-space: nowrap;
  color: var(--site-muted);
  font-size: calc(12px * var(--site-type));
  letter-spacing: 1px;
  padding: calc(9px * var(--site-space)) calc(8px * var(--site-space));
  border-bottom: 1px solid var(--site-border);
  background: color-mix(in srgb, var(--site-bg) 55%, var(--site-surface));
}
.jj-table td {
  padding: calc(7px * var(--site-space)) calc(8px * var(--site-space));
  border-bottom: 1px solid color-mix(in srgb, var(--site-border) 55%, transparent);
  vertical-align: top;
  word-break: break-word;
}
.jj-table tbody tr { cursor: pointer; }
.jj-table tbody tr:last-child td { border-bottom: 0; }
.jj-table tbody tr:hover { background: color-mix(in srgb, var(--site-accent) 6%, transparent); }
.jj-table tbody tr:focus-visible { outline: 2px solid var(--site-accent); outline-offset: -2px; }
.jj-name { font-weight: 600; }
.jj-table .badge { font-size: calc(10px * var(--site-type)); margin-left: calc(3px * var(--site-space)); padding: 1px 5px; }
.jj-cell-type, .jj-cell-rooms, .jj-cell-source { color: var(--site-muted); }
.jj-cell-center { text-align: center; }
.jj-num { text-align: right; font-variant-numeric: tabular-nums; }
.jj-cell-price { color: var(--site-accent); font-weight: 600; }
.jj-cell-rooms { font-size: calc(12px * var(--site-type)); line-height: 1.5; }
.jj-cell-desc { color: var(--site-fg); font-size: calc(12.5px * var(--site-type)); line-height: 1.55; }
.jj-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jj-table tbody tr.expanded .jj-desc { -webkit-line-clamp: unset; }
.jj-cell-source { font-size: calc(12px * var(--site-type)); }
.jj-cell-source.is-todo { opacity: 0.7; }

.jj-diff {
  margin-top: calc(18px * var(--site-space));
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(12px * var(--site-space)) calc(16px * var(--site-space));
}
.jj-diff summary {
  cursor: pointer;
  color: var(--site-accent);
  font-size: calc(15px * var(--site-type));
  font-weight: 600;
}
.jj-diff-body { padding-top: calc(4px * var(--site-space)); }
.jj-diff-body h3 {
  color: var(--site-accent);
  font-size: calc(14px * var(--site-type));
  margin: calc(14px * var(--site-space)) 0 calc(6px * var(--site-space));
}
.jj-diff-list { display: flex; flex-wrap: wrap; gap: calc(6px * var(--site-space)); }
.jj-diff-chip {
  background: color-mix(in srgb, var(--site-bg) 60%, var(--site-surface));
  border: 1px solid var(--site-border);
  border-radius: 999px;
  padding: calc(2px * var(--site-space)) calc(10px * var(--site-space));
  font-size: calc(12px * var(--site-type));
  color: var(--site-fg);
}
.jj-diff-empty { color: var(--site-muted); font-size: calc(13px * var(--site-type)); }
.jj-diff-note {
  margin-top: calc(14px * var(--site-space));
  padding-top: calc(10px * var(--site-space));
  border-top: 1px dashed var(--site-border);
  color: var(--site-muted);
  font-size: calc(12px * var(--site-type));
}

@media (max-width: 760px) {
  .jj-table-wrap { border: 0; background: transparent; overflow: visible; }
  .jj-table, .jj-table tbody, .jj-table tr, .jj-table td { display: block; width: 100%; }
  .jj-table { min-width: 0; table-layout: auto; }
  .jj-table thead { display: none; }
  .jj-table tbody tr {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    padding: calc(10px * var(--site-space)) calc(12px * var(--site-space));
    margin-bottom: calc(8px * var(--site-space));
  }
  .jj-table tbody tr:hover { background: var(--site-surface); }
  .jj-table td {
    display: grid;
    grid-template-columns: calc(78px * var(--site-space)) 1fr;
    gap: calc(8px * var(--site-space));
    padding: calc(2px * var(--site-space)) 0;
    border: 0;
    text-align: left;
  }
  .jj-table td::before {
    content: attr(data-label);
    color: var(--site-muted);
    font-size: calc(12px * var(--site-type));
  }
  .jj-table td.jj-cell-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(4px * var(--site-space));
    font-size: calc(16px * var(--site-type));
    padding-bottom: calc(6px * var(--site-space));
    margin-bottom: calc(4px * var(--site-space));
    border-bottom: 1px dashed var(--site-border);
  }
  .jj-table td.jj-cell-name::before { content: none; }
  .jj-desc { -webkit-line-clamp: unset; }
  .jj-cell-rooms, .jj-cell-desc, .jj-cell-source { font-size: calc(12px * var(--site-type)); }
  .jj-filter-row select { max-width: none; }
}

/* ---------- 书籍查询表（复用数据表基础样式） ---------- */
.sj-table { min-width: calc(860px * var(--site-space)); }
.sj-table th:nth-child(1) { width: 14%; }
.sj-table th:nth-child(2) { width: 7%; }
.sj-table th:nth-child(3) { width: 5%; }
.sj-table th:nth-child(4) { width: 8%; }
.sj-table th:nth-child(5) { width: 7%; }
.sj-table th:nth-child(6) { width: 9%; }
.sj-table th:nth-child(7) { width: 6%; }
.sj-table th:nth-child(8) { width: 10%; }
.sj-table th:nth-child(9) { width: 34%; }
.sj-cell-cat { font-size: calc(12px * var(--site-type)); color: var(--site-muted); }
.sj-cat-锻造 { color: var(--site-accent); }
.sj-cat-毒术 { color: color-mix(in srgb, var(--site-accent) 40%, #4f9d69); }
.sj-cell-req { color: var(--site-fg); }
.sj-cell-jifen { color: var(--site-accent); font-weight: 600; white-space: nowrap; }

.sj-detail-row { display: none; }
.sj-detail-row.is-open { display: table-row; }
.sj-detail-row td {
  background: color-mix(in srgb, var(--site-bg) 55%, var(--site-surface));
  border-bottom: 1px solid var(--site-border);
  padding: calc(9px * var(--site-space)) calc(12px * var(--site-space));
  cursor: default;
}
.sj-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(120px * var(--site-space)), 1fr));
  gap: calc(6px * var(--site-space)) calc(14px * var(--site-space));
  font-size: calc(12.5px * var(--site-type));
}
.sj-detail-item { color: var(--site-fg); }
.sj-detail-item strong {
  color: var(--site-muted);
  font-weight: 400;
  margin-right: calc(6px * var(--site-space));
}

@media (max-width: 760px) {
  .sj-table tr.sj-detail-row.is-open { display: block; }
  .sj-table td.sj-detail-cell { display: block; padding: 0; border: 0; }
  .sj-table td.sj-detail-cell::before { content: none; }
  .sj-detail-row td {
    background: transparent;
    border: 0;
    padding-top: calc(6px * var(--site-space));
  }
  .sj-detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(calc(96px * var(--site-space)), 1fr));
    gap: calc(4px * var(--site-space)) calc(10px * var(--site-space));
  }
}

/* ---------- 门派图鉴 ---------- */
.mp-picker {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(12px * var(--site-space)) calc(14px * var(--site-space));
  margin-bottom: calc(18px * var(--site-space));
}
.mp-faction-grid { display: flex; flex-wrap: wrap; gap: calc(8px * var(--site-space)); }
.mp-index-group + .mp-index-group {
  margin-top: calc(14px * var(--site-space));
  padding-top: calc(14px * var(--site-space));
  border-top: 1px dashed var(--site-border);
}
.mp-index-title { font-size: calc(15px * var(--site-type)); color: var(--site-muted); margin-bottom: calc(8px * var(--site-space)); }
.mp-faction-btn {
  font-family: inherit;
  font-size: calc(14px * var(--site-type));
  color: var(--site-fg);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) / 1.5);
  padding: calc(5px * var(--site-space)) calc(14px * var(--site-space));
  cursor: pointer;
  transition: border-color calc(180ms * var(--site-motion)), color calc(180ms * var(--site-motion));
}
.mp-faction-btn:hover { border-color: var(--site-accent); color: var(--site-accent); }
.mp-faction-btn.active { background: var(--site-accent); border-color: var(--site-accent); color: var(--site-on-accent); }

.mp-detail { margin-top: calc(4px * var(--site-space)); }
.mp-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: calc(18px * var(--site-space));
  background: linear-gradient(135deg, color-mix(in srgb, var(--site-accent) 10%, var(--site-surface)), var(--site-surface) 58%);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(18px * var(--site-space)) calc(20px * var(--site-space));
  margin-bottom: calc(16px * var(--site-space));
}
.mp-banner {
  width: calc(210px * var(--site-space));
  height: calc(130px * var(--site-space));
  object-fit: cover;
  border-radius: calc(var(--site-radius) / 1.5);
  border: 1px solid var(--site-border);
  flex: 0 0 auto;
}
.mp-hero-info { min-width: 0; }
.mp-hero-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: calc(8px * var(--site-space)); }
.mp-hero-title { font-size: calc(30px * var(--site-type)); letter-spacing: 2px; }
.mp-tagline { color: var(--site-muted); font-size: calc(14px * var(--site-type)); margin-top: calc(4px * var(--site-space)); }
.mp-stats { display: flex; flex-wrap: wrap; gap: calc(8px * var(--site-space)); margin-top: calc(12px * var(--site-space)); }
.mp-stat {
  display: inline-flex;
  align-items: baseline;
  gap: calc(5px * var(--site-space));
  background: color-mix(in srgb, var(--site-bg) 55%, var(--site-surface));
  border: 1px solid var(--site-border);
  border-radius: 999px;
  padding: calc(3px * var(--site-space)) calc(10px * var(--site-space));
  color: var(--site-muted);
  font-size: calc(12px * var(--site-type));
}
.mp-stat strong { color: var(--site-accent); font-size: calc(15px * var(--site-type)); }

.mp-section {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(14px * var(--site-space)) calc(18px * var(--site-space)) calc(16px * var(--site-space));
  margin-bottom: calc(14px * var(--site-space));
}
.mp-section-head { display: flex; align-items: center; gap: calc(10px * var(--site-space)); }
.mp-section-title {
  font-size: calc(21px * var(--site-type));
  padding-left: calc(10px * var(--site-space));
  border-left: 4px solid var(--site-accent);
}
.mp-section-note { color: var(--site-muted); font-size: calc(12.5px * var(--site-type)); margin: calc(6px * var(--site-space)) 0 calc(10px * var(--site-space)); }
.mp-section-body { margin-top: calc(10px * var(--site-space)); }
.mp-empty { color: var(--site-muted); font-size: calc(13px * var(--site-type)); }
.mp-paragraph { font-size: calc(14px * var(--site-type)); line-height: 1.85; color: var(--site-fg); margin-bottom: calc(6px * var(--site-space)); }

.mp-chip-grid { display: flex; flex-wrap: wrap; gap: calc(7px * var(--site-space)); }
.mp-skill-chip {
  display: inline-flex;
  align-items: center;
  gap: calc(5px * var(--site-space));
  font-family: inherit;
  font-size: calc(13.5px * var(--site-type));
  color: var(--site-fg);
  background: color-mix(in srgb, var(--site-bg) 50%, var(--site-surface));
  border: 1px solid var(--site-border);
  border-radius: 999px;
  padding: calc(4px * var(--site-space)) calc(12px * var(--site-space));
  cursor: pointer;
}
.mp-skill-chip:hover { border-color: var(--site-accent); }
.mp-skill-chip .badge { font-size: calc(10px * var(--site-type)); padding: 0 4px; }
.mp-chip-type { color: var(--site-muted); font-size: calc(11px * var(--site-type)); }
.mp-diff-note { margin-top: calc(9px * var(--site-space)); color: var(--site-muted); font-size: calc(12px * var(--site-type)); line-height: 1.7; }

.mp-table-wrap { overflow-x: auto; border: 1px solid var(--site-border); border-radius: calc(var(--site-radius) / 1.5); }
.mp-table { width: 100%; min-width: calc(720px * var(--site-space)); border-collapse: collapse; font-size: calc(12.5px * var(--site-type)); }
.mp-coeff-table { min-width: calc(980px * var(--site-space)); table-layout: fixed; }
.mp-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  white-space: nowrap;
  color: var(--site-muted);
  font-size: calc(12px * var(--site-type));
  letter-spacing: 0.5px;
  padding: calc(8px * var(--site-space)) calc(7px * var(--site-space));
  border-bottom: 1px solid var(--site-border);
  background: color-mix(in srgb, var(--site-bg) 55%, var(--site-surface));
}
.mp-table td {
  padding: calc(7px * var(--site-space));
  border-bottom: 1px solid color-mix(in srgb, var(--site-border) 55%, transparent);
  vertical-align: top;
  word-break: break-word;
}
.mp-table tbody tr:last-child td { border-bottom: 0; }
.mp-table tbody tr:hover { background: color-mix(in srgb, var(--site-accent) 6%, transparent); }
.mp-table .mp-cell-name { font-weight: 600; white-space: nowrap; }
.mp-coeff-table th:nth-child(1) { width: 12%; }
.mp-coeff-table th:nth-child(2) { width: 10%; }
.mp-coeff-table th:nth-child(3),
.mp-coeff-table th:nth-child(4),
.mp-coeff-table th:nth-child(5),
.mp-coeff-table th:nth-child(6),
.mp-coeff-table th:nth-child(7),
.mp-coeff-table th:nth-child(8),
.mp-coeff-table th:nth-child(9) { width: 6.5%; }
.mp-coeff-table th:nth-child(10) { width: 30%; }
.mp-coeff-table tbody tr { cursor: pointer; }
.mp-coeff-table tbody tr:focus-visible { outline: 2px solid var(--site-accent); outline-offset: -2px; }
.mp-coeff-table tbody tr.flash { animation: mp-flash 1.6s ease; }
@keyframes mp-flash {
  0%, 100% { background: transparent; }
  20%, 70% { background: color-mix(in srgb, var(--site-accent) 18%, transparent); }
}
.mp-cell-desc { color: var(--site-muted); font-size: calc(12px * var(--site-type)); line-height: 1.6; }
.mp-detail-row { display: none; }
.mp-detail-row.is-open { display: table-row; }
.mp-detail-row td {
  background: color-mix(in srgb, var(--site-bg) 55%, var(--site-surface));
  border-bottom: 1px solid var(--site-border);
  cursor: default;
}
.mp-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(calc(150px * var(--site-space)), 1fr)); gap: calc(5px * var(--site-space)) calc(14px * var(--site-space)); }
.mp-detail-item { font-size: calc(12px * var(--site-type)); }
.mp-detail-item strong { color: var(--site-muted); font-weight: 400; margin-right: calc(5px * var(--site-space)); }

.mp-npc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(250px * var(--site-space)), 1fr)); gap: calc(10px * var(--site-space)); }
.mp-npc-card {
  background: color-mix(in srgb, var(--site-bg) 45%, var(--site-surface));
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) / 1.5);
  padding: calc(10px * var(--site-space)) calc(12px * var(--site-space));
}
.mp-npc-card.is-wiki-only { opacity: 0.8; }
.mp-npc-head { display: flex; flex-wrap: wrap; align-items: center; gap: calc(5px * var(--site-space)); }
.mp-npc-name { font-size: calc(15px * var(--site-type)); font-weight: 600; }
.mp-npc-head .badge { font-size: calc(10px * var(--site-type)); }
.mp-npc-desc { color: var(--site-muted); font-size: calc(12.5px * var(--site-type)); line-height: 1.65; margin-top: calc(5px * var(--site-space)); }
.mp-npc-meta { display: flex; flex-wrap: wrap; gap: calc(9px * var(--site-space)); margin-top: calc(7px * var(--site-space)); color: var(--site-muted); font-size: calc(12px * var(--site-type)); }
.mp-tag-accent { color: var(--site-accent); }
.mp-npc-cond { margin-top: calc(6px * var(--site-space)); font-size: calc(12px * var(--site-type)); color: var(--site-fg); }

.mp-xinfa-card {
  background: color-mix(in srgb, var(--site-bg) 45%, var(--site-surface));
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) / 1.5);
  padding: calc(12px * var(--site-space)) calc(14px * var(--site-space));
}
.mp-xinfa-card h3 { color: var(--site-accent); font-size: calc(16px * var(--site-type)); margin-bottom: calc(6px * var(--site-space)); }
.mp-basic-block { display: flex; flex-direction: column; gap: calc(4px * var(--site-space)); }
.mp-mini-label { color: var(--site-muted); font-size: calc(12px * var(--site-type)); margin-top: calc(6px * var(--site-space)); }
.mp-basic-chip {
  background: color-mix(in srgb, var(--site-bg) 50%, var(--site-surface));
  border: 1px solid var(--site-border);
  border-radius: 999px;
  padding: calc(2px * var(--site-space)) calc(10px * var(--site-space));
  font-size: calc(12.5px * var(--site-type));
}
.mp-empty-inline { color: var(--site-muted); font-size: calc(12.5px * var(--site-type)); }

.mp-master-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(300px * var(--site-space)), 1fr)); gap: calc(10px * var(--site-space)); }
.mp-master-card {
  background: color-mix(in srgb, var(--site-bg) 45%, var(--site-surface));
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) / 1.5);
  padding: calc(11px * var(--site-space)) calc(13px * var(--site-space));
}
.mp-master-head { display: flex; flex-wrap: wrap; align-items: center; gap: calc(7px * var(--site-space)); }
.mp-master-head h3 { font-size: calc(16px * var(--site-type)); }
.mp-master-head .badge { font-size: calc(10px * var(--site-type)); }
.mp-master-cond { font-size: calc(12.5px * var(--site-type)); line-height: 1.7; margin-top: calc(7px * var(--site-space)); }
.mp-master-cond strong { color: var(--site-muted); font-weight: 400; }
.mp-teach { margin-top: calc(8px * var(--site-space)); }
.mp-teach summary {
  cursor: pointer;
  color: var(--site-accent);
  font-size: calc(12.5px * var(--site-type));
}
.mp-teach-chips { margin-top: calc(7px * var(--site-space)); }
.mp-teach-chip {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) / 2);
  padding: calc(2px * var(--site-space)) calc(8px * var(--site-space));
  font-size: calc(12px * var(--site-type));
}

.mp-map-link { display: block; text-align: center; }
.mp-map-img { max-width: 100%; height: auto; border-radius: calc(var(--site-radius) / 1.5); border: 1px solid var(--site-border); }
.mp-guide-block { padding: calc(8px * var(--site-space)) 0; border-bottom: 1px dashed var(--site-border); }
.mp-guide-block:last-child { border-bottom: 0; }
.mp-guide-block h3 { font-size: calc(16px * var(--site-type)); color: var(--site-fg); margin-bottom: calc(3px * var(--site-space)); }

@media (max-width: 760px) {
  .mp-hero { flex-direction: column; gap: calc(10px * var(--site-space)); padding: calc(14px * var(--site-space)); }
  .mp-banner { width: 100%; height: calc(150px * var(--site-space)); }
  .mp-hero-title { font-size: calc(25px * var(--site-type)); }
  .mp-section { padding: calc(12px * var(--site-space)) calc(12px * var(--site-space)); }
  .mp-section-title { font-size: calc(18px * var(--site-type)); }
  .mp-npc-grid, .mp-master-grid { grid-template-columns: 1fr; }
  .mp-table { min-width: calc(620px * var(--site-space)); }
  .mp-coeff-table { min-width: calc(880px * var(--site-space)); }
}

/* ---------- 装备查询表 ---------- */
.zb-table { min-width: calc(900px * var(--site-space)); }
.zb-table th:nth-child(1) { width: 15%; }
.zb-table th:nth-child(2) { width: 6%; }
.zb-table th:nth-child(3) { width: 9%; }
.zb-table th:nth-child(4) { width: 7%; }
.zb-table th:nth-child(5) { width: 7%; }
.zb-table th:nth-child(6) { width: 7%; }
.zb-table th:nth-child(7) { width: 9%; }
.zb-table th:nth-child(8) { width: 40%; }
.zb-cell-subtype { color: var(--site-muted); }
.zb-cell-damage { color: var(--site-accent); }
.zb-cell-price { color: var(--site-accent); }
.zb-cell-source { color: var(--site-fg); font-size: calc(12.5px * var(--site-type)); line-height: 1.55; }

@media (max-width: 760px) {
  .zb-table { min-width: 0; }
}

/* ---------- 排行榜 ---------- */
#ph-tabs { margin-bottom: calc(14px * var(--site-space)); }
.ph-board {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(16px * var(--site-space)) calc(18px * var(--site-space));
}
.ph-title {
  font-size: calc(23px * var(--site-type));
  padding-left: calc(10px * var(--site-space));
  border-left: 4px solid var(--site-accent);
  margin-bottom: calc(8px * var(--site-space));
}
.ph-desc { color: var(--site-fg); font-size: calc(14px * var(--site-type)); line-height: 1.75; }
.ph-note { color: var(--site-muted); font-size: calc(12.5px * var(--site-type)); line-height: 1.7; margin: calc(6px * var(--site-space)) 0 calc(12px * var(--site-space)); }
.ph-table-wrap { border: 1px solid var(--site-border); border-radius: calc(var(--site-radius) / 1.5); overflow: hidden; }
.ph-table { width: 100%; border-collapse: collapse; font-size: calc(13px * var(--site-type)); }
.ph-table th {
  text-align: left;
  color: var(--site-muted);
  font-size: calc(12px * var(--site-type));
  letter-spacing: 1px;
  padding: calc(8px * var(--site-space)) calc(12px * var(--site-space));
  background: color-mix(in srgb, var(--site-bg) 55%, var(--site-surface));
  border-bottom: 1px solid var(--site-border);
}
.ph-table td {
  padding: calc(6px * var(--site-space)) calc(12px * var(--site-space));
  border-bottom: 1px solid color-mix(in srgb, var(--site-border) 55%, transparent);
}
.ph-table tbody tr:last-child td { border-bottom: 0; }
.ph-table tbody tr:hover { background: color-mix(in srgb, var(--site-accent) 6%, transparent); }
.ph-cell-title { font-weight: 600; white-space: nowrap; }
.ph-cell-title .badge { font-size: calc(10px * var(--site-type)); margin-left: calc(5px * var(--site-space)); padding: 1px 5px; }
.ph-cell-req { color: var(--site-accent); font-variant-numeric: tabular-nums; }
.ph-title-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(190px * var(--site-space)), 1fr));
  gap: calc(8px * var(--site-space));
}
.ph-title-chip {
  display: flex;
  align-items: center;
  gap: calc(8px * var(--site-space));
  background: color-mix(in srgb, var(--site-bg) 45%, var(--site-surface));
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) / 1.5);
  padding: calc(7px * var(--site-space)) calc(10px * var(--site-space));
  font-size: calc(13.5px * var(--site-type));
}
.ph-title-chip strong {
  color: var(--site-accent);
  font-size: calc(12px * var(--site-type));
  min-width: 1.6em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .ph-board { padding: calc(13px * var(--site-space)) calc(12px * var(--site-space)); }
  .ph-title { font-size: calc(19px * var(--site-type)); }
  .ph-title-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- BUFF效果 ---------- */
.bf-controls { display: flex; flex-wrap: wrap; gap: calc(8px * var(--site-space)); margin: calc(8px * var(--site-space)) 0 calc(10px * var(--site-space)); }
.bf-search-input {
  font-family: inherit;
  font-size: calc(14px * var(--site-type));
  color: var(--site-fg);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) / 1.5);
  padding: calc(7px * var(--site-space)) calc(11px * var(--site-space));
  min-width: calc(240px * var(--site-space));
  flex: 1 1 260px;
  max-width: calc(420px * var(--site-space));
}
.bf-search-input:focus { outline: none; border-color: var(--site-accent); }
.bf-select {
  font-family: inherit;
  font-size: calc(13px * var(--site-type));
  color: var(--site-fg);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) / 1.5);
  padding: calc(6px * var(--site-space)) calc(9px * var(--site-space));
}
.bf-cell-id { color: var(--site-muted); font-size: calc(11.5px * var(--site-type)); font-variant-numeric: tabular-nums; }




/* ---------- 武学动画 ---------- */
.wa-lead {
  color: var(--site-muted);
  font-size: calc(14px * var(--site-type));
  margin: calc(-6px * var(--site-space)) 0 calc(16px * var(--site-space));
  max-width: 62em;
}
.wa-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(10px * var(--site-space));
  margin-bottom: calc(12px * var(--site-space));
}
.wa-search { flex: 1 1 260px; min-width: calc(220px * var(--site-space)); }
.wa-search input {
  width: 100%;
  font-family: inherit;
  font-size: calc(15px * var(--site-type));
  color: var(--site-fg);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(9px * var(--site-space)) calc(13px * var(--site-space));
}
.wa-search input:focus { outline: none; border-color: var(--site-accent); }
.wa-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: calc(6px * var(--site-space));
  color: var(--site-muted);
  font-size: calc(13px * var(--site-type));
}
.wa-toolbar select {
  font-family: inherit;
  font-size: calc(13px * var(--site-type));
  color: var(--site-fg);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) / 1.5);
  padding: calc(6px * var(--site-space)) calc(8px * var(--site-space));
  max-width: calc(160px * var(--site-space));
}
.wa-reset {
  font-family: inherit;
  font-size: calc(13px * var(--site-type));
  cursor: pointer;
  color: var(--site-muted);
  background: transparent;
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) / 1.5);
  padding: calc(6px * var(--site-space)) calc(12px * var(--site-space));
}
.wa-reset:hover { color: var(--site-accent); border-color: var(--site-accent); }
.wa-count { color: var(--site-muted); font-size: calc(13px * var(--site-type)); margin-bottom: calc(10px * var(--site-space)); }

.wa-layout {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  gap: calc(18px * var(--site-space));
  align-items: start;
}
.wa-list-panel {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  overflow: hidden;
}
.wa-list { max-height: 72vh; overflow-y: auto; overscroll-behavior: contain; }
.wa-skill {
  display: flex;
  flex-direction: column;
  gap: calc(2px * var(--site-space));
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: var(--site-fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--site-border) 55%, transparent);
  border-left: 3px solid transparent;
  padding: calc(9px * var(--site-space)) calc(12px * var(--site-space));
  cursor: pointer;
  transition: background calc(160ms * var(--site-motion)), border-color calc(160ms * var(--site-motion));
}
.wa-skill:hover { background: color-mix(in srgb, var(--site-accent) 6%, transparent); }
.wa-skill.active {
  background: color-mix(in srgb, var(--site-accent) 10%, transparent);
  border-left-color: var(--site-accent);
}
.wa-skill-name { font-size: calc(16px * var(--site-type)); line-height: 1.4; }
.wa-skill-meta { color: var(--site-muted); font-size: calc(12px * var(--site-type)); line-height: 1.4; }
.wa-empty { color: var(--site-muted); font-size: calc(13px * var(--site-type)); padding: calc(14px * var(--site-space)); }

.wa-player-panel {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(14px * var(--site-space));
  min-width: 0;
  scroll-margin-top: calc(76px * var(--site-space));
}
.wa-player-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: calc(12px * var(--site-space));
  margin-bottom: calc(10px * var(--site-space));
}
.wa-player-head h2 {
  font-size: calc(24px * var(--site-type));
  line-height: 1.3;
}
.wa-meta { color: var(--site-muted); font-size: calc(12.5px * var(--site-type)); margin-top: calc(2px * var(--site-space)); }
.wa-badge {
  flex-shrink: 0;
  color: var(--site-accent);
  background: color-mix(in srgb, var(--site-accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--site-accent) 35%, transparent);
  border-radius: 999px;
  padding: calc(2px * var(--site-space)) calc(10px * var(--site-space));
  font-size: calc(12px * var(--site-type));
}

.wa-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 62vh;
  background: #14161a;
  border: 1px solid color-mix(in srgb, var(--site-fg) 18%, transparent);
  border-radius: calc(var(--site-radius) / 1.2);
  overflow: hidden;
  scroll-margin-top: calc(76px * var(--site-space));
}
.wa-player { position: absolute; inset: 0; }
.wa-player .spine-player { height: 100%; }
.wa-stage-note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(18px * var(--site-space));
  color: #c9c1b3;
  font-size: calc(14px * var(--site-type));
  z-index: 2;
  pointer-events: none;
  background: #14161a;
}
.wa-loading { color: #f0c96a; }

.wa-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(8px * var(--site-space));
  margin-top: calc(10px * var(--site-space));
}
.wa-btn {
  font-family: inherit;
  font-size: calc(13px * var(--site-type));
  color: var(--site-fg);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) / 1.5);
  padding: calc(6px * var(--site-space)) calc(12px * var(--site-space));
  cursor: pointer;
  transition: border-color calc(160ms * var(--site-motion)), color calc(160ms * var(--site-motion));
}
.wa-btn:hover:not(:disabled) { border-color: var(--site-accent); color: var(--site-accent); }
.wa-btn:disabled, .wa-controls select:disabled { opacity: 0.5; cursor: default; }
.wa-btn-primary {
  background: var(--site-accent);
  border-color: var(--site-accent);
  color: var(--site-on-accent);
}
.wa-btn-primary:hover:not(:disabled) { color: var(--site-on-accent); }
.wa-speed, .wa-jump, .wa-weapon {
  display: inline-flex;
  align-items: center;
  gap: calc(5px * var(--site-space));
  color: var(--site-muted);
  font-size: calc(12.5px * var(--site-type));
}
.wa-weapon { cursor: pointer; user-select: none; }
.wa-weapon input { margin: 0; accent-color: var(--site-accent); cursor: pointer; }
.wa-controls select {
  font-family: inherit;
  font-size: calc(12.5px * var(--site-type));
  color: var(--site-fg);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) / 1.5);
  padding: calc(5px * var(--site-space)) calc(7px * var(--site-space));
  max-width: calc(160px * var(--site-space));
}
.wa-now {
  margin-top: calc(10px * var(--site-space));
  color: var(--site-accent);
  font-size: calc(16px * var(--site-type));
  font-weight: 600;
  min-height: 1.6em;
}
.wa-desc {
  color: var(--site-muted);
  font-size: calc(13px * var(--site-type));
  line-height: 1.65;
  min-height: 1.65em;
}
.wa-moves {
  display: flex;
  flex-wrap: wrap;
  gap: calc(6px * var(--site-space));
  margin-top: calc(10px * var(--site-space));
}
.wa-related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(6px * var(--site-space));
  margin-top: calc(8px * var(--site-space));
}
.wa-related-label {
  color: var(--site-muted);
  font-size: calc(12.5px * var(--site-type));
}
.wa-move-btn {
  font-family: inherit;
  font-size: calc(12.5px * var(--site-type));
  color: var(--site-fg);
  background: color-mix(in srgb, var(--site-bg) 60%, var(--site-surface));
  border: 1px solid var(--site-border);
  border-radius: 999px;
  padding: calc(4px * var(--site-space)) calc(10px * var(--site-space));
  cursor: pointer;
  transition: border-color calc(160ms * var(--site-motion)), color calc(160ms * var(--site-motion));
}
.wa-move-btn:hover { border-color: var(--site-accent); }
.wa-move-btn.active {
  background: var(--site-accent);
  border-color: var(--site-accent);
  color: var(--site-on-accent);
}

@media (max-width: 820px) {
  .wa-layout { grid-template-columns: 1fr; }
  .wa-list { max-height: 34vh; }
  .wa-stage { max-height: 58vh; }
  .wa-player-head h2 { font-size: calc(21px * var(--site-type)); }
}
@media (max-width: 520px) {
  .wa-toolbar label { flex: 1 1 calc(50% - 10px); justify-content: space-between; white-space: nowrap; }
  .wa-toolbar select { width: auto; flex: 1; min-width: 0; max-width: none; }
  .wa-stage { max-height: 52vh; }
  .wa-controls { gap: calc(6px * var(--site-space)); }
  .wa-btn { padding: calc(6px * var(--site-space)) calc(10px * var(--site-space)); }
  .wa-jump { flex: 1 1 100%; }
  .wa-jump select { max-width: none; flex: 1; }
}

/* ---------- 首页：不同板块的同级选项统一字号 ---------- */
body.home .card h3 { font-size: calc(15px * var(--site-type)); }


/* ---------- 首页：卡片统一为图二的紧凑标签样式 ---------- */
body.home .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: calc(6px * var(--site-space));
}
body.home .card,
body.home .tool-grid .card {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: calc(6px * var(--site-space)) calc(16px * var(--site-space));
  border-radius: calc(var(--site-radius) / 1.5);
}
body.home .card h3 { margin: 0; }
body.home .card p { display: none; }
body.home .card:hover { transform: none; box-shadow: none; border-color: var(--site-accent); }

