:root {
  --bg: #070b0f;
  --surface: rgba(13, 21, 27, 0.92);
  --surface-2: rgba(17, 30, 37, 0.96);
  --soft: rgba(23, 43, 51, 0.92);
  --line: rgba(119, 255, 223, 0.18);
  --line-strong: rgba(119, 255, 223, 0.34);
  --text: #e6f7f3;
  --muted: #89a7a6;
  --teal: #29d6bd;
  --teal-dark: #18a994;
  --blue: #4aa3ff;
  --amber: #ffd166;
  --red: #ff5b5b;
  --green: #62e89c;
  --violet: #9c7cff;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
}

body {
  background:
    linear-gradient(90deg, rgba(41, 214, 189, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(41, 214, 189, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 18% 0%, rgba(41, 214, 189, 0.12), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(74, 163, 255, 0.11), transparent 30%),
    #070b0f;
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  color: var(--text);
}

.shell {
  width: min(1560px, 100%);
  padding: 18px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 72px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(12, 24, 30, 0.95), rgba(7, 11, 15, 0.92));
  box-shadow: var(--shadow);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 620px;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
  min-width: 0;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 340px;
  min-width: 0;
  max-width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(119, 255, 223, 0.22);
  border-radius: 4px;
  background: rgba(7, 13, 17, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.user-chip strong {
  display: block;
  min-width: 0;
  max-width: 210px;
  overflow: hidden;
  color: #f2fffb;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip svg {
  width: 15px;
  height: 15px;
  color: var(--teal);
}

.brand {
  flex: 1 1 360px;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(41, 214, 189, 0.55);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(41, 214, 189, 0.24), rgba(74, 163, 255, 0.08)),
    #091017;
  color: var(--teal);
  box-shadow: inset 0 0 18px rgba(41, 214, 189, 0.1);
}

h1 {
  color: #f2fffb;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav {
  flex: 0 1 260px;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  min-width: min(260px, 100%);
  border-color: var(--line);
  border-radius: 6px;
  background: rgba(7, 13, 17, 0.82);
}

.nav button {
  min-height: 38px;
  border-radius: 4px;
  color: var(--muted);
}

.nav button.is-active {
  background: linear-gradient(180deg, rgba(41, 214, 189, 0.2), rgba(41, 214, 189, 0.08));
  color: #effffb;
  box-shadow: inset 0 0 0 1px rgba(41, 214, 189, 0.36);
}

.notice {
  border-color: rgba(255, 209, 102, 0.34);
  border-radius: 6px;
  background: rgba(69, 50, 16, 0.28);
  color: #ffe7a6;
}

.stats {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 8px;
}

.hall-layout {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.hall-side-nav {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(12, 24, 30, 0.94), rgba(7, 11, 15, 0.9));
  box-shadow: var(--shadow);
}

.hall-side-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(119, 255, 223, 0.18);
  border-radius: 4px;
  background: rgba(7, 13, 17, 0.58);
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.hall-side-nav button.is-active {
  border-color: rgba(41, 214, 189, 0.62);
  background: linear-gradient(180deg, rgba(41, 214, 189, 0.2), rgba(41, 214, 189, 0.08));
  color: #effffb;
  box-shadow: inset 0 0 0 1px rgba(41, 214, 189, 0.22);
}

.hall-side-nav svg {
  color: var(--teal);
}

.stat {
  min-height: 82px;
  border-color: var(--line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(23, 43, 51, 0.88), rgba(9, 16, 20, 0.92));
  box-shadow: none;
}

.stat span {
  color: var(--muted);
  text-transform: uppercase;
}

.stat strong {
  color: #f7fffb;
  font-size: 22px;
}

.grid {
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 12px;
}

.panel {
  border-color: var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-header {
  min-height: 54px;
  border-bottom-color: var(--line);
  background: linear-gradient(90deg, rgba(23, 43, 51, 0.9), rgba(12, 21, 27, 0.92));
}

.panel-title {
  min-width: max-content;
  color: #f2fffb;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.panel-body {
  background: rgba(7, 11, 15, 0.12);
}

label {
  color: #bddbd5;
  text-transform: uppercase;
}

input,
select,
textarea {
  border-color: rgba(119, 255, 223, 0.24);
  border-radius: 4px;
  background: rgba(4, 9, 12, 0.72);
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: rgba(137, 167, 166, 0.7);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(41, 214, 189, 0.13);
}

option {
  background: #0b141a;
  color: var(--text);
}

.button,
.icon-only {
  border-color: rgba(119, 255, 223, 0.28);
  border-radius: 4px;
  background: rgba(12, 24, 30, 0.88);
  color: var(--text);
}

.button.primary,
.button.blue {
  border-color: rgba(41, 214, 189, 0.78);
  background: linear-gradient(180deg, rgba(41, 214, 189, 0.28), rgba(41, 214, 189, 0.16));
  color: #ecfffb;
}

.button.primary:hover,
.button.blue:hover {
  background: linear-gradient(180deg, rgba(41, 214, 189, 0.38), rgba(41, 214, 189, 0.2));
}

.button.ghost {
  background: rgba(7, 13, 17, 0.72);
}

.button.danger {
  border-color: rgba(255, 91, 91, 0.34);
  background: rgba(77, 20, 24, 0.4);
  color: #ffb4b4;
}

.selected-box,
.contact-card {
  border-color: var(--line);
  border-radius: 5px;
  background: rgba(6, 13, 17, 0.72);
}

.selected-box strong,
.contact-card strong {
  color: #f4fffc;
}

.selected-box .price,
.inline-price {
  color: var(--teal);
}

table {
  min-width: 1020px;
}

th,
td {
  border-bottom-color: rgba(119, 255, 223, 0.12);
}

th {
  background: #0c171d;
  color: #a9c8c3;
  text-transform: uppercase;
}

tbody tr:hover {
  background: rgba(41, 214, 189, 0.07);
}

.empty-row td {
  color: var(--muted);
}

.tag,
.status {
  border-radius: 4px;
}

.tag.pc {
  background: rgba(74, 163, 255, 0.16);
  color: #9fd0ff;
}

.tag.mobile {
  background: rgba(98, 232, 156, 0.14);
  color: #a7f7c5;
}

.status.sale,
.status.done,
.status.paid {
  background: rgba(98, 232, 156, 0.14);
  color: #a7f7c5;
}

.status.locked,
.status.pending {
  background: rgba(255, 209, 102, 0.16);
  color: #ffe7a6;
}

.status.off,
.status.cancel {
  background: rgba(255, 91, 91, 0.16);
  color: #ffb4b4;
}

.modal-backdrop {
  background: rgba(2, 6, 8, 0.72);
}

.modal {
  border-color: var(--line-strong);
  border-radius: 6px;
  background: #0b141a;
}

.toast {
  border-color: var(--line-strong);
  border-radius: 6px;
  background: #0b241f;
  color: #ddfff7;
}

.dev-logo {
  position: fixed;
  left: 16px;
  bottom: 14px;
  z-index: 9;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 7px;
  min-width: 112px;
  padding: 8px 10px;
  border: 1px solid rgba(119, 255, 223, 0.3);
  border-radius: 6px;
  background: rgba(7, 13, 17, 0.78);
  color: var(--muted);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.dev-logo svg {
  grid-row: span 2;
  color: var(--teal);
}

.dev-logo span {
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.dev-logo strong {
  color: #f2fffb;
  font-size: 12px;
  letter-spacing: 0;
}

.intel-board {
  padding: 8px;
  overflow: visible;
}

.intel-board table,
.intel-board thead,
.intel-board tbody,
.intel-board tr,
.intel-board th,
.intel-board td {
  display: block;
  width: 100%;
}

.intel-board table {
  min-width: 0;
}

.intel-board thead {
  display: none;
}

.intel-board tbody {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(198px, 1fr));
  gap: 7px;
}

.intel-board tr {
  position: relative;
  min-height: 154px;
  padding: 8px 8px 9px;
  border: 1px solid rgba(119, 255, 223, 0.2);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(41, 214, 189, 0.08), transparent 38%),
    rgba(8, 15, 19, 0.88);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.intel-board tr::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--teal), transparent);
}

.intel-board tr:hover,
.intel-board tr:focus {
  border-color: rgba(41, 214, 189, 0.55);
  background:
    linear-gradient(135deg, rgba(41, 214, 189, 0.14), transparent 42%),
    rgba(10, 19, 24, 0.96);
  transform: translateY(-2px);
  outline: none;
}

.intel-board td {
  height: auto;
  min-height: 0;
  padding: 3px 0 3px 8px;
  border: 0;
  white-space: normal;
  color: #e2f6f1;
  font-size: 12px;
  line-height: 1.35;
}

.intel-board td:nth-child(1) {
  width: auto;
  margin-left: 8px;
  padding: 0;
}

.intel-board td:nth-child(2) {
  display: -webkit-box;
  min-height: 38px;
  padding-top: 8px;
  color: #f4fffc;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.intel-board td:nth-child(3) {
  display: none;
}

.intel-board td:nth-child(8),
.intel-board td:nth-child(9) {
  color: #c9e4de;
  font-size: 12px;
}

.hall-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hall-meta .status,
.hall-meta .tag {
  min-height: 26px;
  padding: 0 9px;
  font-size: 13px;
}

.material-board {
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(41, 214, 189, 0.035), transparent 26%),
    rgba(5, 10, 13, 0.24);
}

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

.material-summary span,
.material-summary a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(119, 255, 223, 0.18);
  border-radius: 4px;
  background: rgba(7, 13, 17, 0.58);
  color: #cfe8e2;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.material-summary strong,
.material-summary svg,
.material-summary a {
  color: var(--teal);
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
  gap: 7px;
}

.material-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  min-height: 76px;
  padding: 8px;
  border: 1px solid rgba(119, 255, 223, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(41, 214, 189, 0.09), transparent 42%),
    rgba(8, 15, 19, 0.86);
  overflow: hidden;
}

.material-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--teal), transparent);
  opacity: 0.76;
}

.material-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  align-self: center;
  border: 1px solid rgba(119, 255, 223, 0.2);
  border-radius: 5px;
  background: rgba(2, 8, 11, 0.7);
}

.material-icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(41, 214, 189, 0.2));
}

.material-info {
  min-width: 0;
}

.material-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}

.material-tag {
  min-height: 22px;
  padding: 0 7px;
  background: rgba(74, 163, 255, 0.14);
  color: #9fd0ff;
  font-size: 11px;
}

.material-price {
  color: #ffe7a6;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.material-info strong {
  display: -webkit-box;
  min-height: 34px;
  color: #f4fffc;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.material-empty,
.category-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.category-empty svg {
  width: 34px;
  height: 34px;
  color: var(--teal);
}

.category-empty strong {
  color: #f2fffb;
  font-size: 18px;
}

.intel-board td:nth-child(4)::before {
  content: "发布人  ";
  color: #8ff7e1;
  font-weight: 800;
}

.intel-board td:nth-child(5)::before {
  content: "窗口  ";
  color: #8ff7e1;
  font-weight: 800;
}

.intel-board td:nth-child(6)::before {
  content: "价格  ";
  color: #8ff7e1;
  font-weight: 800;
}

.intel-board td:nth-child(7)::before {
  content: "预估  ";
  color: #8ff7e1;
  font-weight: 800;
}

.intel-board td:nth-child(8)::before {
  content: "售后  ";
  color: #8ff7e1;
  font-weight: 800;
}

.intel-board td:nth-child(9)::before {
  content: "发布  ";
  color: #8ff7e1;
  font-weight: 800;
}

.publish-strip {
  margin-bottom: 12px;
}

.publish-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.compact-publish {
  padding: 10px 12px 12px;
}

.compact-form {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.compact-form .field {
  grid-column: span 1;
}

.compact-form .title-field {
  grid-column: span 3;
}

.compact-form .note-field {
  grid-column: span 9;
}

.compact-form .form-actions {
  grid-column: span 3;
}

.compact-form label {
  margin-bottom: 4px;
  font-size: 12px;
}

.compact-form input,
.compact-form select {
  min-height: 36px;
  padding-inline: 8px;
}

.compact-buttons {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 0;
}

#mineView table {
  min-width: 1240px;
}

@media (max-width: 760px) {
  .shell {
    padding: 10px;
  }

  .app-header {
    padding: 10px;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .user-chip {
    justify-content: center;
  }

  .hall-layout {
    grid-template-columns: 1fr;
  }

  .hall-side-nav {
    position: static;
    grid-template-columns: repeat(4, minmax(78px, 1fr));
    overflow-x: auto;
  }

  .hall-side-nav button {
    justify-content: center;
  }

  .intel-board tbody {
    grid-template-columns: 1fr;
  }

  .material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .material-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .material-icon {
    width: 36px;
    height: 36px;
  }

  .material-icon img {
    width: 24px;
    height: 24px;
  }

  .publish-tools {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .compact-form {
    grid-template-columns: 1fr;
  }

  .compact-form .field,
  .compact-form .title-field,
  .compact-form .note-field,
  .compact-form .form-actions {
    grid-column: 1;
  }
}
