/* ============ 回忆记录版 ============ */
.memory-page { color: #fff; }

.mem-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 22px 70px;
}

/* ---------- 页头 ---------- */
.mem-hero { text-align: center; margin-bottom: 34px; }
.mem-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, .42);
  margin-bottom: 12px;
}
.mem-hero h1 {
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  font-size: 40px;
  letter-spacing: 6px;
  margin: 0 0 10px;
  background: linear-gradient(120deg, #fff 12%, #ffd3e2 48%, #ff9ec4 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 20px rgba(255, 92, 138, .35));
}
.mem-hero p {
  margin: 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .6);
  letter-spacing: .5px;
}

/* ---------- 区块头 ---------- */
.mem-videos, .mem-materials { margin-bottom: 40px; }

/* ---------- 物料时期横轴 ---------- */
.mem-eras {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin-bottom: 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mem-eras::-webkit-scrollbar { display: none; }
.mem-era-chip {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .7);
  font-size: 12.5px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.mem-era-chip:hover { border-color: rgba(255, 158, 196, .6); color: #ffd6e5; }
.mem-era-chip.active {
  background: linear-gradient(135deg, #ff5c8a, #ff9ec4);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 92, 138, .35);
}

/* ---------- 可上下滑动的物料容器 ---------- */
.mem-mat-wrap { position: relative; padding-right: 30px; }
.mem-mat-scroll {
  max-height: 68vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mem-mat-scroll::-webkit-scrollbar { display: none; }

/* 右边小羊滚轴 */
.mem-sheep-rail {
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: 0;
  width: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
}
.mem-sheep-thumb {
  position: absolute;
  left: -2px;
  top: 0;
  width: 26px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 999px;
  background: linear-gradient(160deg, #ffe3ee, #ffb7d0);
  box-shadow: 0 4px 10px rgba(60, 8, 30, .35);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: box-shadow .2s;
}
.mem-sheep-thumb:active { cursor: grabbing; box-shadow: 0 0 0 4px rgba(255, 158, 196, .3); }
.mem-sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.mem-sec-head h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
  color: #ffe1ec;
}
.mem-count {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .45);
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
}
.mem-arrows { margin-left: auto; display: flex; gap: 8px; }
.mem-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #ffd6e5;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all .2s;
}
.mem-arrow:hover { background: rgba(255, 92, 138, .35); border-color: rgba(255, 92, 138, .7); }

/* ---------- 视频横滑 ---------- */
.mem-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.mem-rail::-webkit-scrollbar { height: 6px; }
.mem-rail::-webkit-scrollbar-thumb { background: rgba(255, 92, 138, .45); border-radius: 999px; }
.mem-rail::-webkit-scrollbar-track { background: rgba(255, 255, 255, .06); border-radius: 999px; }

.mem-vcard {
  flex: 0 0 262px;
  scroll-snap-align: start;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 14px 30px rgba(20, 4, 12, .35);
  backdrop-filter: blur(8px);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.mem-vcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(255, 92, 138, .28);
  border-color: rgba(255, 92, 138, .5);
}
.mem-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #5b2140, #33122a);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mem-cover .mem-play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  border: 1.5px solid rgba(255, 255, 255, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #fff;
  backdrop-filter: blur(4px);
  transition: all .25s;
}
.mem-vcard:hover .mem-play { background: rgba(255, 92, 138, .85); border-color: #ff9ec4; transform: scale(1.08); }
.mem-plat {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(20, 6, 14, .68);
  color: #ffd6e5;
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(4px);
}
.mem-vmeta { padding: 11px 13px 13px; }
.mem-vtitle {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mem-vdate { display: block; margin-top: 6px; font-size: 11px; color: rgba(255, 255, 255, .42); }

/* ---------- 物料卡片：一排 5~6 个，带平台预览外显 ---------- */
.mem-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.mem-coverimg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mem-mcard {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.mem-mcard:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 92, 138, .55);
  box-shadow: 0 14px 30px rgba(255, 92, 138, .25);
}
.mem-mcover {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(140deg, #5b2140, #33122a);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mem-mfallback { font-size: 30px; opacity: .8; }
.mem-mbody { padding: 9px 10px 11px; }
.mem-mtitle {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.mem-mmeta {
  margin-top: 5px;
  font-size: 11px;
  color: rgba(255, 255, 255, .45);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.mem-mera {
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 92, 138, .22);
  color: #ffd6e5;
}

/* ---------- 空状态 ---------- */
.mem-empty {
  text-align: center;
  padding: 40px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .04);
}
.mem-empty span { font-size: 30px; }
.mem-empty p { margin: 10px 0 0; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ========== 视频收藏 · 历史卷轴 ========== */
.mem-scroll {
  position: relative;
  margin: 0 20px;
  padding: 16px 24px 10px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .45), transparent 42%),
    linear-gradient(180deg, #f8e9d3 0%, #efd7b9 55%, #e6c8a6 100%);
  box-shadow:
    0 18px 38px rgba(20, 4, 12, .45),
    inset 0 0 54px rgba(150, 100, 55, .22);
}
.mem-scroll::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(150, 105, 60, .35);
  border-radius: 6px;
  pointer-events: none;
}
.mem-rod {
  position: absolute;
  top: -12px;
  bottom: -12px;
  width: 18px;
  border-radius: 10px;
  background: linear-gradient(90deg, #5a2f22 0%, #9c6244 38%, #c98a62 52%, #7c4731 76%, #4e281c 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .45);
}
.mem-rod::before,
.mem-rod::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 26px;
  height: 9px;
  border-radius: 6px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #6b3b2a, #c98a62, #6b3b2a);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .35);
}
.mem-rod::before { top: -6px; }
.mem-rod::after { bottom: -6px; }
.mem-rod-l { left: -10px; }
.mem-rod-r { right: -10px; }
.mem-scroll-seal {
  position: absolute;
  right: 32px;
  bottom: 16px;
  font-size: 11px;
  letter-spacing: 3px;
  color: #b5372f;
  border: 1.5px solid #b5372f;
  border-radius: 4px;
  padding: 3px 7px;
  transform: rotate(-4deg);
  opacity: .75;
  pointer-events: none;
}
.mem-scroll .mem-rail {
  padding: 6px 6px 16px;
  scrollbar-color: rgba(150, 95, 55, .55) transparent;
}
.mem-scroll .mem-rail::-webkit-scrollbar-thumb { background: rgba(150, 95, 55, .55); }
.mem-scroll .mem-rail::-webkit-scrollbar-track { background: rgba(150, 95, 55, .12); }

.mem-scroll .mem-vcard {
  background: #fffaf0;
  border: 1px solid #dcbb92;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(90, 50, 20, .2);
  backdrop-filter: none;
}
.mem-scroll .mem-vcard:hover {
  border-color: #b5372f;
  box-shadow: 0 14px 28px rgba(90, 50, 20, .3);
}
.mem-scroll .mem-cover { background: linear-gradient(135deg, #d9b48c, #b98a63); }
.mem-scroll .mem-vtitle { color: #4a2a1c; }
.mem-scroll .mem-vdate { color: #8a6a52; }
.mem-scroll .mem-vmeta {
  padding: 10px 12px 12px;
  border-top: 1px dashed rgba(150, 105, 60, .35);
  background: rgba(255, 250, 240, .9);
}
.mem-scroll .mem-plat {
  background: rgba(74, 42, 28, .78);
  color: #ffe8cf;
  border-color: rgba(255, 232, 207, .35);
}

@media (max-width: 720px) {
  .mem-scroll { margin: 0; padding: 12px 12px 8px; }
  .mem-rod { width: 12px; top: -8px; bottom: -8px; }
  .mem-rod::before, .mem-rod::after { width: 18px; height: 7px; }
  .mem-scroll-seal { display: none; }
}

@media (max-width: 1000px) {
  .mem-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .mem-wrap { padding: 86px 16px 56px; }
  .mem-hero h1 { font-size: 30px; letter-spacing: 4px; }
  .mem-vcard { flex-basis: 232px; }
  .mem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 460px) {
  .mem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
