:root {
  color-scheme: dark;
  --bg: #020204;
  --base: #06090d;
  --card: #0a1016;
  --sub: #111922;
  --border: #1d262f;
  --gold: #fbc606;
  --ink: #1a1300;
  --text: #e6e8ea;
  --muted: #97a2ad;
  --blue: #5ba8ff;
  --green: #4fd1a5;
  --red: #ff6b6b;
  --radius: 16px;
  font-family: 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.03em;
  color: #fff;
}
h2 {
  font-size: 19px;
  color: #fff;
}
h3 {
  font-size: 16px;
}
small,
.muted {
  color: var(--muted);
}
.app {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--base);
  border-right: 1px solid var(--border);
  padding: 26px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 4px 0 36px;
}
.mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
  display: grid;
  place-items: center;
  font-size: 21px;
}
.brand strong {
  color: #fff;
  display: block;
  letter-spacing: 0.04em;
}
.brand small {
  font-size: 11px;
}
.nav-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  margin: 18px 12px 10px;
}
.sidebar nav a {
  display: block;
  padding: 12px 14px;
  margin: 5px 0;
  border-radius: 10px;
  border-left: 3px solid transparent;
  color: #b7bec5;
}
.sidebar nav a:hover {
  background: var(--sub);
  color: #fff;
}
.sidebar nav a.active {
  background: var(--sub);
  border-left-color: var(--gold);
  color: #fff;
  font-weight: 700;
}
.side-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.main {
  min-width: 0;
}
.topbar {
  min-height: 76px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--base);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar strong {
  color: #fff;
}
.topbar .global-search {
  display: flex;
  gap: 8px;
  max-width: 440px;
  flex: 1;
}
.topbar .global-search input {
  width: 100%;
}
.content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 30px 32px 60px;
}
.hero {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: radial-gradient(ellipse at top right, #fbc6060b, transparent 60%), var(--card);
  margin-bottom: 22px;
}
.kicker {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.3;
  margin-bottom: 16px;
}
.hero p {
  color: #b7bec5;
  max-width: 650px;
}
.hero .tag {
  margin-top: 20px;
  display: inline-block;
  background: var(--sub);
  padding: 6px 12px;
  border-radius: 99px;
  color: var(--muted);
  font-size: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 30px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  border-left: 4px solid var(--gold);
}
.stat.blue {
  border-left-color: var(--blue);
}
.stat.green {
  border-left-color: var(--green);
}
.stat .value {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  margin: 8px 0;
}
.section {
  margin-top: 28px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.section-head h2::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 17px;
  border-radius: 4px;
  background: var(--gold);
  margin-right: 12px;
  vertical-align: middle;
}
.text-link {
  color: var(--gold);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}
.card.link:hover {
  border-color: #45515f;
  background: #111922;
}
.player-card {
  display: flex;
  align-items: center;
  gap: 14px;
}
.player-card .grow {
  min-width: 0;
}
.player-card .name {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  overflow-wrap: anywhere;
}
.player-card small {
  display: block;
  margin-top: 5px;
}
.grow {
  flex: 1;
}
.avatar {
  height: 48px;
  width: 48px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  flex-shrink: 0;
}
.club-card {
  text-align: center;
}
.club-card .avatar {
  height: 56px;
  width: 56px;
  margin-bottom: 12px;
}
.club-card h3 {
  margin-bottom: 10px;
}
.club-stats {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}
.club-stats b {
  display: block;
  color: #fff;
  font-size: 20px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 99px;
  background: #707a8419;
  border: 1px solid #707a8440;
  color: #b7bec5;
  font-size: 11px;
  font-weight: 600;
}
.bd {
  height: 5px;
  width: 5px;
  background: currentColor;
  border-radius: 50%;
}
.badge[data-status='试训中'] {
  color: var(--blue);
  background: #5ba8ff15;
  border-color: #5ba8ff40;
}
.badge[data-status='竞拍中'],
.badge[data-status='草稿'],
.badge[data-status='有修改'] {
  color: var(--gold);
  background: #fbc60612;
  border-color: #fbc60640;
}
.badge[data-status='已成交'],
.badge[data-status='已发布'] {
  color: var(--green);
  background: #4fd1a515;
  border-color: #4fd1a540;
}
.badge[data-status='未成交'] {
  color: var(--red);
  background: #ff6b6b15;
  border-color: #ff6b6b40;
}
.badge[data-status='已官宣'] {
  color: #46c9c0;
}
.feed {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.feed-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}
.feed-item:last-child {
  border: 0;
}
.feed-item time {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.feed-item p {
  color: #fff;
  margin-bottom: 9px;
  overflow-wrap: anywhere;
}
.feed-item p a:hover {
  color: var(--gold);
}
.feed-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.toolbar input {
  flex: 1;
  min-width: 180px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.tabs a {
  padding: 7px 12px;
  border-radius: 99px;
  background: var(--sub);
  border: 1px solid var(--border);
  font-size: 12px;
}
.tabs a.active {
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}
.btn {
  border: 1px solid #344251;
  background: var(--sub);
  color: var(--text);
  border-radius: 9px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1.4;
  min-height: 40px;
}
.btn:hover {
  border-color: #5a6774;
  color: #fff;
}
.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 700;
}
.btn-primary:hover {
  background: #dd9e0a;
  border-color: #dd9e0a;
  color: var(--ink);
}
.btn-danger {
  color: var(--red);
  border-color: #ff6b6b50;
}
.btn-sm {
  padding: 7px 10px;
  font-size: 12px;
  min-height: 34px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
input,
select,
textarea {
  padding: 10px 12px;
  border: 1px solid #344251;
  background: var(--base);
  color: var(--text);
  border-radius: 9px;
  min-height: 42px;
  max-width: 100%;
}
input::placeholder {
  color: #84909c;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
input[type='checkbox'] {
  min-height: 0;
  accent-color: var(--gold);
  width: 17px;
  height: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
}
.field small {
  font-size: 12px;
}
.field.required label::after {
  content: ' *';
  color: var(--gold);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}
.empty {
  padding: 52px 20px;
  text-align: center;
  background: var(--card);
  border: 1px dashed #344251;
  border-radius: var(--radius);
}
.empty h2 {
  font-size: 18px;
  margin-bottom: 8px;
}
.empty p {
  color: var(--muted);
}
.error-box {
  padding: 12px 14px;
  border: 1px solid #ff6b6b55;
  color: var(--red);
  background: #ff6b6b0c;
  border-radius: 10px;
  margin: 12px 0;
}
.notice {
  padding: 12px 16px;
  border: 1px solid #fbc60640;
  background: #fbc60608;
  border-radius: 10px;
  color: #d9c36f;
  margin: 18px 0;
}
.loading {
  padding: 45px;
  text-align: center;
  color: var(--muted);
}
.detail-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 20px 0;
}
.detail-head .avatar {
  height: 70px;
  width: 70px;
  font-size: 28px;
}
.detail-head h1 {
  margin-bottom: 5px;
}
.back {
  display: inline-block;
  color: var(--muted);
}
.timeline {
  border-left: 1px solid #344251;
  padding-left: 22px;
}
.timeline-item {
  position: relative;
  margin-bottom: 22px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
  left: -27px;
  top: 8px;
}
.timeline-item time {
  font-size: 12px;
  color: var(--muted);
}
.timeline-item p {
  margin-top: 6px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
}
th {
  background: var(--sub);
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  font-weight: 500;
}
th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
td {
  font-size: 13px;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #ffffff03;
}
td.description {
  white-space: normal;
  min-width: 210px;
  max-width: 460px;
  overflow-wrap: anywhere;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at top, #fbc6060a, transparent 60%);
}
.login-card {
  width: 420px;
  max-width: 100%;
  padding: 34px;
}
.login-card h1 {
  font-size: 24px;
  margin-bottom: 10px;
}
.login-card > p {
  margin-bottom: 26px;
  color: var(--muted);
}
.login-card button {
  width: 100%;
}
.login-card .brand {
  margin-bottom: 22px;
}
.login-card .foot {
  margin-top: 20px;
  font-size: 12px;
}
.hidden,
[hidden] {
  display: none !important;
}
dialog {
  border: 1px solid #344251;
  border-radius: 18px;
  background: var(--card);
  color: var(--text);
  padding: 0;
  width: 720px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(3px);
}
.mh,
.mf {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--sub);
}
.mh h2 {
  font-size: 18px;
}
.mb {
  padding: 24px;
  overflow: auto;
}
.mf {
  justify-content: flex-end;
}
.form-error:empty {
  display: none;
}
.form-error {
  color: var(--red);
  margin-bottom: 16px;
  white-space: normal;
}
.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: grid;
  gap: 10px;
  max-width: calc(100vw - 40px);
}
.toast {
  border: 1px solid #4fd1a550;
  border-radius: 12px;
  background: var(--sub);
  padding: 14px 20px;
  box-shadow: 0 12px 40px #0009;
}
.toast.error {
  border-color: #ff6b6b70;
  color: var(--red);
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: var(--muted);
}
.permission-group {
  margin-bottom: 16px;
}
.permission-group h3 {
  margin-bottom: 8px;
}
.footer {
  margin-top: 32px;
  color: var(--muted);
  font-size: 12px;
}
.menu-toggle {
  display: none;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.global-search input {
  min-width: 0;
  flex: 1;
}
.global-search .btn {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar {
    padding: 16px 24px;
  }
  .content {
    padding: 24px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 18px;
  }
}
@media (max-width: 760px) {
  .app {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }
  .brand {
    margin: 0;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    margin-top: 16px;
    gap: 6px;
  }
  .sidebar nav a {
    white-space: nowrap;
    padding: 9px 12px;
    margin: 0;
  }
  .nav-label,
  .side-foot {
    display: none;
  }
  .topbar {
    padding: 12px 16px;
    flex-wrap: wrap;
  }
  .topbar .global-search {
    order: 2;
    flex-basis: 100%;
    max-width: none;
  }
  .content {
    padding: 20px 16px 40px;
  }
  .hero {
    padding: 24px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat .value {
    font-size: 32px;
  }
  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }
  .feed-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px;
  }
  .pager {
    flex-wrap: wrap;
  }
  .detail-head {
    flex-wrap: wrap;
  }
  .detail-head h1 {
    font-size: 24px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .toolbar {
    padding: 12px;
  }
  .toolbar input {
    min-width: 100%;
    width: 100%;
  }
  .toolbar select {
    flex: 1;
  }
  .mh,
  .mf {
    padding: 16px;
  }
  .mb {
    padding: 18px;
  }
  .login-card {
    padding: 26px;
  }
  table {
    min-width: 680px;
  }
  .actions .btn {
    min-height: 42px;
  }
  .toasts {
    right: 16px;
    bottom: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
