/* 遗漏王网页版 — 墨色台面风格 */
:root {
  --bg: #e8e4db;
  --bg-deep: #d9d3c7;
  --ink: #1a2332;
  --ink-soft: #3d4a5c;
  --muted: #6b7585;
  --panel: rgba(255, 252, 247, 0.92);
  --line: rgba(26, 35, 50, 0.12);
  --accent: #b33a2b;
  --accent-soft: #d4654a;
  --ok: #1f6b4a;
  --warn: #9a6b12;
  --shadow: 0 18px 50px rgba(26, 35, 50, 0.12);
  --radius: 14px;
  --font-display: "ZCOOL XiaoWei", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(179, 58, 43, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(26, 35, 50, 0.08), transparent 50%),
    linear-gradient(165deg, var(--bg), var(--bg-deep));
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(26, 35, 50, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 35, 50, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
}

.app {
  position: relative;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  animation: rise 0.55s ease both;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--ink);
}
.brand-sub {
  color: var(--muted);
  font-size: 0.92rem;
}

.top-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary {
  background: var(--ink);
  color: #f7f3ea;
  border-color: transparent;
}
.btn-accent {
  background: var(--accent);
  color: #fff7f2;
  border-color: transparent;
}

.tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  animation: rise 0.6s 0.05s ease both;
}
.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}
.tab.active {
  background: var(--ink);
  color: #f7f3ea;
}

.more-menu {
  position: relative;
  display: inline-block;
}
.more-menu > summary { list-style: none; cursor: pointer; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu .more-body {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 160px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 50;
}
.more-menu .more-body a,
.more-menu .more-body button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  border-radius: calc(var(--radius) * 0.6);
  font: inherit;
  cursor: pointer;
}
.more-menu .more-body a:hover,
.more-menu .more-body button:hover { background: var(--line); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem 1.3rem;
  animation: rise 0.65s 0.08s ease both;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (max-width: 800px) {
  .toolbar { grid-template-columns: 1fr 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .toolbar { grid-template-columns: 1fr; }
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
textarea { min-height: 88px; resize: vertical; }

.view { display: none; }
.view.active { display: block; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (max-width: 700px) {
  .hero-stats { grid-template-columns: 1fr; }
}
.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, #fff, #f6f1e8);
}
.stat .k { color: var(--muted); font-size: 0.8rem; }
.stat .v {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
}
.stat .v.num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.85rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 700px) {
  .cards { grid-template-columns: 1fr; }
}
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: #fff;
}
.card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.card .row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0;
  border-top: 1px dashed var(--line);
  font-size: 0.9rem;
}
.card .row:first-of-type { border-top: 0; }
.omit {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
th, td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
th {
  position: sticky;
  top: 0;
  background: #f3eee4;
  color: var(--ink-soft);
  font-weight: 600;
}
tr:hover td { background: rgba(179, 58, 43, 0.04); }

.muted { color: var(--muted); }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.err { color: var(--accent); }

.status-bar {
  margin-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip-list-scroll {
  max-height: min(52vh, 420px);
  overflow: auto;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 252, 247, 0.55);
}
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.recommend-filters {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.rec-toolbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}
.rec-form-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 247, 0.55);
}
.rec-form-block.off {
  opacity: 0.48;
}
.rec-form-head {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.5rem;
  flex-wrap: wrap;
  padding: 0.25rem 0.45rem;
  border-bottom: 1px dashed var(--line);
}
.rec-form-title {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.rec-form-count {
  font-size: 0.72rem;
  margin-right: auto;
}
.rec-form-head .btn {
  padding: 0.18rem 0.45rem;
  font-size: 0.72rem;
}
.rec-value-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.2rem, 1fr));
  gap: 0.2rem 0.28rem;
  padding: 0.28rem 0.4rem;
}
.rec-value-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  margin: 0;
  padding: 0.14rem 0.22rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  cursor: pointer;
  white-space: nowrap;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.rec-value-chip:has(input:checked) {
  border-color: rgba(179, 58, 43, 0.45);
  background: rgba(179, 58, 43, 0.06);
}
.rec-value-chip input[type="checkbox"] {
  margin: 0;
  width: 0.72rem;
  height: 0.72rem;
  padding: 0;
  border-radius: 3px;
  flex-shrink: 0;
}
.rec-value-chip .omit {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 600;
}
@media (min-width: 640px) {
  .rec-value-chips {
    grid-template-columns: repeat(auto-fill, minmax(3.8rem, 1fr));
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 22, 30, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 40;
}
.modal-backdrop.show { display: flex; }
.modal {
  width: min(460px, 100%);
  background: #fffaf3;
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.modal h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
}
.modal p { color: var(--muted); margin: 0 0 0.9rem; line-height: 1.5; }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.form-check-panel {
  max-height: 10.5rem;
  overflow: auto;
  margin: 0.45rem 0 0.75rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 252, 247, 0.65);
  -webkit-overflow-scrolling: touch;
}
.form-check {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.2rem, 1fr));
  gap: 0.45rem;
  margin: 0;
}
.form-check label {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  min-width: 0;
  padding: 0.38rem 0.5rem 0.38rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-check label:has(input:checked) {
  border-color: rgba(179, 58, 43, 0.45);
  background: rgba(179, 58, 43, 0.05);
  box-shadow: 0 0 0 1px rgba(179, 58, 43, 0.08);
}
.form-check label:hover { border-color: var(--accent); }
.form-check input {
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  width: 0.95rem;
  height: 0.95rem;
}
.form-check .form-label-text {
  flex: 1;
  min-width: 0;
  word-break: break-all;
}
@media (max-width: 720px) {
  .form-check { grid-template-columns: repeat(2, minmax(6.8rem, 1fr)); }
  .form-check-panel { max-height: 12rem; }
}
.omit-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.8rem;
  margin-top: 0;
}
.omit-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.omit-compute-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-top: 0.15rem;
}
.omit-export-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  padding: 0.45rem 0.65rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(255, 252, 247, 0.72);
}
.omit-export-meta {
  font-size: 0.82rem;
  margin-right: 0.15rem;
}

.omit-table-title {
  margin: 1rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.omit-table-wrap {
  max-height: min(52vh, 480px);
}
.omit-table-wrap table {
  font-size: 0.9rem;
}
.omit-table-wrap th,
.omit-table-wrap td {
  padding: 0.5rem 0.75rem;
}

.loading::after {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.4em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -0.05em;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.seo-block {
  margin-top: 1.75rem;
  padding: 1.15rem 1.25rem 1.25rem;
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  animation: rise 0.7s ease both;
  animation-delay: 0.08s;
}
.seo-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.35;
}
.seo-lead {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}
.seo-features {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.7;
}
.seo-features li { margin-bottom: 0.35rem; }
.seo-features strong { color: var(--ink); font-weight: 600; }
.seo-keywords {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.contact-block {
  margin-top: 1.1rem;
  padding: 1.15rem 1.25rem 1.2rem;
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  animation: rise 0.7s ease both;
  animation-delay: 0.12s;
}
.contact-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.contact-list {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.contact-row {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 0.6rem;
  align-items: baseline;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--line);
}
.contact-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.contact-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.contact-row dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.contact-row a {
  color: var(--ink);
  text-decoration-thickness: 1px;
}
.contact-row a:hover { color: var(--accent); }
.contact-note {
  margin: 0.95rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.disclaimer-block {
  margin-top: 1.1rem;
  padding: 1.15rem 1.25rem 1.2rem;
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  animation: rise 0.7s ease both;
  animation-delay: 0.14s;
}
.disclaimer-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.disclaimer-section { margin-bottom: 0.85rem; }
.disclaimer-section:last-child { margin-bottom: 0; }
.disclaimer-subtitle {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.disclaimer-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.7;
}
.disclaimer-list li { margin-bottom: 0.35rem; }
.disclaimer-list li:last-child { margin-bottom: 0; }
.disclaimer-list strong { color: var(--ink); font-weight: 600; }

.footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.55;
}
.footer p { margin: 0 0 0.35rem; }
.footer p:last-child { margin-bottom: 0; }
.footer a { color: var(--ink-soft); text-decoration-thickness: 1px; }
.footer a:hover { color: var(--accent); }
.footer-brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}
.footer-copy {
  color: var(--ink-soft);
  font-size: 0.82rem;
}
.footer-note {
  font-size: 0.75rem;
  opacity: 0.9;
}

.friend-links {
  margin-top: 1.1rem;
  padding: 1.05rem 1.2rem 1.1rem;
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  overflow: visible;
}
.friend-links-title {
  width: 100%;
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.friend-links a {
  display: inline-block;
  padding: 0.32rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
  position: relative;
}
.friend-links a:hover { border-color: var(--accent); color: var(--accent); }
.friend-links a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(179, 58, 43, 0.06);
}
.friend-links a[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: 16.5rem;
  max-width: min(16.5rem, 80vw);
  padding: 0.5rem 0.7rem;
  background: #1a2332;
  color: #f7f3ea;
  font-size: 0.78rem;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: left;
  white-space: normal;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(26, 35, 50, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 50;
}
.friend-links a[data-tip]:hover::after,
.friend-links a[data-tip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.9rem;
}
.pay-card {
  margin: 0;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 0.9rem 1.1rem;
}
.pay-card figcaption {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}
.pay-amount {
  margin: 0.2rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.pay-card img {
  width: min(100%, 280px);
  height: auto;
  border-radius: 8px;
  background: #fff;
}
.pay-card .muted { margin: 0.55rem 0 0; font-size: 0.82rem; }
.donate-notice {
  margin: 0 0 0.9rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--accent);
  background: rgba(179, 58, 43, 0.06);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}
.donate-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.donate-steps li {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0.75rem;
  align-items: start;
}
.donate-step-n {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--ink);
  color: #f7f3ea;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.donate-steps h3 { margin: 0 0 0.2rem; font-size: 0.98rem; }
.donate-steps p { margin: 0; }
@media (max-width: 700px) {
  .pay-grid { grid-template-columns: 1fr; }
}

.app.wide-chart {
  width: min(1600px, calc(100% - 0.8rem));
}
.chart-meta {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
}
.chart-note {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
}
.chart-wrap {
  overflow: auto;
  max-height: min(72vh, 760px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.chart-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  font-family: var(--font-mono);
}
.chart-table th,
.chart-table td {
  padding: 0.12rem 0.18rem;
  border: 1px solid rgba(26, 35, 50, 0.1);
  text-align: center;
  min-width: 1.55rem;
  white-space: nowrap;
}
.chart-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f3eee4;
  font-weight: 600;
  color: var(--ink-soft);
}
.chart-table.grouped-head thead tr:nth-child(1) th {
  top: 0;
}
.chart-table.grouped-head thead tr:nth-child(2) th {
  top: 1.45rem;
  font-size: 0.68rem;
}
.chart-table .group-head {
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}
.chart-table .group-head.g0,
.chart-table .group-sub.g0 { background: #f8e8e4; color: #8a2b22; }
.chart-table .group-head.g1,
.chart-table .group-sub.g1 { background: #e4eef6; color: #1a5276; }
.chart-table .group-head.g2,
.chart-table .group-sub.g2 { background: #e6f4ea; color: #1d6a3a; }
.chart-table thead .sticky-col,
.chart-table thead .sticky-col2 {
  z-index: 4;
  background: #efe8dc;
}
.chart-table.grouped-head thead .sticky-col,
.chart-table.grouped-head thead .sticky-col2 {
  background: #efe8dc;
}
.chart-table .sticky-col,
.chart-table .sticky-col2 {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #faf7f1;
  font-family: var(--font-body);
  min-width: 4.2rem;
}
.chart-table .sticky-col2 {
  left: 4.2rem;
  min-width: 2.6rem;
  font-family: var(--font-mono);
}
.chart-table thead .sticky-col,
.chart-table thead .sticky-col2 {
  z-index: 4;
  background: #efe8dc;
}
.chart-table tbody tr:nth-child(even) td,
.chart-table tbody tr:nth-child(even) .sticky-col,
.chart-table tbody tr:nth-child(even) .sticky-col2 {
  background: #fcfaf6;
}
.chart-table tbody tr:hover td { background: rgba(179, 58, 43, 0.05); }
.chart-table .miss {
  color: #9aa3b0;
  font-weight: 500;
}
.chart-table .hit {
  padding: 0.08rem;
}
.chart-table .hit span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 0.68rem;
}
.chart-table .hit.c0 span { background: #c0392b; }
.chart-table .hit.c1 span { background: #2471a3; }
.chart-table .hit.c2 span { background: #1e8449; }
.chart-table .hit.c3 span { background: #b9770e; }
.chart-table .hit.c4 span { background: #6c3483; }
.chart-table .hit.c5 span { background: #117864; }
.chart-table .hit.v0 span { background: #c0392b; }
.chart-table .hit.v1 span { background: #2471a3; }
.chart-table .hit.v2 span { background: #1e8449; }
.chart-table .hit.v3 span { background: #6c3483; }
.chart-table thead th.c0 { color: #c0392b; }
.chart-table thead th.c1 { color: #2471a3; }
.chart-table thead th.c2 { color: #1e8449; }
.chart-table thead th.c3 { color: #b9770e; }
.chart-table thead th.c4 { color: #6c3483; }
.chart-table thead th.c5 { color: #117864; }
.chart-table tfoot .stat-row th,
.chart-table tfoot .stat-row td {
  background: #f4efe6;
  font-weight: 600;
  color: var(--ink);
}
.chart-table tfoot { position: sticky; bottom: 0; z-index: 3; }
.chart-pick-bar {
  margin: 0 0 0.55rem;
  padding: 0.5rem 0.65rem 0.6rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(255, 252, 247, 0.72);
}
.chart-pick-head {
  display: flex;
  align-items: center;
  gap: 0.45rem 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.chart-pick-head .btn {
  padding: 0.22rem 0.55rem;
  font-size: 0.78rem;
}
.pick-chip.mk-r { border-color: #c0392b; background: rgba(192, 57, 43, 0.08); }
.pick-chip.mk-y { border-color: #c9a227; background: rgba(201, 162, 39, 0.14); }
.pick-chip.mk-b { border-color: #2471a3; background: rgba(36, 113, 163, 0.1); }
.chart-table tr.pick-row th,
.chart-table tr.pick-row td {
  background: #fffdf8;
  height: 1.55rem;
}
.chart-table tfoot tr.pick-row th,
.chart-table tfoot tr.pick-row td {
  background: #fffaf0;
  font-weight: 400;
}
.chart-table .pick-label {
  color: var(--accent);
  font-size: 0.72rem;
}
.chart-table .pick-cell {
  cursor: pointer;
  min-width: 1.55rem;
}
.chart-table .pick-cell:hover {
  background: rgba(179, 58, 43, 0.08);
}
.chart-table .pick-cell span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 0.66rem;
}
.chart-table .pick-cell.mk-r span { background: #c0392b; }
.chart-table .pick-cell.mk-y span { background: #d4a017; color: #3d3208; }
.chart-table .pick-cell.mk-b span { background: #2471a3; }
.chart-table.wide th,
.chart-table.wide td {
  min-width: 2rem;
  font-size: 0.6rem;
  padding: 0.08rem 0.1rem;
}
.chart-table .hit.long span {
  border-radius: 3px;
  min-width: 1.85rem;
  height: auto;
  padding: 0.04rem 0.1rem;
  font-size: 0.58rem;
}

body.chart-focus .seo-block,
body.chart-focus .contact-block,
body.chart-focus .disclaimer-block,
body.chart-focus .friend-links,
body.chart-focus .footer,
body.chart-focus #view-chart > p.muted,
body.chart-focus .chart-note {
  display: none;
}
body.chart-focus .app {
  width: min(1600px, calc(100% - 0.8rem));
  padding: 0.35rem 0 1.25rem;
  overflow: visible;
}
body.chart-focus .topbar {
  margin-bottom: 0.3rem;
  align-items: center;
}
body.chart-focus .brand-mark {
  font-size: 1.45rem;
}
body.chart-focus .brand-sub {
  display: none;
}
body.chart-focus .top-actions .btn {
  padding: 0.32rem 0.65rem;
  font-size: 0.8rem;
}
body.chart-focus .tabs {
  margin-bottom: 0.35rem;
}
body.chart-focus .tab {
  padding: 0.4rem 0.75rem;
}
body.chart-focus .panel {
  padding: 0.55rem 0.7rem 0.45rem;
  overflow: visible;
}
body.chart-focus .panel > .toolbar {
  grid-template-columns: 8rem 1fr;
  margin-bottom: 0.45rem;
  gap: 0.45rem;
}
body.chart-focus .panel > .toolbar .field:nth-child(2),
body.chart-focus .panel > .toolbar .field:nth-child(3) {
  display: none;
}
body.chart-focus #view-chart.view.active {
  display: block;
}
body.chart-focus .top-actions a[href*="api.csh.space"],
body.chart-focus .top-actions a[href="https://www.csh.space/"] {
  display: none;
}
body.chart-focus #chartCustomWrap[hidden] {
  display: none !important;
}
body.chart-focus #view-chart .toolbar {
  grid-template-columns: minmax(12rem, 1.5fr) minmax(9rem, 1fr) auto;
}
body.chart-focus #view-chart .toolbar:has(#chartCustomWrap:not([hidden])) {
  grid-template-columns: minmax(10rem, 1.2fr) minmax(8rem, 0.9fr) minmax(7rem, 0.8fr) auto;
}
body.chart-focus .chart-pick-bar {
  margin-bottom: 0.35rem;
  padding: 0.35rem 0.5rem 0.4rem;
}
body.chart-focus .chart-meta {
  margin-bottom: 0.3rem;
}
body.chart-focus .chart-wrap {
  max-height: none;
  min-height: calc(100vh - 12rem);
  overflow: visible;
}
body.chart-focus .chart-table {
  width: max-content;
  min-width: 100%;
}
body.chart-focus .chart-table tfoot {
  position: static;
}
body.chart-focus .status-bar {
  margin-top: 0.4rem;
}

/* 桌面下载卡片 */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  padding: 1rem;
}
.download-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.download-card-title {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.download-card-meta {
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.download-card-desc {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0.2rem 0 0.5rem;
}
.download-btn {
  margin-top: auto;
  text-align: center;
  display: inline-block;
  text-decoration: none;
  width: 100%;
}
.download-notice {
  margin: 1rem 1rem 0;
  padding: 0.6rem 0.8rem;
  background: #fff8e6;
  border: 1px solid #f5d78a;
  border-radius: var(--radius);
  font-size: 0.84rem;
  color: #7a5a00;
  line-height: 1.6;
}

section.seo-faq {
  margin: 1.25rem 0 0;
  padding: 1.1rem 1.2rem 1.15rem;
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
section.seo-faq h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.06em;
}
section.seo-faq dl { margin: 0; }
section.seo-faq dt { margin: 0.85rem 0 0.25rem; font-weight: 600; }
section.seo-faq dt:first-of-type { margin-top: 0; }
section.seo-faq dd { margin: 0; line-height: 1.65; }
