/* 页头、波浪折线、工具栏、列表行、视频卡片（理论 / 实践页面） */
.page-head {
  padding: 34px var(--px) 0;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-head h1 {
  margin-top: 10px;
  font-size: var(--fs-2xl);
  letter-spacing: 0.02em;
}
.page-head .lede {
  margin-top: 10px;
  max-width: 52ch;
  color: var(--ink-2);
}
.wave {
  height: 30px;
  margin-top: 20px;
  color: var(--ink-3);
  clip-path: inset(0 100% 0 0);
  animation: wave-draw 1.3s 0.15s var(--ease) forwards;
}
.wave svg {
  width: 100%;
  height: 100%;
}
@keyframes wave-draw {
  to {
    clip-path: inset(0 0 0 0);
  }
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px var(--px);
  border-block: 1px solid var(--line);
}
.search {
  position: relative;
  flex: 1 1 220px;
  max-width: 360px;
}
.search .input {
  min-height: 40px;
  padding-left: 38px;
}
.search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  translate: 0 -50%;
  color: var(--ink-3);
  pointer-events: none;
}
.toolbar .count {
  margin-left: auto;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.content {
  padding: 28px var(--px) 56px;
}
.rise {
  animation: rise 0.6s var(--ease) both;
  animation-delay: calc(min(var(--i, 0), 12) * 45ms);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* 理论：带序号的列表，右侧显示上传时间 */
.alist {
  border-top: 1px solid var(--line-2);
}
.arow {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 8px 18px;
  padding: 20px 8px 20px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s, padding-left 0.35s var(--ease);
}
.arow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.35s var(--ease);
}
.arow:hover {
  background: var(--paper-2);
  padding-left: 14px;
}
.arow:hover::before {
  transform: scaleY(1);
}
.arow .idx {
  font-size: var(--fs-md);
  color: var(--ink-3);
}
.arow h3 {
  font-size: 1.125rem;
}
.arow p {
  margin-top: 4px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.arow .when {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}
.when .lbl {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.when time {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.arow .go {
  color: var(--ink-3);
  transition: transform 0.3s var(--ease), color 0.2s;
}
.arow:hover .go {
  color: var(--accent-ink);
  transform: translate(3px, -3px);
}

/* 实践：视频卡片网格，每张卡片底部是「上传时间」 */
.vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 28px 24px;
}
.vcard {
  position: relative;
  display: grid;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  transition: border-color 0.25s, transform 0.4s var(--ease);
}
.vcard:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}
.vthumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--paper-3) 0 8px, #e8ebe5 8px 16px);
}
.vthumb img,
.vthumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.vcard:hover .vthumb img,
.vcard:hover .vthumb video {
  transform: scale(1.04);
}
.vthumb .play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(248, 249, 246, 0.94);
  color: var(--ink);
  box-shadow: 0 6px 20px -8px rgba(23, 32, 43, 0.5);
  transition: transform 0.35s var(--ease), background-color 0.2s, color 0.2s;
}
.vcard:hover .play {
  transform: scale(1.1);
  background: var(--accent);
  color: #fff;
}
.vthumb .dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  background: rgba(23, 32, 43, 0.82);
  color: #fff;
  font-size: var(--fs-xs);
  border-radius: 2px;
}
.vmeta {
  display: grid;
  gap: 10px;
  padding: 12px 14px 0;
}
.vmeta h3 {
  font-size: var(--fs-base);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vtime {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  margin-top: 12px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.vtime time {
  font-family: var(--mono);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.vcard.skel-card .vthumb {
  animation: shimmer 1.4s linear infinite;
  background: linear-gradient(100deg, var(--paper-3) 30%, #f6f7f3 50%, var(--paper-3) 70%) 0 0 / 220% 100%;
}

@media (max-width: 640px) {
  .arow {
    grid-template-columns: 36px minmax(0, 1fr) 20px;
  }
  .arow .when {
    grid-column: 2 / 3;
    grid-row: 2;
    justify-items: start;
    text-align: left;
    display: flex;
    gap: 8px;
  }
  .arow .go {
    grid-row: 1;
    grid-column: 3;
  }
}
