/* ==========================================================================
   青衿纪念册 · 内页样式
   留言墙 / 时间轴 / 同学录 / 纪念长图 / 通用小组件
   ========================================================================== */

/* ---------------------------------------------------------- 通用 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.glass-dark {
  background: linear-gradient(150deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 24px;
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 28px 60px -40px rgba(0, 0, 0, .9);
}

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600; padding: 2px 9px;
  border-radius: 999px; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .18);
}

.pill-link {
  font-size: 12.5px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
  transition: background .3s ease;
}
.pill-link:hover { background: rgba(255, 255, 255, .26); }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px; border-radius: 999px;
  font-size: 12.5px; font-family: inherit; color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  cursor: pointer;
  transition: background .3s ease, transform .3s var(--ease), border-color .3s ease;
}
.chip:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.chip.is-active { background: linear-gradient(120deg, #a8f7ea, #d9fbff); color: #052e2b; font-weight: 700; border-color: transparent; }
.chip i { font-style: normal; font-size: 10.5px; opacity: .6; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar--lg { width: 46px; height: 46px; font-size: 18px; flex: 0 0 auto; }
.avatar--xl { width: 76px; height: 76px; font-size: 30px; flex: 0 0 auto; }

/* 用姓名哈希色相给默认头像上色 */
.avatar[style*="--hue"] {
  background: linear-gradient(140deg,
    hsl(var(--hue, 170) 75% 78%),
    hsl(calc(var(--hue, 170) + 50) 80% 84%));
  color: hsl(var(--hue, 170) 60% 22%);
}

/* ---------------------------------------------------------- 页头 */
.pagehero {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(30px, 6vw, 78px) clamp(18px, 4vw, 40px) clamp(10px, 2vw, 20px);
  text-align: center;
  overflow-x: clip;
}
.pagehero__kicker {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255, 255, 255, .7); margin-bottom: 10px;
}
.pagehero__title {
  font-size: clamp(26px, 4.4vw, 46px);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: #fff;
  text-shadow: 0 8px 30px rgba(0, 0, 0, .4);
}
.pagehero__desc {
  margin-top: 12px;
  font-size: clamp(13px, 1.6vw, 15.5px);
  color: rgba(255, 255, 255, .78);
  max-width: 620px;
  margin-left: auto; margin-right: auto;
}
.pagehero__stats {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 20px; font-size: 12.5px; color: rgba(255, 255, 255, .72);
}
.pagehero__stats span {
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
}
.pagehero__stats b { color: #fff; font-size: 14px; margin-right: 2px; }

/* ---------------------------------------------------------- 留言墙 */
.wallfeatured { max-width: 1200px; margin: 18px auto 0; padding: 0 clamp(18px, 3.4vw, 40px); }
.wallfeatured__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px);
  gap: 12px; overflow-x: auto; padding: 2px 2px 12px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.wallfeatured__track > * { scroll-snap-align: start; }

.quote {
  position: relative;
  padding: 16px 18px 14px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(12px);
  min-height: 0;
  display: flex; flex-direction: column; justify-content: space-between;
}
.quote__mark {
  position: absolute; top: 4px; left: 12px;
  font-size: 36px; line-height: 1; opacity: .2; font-family: Georgia, serif;
}
.quote p {
  font-size: 12.5px; line-height: 1.75; margin: 10px 0 8px;
  color: rgba(255, 255, 255, .9);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.quote figcaption { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; opacity: .68; }
.quote figcaption b { font-size: 12px; opacity: 1; }

.wallmain {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(20px, 3vw, 34px) clamp(18px, 3.4vw, 40px) 0;
  display: grid; gap: 22px;
  grid-template-columns: minmax(0, 1fr);
}

.composer { padding: clamp(16px, 2.4vw, 24px); }
.composer__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.composer__head b { font-size: 15px; }
.composer__head span { font-size: 12px; opacity: .66; }
.composer__input {
  width: 100%; min-height: 96px; resize: vertical;
  padding: 14px 16px; border-radius: 16px;
  font-family: inherit; font-size: 14.5px; line-height: 1.8; color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1.5px solid rgba(255, 255, 255, .2);
  outline: none;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.composer__input::placeholder { color: rgba(255, 255, 255, .42); }
.composer__input:focus { border-color: rgba(168, 247, 234, .85); background: rgba(255, 255, 255, .15); box-shadow: 0 0 0 4px rgba(168, 247, 234, .13); }
.composer__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.composer__opts { display: flex; align-items: center; gap: 16px; font-size: 12.5px; color: rgba(255, 255, 255, .74); }
.composer__count { font-variant-numeric: tabular-nums; opacity: .6; }
.composer__count b { color: #a8f7ea; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.wallfeed__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.wallfeed__head h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; }

/* 手机端筛选条横向滚动，避免把卡片挤出屏幕 */
@media (max-width: 640px) {
  .wallfeed__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .chips {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
}

.walllist { display: grid; gap: 14px; }
.wcard {
  position: relative;
  display: flex; gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .17);
  backdrop-filter: blur(10px);
  transition: background .35s ease, transform .5s var(--ease), border-color .35s ease;
}
.wcard:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .3); }
.wcard.is-new { animation: wcardIn .7s var(--ease) both; }
@keyframes wcardIn {
  from { opacity: 0; transform: translateY(-14px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.wcard--featured {
  background: linear-gradient(150deg, rgba(255, 236, 179, .2), rgba(255, 255, 255, .08));
  border-color: rgba(255, 224, 150, .42);
}
.wcard__pin {
  position: absolute; top: -1px; right: 16px;
  font-size: 10.5px; padding: 3px 9px; border-radius: 0 0 8px 8px;
  background: linear-gradient(120deg, #ffe6a8, #ffc247); color: #4a3200; font-weight: 800;
}
.wcard__body { min-width: 0; flex: 1 1 auto; }
.wcard__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wcard__head b { font-size: 14.5px; }
.wcard__time { font-size: 11.5px; opacity: .55; }
.wcard__text { font-size: 14px; line-height: 1.9; margin: 8px 0 0; color: rgba(255, 255, 255, .9); overflow-wrap: anywhere; }
.wcard__reply {
  margin-top: 10px; padding: 10px 14px; border-radius: 12px;
  background: rgba(168, 247, 234, .12);
  border-left: 3px solid #7dffd8;
  font-size: 12.8px; line-height: 1.8;
}
.wcard__reply b { display: block; font-size: 11px; color: #a8f7ea; margin-bottom: 2px; letter-spacing: .06em; }
.wcard__foot { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.wcard__adm { font-size: 11.5px; opacity: .55; }
.wcard__adm:hover { opacity: 1; }

.like {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-family: inherit;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  cursor: pointer;
  transition: background .3s ease, color .3s ease, transform .3s var(--ease), border-color .3s ease;
}
.like:hover { background: rgba(255, 255, 255, .18); transform: translateY(-1px); }
.like__icon { font-size: 13px; transition: transform .4s var(--ease); }
.like.is-liked { color: #ffd6e4; background: rgba(255, 107, 157, .24); border-color: rgba(255, 140, 180, .5); }
.like.is-liked .like__icon { color: #ff6b9d; animation: heartPop .6s var(--ease); }
@keyframes heartPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.65); }
  60% { transform: scale(.92); }
  100% { transform: scale(1); }
}

.wallmore { text-align: center; margin-top: 22px; }

/* 点赞飘心 */
.heartburst {
  position: fixed; z-index: 9998; pointer-events: none;
  font-size: 18px; color: #ff6b9d;
  animation: burst .9s var(--ease) forwards;
}
@keyframes burst {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.6); }
  100% { opacity: 0; transform: translate(-50%, -180%) scale(1.5) rotate(18deg); }
}

/* ---------------------------------------------------------- 时间轴 */
.yearnav { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

.timeline {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 46px) clamp(18px, 3.4vw, 40px) 20px;
}
.timeline__line {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .22) 12%, rgba(255, 255, 255, .22) 88%, rgba(255, 255, 255, .05));
}
.timeline__progress {
  position: absolute; left: 0; top: 0; width: 100%; height: 0;
  background: linear-gradient(180deg, #7dffd8, #ffb3d1);
  box-shadow: 0 0 18px rgba(125, 255, 216, .8);
  transition: height .15s linear;
}
.timeline__year { position: relative; text-align: center; margin: clamp(14px, 3vw, 30px) 0; }
.timeline__year span {
  display: inline-block;
  padding: 5px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 800; letter-spacing: .16em;
  color: #052e2b;
  background: linear-gradient(120deg, #a8f7ea, #ffe0ee);
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .9);
}

.tlitem {
  position: relative;
  width: 50%;
  padding: 0 44px 26px 0;
  box-sizing: border-box;
}
.tlitem--right { margin-left: 50%; padding: 0 0 26px 44px; }
.tlitem__dot {
  position: absolute; top: 18px; right: -19px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 16px;
  background: rgba(9, 32, 36, .9);
  border: 2px solid rgba(168, 247, 234, .7);
  box-shadow: 0 0 0 6px rgba(125, 255, 216, .1), 0 12px 26px -12px rgba(0, 0, 0, .9);
  z-index: 2;
}
.tlitem--right .tlitem__dot { right: auto; left: -19px; }

.tlitem__card {
  position: relative;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(12px);
  transition: transform .5s var(--ease), background .35s ease, border-color .35s ease;
}
.tlitem__card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .34); }
.tlitem__date { font-size: 11.5px; letter-spacing: .1em; color: #a8f7ea; }
.tlitem__title { font-size: 16.5px; margin: 6px 0 8px; }
.tlitem__desc { font-size: 13.5px; line-height: 1.9; color: rgba(255, 255, 255, .82); overflow-wrap: anywhere; }
.tlitem__photo {
  position: relative; display: block; margin-top: 12px; padding: 0;
  border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in;
  background: rgba(255, 255, 255, .06); width: 100%;
}
.tlitem__photo img { width: 100%; height: 150px; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.tlitem__photo:hover img { transform: scale(1.05); }
.tlitem__photo span {
  position: absolute; left: 8px; bottom: 8px;
  font-size: 10.5px; padding: 3px 8px; border-radius: 6px;
  background: rgba(0, 0, 0, .6);
}

.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr);
  gap: 14px; overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.strip__item {
  position: relative; margin: 0; border-radius: 16px; overflow: hidden;
  cursor: zoom-in; scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, .18);
}
.strip__item img { width: 100%; height: 150px; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.strip__item:hover img { transform: scale(1.06); }
.strip__item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 18px 12px 9px; font-size: 11.5px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
}

.lightbox { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox__mask { position: absolute; inset: 0; background: rgba(4, 12, 16, .86); backdrop-filter: blur(14px); }
.lightbox__box {
  position: relative; margin: 0; max-width: min(1080px, 92vw); max-height: 90vh;
  animation: lbIn .45s var(--ease) both;
}
@keyframes lbIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.lightbox__box img { max-width: 100%; max-height: 82vh; border-radius: 16px; display: block; margin: 0 auto; }
.lightbox__box figcaption { text-align: center; font-size: 13px; color: rgba(255, 255, 255, .8); margin-top: 10px; }
.lightbox__close {
  position: absolute; top: -46px; right: 0;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .14);
  color: #fff; cursor: pointer; font-size: 15px;
}

/* ---------------------------------------------------------- 同学录 */
.searchbox { position: relative; }
.searchbox input {
  width: min(320px, 68vw);
  padding: 11px 40px 11px 16px;
  border-radius: 999px;
  font-family: inherit; font-size: 13.5px; color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1.5px solid rgba(255, 255, 255, .22);
  outline: none;
  transition: border-color .3s ease, background .3s ease;
}
.searchbox input::placeholder { color: rgba(255, 255, 255, .45); }
.searchbox input:focus { border-color: rgba(168, 247, 234, .8); background: rgba(255, 255, 255, .16); }
.searchbox span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); opacity: .55; font-size: 13px; }

.membergrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }

.mcard {
  position: relative;
  padding: 24px 18px 18px;
  border-radius: 20px;
  text-align: center;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .17);
  backdrop-filter: blur(10px);
  transition: transform .5s var(--ease), background .35s ease, border-color .35s ease;
  overflow: hidden;
}
.mcard::before {
  content: ""; position: absolute; inset: -40% -40% auto auto;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 65%);
  opacity: 0; transition: opacity .4s ease;
}
.mcard:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); }
.mcard:hover::before { opacity: 1; }
.mcard.is-out { display: none; }
.mcard .avatar { margin: 0 auto 12px; }
.mcard__name { font-size: 15.5px; }
.mcard__tag { font-size: 11.5px; opacity: .62; margin-top: 3px; }
.mcard__motto {
  font-size: 12.5px; line-height: 1.7; margin-top: 10px;
  color: rgba(255, 255, 255, .78);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.mcard__more {
  margin-top: 12px; padding: 6px 14px; border-radius: 999px;
  font-family: inherit; font-size: 11.5px; color: #eafffb;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  cursor: pointer;
  transition: background .3s ease, transform .3s var(--ease);
}
.mcard__more:hover { background: rgba(255, 255, 255, .22); transform: translateY(-1px); }

.profile { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 20px; }
.profile[hidden] { display: none; }
.profile__mask { position: absolute; inset: 0; background: rgba(4, 12, 16, .8); backdrop-filter: blur(16px); }
.profile__box {
  position: relative;
  width: min(560px, 94vw);
  max-height: 88vh; overflow: auto;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .07));
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-l);
  animation: lbIn .45s var(--ease) both;
}
.profile__close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .14);
  color: #fff; cursor: pointer;
}
.profile__top { display: flex; align-items: center; gap: 16px; }
.profile__top h2 { font-size: 21px; }
.profile__top p { font-size: 12.5px; opacity: .7; margin-top: 4px; }
.profile__body { display: grid; gap: 14px; margin-top: 20px; }
.profile__block { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.profile__block b { font-size: 11.5px; letter-spacing: .08em; color: #a8f7ea; }
.profile__block p { font-size: 13.5px; line-height: 1.85; margin-top: 6px; color: rgba(255, 255, 255, .88); white-space: pre-wrap; }
.profile__foot { margin-top: 18px; text-align: center; font-size: 12px; opacity: .55; }

/* ---------------------------------------------------------- 纪念长图 */
.export {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(16px, 2.6vw, 30px) clamp(18px, 3.4vw, 40px) 0;
  display: grid; gap: 22px;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 980px) { .export { grid-template-columns: minmax(0, 1fr); } }

.export__stage {
  display: grid; place-items: center;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
}
.export__frame {
  position: relative;
  width: 100%; max-width: 520px;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 34px 80px -40px rgba(0, 0, 0, .95);
  background: #0b1a1f;
}
.export__frame canvas { display: block; width: 100%; height: auto; }
.export__loading {
  position: absolute; inset: 0;
  display: none; place-items: center; gap: 10px;
  background: rgba(6, 20, 24, .72);
  font-size: 13px; color: #fff;
  flex-direction: column;
}
.export__loading.is-on { display: grid; }
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .25); border-top-color: #7dffd8;
  animation: spin .8s linear infinite;
}
.export__side { padding: clamp(18px, 2.4vw, 26px); }
.export__side h2 { font-size: 16px; margin-bottom: 14px; }
.export__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.export__hint { font-size: 11.5px; line-height: 1.8; opacity: .6; margin-top: 12px; }

.swatches { display: flex; gap: 10px; }
.swatch {
  width: 38px; height: 38px; border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, .25);
  cursor: pointer; padding: 0;
  background: linear-gradient(140deg, var(--a), var(--b) 60%, var(--c));
  transition: transform .35s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.swatch:hover { transform: translateY(-3px) scale(1.04); }
.swatch.is-active { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .22); }

/* ---------------------------------------------------------- 效果层 */
.cursor-glow {
  position: fixed; z-index: 5; pointer-events: none;
  width: 260px; height: 260px; border-radius: 50%;
  margin: -130px 0 0 -130px;
  background: radial-gradient(circle, rgba(125, 255, 216, .16), transparent 62%);
  opacity: 0;
  transition: opacity .5s ease;
  mix-blend-mode: screen;
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }

.snow { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.snow i {
  position: absolute; top: -10px;
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 0 8px rgba(255, 255, 255, .8);
  animation: snowFall linear infinite;
}
@keyframes snowFall {
  from { transform: translateY(-10px) translateX(0); opacity: 0; }
  10% { opacity: .9; }
  90% { opacity: .7; }
  to { transform: translateY(105vh) translateX(var(--drift, 20px)); opacity: 0; }
}

.confetti-layer { position: fixed; inset: 0; z-index: 9997; pointer-events: none; overflow: hidden; }
.confetti {
  position: absolute; width: 8px; height: 13px; border-radius: 2px;
  animation: confettiFall 2.4s cubic-bezier(.25, .6, .4, 1) forwards;
}
@keyframes confettiFall {
  0% { transform: translate3d(0, -12vh, 0) rotate(0); opacity: 1; }
  100% { transform: translate3d(var(--dx, 0), 105vh, 0) rotate(var(--rot, 720deg)); opacity: .9; }
}

/* ---------------------------------------------------------- 响应式 */
@media (max-width: 860px) {
  .timeline__line { left: 22px; }
  .tlitem, .tlitem--right {
    width: 100%; margin-left: 0;
    padding: 0 0 22px 58px;
  }
  .tlitem__dot, .tlitem--right .tlitem__dot { left: 3px; right: auto; top: 14px; width: 34px; height: 34px; font-size: 14px; }
  .timeline__year { text-align: left; padding-left: 58px; }
  .export__frame { max-width: 420px; }
}

@media (max-width: 560px) {
  .wcard { padding: 15px 16px; gap: 11px; }
  .wcard__text { font-size: 13.5px; }
  .avatar--lg { width: 40px; height: 40px; font-size: 16px; }
  .membergrid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
  .mcard { padding: 18px 12px 14px; border-radius: 16px; }
  .mcard .avatar--xl { width: 60px; height: 60px; font-size: 24px; }
  .mcard__name { font-size: 14px; }
  .mcard__motto { font-size: 11.5px; }
  .quote { min-height: 120px; }
  .composer__foot { flex-direction: column; align-items: stretch; }
  .composer__foot .btn { width: 100%; }
  .pagehero__title { font-size: 25px; }
  .profile__top { flex-direction: column; text-align: center; }
}
