/* ============ 学生作品展 ============ */
.sc-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 34px;
  background:
    radial-gradient(900px 340px at 12% -10%, rgba(34, 211, 238, .18), transparent 62%),
    radial-gradient(760px 300px at 88% 0%, rgba(31, 111, 235, .16), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .sc-hero {
  background:
    radial-gradient(900px 340px at 12% -10%, rgba(34, 211, 238, .1), transparent 62%),
    radial-gradient(760px 300px at 88% 0%, rgba(31, 111, 235, .12), transparent 60%),
    linear-gradient(180deg, #0a1a2d, var(--bg));
}
.sc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.sc-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}
.sc-h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -.025em;
  font-weight: 800;
  margin: 12px 0 0;
  color: var(--text);
}
.sc-lede {
  margin-top: 12px;
  max-width: 640px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.75;
}
.sc-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.sc-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  color: var(--text-2);
}
.sc-stat b {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ---------- 排行榜 ---------- */
.sc-rank {
  margin-top: 30px;
}
.sc-rank-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.sc-rank-h b {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.sc-rank-h span {
  font-size: 12.5px;
  color: var(--text-3);
}
.sc-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.sc-pod {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.sc-pod::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--podc, var(--accent));
}
.sc-pod:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.sc-pod.is-1 {
  --podc: linear-gradient(90deg, #f7c948, #f0a500);
  box-shadow: var(--shadow-md);
}
.sc-pod.is-2 { --podc: linear-gradient(90deg, #cbd5e1, #94a3b8); }
.sc-pod.is-3 { --podc: linear-gradient(90deg, #f0b27a, #cd7f32); }
.sc-pod-t {
  display: flex;
  align-items: center;
  gap: 9px;
}
.sc-medal {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  background: var(--podc, var(--accent));
}
.sc-pod-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-pod-sub {
  font-size: 12.5px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-pod-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--danger);
  font-variant-numeric: tabular-nums;
}
.sc-pod-like svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: currentColor;
  stroke: none;
}

/* ---------- 工具条 ---------- */
.sc-bar {
  position: sticky;
  top: var(--nav-h, 64px);
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0;
  margin-top: 26px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.sc-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.sc-chip {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.sc-chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.sc-chip.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(31, 111, 235, .25);
}
.sc-chip i {
  font-style: normal;
  opacity: .66;
  margin-left: 4px;
  font-size: 11.5px;
}
.sc-sort {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-left: auto;
}
.sc-sort button {
  height: 28px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  font-size: 12.5px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
}
.sc-sort button.is-on {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.sc-search {
  position: relative;
  width: 210px;
}
.sc-search input {
  width: 100%;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0 12px 0 32px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.sc-search input:focus {
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.sc-search svg {
  position: absolute;
  left: 10px;
  top: 9px;
  width: 16px;
  height: 16px;
  stroke: var(--text-3);
  fill: none;
  stroke-width: 2;
}

/* ---------- 作品网格 ---------- */
.sc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.sc-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.sc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.sc-cover {
  position: relative;
  height: 132px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.sc-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120px 80px at 82% 12%, rgba(255, 255, 255, .34), transparent 70%),
    radial-gradient(160px 110px at 8% 96%, rgba(0, 0, 0, .14), transparent 72%);
}
.sc-cover svg {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  stroke: rgba(255, 255, 255, .92);
  fill: none;
  stroke-width: 1.6;
  opacity: .95;
}
.sc-kind {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .22);
  color: #fff;
  backdrop-filter: blur(6px);
}
.sc-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px 13px;
  flex: 1;
}
.sc-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.sc-meta {
  font-size: 11.5px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.sc-author {
  font-size: 11.5px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-like {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-3);
  font-size: 12px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: all .2s var(--ease);
}
.sc-like:hover {
  border-color: rgba(220, 38, 38, .38);
  color: var(--danger);
  transform: translateY(-1px);
}
.sc-like svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform .32s var(--ease);
}
.sc-like.is-on {
  color: var(--danger);
  border-color: rgba(220, 38, 38, .3);
  background: rgba(220, 38, 38, .07);
}
.sc-like.is-on svg {
  fill: currentColor;
}
.sc-like.is-pop svg {
  animation: sc-pop .42s var(--ease);
}
@keyframes sc-pop {
  0% { transform: scale(1); }
  38% { transform: scale(1.45); }
  70% { transform: scale(.92); }
  100% { transform: scale(1); }
}

.sc-more {
  display: flex;
  justify-content: center;
  margin: 30px 0 10px;
}
.sc-more button {
  height: 42px;
  padding: 0 30px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.sc-more button:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.sc-empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-3);
  font-size: 14px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .sc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sc-podium { grid-template-columns: 1fr; }
  .sc-cover { height: 104px; }
  .sc-cover svg { width: 36px; height: 36px; }
  .sc-search { width: 100%; }
  .sc-sort { margin-left: 0; }
  .sc-hero { padding: 38px 0 26px; }
  .sc-title { font-size: 13px; min-height: 38px; }
}
@media (max-width: 420px) {
  .sc-grid { gap: 10px; }
  .sc-body { padding: 10px 11px 11px; }
}

/* 移动端底部有固定导航，给作品展留出安全距离 */
@media (max-width: 760px) {
  main.container { padding-bottom: 92px; }
}
