/* admin.html 后台管理页样式（公共样式见 css/common.css） */
body { padding: 28px 16px; }

.wrap {
  max-width: 1400px;
  margin: 0 auto;
}

.card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  padding: 32px;
}

/* 标签页 */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tabs button {
  padding: 10px 22px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  background: #e9ecef;
  font-size: 15px;
  transition: all 0.24s ease;
}
.tabs button:hover:not(.active) { background: #dde1e6; }
.tabs button.active {
  background: linear-gradient(135deg, #1677ff 0%, #4080ff 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.25);
}

.panel {
  display: none;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
}
.panel.active { display: block; }

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.checks { max-width: 720px; margin: 8px 0 14px; }
.checks label {
  display: inline-block;
  margin: 4px 14px 4px 0;
  font-size: 14px;
  cursor: pointer;
}

button {
  padding: 9px 18px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.22s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #1677ff 0%, #4080ff 100%);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(22, 119, 255, 0.26);
}
.btn-danger { background: #ff4d4f; color: #fff; }
.btn-danger:hover { background: #dc3545; }
.btn-small { padding: 4px 10px; font-size: 12px; border-radius: 6px; }

.table-wrap { overflow-x: auto; }
th, td { border: 1px solid #e5e7eb; padding: 11px 10px; font-size: 14px; }
th { background: #f9fafb; color: #374151; font-weight: 500; }
tbody tr:hover { background-color: #f3f4f6; }

#status { margin-top: 16px; font-size: 14px; color: #4b5563; min-height: 20px; }

/* 移动端适配 */
@media (max-width: 768px) {
  .card { padding: 22px 16px; }
  .page-header h2 { font-size: 22px; }
  .panel { padding: 18px 14px; }
  .form-row { flex-direction: column; align-items: stretch; }
  .form-row input, .form-row select { width: 100%; }
}


/* 工作台/管理页不展示广告横幅，避免喧宾夺主 */
body > .ad-carousel { display: none !important; }
