﻿/* 称号图鉴 — 地球Online 主站黑白风（对齐 style.css / eo-theme-bw） */

:root {
  --tc-bg: var(--page-bg, #f7f8fa);
  --tc-panel: var(--s0, #ffffff);
  --tc-soft: var(--s2, #fafafa);
  --tc-line: var(--edge, rgba(0, 0, 0, 0.08));
  --tc-line-strong: var(--edge-3, rgba(0, 0, 0, 0.26));
  --tc-text: var(--t0, #111111);
  --tc-muted: var(--t2, rgba(0, 0, 0, 0.55));
  --tc-faint: var(--t3, rgba(0, 0, 0, 0.38));
  --tc-ink: #111111;
  --tc-ok: var(--c-ok, #16a34a);
  --tc-bad: var(--c-alert, #dc2626);
  --tc-font: var(--font-ui, "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif);
  --tc-mono: var(--font-code, "IBM Plex Mono", "Cascadia Mono", Consolas, monospace);
  --tc-hard: 6px 6px 0 #111;
  --tc-hard-sm: 3px 3px 0 rgba(0, 0, 0, 0.12);
}

.tc-page {
  min-height: 70vh;
  background: var(--tc-bg);
  color: var(--tc-text);
  font-family: var(--tc-font);
}

.tc-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 14px 48px;
}

/* —— Hero：生存服面板 —— */
.tc-hero {
  position: relative;
  margin-bottom: 14px;
  padding: 18px 18px 14px;
  border: 1px solid var(--tc-ink);
  border-radius: 2px;
  background: var(--tc-panel);
  box-shadow: var(--tc-hard);
  overflow: hidden;
}

.tc-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--tc-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tc-faint);
}

.tc-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--tc-ink);
}

.tc-hero-mark {
  margin: 0;
  font-family: var(--tc-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--tc-faint);
  white-space: nowrap;
}

.tc-title {
  margin: 0 0 6px;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--tc-ink);
}

.tc-title span {
  color: inherit;
  border: 0;
}

.tc-sub {
  margin: 0;
  color: var(--tc-muted);
  font-size: 13px;
  max-width: 40em;
  line-height: 1.55;
}

.tc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 14px;
  border: 1px solid var(--tc-ink);
  background: var(--tc-soft);
}

.tc-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 96px;
  padding: 8px 12px;
  border-right: 1px solid var(--tc-line-strong);
  font-size: 12px;
  color: var(--tc-muted);
  font-weight: 600;
}

.tc-stats span:last-child {
  border-right: 0;
}

.tc-stats em {
  font-style: normal;
  font-family: var(--tc-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tc-faint);
}

.tc-stats b {
  color: var(--tc-ink);
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.tc-stats small {
  font-size: 12px;
  color: var(--tc-muted);
}

.tc-equipped {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--tc-ink);
  background: var(--tc-panel);
}

.tc-strip {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  min-width: 0;
}

.tc-strip-face {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--tc-ink);
  border-radius: 50%;
  background: var(--tc-ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  user-select: none;
  overflow: hidden;
}

.tc-strip-face.has-img {
  padding: 0;
  background: #eee;
  border-color: rgba(17, 17, 17, 0.22);
  color: transparent;
}

.tc-strip-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.tc-strip-who {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  max-width: 160px;
}

.tc-strip-who strong {
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc-strip-who em {
  font-style: normal;
  font-family: var(--tc-mono);
  font-size: 11px;
  color: var(--tc-faint);
  white-space: nowrap;
}

.tc-strip-title {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.tc-strip-title .eo-title-badge {
  margin: 0;
}

.tc-strip-empty {
  flex: 0 0 auto;
  border: 1px dashed rgba(17, 17, 17, 0.35);
  background: var(--tc-soft);
  color: var(--tc-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.tc-strip-empty:hover {
  color: var(--tc-ink);
  border-color: var(--tc-ink);
  background: #fff;
}

.tc-strip-meta {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
  font-size: 12px;
  color: var(--tc-muted);
}

.tc-strip-meta i {
  font-style: normal;
  font-weight: 800;
  color: var(--tc-ink);
}

.tc-strip-meta span + span::before,
.tc-strip-meta i + span::before {
  content: "·";
  margin-right: 10px;
  color: rgba(17, 17, 17, 0.28);
}

.tc-strip-ops {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.tc-strip-ops a.tc-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.tc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.tc-tabs {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0;
  border: 1px solid var(--tc-ink);
  background: var(--tc-panel);
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tc-tabs::-webkit-scrollbar {
  display: none;
}

.tc-tab {
  appearance: none;
  border: 0;
  border-right: 1px solid var(--tc-line-strong);
  background: transparent;
  color: var(--tc-muted);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}

.tc-tab:last-child {
  border-right: 0;
}

.tc-tab:hover {
  color: var(--tc-ink);
  background: var(--tc-soft);
}

.tc-tab.active {
  background: var(--tc-ink);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}

.tc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tc-chip {
  appearance: none;
  border: 1px solid var(--tc-line-strong);
  background: var(--tc-panel);
  color: var(--tc-muted);
  border-radius: 2px;
  padding: 6px 10px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.tc-chip:hover {
  color: var(--tc-ink);
  border-color: var(--tc-ink);
}

.tc-chip.active {
  background: var(--tc-ink);
  border-color: var(--tc-ink);
  color: #fff;
  font-weight: 700;
}

.tc-filter-sep {
  display: inline-block;
  width: 1px;
  height: 16px;
  margin: 0 2px;
  background: var(--tc-line-strong);
  align-self: center;
}

.tc-bag-summary {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--tc-muted);
}

.tc-bag-summary b {
  color: var(--tc-ink);
  font-variant-numeric: tabular-nums;
}

.tc-bag-section-label {
  margin: 14px 0 8px;
  padding: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--tc-ink);
  border-bottom: 1px solid var(--tc-line);
}

.tc-bag-section-label:first-of-type {
  margin-top: 0;
}
/* —— 多列票据卡（对齐交易所 compact title） —— */
.tc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
  margin-bottom: 4px;
  width: 100%;
}

.tc-card.is-compact {
  --tc-compact-pad-x: 11px;
  --tc-compact-pad-y: 10px;
  --tc-ticket: #f8f4e7;
  --tc-ticket-ink: #1a1714;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  min-width: 0;
  width: 100%;
  padding: var(--tc-compact-pad-y) var(--tc-compact-pad-x) 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background-color: var(--tc-ticket);
  background-image:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.55) 0 28%, transparent 55%),
    radial-gradient(rgba(26, 23, 20, 0.045) 0.55px, transparent 0.75px),
    radial-gradient(rgba(184, 134, 11, 0.035) 0.45px, transparent 0.7px),
    linear-gradient(165deg, #fffef9 0%, var(--tc-ticket) 48%, color-mix(in srgb, var(--tc-ticket) 82%, #d9cbb3) 100%);
  background-size: auto, 4px 4px, 7px 7px, auto;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    3px 3px 0 rgba(17, 17, 17, 0.06);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tc-card.is-compact.is-frag {
  --tc-ticket: #f3f6f1;
}

.tc-card.is-compact::before {
  content: "";
  display: block;
  position: absolute;
  right: -10px;
  top: -10px;
  width: 28px;
  height: 28px;
  background:
    linear-gradient(135deg, transparent 48%, rgba(17, 17, 17, 0.08) 49%, rgba(17, 17, 17, 0.08) 51%, transparent 52%);
  pointer-events: none;
  z-index: 0;
}

.tc-card.is-compact::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: calc(100% - 16px);
  background:
    repeating-linear-gradient(
      180deg,
      var(--tc-rarity, #9a7a18) 0 3px,
      color-mix(in srgb, var(--tc-rarity, #9a7a18) 55%, #111) 3px 4px
    );
  transform: translateY(-50%) scaleY(0.28);
  transform-origin: center center;
  opacity: 0.85;
  pointer-events: none;
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
  z-index: 2;
}

.tc-card.is-compact:hover,
.tc-card.is-compact:focus-visible {
  transform: translate(-1px, -2px);
  border-color: #111;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    4px 4px 0 rgba(17, 17, 17, 0.1);
  outline: none;
}

.tc-card.is-compact:hover::after,
.tc-card.is-compact:focus-visible::after,
.tc-card.is-compact:focus-within::after {
  transform: translateY(-50%) scaleY(1);
  opacity: 1;
}

.tc-card.is-equipped {
  border-color: #111;
}

.tc-card.is-locked {
  opacity: 0.78;
}

.tc-card.is-locked .tc-title-ico,
.tc-card.is-locked .tc-compact-name {
  filter: grayscale(0.35);
  opacity: 0.8;
}

.tc-compact-type {
  position: absolute;
  top: 9px;
  right: 8px;
  z-index: 2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--tc-rarity, #9a7a18) 70%, #111);
  padding: 3px 5px 2px;
  border-radius: 2px;
  border: 1.5px dashed color-mix(in srgb, var(--tc-rarity, #9a7a18) 55%, #111);
  background: color-mix(in srgb, var(--tc-ticket, #f8f4e7) 70%, #fff);
  white-space: nowrap;
  line-height: 1.15;
  pointer-events: none;
  transform: rotate(4deg);
}

.tc-compact-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: stretch;
  padding: 0 0 3px 6px;
  padding-right: 3.2em;
  position: relative;
  z-index: 1;
}

.tc-compact-lead.is-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
}

.tc-title-hit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.tc-title-ico {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: linear-gradient(160deg, #fff8e8, #f0e4c4);
  overflow: hidden;
}

.tc-title-ico[data-r="1"] { background: linear-gradient(160deg, #f3f4f6, #e5e7eb); }
.tc-title-ico[data-r="2"] { background: linear-gradient(160deg, #eaf6ef, #d5ebdd); border-color: rgba(61, 154, 95, 0.35); }
.tc-title-ico[data-r="3"] { background: linear-gradient(160deg, #e8f1fa, #d3e4f5); border-color: rgba(59, 130, 196, 0.35); }
.tc-title-ico[data-r="4"] { background: linear-gradient(160deg, #f1eafc, #e2d6f8); border-color: rgba(139, 92, 246, 0.35); }
.tc-title-ico[data-r="5"] { background: linear-gradient(160deg, #fff4d6, #f0d78a); border-color: rgba(212, 160, 23, 0.45); }

.tc-title-ico img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.tc-compact-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--tc-ticket-ink, #1a1714);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.tc-compact-name.is-name-fx {
  color: var(--tc-name-c, #6b5420);
}

.tc-compact-name.is-name-fx.is-title-r1 { --tc-name-c: #5b5560; }
.tc-compact-name.is-name-fx.is-title-r2 { --tc-name-c: #1d4f8c; }
.tc-compact-name.is-name-fx.is-title-r3 { --tc-name-c: #6b2d8b; }
.tc-compact-name.is-name-fx.is-title-r4 { --tc-name-c: #a16207; }
.tc-compact-name.is-name-fx.is-title-r5 { --tc-name-c: #9f1239; }

.tc-compact-sub {
  margin: 0;
  font-size: 10.5px;
  color: rgba(26, 23, 20, 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
  padding-left: 2px;
}

.tc-compact-peer {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  font-size: 10.5px;
  font-weight: 650;
  color: rgba(26, 23, 20, 0.5);
  line-height: 1.3;
  width: 100%;
  padding: 4px 2px 0;
  border-top: 1px dotted rgba(17, 17, 17, 0.18);
  white-space: nowrap;
}

.tc-compact-peer-lab {
  flex: 0 0 auto;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--tc-rarity, #9a7a18) 65%, #111);
}

.tc-compact-peer-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1a1714;
  font-weight: 700;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

.tc-compact-side {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 1px calc(var(--tc-compact-pad-x) * -1) 0;
  padding: 8px var(--tc-compact-pad-x) 9px;
  border-top: 1px dashed rgba(17, 17, 17, 0.22);
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 3px,
      rgba(17, 17, 17, 0.03) 3px 4px
    ),
    linear-gradient(180deg, rgba(17, 17, 17, 0.03), rgba(17, 17, 17, 0.06));
  position: relative;
  z-index: 1;
}

.tc-side-qty,
.tc-side-state,
.tc-card-status {
  font-size: 12px;
  font-weight: 800;
  color: #111;
  font-variant-numeric: tabular-nums;
}

.tc-card-status {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(26, 23, 20, 0.62);
}

.tc-compact-side .tc-btn {
  border-radius: 4px;
  min-width: 48px;
  padding: 5px 10px;
  font-size: 11px;
  min-height: 28px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.tc-compact-side .tc-btn-primary {
  background: #111;
  border-color: #111;
  color: #f6e7a8;
}

.tc-compact-side .tc-btn-primary:hover:not(:disabled) {
  background: #222;
  color: #fff4c2;
}

.tc-card-rarity {
  font-size: 11px;
  font-weight: 700;
  color: var(--tc-rarity, #8a6a00);
}

.tc-card-state {
  font-weight: 700;
  color: #111;
}
.tc-guide {
  border: 1px solid #111;
  background: #fff;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: var(--tc-hard);
}

.tc-guide h3 {
  margin: 0 0 8px;
  font-family: var(--tc-font);
  font-size: 18px;
}

.tc-guide p,
.tc-guide li {
  font-size: 13px;
  line-height: 1.65;
  color: #333;
}

.tc-guide p { margin: 0 0 8px; }

.tc-guide ol {
  margin: 0 0 8px;
  padding-left: 1.2em;
}

.tc-guide-tip {
  color: var(--tc-muted) !important;
  margin-bottom: 0 !important;
}

.tc-formula {
  border: 1px dashed #111;
  padding: 12px 14px;
  background: var(--tc-soft);
}

.tc-formula-label {
  font-family: var(--tc-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
  font-weight: 700;
  margin-bottom: 10px;
}

.tc-formula-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.tc-cost-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #111;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.tc-cost-chip.ok {
  color: var(--tc-ok);
  background: color-mix(in srgb, var(--tc-ok) 8%, #fff);
}

.tc-cost-chip.bad {
  color: var(--tc-bad);
  background: color-mix(in srgb, var(--tc-bad) 6%, #fff);
}

.tc-cost-chip em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.9;
}

.tc-plus,
.tc-arrow {
  font-weight: 700;
  color: var(--tc-muted);
}

.tc-recipe-help {
  font-size: 12px;
  line-height: 1.55;
  color: #333;
  background: #fff;
  border: 1px solid #111;
  padding: 12px 14px;
}

.tc-recipe-help b {
  color: #111;
}

.tc-recipe-help ul {
  margin: 6px 0 0;
  padding-left: 1.15em;
}

.tc-recipe-desc {
  font-size: 12px;
  color: var(--tc-muted);
  margin-top: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tc-recipe-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tc-reward-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tc-recipe,
.tc-reward {
  border: 1px solid #111;
  background: #fff;
  border-radius: 0;
  padding: 16px;
  display: grid;
  gap: 10px;
  min-width: 0;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.08);
}

.tc-recipe {
  align-content: start;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--tc-rarity, #8a6a00) 10%, #fff) 0%, #fff 50%);
}

.tc-recipe.ready {
  border-color: #111;
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--tc-ok) 55%, #111);
}

button.tc-recipe-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

button.tc-recipe-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #111;
}

button.tc-recipe-card:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.tc-recipe-main {
  min-width: 0;
  flex: 1;
}

.tc-recipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.tc-recipe-tags .tc-card-state.is-ready {
  color: var(--tc-ok);
  background: color-mix(in srgb, var(--tc-ok) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--tc-ok) 40%, #111);
  padding: 2px 6px;
}

.tc-recipe-view {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 7px 12px;
  border: 1px solid #111;
  background: #fff;
  font-family: var(--tc-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tc-text);
  white-space: nowrap;
}

.tc-recipe.ready .tc-recipe-view {
  color: #fff;
  background: var(--tc-ok);
  border-color: #111;
}

.tc-modal .tc-formula {
  margin: 4px 0 12px;
}

.tc-recipe-head,
.tc-reward-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tc-recipe-head strong {
  font-size: 15px;
}

.tc-recipe-source {
  font-size: 12px;
  color: var(--tc-muted);
  margin-top: 2px;
  padding: 8px 10px;
  background: var(--tc-soft);
  border: 1px solid var(--tc-line);
  line-height: 1.45;
}

.tc-reward {
  transition: box-shadow 0.12s ease;
}

.tc-reward.ready {
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--tc-ok) 55%, #111);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tc-ok) 6%, #fff), #fff);
}

.tc-reward.done {
  opacity: 0.78;
}

.tc-reward-copy {
  min-width: 0;
  flex: 1;
}

.tc-reward-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.tc-reward-top strong {
  font-size: 15px;
}

.tc-reward-tag {
  font-family: var(--tc-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid #111;
  background: #fff;
  color: var(--tc-muted);
}

.tc-reward.ready .tc-reward-tag {
  color: #fff;
  background: var(--tc-ok);
  border-color: #111;
}

.tc-reward.done .tc-reward-tag {
  color: var(--tc-muted);
}

.tc-reward-meta {
  font-size: 12px;
  color: var(--tc-muted);
  margin-bottom: 8px;
}

.tc-reward-bar {
  height: 6px;
  background: rgba(17, 17, 17, 0.08);
  overflow: hidden;
  margin-bottom: 6px;
}

.tc-reward-bar i {
  display: block;
  height: 100%;
  background: #111;
}

.tc-reward.ready .tc-reward-bar i {
  background: var(--tc-ok);
}

.tc-reward-progress {
  font-size: 12px;
  color: var(--tc-muted);
}

.tc-costs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tc-cost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #111;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--tc-muted);
  background: var(--tc-soft);
}

.tc-cost.ok {
  color: var(--tc-ok);
  background: color-mix(in srgb, var(--tc-ok) 8%, #fff);
}

.tc-cost.bad {
  color: var(--tc-bad);
  background: color-mix(in srgb, var(--tc-bad) 6%, #fff);
}

.tc-cost img {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

.tc-btn {
  appearance: none;
  border: 1px solid rgba(17, 17, 17, 0.22);
  background: #fff;
  color: var(--tc-text);
  border-radius: 2px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  box-shadow: var(--tc-hard-sm);
}

.tc-btn:hover:not(:disabled) {
  border-color: #111;
  background: #fff;
}

.tc-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tc-btn-primary {
  background: #111;
  color: #fff;
  border-color: #111;
  font-weight: 800;
}

.tc-btn-primary:hover:not(:disabled) {
  background: #222;
  color: #fff;
}

.tc-btn-sm {
  padding: 5px 9px;
  font-size: 11px;
}

.tc-btn-ghost {
  background: #fff;
}

.tc-mask {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.48);
  backdrop-filter: blur(5px);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
}

.tc-mask.show {
  display: flex;
}

#tcDetailMask {
  z-index: 1260;
}

.tc-modal {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.22);
  border-radius: 2px;
  padding: 20px;
  color: var(--tc-text);
  animation: tc-up 0.18s ease;
  box-shadow: var(--tc-hard);
}

/* —— 详情弹层（对齐交易所 mk-detail） —— */
.tc-detail-modal {
  --tc-ticket: #f8f4e7;
  position: relative;
  text-align: left;
  max-width: 360px;
  width: min(360px, 100%);
  max-height: min(82vh, 640px);
  padding: 0;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid rgba(17, 17, 17, 0.22);
  background-color: var(--tc-ticket);
  background-image:
    radial-gradient(rgba(26, 23, 20, 0.04) 0.55px, transparent 0.75px),
    linear-gradient(165deg, #fffef9 0%, var(--tc-ticket) 55%, #ebe2d2 100%);
  background-size: 4px 4px, auto;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    4px 4px 0 rgba(17, 17, 17, 0.1);
  animation: tc-up 0.18s ease;
  color: #1a1714;
}

.tc-detail-x {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(17, 17, 17, 0.28);
  border-radius: 3px;
  background: color-mix(in srgb, var(--tc-ticket) 70%, #fff);
  color: #1a1714;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.tc-detail-x:hover {
  color: #fff;
  border-color: #111;
  background: #111;
}

.tc-detail-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  padding: 14px 36px 12px 12px;
  border-bottom: 1px dashed rgba(17, 17, 17, 0.22);
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.04), transparent 40%),
    color-mix(in srgb, var(--tc-ticket) 88%, #fff);
}

.tc-detail-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}

.tc-detail-media {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.tc-detail-media .eo-title-badge {
  margin: 0;
}

.tc-detail-head {
  min-width: 0;
}

.tc-detail-kicker {
  margin: 0 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26, 23, 20, 0.55);
}

.tc-detail-kicker::before {
  content: "";
  width: 14px;
  height: 1px;
  background: rgba(17, 17, 17, 0.35);
}

.tc-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.tc-detail-tags span {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  color: #1a1714;
}

.tc-detail-tags .is-gold {
  border-color: rgba(154, 122, 24, 0.45);
  background: rgba(246, 231, 168, 0.55);
  color: #6b5420;
}

.tc-detail-body {
  padding: 12px 12px 14px;
}

.tc-detail-panel {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
}

.tc-detail-panel-title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(26, 23, 20, 0.55);
}

.tc-detail-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #222;
}

.tc-detail-effects {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.55;
  color: #333;
}

.tc-detail-effects li {
  margin-bottom: 4px;
}

.tc-detail-flavor {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(26, 23, 20, 0.62);
}

.tc-detail-deal {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px dashed rgba(17, 17, 17, 0.22);
  border-radius: 6px;
  background: color-mix(in srgb, var(--tc-ticket) 70%, #fff);
}

.tc-detail-deal-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.tc-detail-deal-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tc-detail-deal-item span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(26, 23, 20, 0.5);
}

.tc-detail-deal-item strong {
  font-size: 13px;
  font-weight: 800;
  color: #111;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc-detail-actions {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  justify-content: stretch;
}

.tc-detail-actions .tc-btn {
  flex: 1 1 auto;
  justify-content: center;
}

@keyframes tc-up {
  from {
    transform: translateY(14px);
    opacity: 0.35;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.tc-modal h3 {
  margin: 0 0 8px;
  font-family: var(--tc-font);
}

.tc-modal h3.tc-modal-title-center {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #111;
}

.tc-modal .tc-recipe-help {
  margin-top: 4px;
}

.tc-modal p {
  margin: 0 0 12px;
  color: var(--tc-muted);
  font-size: 13px;
  line-height: 1.6;
}

.tc-modal .tc-source-box {
  background: var(--tc-soft);
  border: 1px solid #111;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #222;
}

.tc-modal .tc-source-box b {
  color: #111;
}

.tc-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #111;
}

.tc-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  background: #111;
  border: 1px solid #111;
  color: #fff;
  padding: 10px 16px;
  border-radius: 0;
  font-size: 13px;
  z-index: 1300;
  opacity: 0;
  transition: 0.22s ease;
  pointer-events: none;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.tc-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tc-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--tc-muted);
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 2px;
  background: var(--tc-soft);
  font-size: 14px;
  box-shadow: var(--tc-hard);
}

.tc-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 2px;
  background: #fff;
}

.tc-page-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tc-page-btn {
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(17, 17, 17, 0.2);
  background: #fff;
  color: #111;
  border-radius: 2px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.tc-page-btn:hover {
  border-color: #111;
}

.tc-page-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
  font-weight: 800;
}

.tc-page-info {
  font-size: 12px;
  color: var(--tc-muted);
}

@media (min-width: 720px) {
  .tc-mask {
    align-items: center;
  }
}

@media (max-width: 720px) {
  .tc-strip {
    flex-wrap: wrap;
  }
  .tc-strip-ops {
    margin-left: 0;
  }
  .tc-strip-meta {
    flex: 1 1 100%;
    order: 5;
  }
  .tc-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .tc-equipped {
    margin-left: 2px;
    margin-right: 0;
    padding: 8px;
  }
  .tc-strip-who em {
    display: none;
  }
  .tc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .tc-card.is-compact {
    --tc-compact-pad-x: 9px;
    --tc-compact-pad-y: 8px;
  }
  .tc-compact-name {
    font-size: 12.5px;
  }
  .tc-title-ico {
    width: 32px;
    height: 32px;
  }
  .tc-tabs {
    width: 100%;
  }
  .tc-tab {
    flex: 1;
    text-align: center;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 12px;
  }
  .tc-recipe-list {
    grid-template-columns: 1fr;
  }
  .tc-pager .tc-btn-ghost:first-child,
  .tc-pager .tc-btn-ghost:last-child {
    display: none;
  }
}


