/* ============================================================================
 *  交易曝光 · 样式
 *  ----------------------------------------------------------------------------
 *  视觉取自「纸质档案 + 证物标签」：朱红只用在标记与状态上，其余保持安静；
 *  账号一律等宽字体、虚线标签，方便截图后逐位核对。
 *  依赖 style.css 里的颜色变量与基础组件，单独加载也不会互相覆盖。
 * ========================================================================== */

:root {
  --ex-red: #b42318;
  --ex-red-ink: #7a1a12;
  --ex-red-soft: rgba(180, 35, 24, 0.07);
  --ex-red-line: rgba(180, 35, 24, 0.24);
  --ex-red-solid: #b42318;
  --ex-on-red: #ffffff;
  --ex-ok: #0f6b53;
  --ex-ok-soft: rgba(15, 107, 83, 0.08);
  --ex-ok-line: rgba(15, 107, 83, 0.24);
  --ex-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ex-stamp: "Songti SC", "STSong", "SimSun", serif;
}

[data-theme="dark"] {
  --ex-red: #ff9a90;
  --ex-red-ink: #ffc1ba;
  --ex-red-soft: rgba(255, 143, 133, 0.1);
  --ex-red-line: rgba(255, 143, 133, 0.28);
  --ex-red-solid: #c0342a;
  --ex-on-red: #ffffff;
  --ex-ok: #5fd3b4;
  --ex-ok-soft: rgba(95, 211, 180, 0.09);
  --ex-ok-line: rgba(95, 211, 180, 0.26);
}

/* ---------------------------------------------------------------- 板块头部 */
.ex-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin: 6px 0 20px;
}

.ex-headline { position: relative; min-width: 0; padding-right: 88px; }
.ex-headline h1 { max-width: 15em; }
.ex-headline h1 em { font-style: normal; color: var(--ex-red); }

.ex-seal {
  position: absolute;
  right: 0;
  top: -4px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: var(--ex-red);
  font-family: var(--ex-stamp);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-align: center;
  transform: rotate(-7deg);
  border: 2px solid var(--ex-red);
  border-radius: 5px;
  box-shadow: inset 0 0 0 3px var(--surface, #fff), inset 0 0 0 4px var(--ex-red-line);
  opacity: 0.82;
  pointer-events: none;
  user-select: none;
}

.ex-stats {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding-bottom: 4px;
}
.ex-stat { display: flex; flex-direction: column; gap: 1px; }
.ex-stat b {
  font-family: var(--ex-mono);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ex-stat span { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.ex-stat + .ex-stat { padding-left: 18px; border-left: 1px solid var(--border); }
.ex-stat.is-red b { color: var(--ex-red); }

/* ---------------------------------------------------------------- 查号框 */
.ex-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ex-search:focus-within {
  border-color: var(--ex-red);
  box-shadow: 0 0 0 4px var(--ex-red-soft);
}
.ex-search-ico {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  color: var(--text-3);
  transform: translateY(-1px);
}
.ex-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  font-family: var(--ex-mono);
  letter-spacing: 0.01em;
}
.ex-search input::placeholder { font-family: var(--font); font-size: 14px; color: var(--text-3); }
.ex-search-btn {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--text);
  color: var(--surface);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease;
}
.ex-search-btn:hover { transform: translateY(-1px); opacity: 0.92; }
.ex-search-btn:active { transform: translateY(0); }

.ex-fineprint {
  margin: 9px 2px 0;
  font-size: 12px;
  color: var(--text-3);
}
.ex-fineprint b { color: var(--ex-red); font-weight: 700; }

/* ---------------------------------------------------------------- 搜索结果 */
.ex-result { margin-top: 20px; }
.ex-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: var(--text-2);
}
.ex-result-bar b { font-family: var(--ex-mono); color: var(--text); }
.ex-clear {
  border: 0;
  background: transparent;
  color: var(--text-3);
  font-size: 12.5px;
  cursor: pointer;
  padding: 4px 2px;
}
.ex-clear:hover { color: var(--ex-red); }

/* ---------------------------------------------------------------- 游戏货架 */
.ex-shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 0 12px;
}
.ex-shelf-head h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.ex-shelf-head .ex-shelf-note { margin-right: auto; }
.ex-shelf-tag {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid rgba(15, 107, 83, 0.24);
  background: rgba(15, 107, 83, 0.08);
  color: #0f6b53;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.ex-shelf-tag.is-scam {
  border-color: rgba(180, 35, 24, 0.22);
  background: rgba(180, 35, 24, 0.07);
  color: #b42318;
}
[data-theme="dark"] .ex-shelf-tag { color: #6ee7b7; border-color: rgba(110, 231, 183, 0.3); background: rgba(110, 231, 183, 0.12); }
[data-theme="dark"] .ex-shelf-tag.is-scam { color: #fca5a5; border-color: rgba(252, 165, 165, 0.3); background: rgba(252, 165, 165, 0.12); }
@media (max-width: 620px) {
  .ex-shelf-head .ex-shelf-note { display: none; }
}
.ex-shelf-note { font-size: 12px; color: var(--text-3); }
.ex-more { font-size: 12.5px; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.ex-more:hover { color: var(--ex-red); }

.ex-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 10px;
}

.ex-game {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-3);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.ex-game:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.ex-game .ico {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: var(--surface-2);
  font-size: 20px;
}
.ex-game .ico img { width: 100%; height: 100%; object-fit: cover; }
.ex-game .txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ex-game .n {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ex-game .c { font-family: var(--ex-mono); font-size: 11px; color: var(--text-3); }
.ex-game .c.zero { font-family: var(--font); opacity: 0.72; }
.ex-game .go { margin-left: auto; color: var(--text-3); font-size: 13px; }
.ex-game:hover .go { color: var(--ex-red); }

/* 货架卡片：朱红只标在左侧细线 */
.ex-game.has-record { border-left: 2px solid var(--ex-red-line); }

/* ---------------------------------------------------------------- 记录列表 */
.ex-list { display: flex; flex-direction: column; gap: 10px; }

.ex-card {
  position: relative;
  display: flex;
  gap: 18px;
  padding: 15px 17px 14px 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  cursor: pointer;
}
.ex-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.ex-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--ex-red);
}
.ex-card.is-listing::before { background: var(--ex-ok); }
.ex-card.is-pinned { border-color: var(--ex-red-line); }

.ex-card-main { min-width: 0; flex: 1; }

.ex-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ex-kind {
  flex: 0 0 auto;
  padding: 1px 7px;
  border: 1px solid var(--ex-red-line);
  border-radius: 5px;
  background: var(--ex-red-soft);
  color: var(--ex-red);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.ex-card.is-listing .ex-kind {
  color: var(--ex-ok);
  background: var(--ex-ok-soft);
  border-color: var(--ex-ok-line);
}
.ex-title {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ex-when {
  flex: 0 0 auto;
  font-family: var(--ex-mono);
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
}

.ex-excerpt {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.ex-excerpt.is-empty { color: var(--text-3); font-style: italic; }

.ex-acc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.ex-acc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px 2px 7px;
  border: 1px dashed var(--border-strong);
  border-radius: 7px;
  background: var(--surface-2);
  font-family: var(--ex-mono);
  font-size: 12.5px;
  color: var(--text);
  max-width: 100%;
}
.ex-acc b {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.ex-acc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-acc.is-hit {
  border-style: solid;
  border-color: var(--ex-red-line);
  background: var(--ex-red-soft);
  color: var(--ex-red-ink);
}

.ex-card-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--text-3);
}
.ex-card-foot .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.ex-card-foot .amt { font-family: var(--ex-mono); color: var(--ex-red); font-weight: 600; }
.ex-open {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0;
  white-space: nowrap;
}
.ex-card:hover .ex-open { color: var(--ex-red); }

.ex-ev-strip {
  flex: 0 0 auto;
  display: grid;
  grid-auto-flow: column;
  gap: 6px;
  align-content: start;
}
.ex-ev {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.ex-ev img { width: 100%; height: 100%; object-fit: cover; }
.ex-ev::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ---------------------------------------------------------------- 空状态 / 加载 */
.ex-empty {
  padding: 34px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  text-align: center;
  color: var(--text-3);
  background: var(--surface-3);
}
.ex-empty .big { font-size: 28px; line-height: 1; margin-bottom: 10px; opacity: 0.9; }
.ex-empty p { font-size: 13.5px; color: var(--text-2); }
.ex-empty small { display: block; margin-top: 5px; font-size: 12px; }

.ex-loadmore {
  display: block;
  width: 100%;
  margin-top: 12px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ex-loadmore:hover { border-color: var(--ex-red-line); color: var(--ex-red); }
.ex-loadmore[disabled] { opacity: 0.5; cursor: default; }

.ex-skel { height: 104px; border-radius: 15px; }
.ex-skel + .ex-skel { margin-top: 10px; }

/* ---------------------------------------------------------------- 单游戏页 */
.ex-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  margin: 4px 0 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 0% 0%, var(--ex-accent-soft, rgba(99, 102, 241, 0.1)), transparent 62%),
    var(--surface);
  overflow: hidden;
}
.ex-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px dashed var(--border-strong);
  opacity: 0.6;
  pointer-events: none;
}
.ex-hero .game-icon { flex: 0 0 auto; }
.ex-hero-body { min-width: 0; flex: 1; position: relative; z-index: 1; }
.ex-hero h1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.ex-hero-sub {
  margin-top: 5px;
  font-family: var(--ex-mono);
  font-size: 11.5px;
  color: var(--text-3);
}
.ex-hero-sub b { color: var(--ex-red); }
.ex-hero-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.ex-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}
.ex-aside { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 12px; }

.ex-note {
  padding: 16px 17px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-3);
}
.ex-note h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ex-note ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.ex-note li {
  position: relative;
  padding-left: 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.ex-note li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--ex-red);
  transform: rotate(45deg);
  opacity: 0.75;
}
.ex-note p { font-size: 12px; line-height: 1.7; color: var(--text-3); }
.ex-note .ex-btn { width: 100%; margin-top: 12px; }

.ex-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 15px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.ex-btn:hover { transform: translateY(-1px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.ex-btn.primary {
  background: var(--ex-red-solid);
  border-color: transparent;
  color: var(--ex-on-red);
  box-shadow: 0 10px 22px -14px var(--ex-red-solid);
}
.ex-btn.ghost { background: transparent; }
.ex-btn.ghost.is-report {
  color: var(--ex-red);
  border-color: rgba(180, 35, 24, 0.3);
}
.ex-btn.ghost.is-report:hover {
  background: rgba(180, 35, 24, 0.06);
  border-color: var(--ex-red-solid);
}
.ex-btn[disabled] { opacity: 0.55; cursor: default; transform: none; }

/* 筛选条 */
.ex-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.ex-seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  gap: 2px;
}
.ex-seg button {
  border: 0;
  background: transparent;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
}
.ex-seg button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.ex-seg button.active[data-kind="scam"] { color: var(--ex-red); }
.ex-seg button.active[data-kind="listing"] { color: var(--ex-ok); }
.ex-count { margin-left: auto; font-family: var(--ex-mono); font-size: 11.5px; color: var(--text-3); }

/* 单游戏页里的迷你查询 */
.ex-mini-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px 4px 4px 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}
.ex-mini-search input {
  flex: 1;
  min-width: 0;
  height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--ex-mono);
  font-size: 14px;
}
.ex-mini-search button {
  height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.ex-mini-search button:hover { color: var(--ex-red); }

/* 关联在售 */
.ex-market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.ex-market-card {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}
.ex-market-card h4 { font-size: 13px; font-weight: 700; }
.ex-market-card .p { margin-top: 4px; font-family: var(--ex-mono); font-size: 13px; color: var(--ex-red); }
.ex-market-card p { margin-top: 6px; font-size: 12px; color: var(--text-3); line-height: 1.6; }

/* ---------------------------------------------------------------- 详情弹层 */
.ex-modal-card { width: min(680px, 100%); max-height: min(90vh, 860px); }
.ex-detail { padding: 20px 22px 22px; overflow-y: auto; }
.ex-detail-head { display: flex; align-items: flex-start; gap: 10px; padding-right: 34px; }
.ex-detail-head h2 {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  word-break: break-word;
}
.ex-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
  font-family: var(--ex-mono);
  font-size: 11.5px;
  color: var(--text-3);
}
.ex-detail-sec { margin-top: 18px; }
.ex-detail-sec h3 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-3);
  margin-bottom: 7px;
}
.ex-detail-text {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
}
.ex-detail-accs { display: flex; flex-wrap: wrap; gap: 7px; }
.ex-detail-acc {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
}
.ex-detail-acc b { font-size: 10.5px; color: var(--text-3); font-weight: 600; }
.ex-detail-acc span { font-family: var(--ex-mono); font-size: 13px; }
.ex-detail-acc button {
  margin-left: 2px;
  border: 0;
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}
.ex-detail-acc button:hover { color: var(--ex-red); }

.ex-ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.ex-ev-grid a {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.ex-ev-grid img { width: 100%; height: 100%; object-fit: cover; }
/* 只有一张时铺满一行，截图不用眯着眼看 */
.ex-ev-grid a:only-child {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  max-height: 380px;
}
.ex-ev-grid a:only-child img { object-fit: contain; max-height: 380px; }

.ex-detail-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-strong);
}
.ex-detail-foot .ex-btn { flex: 1 1 140px; }
.ex-disclaimer {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-3);
}
.ex-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
  font-family: var(--font);
  font-size: 10.5px;
  color: var(--text-3);
}

/* ---------------------------------------------------------------- 投稿表单 */
.ex-form { padding: 18px 22px 22px; overflow-y: auto; }
.ex-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ex-field { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.ex-field > span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.ex-field small { font-size: 11px; color: var(--text-3); font-weight: 400; }
.ex-input, .ex-textarea, .ex-select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  font-size: 14px;
  outline: 0;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.ex-input:focus, .ex-textarea:focus, .ex-select:focus {
  border-color: var(--ex-red);
  box-shadow: 0 0 0 3px var(--ex-red-soft);
}
.ex-textarea { min-height: 118px; resize: vertical; line-height: 1.7; }
.ex-input.mono { font-family: var(--ex-mono); }

.ex-kind-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ex-kind-pick label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.ex-kind-pick label:has(input:checked) { border-color: var(--ex-red); background: var(--ex-red-soft); }
.ex-kind-pick input { margin-top: 3px; accent-color: var(--ex-red); }
.ex-kind-pick b { display: block; font-size: 12.5px; }
.ex-kind-pick small { display: block; margin-top: 2px; font-size: 11px; color: var(--text-3); line-height: 1.5; }

.ex-upload-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.ex-up-item {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.ex-up-item img { width: 100%; height: 100%; object-fit: cover; }
.ex-up-item button {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 15, 25, 0.72);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  line-height: 1;
}
.ex-up-add {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--border-strong);
  border-radius: 9px;
  background: transparent;
  color: var(--text-3);
  font-size: 20px;
  cursor: pointer;
}
.ex-up-add:hover { border-color: var(--ex-red); color: var(--ex-red); }
.ex-up-hint { margin-top: 6px; font-size: 11px; color: var(--text-3); }

.ex-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-2);
}
.ex-check input { margin-top: 3px; accent-color: var(--ex-red); flex: 0 0 auto; }

.ex-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ex-form-msg {
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--ex-red-soft);
  border: 1px solid var(--ex-red-line);
  color: var(--ex-red-ink);
  font-size: 12.5px;
  line-height: 1.6;
}
.ex-form-msg.ok { background: var(--ex-ok-soft); border-color: var(--ex-ok-line); color: var(--ex-ok); }
.ex-form-msg[hidden] { display: none; }

.ex-submit-row {
  position: sticky;
  bottom: -22px;
  z-index: 3;
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 16px -22px -22px;
  padding: 12px 22px calc(14px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 24px -20px rgba(15, 23, 42, 0.4);
}
.ex-submit-row .ex-btn.primary { flex: 1; }
.ex-submit-row .ex-btn { flex: 0 0 auto; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1000px) {
  .ex-layout { grid-template-columns: minmax(0, 1fr); }
  /* 手机上先看记录，再看交易提示：aside 放到列表后面 */
  .ex-aside { position: static; order: 2; flex-direction: column; }
  .ex-aside .ex-note { flex: 1 1 auto; }
}

@media (max-width: 760px) {
  .ex-head { grid-template-columns: 1fr; gap: 10px; align-items: start; }
  .ex-headline { padding-right: 0; }
  .ex-seal { display: none; }
  .ex-stats { gap: 14px; }
  .ex-stat + .ex-stat { padding-left: 14px; }
  .ex-stat b { font-size: 19px; }
  .ex-card { gap: 10px; padding: 13px 13px 12px 16px; flex-direction: column; }
  .ex-ev-strip { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, 48px); }
  .ex-ev { width: 48px; height: 48px; }
  .ex-title { white-space: normal; font-size: 14px; }
  .ex-when { display: none; }
  .ex-card-top { align-items: flex-start; }
  .ex-shelf { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .ex-game { padding: 11px; }
  .ex-detail, .ex-form { padding: 16px 16px 18px; }
  .ex-form-row { grid-template-columns: 1fr; gap: 0; }
  .ex-kind-pick { grid-template-columns: 1fr; }
  .ex-search { padding-left: 13px; }
  .ex-search-btn { padding: 0 16px; }
  .ex-hero { padding: 15px; }
  .ex-hero h1 { font-size: 19px; }
  .ex-hero-act { gap: 7px; }
  .ex-hero-act .ex-btn.primary { flex: 1 1 100%; }
  .ex-hero-act .ex-btn:not(.primary) { flex: 1 1 0; min-width: 0; padding: 0 8px; font-size: 12.5px; }
  .ex-submit-row {
    bottom: -18px;
    margin: 14px -16px -18px;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 560px) {
  .ex-shelf { grid-template-columns: 1fr; }
  .ex-game .c { white-space: nowrap; }
  .ex-game .go { font-size: 14px; }
}

@media (max-width: 380px) {
  .ex-stats .ex-stat:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ex-card, .ex-game, .ex-btn, .ex-search-btn { transition: none; }
  .ex-card:hover, .ex-game:hover, .ex-btn:hover { transform: none; }
}

/* ---------------------------------------------------------------- 与既有卡片的衔接 */
/* 游戏卡片页脚：把「曝光台」做成安静的入口，不抢「查看工具」 */
.ic-more.ex { color: var(--ex-red); }
.ic-more.ex:hover { text-decoration: underline; }

/* 游戏弹层里的第五个入口：独占一行 */
.gm-btn.ex {
  grid-column: 1 / -1;
  margin-top: 2px;
  border-color: var(--ex-red-line);
  background: var(--ex-red-soft);
}
.gm-btn.ex .gm-ico { color: var(--ex-red); }
.gm-btn.ex:hover { border-color: var(--ex-red); }

/* 四栏底栏：文字略微收紧，避免 320px 宽度下换行 */
.tabbar-inner .tab { font-size: 10px; padding: 6px 2px; }
.tabbar-inner .tab .ico { font-size: 16px; }

/* 首页板块底部的一句免责说明：比 fineprint 更轻 */
.ex-notice { margin-top: 2px; opacity: 0.82; }

@media (max-width: 560px) {
  .ex-notice { font-size: 11.5px; line-height: 1.6; margin-top: 4px; }
}

/* hidden 属性要被作者样式尊重：.ex-shelf / .ex-shelf-head 自带 display，
   否则查号时收起货架会失效 */
[data-ex-search-only][hidden] { display: none !important; }

/* ---------------------------------------------------------------- 查号：疑似与警告 */
.ex-suspect {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(180, 83, 9, 0.32);
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
[data-theme="dark"] .ex-suspect {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(251, 191, 36, 0.12);
}

.ex-seller {
  font-family: var(--ex-mono);
  font-size: 11px;
  color: var(--text-2);
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.ex-search-warn {
  margin: 10px 0 4px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(180, 83, 9, 0.28);
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
  font-size: 12.5px;
  line-height: 1.7;
}
[data-theme="dark"] .ex-search-warn {
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.08);
}

/* ---------------------------------------------------------------- 卡密状态栏 */
.ex-cardbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-strong);
}
.ex-cardbar .spacer { flex: 1 1 12px; }
.ex-cardbar-hint { font-size: 11.5px; color: var(--text-3); line-height: 1.6; }
.ex-cardbar-warn { font-size: 11.5px; color: var(--ex-red); font-weight: 600; }
.ex-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--ex-ok-line);
  background: var(--ex-ok-soft);
  color: var(--ex-ok);
  font-size: 11.5px;
}
.ex-user-chip b { font-family: var(--ex-mono); font-size: 12px; letter-spacing: 0.02em; }
.ex-mock-tag {
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px dashed rgba(180, 83, 9, 0.35);
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  font-size: 10px;
  font-weight: 700;
}
[data-theme="dark"] .ex-mock-tag { color: #fbbf24; border-color: rgba(251, 191, 36, 0.35); }

.ex-btn.small {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
}
.ex-inline-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ex-red);
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ex-field-note.is-warn { color: var(--ex-red); }

/* 禁用的「出货 / 求购」选项 */
.ex-kind-pick label.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--surface-2);
}
.ex-kind-pick label.is-disabled input { cursor: not-allowed; }

/* ---------------------------------------------------------------- 卡密登录弹层 */
.ex-test-box {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  background: var(--surface-2);
}
.ex-test-box > span {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 7px;
}
.ex-test-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-test-card {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--ex-mono);
  font-size: 10.5px;
  cursor: pointer;
}
.ex-test-card:hover { border-color: var(--ex-red); color: var(--ex-red); }

.ex-intro {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-3);
}

/* ---------------------------------------------------------------- 我的商品 */
.ex-product {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}
.ex-product-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ex-product-top h3 { font-size: 15px; line-height: 1.5; }
.ex-product-price {
  margin-top: 8px;
  font-family: var(--ex-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--ex-red);
}
.ex-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.ex-product-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.ex-product-grid span { font-size: 10.5px; color: var(--text-3); }
.ex-product-grid b { font-size: 12px; font-weight: 600; }
.ex-product-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ex-product-actions .ex-btn { flex: 1 1 140px; }

@media (max-width: 760px) {
  .ex-cardbar { gap: 6px; }
  .ex-cardbar .spacer { display: none; }
  .ex-cardbar-hint { flex: 1 1 100%; }
  .ex-product-grid { grid-template-columns: 1fr 1fr; }
}

/* 12 小时锁定中的删除按钮：灰掉，而不是淡红 */
#exDeleteProduct[disabled] {
  background: var(--surface);
  color: var(--text-3);
  border: 1px solid var(--border-strong);
  box-shadow: none;
  opacity: 1;
}

@media (max-width: 760px) {
  .ex-cardbar [data-card-login] { width: 100%; }
}

/* ---------------------------------------------------------------- 两个大按钮：骗子曝光 / 公开售卖 */
.ex-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.ex-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  min-width: 0;
}
.ex-tab .ico { font-size: 20px; line-height: 1; flex: 0 0 auto; }
.ex-tab .txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.ex-tab .txt b { font-size: 14px; line-height: 1.35; }
.ex-tab .txt small { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-tab .n {
  flex: 0 0 auto;
  font-family: var(--ex-mono);
  font-size: 11.5px;
  color: var(--text-3);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.ex-tab:hover { border-color: var(--border-strong); }
.ex-tab:active { transform: scale(0.995); }

.ex-tab.is-scam.active { border-color: var(--ex-red); background: var(--ex-red-soft); }
.ex-tab.is-scam.active .txt b { color: var(--ex-red); }
.ex-tab.is-scam.active .n { color: var(--ex-red); border-color: var(--ex-red-line); background: var(--surface); }

.ex-tab.is-listing.active { border-color: #15803d; background: rgba(21, 128, 61, 0.07); }
.ex-tab.is-listing.active .txt b { color: #15803d; }
.ex-tab.is-listing.active .n { color: #15803d; border-color: rgba(21, 128, 61, 0.3); background: var(--surface); }
[data-theme="dark"] .ex-tab.is-listing.active { border-color: #4ade80; background: rgba(74, 222, 128, 0.1); }
[data-theme="dark"] .ex-tab.is-listing.active .txt b,
[data-theme="dark"] .ex-tab.is-listing.active .n { color: #4ade80; }

@media (max-width: 560px) {
  .ex-tabs { gap: 8px; }
  .ex-tab { padding: 10px 11px; gap: 8px; border-radius: 12px; }
  .ex-tab .ico { font-size: 17px; }
  .ex-tab .txt b { font-size: 13px; }
  .ex-tab .txt small { display: none; }
  .ex-tab .n { font-size: 11px; padding: 1px 7px; }
}

/* ---------------------------------------------------------------- 曝光 / 在售 类型区分 */
.ex-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
}
.ex-dot.scam { background: var(--ex-red); box-shadow: 0 0 0 3px var(--ex-red-soft); }
.ex-dot.sale { background: #15803d; box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.14); }

/* 卡片左侧色条：红＝骗子曝光，绿＝在售求购，扫一眼就能分开 */
.ex-card[data-kind]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 15px 0 0 15px;
  background: var(--border-strong);
}
.ex-card[data-kind="scam"]::before { background: var(--ex-red); }
.ex-card[data-kind="listing"]::before { background: #15803d; }
[data-theme="dark"] .ex-card[data-kind="listing"]::before { background: #4ade80; }
