/* ==========================================================================
   账号违规图鉴 —— 样式
   ========================================================================== */

:root {
  --bg: #f2f1ed;
  --surface: #ffffff;
  --surface-2: #faf9f7;
  --ink: #15181d;
  --ink-2: #3a4048;
  --muted: #71787f;
  --muted-2: #969ba3;
  --line: #e4e2dc;
  --line-strong: #d6d3cc;

  --rail: #14161b;
  --rail-2: #1d2027;
  --rail-text: #a8aeb9;
  --rail-text-strong: #f4f5f7;

  --accent: #2d5be0;
  --accent-hover: #2149c4;
  --accent-soft: #eef2fe;

  --block: #d2392f;
  --block-soft: #fdeeec;
  --block-line: #f6cdc8;

  --review: #c2761a;
  --review-soft: #fdf4e4;
  --review-line: #f2ddb6;

  --resell: #2c8158;
  --resell-soft: #eaf6ef;
  --resell-line: #c6e5d4;

  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(21, 24, 29, 0.05);
  --shadow: 0 1px 2px rgba(21, 24, 29, 0.05), 0 12px 28px -20px rgba(21, 24, 29, 0.35);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: #cdd9ff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- 布局 */

#app {
  min-height: 100vh;
}

.shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 16px 18px;
  background: var(--rail);
  color: var(--rail-text);
  overflow: hidden;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.content {
  padding: 0 32px 72px;
  flex: 1;
  min-width: 0;
}

/* ---------------------------------------------------------------- 侧栏 */

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 6px 20px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #3d6bf0, #2545b8);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 16px -8px rgba(61, 107, 240, 0.9);
}

.brand-title {
  color: var(--rail-text-strong);
  font-weight: 650;
  font-size: 15px;
  letter-spacing: 0.2px;
}

.brand-sub {
  font-size: 11.5px;
  color: #6f7683;
  letter-spacing: 0.6px;
}

.rail-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 10px 8px;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #616875;
}

.rail-label b {
  color: #8d94a1;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.rail-count {
  margin-left: auto;
  color: #8d94a1;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}

/* 侧栏游戏搜索 */

.game-search {
  position: relative;
  margin: 0 4px 8px;
  flex: 0 0 auto;
}

.game-search input {
  width: 100%;
  padding: 7px 10px 7px 29px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.05);
  color: #e9ecf1;
  font-family: inherit;
  font-size: 12.5px;
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.game-search input::placeholder {
  color: #6b727f;
}

.game-search input:focus {
  outline: none;
  border-color: rgba(93, 140, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(45, 91, 224, 0.18);
}

.game-search input::-webkit-search-cancel-button {
  filter: invert(1) opacity(0.45);
  cursor: pointer;
}

.game-search .icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b727f;
  pointer-events: none;
}

.game-name mark {
  background: rgba(93, 140, 255, 0.32);
  color: #fff;
  border-radius: 3px;
  padding: 0 1px;
}

.rail-empty {
  padding: 12px 10px 14px;
  font-size: 12px;
  line-height: 1.7;
  color: #6b727f;
}

.rail-empty span {
  color: #565d6a;
}

.rail-tip {
  margin: 2px 8px 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(240, 136, 62, 0.12);
  border: 1px solid rgba(240, 136, 62, 0.26);
  color: #dda169;
  font-size: 11.5px;
  line-height: 1.5;
}

.rail-tip b {
  color: #f7cd9b;
}

.game-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 0 4px 8px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #2c313a transparent;
}

.game-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--rail-text);
  text-align: left;
  transition: background 0.14s ease, color 0.14s ease;
}

.game-item:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #e6e9ee;
}

.game-item.is-active {
  background: var(--rail-2);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.game-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 650;
  color: #fff;
  background: #2a2f39;
  letter-spacing: 0;
}

.game-item.is-active .game-avatar {
  background: linear-gradient(150deg, #3d6bf0, #2545b8);
}

.game-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.game-name {
  font-size: 13.5px;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-meta {
  font-size: 11px;
  color: #6b727f;
  font-variant-numeric: tabular-nums;
}

.game-item.is-active .game-meta {
  color: #8b93a1;
}

.rail-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.rail-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: var(--rail-text);
  font-size: 13px;
  text-align: left;
  transition: background 0.14s ease, color 0.14s ease;
}

.rail-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.rail-link svg {
  opacity: 0.75;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0;
}

.tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--rail-text);
  font-size: 13.5px;
  text-align: left;
  transition: background 0.14s ease, color 0.14s ease;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #e6e9ee;
}

.tab.is-active {
  background: var(--rail-2);
  color: #fff;
  font-weight: 550;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.tab-count {
  margin-left: auto;
  font-size: 11px;
  color: #767d8b;
  font-variant-numeric: tabular-nums;
}

.tab.is-active .tab-count {
  color: #9aa2b0;
}

/* ---------------------------------------------------------------- 顶栏 */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 32px;
  background: rgba(242, 241, 237, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-titles {
  min-width: 0;
  flex: 1 1 auto;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}

.page-title {
  font-size: 19px;
  font-weight: 680;
  letter-spacing: -0.2px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* ---------------------------------------------------------------- 控件 */

.search {
  position: relative;
  width: 258px;
  max-width: 40vw;
}

.search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.search input::placeholder {
  color: var(--muted-2);
}

.search input:focus {
  outline: none;
  border-color: #9db4f2;
  box-shadow: 0 0 0 3px rgba(45, 91, 224, 0.12);
}

.search .icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.06s ease,
    color 0.14s ease;
}

.btn:hover {
  background: #fbfaf8;
  border-color: #c7c3bb;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(45, 91, 224, 0.35), 0 8px 20px -14px rgba(45, 91, 224, 0.9);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-quiet {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--ink-2);
}

.btn-quiet:hover {
  background: rgba(21, 24, 29, 0.06);
  border-color: transparent;
}

.btn-danger {
  color: var(--block);
  border-color: var(--block-line);
  background: var(--block-soft);
  box-shadow: none;
}

.btn-danger:hover {
  background: #fce3e0;
  border-color: #f0b8b2;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 8px;
}

.btn.is-on {
  background: var(--accent-soft);
  border-color: #b9c9f5;
  color: var(--accent);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-block {
  width: 100%;
}

/* ---------------------------------------------------------------- 游戏导语卡 */

.hero {
  margin: 24px 0 22px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #fcfbf9);
  box-shadow: var(--shadow);
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-main {
  min-width: 260px;
  flex: 1;
}

.hero-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  max-width: 62ch;
}

.hero-stats {
  display: flex;
  gap: 26px;
  padding-left: 26px;
  border-left: 1px dashed var(--line-strong);
}

.stat-num {
  font-size: 22px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.stat-num.is-warn {
  color: var(--review);
}

.stat-label {
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.4px;
}

.verdict-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 550;
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.chip-block {
  color: var(--block);
  background: var(--block-soft);
  border-color: var(--block-line);
}

.chip-review {
  color: var(--review);
  background: var(--review-soft);
  border-color: var(--review-line);
}

.chip-resell {
  color: var(--resell);
  background: var(--resell-soft);
  border-color: var(--resell-line);
}

.chip-plain {
  color: var(--muted);
  background: var(--surface-2);
  border-color: var(--line);
}

.chip-plain::before {
  display: none;
}

/* ---------------------------------------------------------------- 违规类型卡 */
/* 一个类型 = 一张截图：截图占满卡片上半部分，尽量大到不用点开就能看清 */

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
  gap: 18px;
}

.type-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.type-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.type-card.is-block {
  border-left: 3px solid var(--block);
}
.type-card.is-review {
  border-left: 3px solid var(--review);
}
.type-card.is-resell {
  border-left: 3px solid var(--resell);
}

.type-media {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  max-height: 420px;
  padding: 0;
  border: 0;
  background: #0e1116;
  cursor: zoom-in;
  overflow: hidden;
  font: inherit;
}

.type-media img {
  width: 100%;
  height: 100%;
  /* 参考截图不能被裁掉关键信息，宁可留黑边 */
  object-fit: contain;
  display: block;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.type-card:hover .type-media img {
  transform: scale(1.03);
}

.type-media.is-empty {
  cursor: default;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(45deg, #faf9f6, #faf9f6 10px, #f3f2ed 10px, #f3f2ed 20px);
}

.type-media-empty {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted-2);
}

.type-media-zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(10, 12, 16, 0.62);
  color: #fff;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.16s ease;
  backdrop-filter: blur(4px);
}

.type-card:hover .type-media-zoom {
  opacity: 1;
}

.type-body {
  min-width: 0;
  padding: 15px 18px 17px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.type-main {
  min-width: 0;
  flex: 1;
}

.type-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.type-name {
  font-size: 16.5px;
  font-weight: 660;
  letter-spacing: -0.2px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

.pill-block {
  color: var(--block);
  background: var(--block-soft);
  border-color: var(--block-line);
}
.pill-review {
  color: var(--review);
  background: var(--review-soft);
  border-color: var(--review-line);
}
.pill-resell {
  color: var(--resell);
  background: var(--resell-soft);
  border-color: var(--resell-line);
}

.type-desc {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.66;
}

.type-desc.is-empty {
  color: var(--muted-2);
  font-style: italic;
}

.type-advice {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: auto;
}

/* 复制图片：一线把样图直接粘到回收凭据后台 */
.type-copy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  transition: color 0.14s ease, border-color 0.14s ease, background 0.14s ease,
    transform 0.06s ease;
}

.type-copy:hover {
  color: var(--accent);
  border-color: #b9c9f5;
  background: var(--accent-soft);
}

.type-copy:active {
  transform: translateY(1px);
}

.type-copy svg {
  flex: 0 0 auto;
  opacity: 0.8;
}

.type-advice b {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.6px;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  transform: translateY(-1px);
}

/* ---------------------------------------------------------------- 空状态 */

.empty {
  padding: 44px 24px;
  text-align: center;
  color: var(--muted);
}

.empty-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted-2);
}

.empty h3 {
  font-size: 15px;
  font-weight: 640;
  color: var(--ink);
  margin-bottom: 6px;
}

.empty p {
  font-size: 13px;
  max-width: 46ch;
  margin: 0 auto;
}

.empty-inline {
  padding: 26px 20px;
  text-align: center;
  color: var(--muted-2);
  font-size: 12.5px;
  border-top: 1px dashed var(--line);
}

/* ---------------------------------------------------------------- 区间标题 */

.section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 30px 0 14px;
}

.section-title {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-hint {
  font-size: 12px;
  color: var(--muted-2);
}

/* ---------------------------------------------------------------- 面板 / 表单 */

.panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  /* 不能 hidden：游戏选择器的浮层要能溢出面板 */
  overflow: visible;
  margin-bottom: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.panel-title {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.2px;
}

.panel-hint {
  font-size: 12px;
  color: var(--muted-2);
}

.panel-head .right {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.panel-body {
  padding: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px 16px;
}

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field > label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.field > label .req {
  color: var(--block);
}

.field-hint {
  font-size: 11.5px;
  color: var(--muted-2);
  line-height: 1.5;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.5;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.textarea {
  resize: vertical;
  min-height: 76px;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2371787f' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 30px;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: #9db4f2;
  box-shadow: 0 0 0 3px rgba(45, 91, 224, 0.12);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--muted-2);
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.form-error {
  font-size: 12.5px;
  color: var(--block);
}

/* ---------------------------------------------------------------- 游戏选择器 */

.picker {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.picker-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.14s ease, background 0.14s ease;
}

.picker-btn:hover {
  background: #fbfaf8;
  border-color: #c7c3bb;
}

.picker-current {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-btn svg {
  flex: 0 0 auto;
  color: var(--muted);
}

.picker-pop {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  width: 296px;
  max-width: calc(100vw - 48px);
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 22px 48px -24px rgba(21, 24, 29, 0.55), 0 2px 6px rgba(21, 24, 29, 0.06);
}

.picker-pop[hidden] {
  display: none;
}

.picker-search {
  padding: 0 0 8px;
}

.picker-search .input {
  padding: 7px 10px;
  font-size: 13px;
}

.picker-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 268px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.picker-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  text-align: left;
}

.picker-opt:hover,
.picker-opt.is-cursor {
  background: var(--accent-soft);
  color: var(--ink);
}

.picker-opt.is-active {
  background: var(--accent);
  color: #fff;
  font-weight: 550;
}

.picker-opt.is-active:hover,
.picker-opt.is-active.is-cursor {
  background: var(--accent-hover);
  color: #fff;
}

.picker-opt-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-opt-name mark {
  background: rgba(45, 91, 224, 0.2);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}

.picker-opt.is-active .picker-opt-name mark {
  background: rgba(255, 255, 255, 0.3);
}

.picker-opt-meta {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.picker-opt.is-active .picker-opt-meta {
  color: rgba(255, 255, 255, 0.78);
}

.picker-empty {
  padding: 14px 10px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted-2);
}

/* ---------------------------------------------------------------- 列表行 */

.row-list {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
}

.row:first-child {
  border-top: 0;
}

.row:last-child {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.row:hover {
  background: var(--surface-2);
}

.row-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #eceae4;
  color: var(--ink-2);
  font-weight: 650;
  font-size: 13.5px;
}

.row-main {
  min-width: 0;
  flex: 1;
}

.row-title {
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.row-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.row-metrics {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.row-actions {
  display: flex;
  gap: 6px;
  opacity: 0.35;
  transition: opacity 0.14s ease;
}

.row:hover .row-actions,
.row-actions:focus-within {
  opacity: 1;
}

.row-thumb {
  width: 84px;
  height: 63px;
  flex: 0 0 84px;
  border-radius: 8px;
  overflow: hidden;
  background: #0e1116;
  border: 1px solid var(--line);
}

.row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.row-thumb img:hover {
  transform: scale(1.06);
}

.row-thumb.is-empty {
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--muted-2);
  background: repeating-linear-gradient(45deg, #faf9f6, #faf9f6 6px, #f3f2ed 6px, #f3f2ed 12px);
}

/* ---------------------------------------------------------------- 类型配图（弹窗内） */

.img-field {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.img-field:hover,
.img-field.is-over {
  border-color: #9db4f2;
  background: var(--accent-soft);
}

.img-field.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

.img-preview img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
  background: #0e1116;
}

.img-hint {
  padding: 26px 16px;
  text-align: center;
}

.img-hint strong {
  display: block;
  font-size: 14px;
  font-weight: 640;
  margin-bottom: 4px;
  color: var(--ink);
}

.img-hint span {
  font-size: 12.5px;
  color: var(--muted);
}

.img-actions {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
  order: -1;
}

/* ---------------------------------------------------------------- 登录 */

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(1200px 600px at 50% -10%, #ffffff, var(--bg) 60%);
}

.login-card {
  width: 100%;
  max-width: 392px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(21, 24, 29, 0.05), 0 30px 60px -40px rgba(21, 24, 29, 0.5);
  padding: 30px 28px 26px;
}

.login-card .brand {
  padding: 0 0 18px;
}

.login-card .brand-title {
  color: var(--ink);
}

.login-card h1 {
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}

.login-card .sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ---------------------------------------------------------------- 弹窗 */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(12, 14, 18, 0.42);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fade 0.14s ease;
}

.modal {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
  animation: pop 0.16s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}

.modal-head h2 {
  font-size: 15px;
  font-weight: 660;
  flex: 1;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  flex: 0 0 auto;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.99);
  }
}

/* ---------------------------------------------------------------- 大图查看 */

.lb {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: rgba(9, 10, 13, 0.95);
  backdrop-filter: blur(6px);
  animation: fade 0.14s ease;
}

.lb[hidden] {
  display: none;
}

.lb-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 28px 76px 8px;
}

.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  background: #0e1116;
}

.lb-panel {
  flex: 0 0 auto;
  padding: 14px 32px 26px;
  text-align: center;
  color: #e9ecf1;
}

.lb-meta {
  font-size: 11.5px;
  letter-spacing: 1px;
  color: #8b93a0;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.lb-title {
  font-size: 17px;
  font-weight: 640;
  margin-bottom: 6px;
}

.lb-note {
  font-size: 13px;
  color: #b3bac6;
  max-width: 78ch;
  margin: 0 auto;
  line-height: 1.7;
}

.lb-actions {
  margin-top: 14px;
}

.lb-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #e9ecf1;
  font-size: 13px;
  font-weight: 550;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.lb-copy:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.lb-copy svg {
  opacity: 0.8;
}

.lb-index {
  margin-top: 10px;
  font-size: 12px;
  color: #6f7784;
  font-variant-numeric: tabular-nums;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.14s ease, opacity 0.14s ease;
}

.lb-nav:hover {
  background: rgba(255, 255, 255, 0.14);
}

.lb-prev {
  left: 18px;
}
.lb-next {
  right: 18px;
}

.lb-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 13px;
  display: grid;
  place-items: center;
  z-index: 2;
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ---------------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 120;
  padding: 10px 18px;
  border-radius: 10px;
  background: #16191f;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.8);
  animation: toast-in 0.18s ease;
  max-width: 80vw;
}

.toast.is-error {
  background: #a3241c;
}

.toast[hidden] {
  display: none;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}

/* ---------------------------------------------------------------- 骨架屏 */

.skeleton {
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, #eceae5 30%, #f6f5f1 50%, #eceae5 70%);
  background-size: 220% 100%;
  animation: shimmer 1.1s linear infinite;
  height: 148px;
  margin-bottom: 16px;
}

@keyframes shimmer {
  to {
    background-position: -120% 0;
  }
}

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 1080px) {
  .content {
    padding: 0 20px 64px;
  }
  .topbar {
    padding: 14px 20px;
  }
  .hero {
    gap: 18px;
  }
  .hero-stats {
    padding-left: 18px;
    gap: 18px;
  }
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .rail {
    position: relative;
    height: auto;
    padding: 14px 14px 10px;
    gap: 0;
  }

  .brand {
    padding-bottom: 12px;
  }

  .game-list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    padding-bottom: 6px;
    flex: none;
  }

  .game-item {
    width: auto;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.05);
  }

  .rail-label {
    padding: 4px 4px 6px;
  }

  .rail-foot {
    flex-direction: row;
    padding-top: 8px;
  }

  .tabs {
    flex-direction: row;
    overflow-x: auto;
  }

  .tab {
    flex: 0 0 auto;
  }

  .topbar {
    position: relative;
    flex-wrap: wrap;
  }

  .search {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
  }

  .lb-stage {
    padding: 16px 12px 8px;
  }

  .lb-nav {
    top: auto;
    bottom: 96px;
    transform: none;
  }

  .shot-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .type-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .type-media {
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .type-body {
    padding: 13px 15px 15px;
  }
}
