/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Layout ── */
.main-layout {
  display: flex;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}
.main-content {
  flex: 1;
  min-width: 0;
  padding: 20px 16px 24px;
}
.sidebar {
  width: 310px;
  flex-shrink: 0;
  padding: 20px 32px 20px 8px;
  position: relative;
}
.sidebar-sticky {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 40px);
}
.sidebar-sticky .sidebar-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-sticky .sidebar-card .sidebar-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* ── Hero Banner ── */
.hero {
  background: linear-gradient(160deg, #0c1929 0%, #172554 40%, #0f172a 70%, #0c1929 100%);
  color: #fff;
  padding: 28px 32px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(59,130,246,0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(37,99,235,0.12) 0%, transparent 50%);
}
.hero-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.12;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  padding: 5px 18px;
  border-radius: 20px;
  font-size: 13px;
  color: #a1a1aa;
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
}
.hero-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #93c5fd, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { font-size: 15px; color: #a1a1aa; margin-bottom: 4px; }
.hero-count { font-size: 13px; color: #71717a; margin-bottom: 20px; }
.hero-count strong { color: #93c5fd; font-size: 18px; }
.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 9px 18px;
}
.hero-search input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #e2e8f0;
  font-size: 14px;
  outline: none;
}
.hero-search input::placeholder { color: #52525b; }
.hero-search .kbd {
  background: rgba(59,130,246,0.25);
  color: #93c5fd;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-family: monospace;
}

/* ── Stars ── */
.stars { position: absolute; inset: 0; pointer-events: none; }
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
}

/* ── Category Pills ── */
.category-pills {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 10px 14px;
}
.pill {
  padding: 7px 16px;
  border-radius: 22px;
  font-size: 13px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}
.pill:hover { border-color: #cbd5e1; background: #f8fafc; }
.pill.active { background: #0f172a; color: #fff; border-color: #0f172a; }
.pill .count { color: #94a3b8; font-size: 11px; }
.pill.active .count { color: #64748b; }

/* ── Resource Cards ── */
.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.card-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card-image .icon { font-size: 40px; opacity: 0.3; }
.card-image img { width: 100%; height: 100%; object-fit: contain; }
.card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
}
.card-body { padding: 10px 12px 12px; }
.card-category {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 4px;
}
.card-title {
  font-weight: 800;
  font-size: 15px;
  color: #0f172a;
  margin: 5px 0 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.card-desc {
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-meta { color: #94a3b8; font-size: 10px; }
.card-downloads { color: #94a3b8; font-size: 10px; }
.card-cat-label { color: #2563eb; font-size: 11px; font-weight: 700; }
.card-link { color: #3b82f6; font-size: 11px; font-weight: 600; }

/* Category card header colors */
.cat-影视 .card-image { background: #f1f5f9; }
.cat-书籍 .card-image { background: #f1f5f9; }
.cat-音乐 .card-image { background: #f1f5f9; }
.cat-软件 .card-image { background: #f1f5f9; }
.cat-游戏 .card-image { background: #f1f5f9; }
.cat-教程 .card-image { background: #f1f5f9; }
.cat-其他 .card-image { background: #f1f5f9; }
.cat-影视 .card-category { background: #eff6ff; color: #3b82f6; }
.cat-书籍 .card-category { background: #ecfdf5; color: #059669; }
.cat-音乐 .card-category { background: #fef2f2; color: #ef4444; }
.cat-软件 .card-category { background: #fdf2f8; color: #db2777; }
.cat-游戏 .card-category { background: #f5f3ff; color: #7c3aed; }
.cat-教程 .card-category { background: #fff7ed; color: #ea580c; }
.cat-其他 .card-category { background: #f8fafc; color: #64748b; }

/* ── Sidebar ── */
.sidebar-card {
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.05);
  overflow: hidden;
}
.sidebar-tabs { display: flex; }
.sidebar-tab {
  flex: 1;
  text-align: center;
  padding: 13px 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: #f8fafc;
  color: #94a3b8;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.sidebar-tab.active {
  background: #fff;
  color: #0f172a;
  border-bottom-color: #3b82f6;
}
.sidebar-body { padding: 8px 16px 16px; }
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: background 0.1s;
}
.sidebar-item:hover { background: #f8fafc; }
.sidebar-rank {
  font-weight: 700;
  font-size: 16px;
  min-width: 18px;
}
.sidebar-rank.gold { color: #f59e0b; }
.sidebar-rank.silver { color: #94a3b8; }
.sidebar-rank.bronze { color: #cbd5e1; }
.sidebar-rank.normal { color: #d1d5db; }
.sidebar-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.3);
}
.sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.sidebar-info { flex: 1; min-width: 0; }
.sidebar-name {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-cat { font-size: 11px; color: #94a3b8; margin-top: 1px; }
.sidebar-count { text-align: right; }
.sidebar-number { font-weight: 700; font-size: 14px; color: #0f172a; }
.sidebar-label { font-size: 10px; color: #94a3b8; }
.sidebar-view-all {
  text-align: center;
  padding: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 11px;
  color: #3b82f6;
  font-weight: 600;
  cursor: pointer;
}

/* ── Detail Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  background: #fff;
  border-radius: 14px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-header {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
}
.modal-header h3 { font-size: 16px; }
.modal-close {
  background: none;
  border: 0;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.modal-close:hover { background: #f1f5f9; }
.modal-body { padding: 18px; }
.modal-image {
  width: 100%;
  max-height: 360px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 14px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #cbd5e1;
}
.modal-body h2 { font-size: 18px; margin-bottom: 6px; }
.modal-cat {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}
.modal-desc { color: #475569; font-size: 13px; line-height: 1.7; margin-bottom: 14px; }
.modal-link-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.modal-link-box label { font-size: 13px; color: #1e40af; margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.btn-copy-url {
  background: none;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 500;
}
.btn-copy-url:hover { background: #eff6ff; }
.modal-link-box .url {
  font-size: 15px;
  font-weight: 600;
  color: #2563eb;
  word-break: break-all;
  margin-bottom: 6px;
  background: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #dbeafe;
}
.modal-share-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.modal-share-box label { font-size: 13px; color: #166534; margin-bottom: 4px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.modal-share-box .url { font-size: 12px; color: #15803d; word-break: break-all; }

.modal-link-box code {
  background: #fef3c7;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 15px;
  color: #92400e;
  font-weight: 700;
  letter-spacing: 2px;
  border: 1px solid #fde68a;
}
.btn-download {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.btn-download:hover { background: linear-gradient(135deg, #1d4ed8, #1e40af); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.4); }

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 16px 20px 28px;
  color: #94a3b8;
  font-size: 12px;
  border-top: 1px solid #f1f5f9;
  line-height: 1.8;
}
.footer strong { color: #64748b; }
.footer a { color: #3b82f6; }

/* ── Admin Pages ── */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}
.login-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  width: 360px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  text-align: center;
}
.login-card h1 { font-size: 22px; margin-bottom: 20px; }
.login-card input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
  outline: none;
}
.login-card input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.login-card button {
  width: 100%;
  padding: 10px;
  background: #0f172a;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.login-error { color: #ef4444; font-size: 12px; margin-top: 8px; }

.admin-layout { max-width: 1000px; margin: 0 auto; padding: 20px 16px; }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.admin-header h1 { font-size: 20px; }
.btn-import {
  padding: 8px 16px;
  background: #059669;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-import:hover { background: #047857; }

.btn-add {
  padding: 8px 16px;
  background: #0f172a;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-logout {
  padding: 8px 16px;
  background: #fff;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
}
.admin-table th, .admin-table td {
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
}
.admin-table th { background: #f8fafc; font-weight: 600; color: #64748b; font-size: 11px; text-transform: uppercase; }
.admin-table td .actions { display: flex; gap: 8px; }
.btn-edit { color: #3b82f6; font-size: 12px; font-weight: 600; cursor: pointer; background: none; border: 0; }
.btn-delete { color: #ef4444; font-size: 12px; font-weight: 600; cursor: pointer; background: none; border: 0; }
.btn-pager {
  padding: 6px 14px;
  background: #fff;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}
.btn-pager:hover { background: #f8fafc; }
.btn-pager:disabled { opacity: 0.4; cursor: default; }

/* ── Form Modal ── */
.form-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.form-modal {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.form-modal h3 { margin-bottom: 16px; }
.form-group { margin-bottom: 12px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #374151;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-group .image-preview { width: 120px; height: 80px; border-radius: 6px; object-fit: cover; margin-top: 6px; background: #f1f5f9; }
.btn-add-link {
  background: none;
  border: 1px dashed #cbd5e1;
  color: #3b82f6;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 500;
  margin-left: auto;
}
.btn-add-link:hover { background: #eff6ff; border-color: #3b82f6; }
.link-row { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.link-row input { padding: 6px 8px; border: 1px solid #e2e8f0; border-radius: 5px; font-size: 12px; outline: none; }
.link-row input:focus { border-color: #3b82f6; }

.form-actions { display: flex; gap: 8px; margin-top: 16px; }
.btn-save {
  padding: 8px 20px;
  background: #0f172a;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-cancel {
  padding: 8px 20px;
  background: #f1f5f9;
  color: #64748b;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.toast.show { opacity: 1; }
.toast.error { background: #ef4444; }

/* ── Loading / Empty ── */
.loading, .empty {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
  font-size: 14px;
}
.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  border: 0;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: #1e293b; transform: translateY(-2px); }

/* ── Skeleton Loading ── */
.skeleton-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
}
.skeleton-img {
  aspect-ratio: 2/3;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-body { padding: 10px 12px; }
.skeleton-line { height: 10px; background: #f1f5f9; border-radius: 3px; margin-bottom: 6px; }
.skeleton-line.short { width: 60%; }
.skeleton-line.tiny { width: 40%; height: 8px; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ── New Badge ── */
.card-badge-new {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #22c55e;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  z-index: 1;
}

/* ── Search Highlight ── */
.search-highlight { background: #fef08a; padding: 0 2px; border-radius: 2px; }

/* ── Dark Mode ── */
@media (prefers-color-scheme: dark) {
  body { background: #0f172a; color: #e2e8f0; }
  .card, .sidebar-card, .hero, .modal, .form-modal, .login-card { /* unchanged */ }
}

/* ── Visual Polish ── */
/* 1. Deeper card hover */
.card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}
/* 2. Page load fade-in */
.resource-grid .card {
  animation: fadeUp 0.4s ease-out both;
}
.resource-grid .card:nth-child(1) { animation-delay: 0s; }
.resource-grid .card:nth-child(2) { animation-delay: 0.05s; }
.resource-grid .card:nth-child(3) { animation-delay: 0.1s; }
.resource-grid .card:nth-child(4) { animation-delay: 0.15s; }
.resource-grid .card:nth-child(5) { animation-delay: 0.2s; }
.resource-grid .card:nth-child(6) { animation-delay: 0.25s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
/* 3. Smooth buttons */
button, .pill, .sidebar-tab, .btn-download, .btn-save, .btn-cancel {
  transition: all 0.2s ease;
}
/* 4. Harmonized category pill colors */
.pill[data-cat="影视"] { border-left: 3px solid #3b82f6; }
.pill[data-cat="书籍"] { border-left: 3px solid #059669; }
.pill[data-cat="音乐"] { border-left: 3px solid #ef4444; }
.pill[data-cat="软件"] { border-left: 3px solid #db2777; }
.pill[data-cat="游戏"] { border-left: 3px solid #7c3aed; }
.pill[data-cat="教程"] { border-left: 3px solid #ea580c; }
/* 5. Typography polish */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { letter-spacing: -0.02em; }
.card-title { letter-spacing: 0.01em; }
.hero-title { letter-spacing: 0.05em; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .main-layout { flex-direction: column; }
  .sidebar { width: 100%; padding: 0 16px 20px; }
  .sidebar-sticky { position: static; }
  .resource-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 24px 16px 28px; }
  .hero-title { font-size: 26px; }
  .resource-grid { grid-template-columns: 1fr; }
  .admin-table th:nth-child(4), .admin-table td:nth-child(4) { display: none; }
}
