/* 后台 PC 浏览器版面 */
.pc-wrap { width: 100%; }

.pc-chrome {
  background: #d8dde6;
  border-radius: 14px;
  padding: 10px 10px 12px;
  box-shadow: var(--shadow);
}
.pc-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 6px 10px;
}
.pc-dots { display: flex; gap: 6px; }
.pc-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b8c0cc;
}
.pc-dots span:nth-child(1) { background: #ff5f57; }
.pc-dots span:nth-child(2) { background: #febc2e; }
.pc-dots span:nth-child(3) { background: #28c840; }
.pc-url {
  flex: 1;
  background: #eef1f6;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  color: var(--ink-mute);
  font-family: "DM Sans", sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pc-shell {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
  min-height: 620px;
  height: min(78vh, 720px);
}
@media (max-width: 720px) {
  .pc-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 520px;
  }
  .pc-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px !important;
  }
  .pc-nav-item { flex: 1 1 auto; min-width: 100px; }
}

.pc-sidebar {
  background: #1a2332;
  color: rgba(255, 255, 255, 0.72);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pc-brand {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  padding: 4px 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}
.pc-brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
  letter-spacing: 0;
  font-family: "Noto Sans SC", sans-serif;
}
.pc-nav-item {
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, color 0.15s;
}
.pc-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.pc-nav-item.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.pc-nav-item .ni { width: 18px; text-align: center; }
.pc-sidebar-foot {
  margin-top: auto;
  padding: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.pc-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f5f7fa;
  position: relative;
}
.pc-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.pc-topbar h2 {
  font-size: 17px;
  font-weight: 600;
  flex: 1;
}
.pc-back {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.pc-back.show { display: flex; }
.pc-user {
  font-size: 12px;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pc-user .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.pc-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 28px;
}
.pc-scroll .page { padding: 0; }

.pc-toast {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(26, 35, 50, 0.92);
  color: #fff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 20;
  white-space: nowrap;
}
.pc-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 800px) {
  .pc-stats { grid-template-columns: repeat(2, 1fr); }
}
.pc-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.pc-stat .l { font-size: 12px; color: var(--ink-mute); margin-bottom: 6px; }
.pc-stat .n {
  font-family: "DM Sans", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.pc-stat .sub { font-size: 11px; color: var(--ink-mute); margin-top: 8px; }

.pc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.pc-toolbar .search-bar {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}
.pc-btn {
  appearance: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.pc-btn-primary { background: var(--accent); color: #fff; }
.pc-btn-ghost {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.pc-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
}
table.pc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.pc-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.pc-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.pc-table tr:last-child td { border-bottom: none; }
.pc-table tbody tr {
  cursor: pointer;
  transition: background 0.12s;
}
.pc-table tbody tr:hover { background: #fafbfc; }
.pc-table .link {
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
}
.pc-table .name-cell { font-weight: 600; }
.pc-table .muted { color: var(--ink-mute); font-size: 12px; }

.pc-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.pc-panel h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}
.pc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
@media (max-width: 640px) {
  .pc-form-grid { grid-template-columns: 1fr; }
}
.pc-form-grid .full { grid-column: 1 / -1; }
.pc-form-grid .form-group { margin-bottom: 0; }

.pc-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .pc-split { grid-template-columns: 1fr; }
}
