* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #f5f6f8; color: #1f2329; font-size: 14px; line-height: 1.6;
}
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; flex: 0 0 220px; background: #fff; border-right: 1px solid #e5e7eb;
  display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 22px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px; background: #185fa5; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 17px;
}
.brand-name { font-weight: 600; font-size: 15px; }
.brand-sub { font-size: 11px; color: #8a9099; letter-spacing: .5px; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  border: 0; background: transparent; text-align: left; padding: 10px 12px; border-radius: 8px;
  color: #4b5563; cursor: pointer; font-size: 14px; font-family: inherit;
}
.nav-item:hover { background: #f3f4f6; }
.nav-item.active { background: #e6f1fb; color: #185fa5; font-weight: 500; }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 12px 8px; color: #8a9099; font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #1d9e75; }
.main { flex: 1; min-width: 0; }
.topbar {
  background: #fff; border-bottom: 1px solid #e5e7eb; padding: 18px 30px;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar h1 { font-size: 19px; font-weight: 600; }
.topbar p { color: #8a9099; font-size: 12px; margin-top: 2px; }
.badge { background: #faeeda; color: #854f0b; padding: 4px 10px; border-radius: 12px; font-size: 12px; }
.badge.real { background: #e1f5ee; color: #0f6e56; }
.page { padding: 24px 30px 40px; max-width: 1180px; }
.hidden { display: none !important; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; margin-bottom: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-head h2 { font-size: 15px; font-weight: 600; }
.card-head.small { margin: 16px 0 8px; }
.card-head.small h3 { font-size: 13px; font-weight: 500; }
.hint { color: #8a9099; font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; }
.stat-label { color: #8a9099; font-size: 12px; }
.stat-value { font-size: 26px; font-weight: 600; margin-top: 6px; }
.stat-value small { font-size: 13px; font-weight: 400; color: #8a9099; }
.btn {
  border: 1px solid #d1d5db; background: #fff; color: #374151; padding: 8px 14px;
  border-radius: 8px; cursor: pointer; font-size: 13px; font-family: inherit;
}
.btn:hover { background: #f9fafb; }
.btn.primary { background: #185fa5; border-color: #185fa5; color: #fff; }
.btn.primary:hover { background: #0c447c; }
.btn.ghost { border: 0; color: #185fa5; padding: 4px 8px; }
.btn.danger { color: #a32d2d; border-color: #f09595; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #4b5563; }
input, textarea, select {
  border: 1px solid #d1d5db; border-radius: 8px; padding: 9px 11px; font-size: 13px;
  font-family: inherit; color: #1f2329; background: #fff; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: #378add; }
.actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eef0f2; }
th { color: #8a9099; font-weight: 500; font-size: 12px; }
tr:last-child td { border-bottom: 0; }
.recent-grid, .cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cover-card { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; background: #fff; }
.cover-card img { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; background: #1f2329; }
.cover-card .cover-meta { padding: 8px 10px; }
.cover-card .cover-title { font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cover-card .cover-sub { font-size: 11px; color: #8a9099; }
.steps { padding-left: 20px; color: #4b5563; }
.steps li { margin: 6px 0; }
.result-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 22px; }
.cover-preview { width: 100%; border-radius: 10px; border: 1px solid #e5e7eb; }
.result-info label { margin-bottom: 10px; }
.advice { padding-left: 20px; color: #4b5563; }
.advice li { margin: 7px 0; }
.toast {
  position: fixed; bottom: 24px; right: 24px; background: #1f2329; color: #fff;
  padding: 10px 16px; border-radius: 8px; font-size: 13px; z-index: 99;
}
@media (max-width: 860px) {
  .sidebar { width: 64px; flex-basis: 64px; padding: 16px 8px; }
  .brand > div:last-child, .nav-item, .sidebar-foot span { display: none; }
  .nav-item { display: block; font-size: 0; padding: 10px; }
  .nav-item::first-letter { font-size: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-grid, .result-wrap { grid-template-columns: 1fr; }
}
