/* =================================================================
   王海枫 ♥ 张瑞 —— 主样式
   想换配色：改 :root 里的变量，或在后台「站点设置」里改主题色
   ================================================================= */

:root {
  color-scheme: dark;

  --pink: #ff5fa2;
  --violet: #b388ff;
  --cyan: #7ee8fa;

  --bg-1: #1d0b38;
  --bg-2: #0b0518;
  --bg-3: #06020d;

  --ink: rgba(255, 255, 255, .94);
  --ink-2: rgba(255, 255, 255, .66);
  --ink-3: rgba(255, 255, 255, .40);

  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .075);
  --line: rgba(255, 255, 255, .10);

  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;

  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
  --ease: cubic-bezier(.22, .68, .35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  letter-spacing: .01em;
  background: linear-gradient(165deg, var(--bg-1) 0%, var(--bg-2) 52%, var(--bg-3) 100%) fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

/* ---------- 背景光晕 ---------- */
.glow {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: .40;
}
.glow-a {
  width: 46vw; height: 46vw; min-width: 320px; min-height: 320px;
  top: -8vw; left: -6vw;
  background: radial-gradient(circle, var(--pink), transparent 68%);
  animation: drift 22s ease-in-out infinite alternate;
}
.glow-b {
  width: 40vw; height: 40vw; min-width: 280px; min-height: 280px;
  right: -8vw; bottom: -10vw;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
  opacity: .22;
  animation: drift 28s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, 5vw, 0) scale(1.12); }
}

/* ---------- 飘浮小心心 ---------- */
.deco { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.deco i {
  position: absolute;
  bottom: -4vh;
  left: var(--x, 50vw);
  font-style: normal;
  font-size: var(--size, 14px);
  color: var(--pink);
  opacity: 0;
  animation: floatUp var(--dur, 20s) linear var(--delay, 0s) infinite;
}
@keyframes floatUp {
  0%   { opacity: 0; transform: translateY(0) rotate(0deg) scale(.8); }
  12%  { opacity: .55; }
  70%  { opacity: .28; }
  100% { opacity: 0; transform: translateY(-108vh) rotate(40deg) scale(1.1); }
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .85rem clamp(1rem, 4vw, 2.6rem);
  background: rgba(11, 5, 24, .62);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.brand {
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .12em;
  white-space: nowrap;
}
.brand .heart { color: var(--pink); }
.links { margin-left: auto; display: flex; gap: .35rem; font-size: .9rem; }
.links a {
  position: relative;
  padding: .4rem .8rem;
  border-radius: 999px;
  color: var(--ink-2);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.links a:hover { color: var(--ink); background: var(--glass); }
.links a.active { color: var(--pink); background: rgba(255, 95, 162, .12); }

/* ---------- 提示条 ---------- */
.flash {
  width: min(900px, 90vw);
  margin: 1.2rem auto -.4rem;
  padding: .75rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  border: 1px solid rgba(255, 255, 255, .12);
  background: var(--glass-2);
  animation: dropIn .45s var(--ease) both;
}
.flash-ok   { border-color: rgba(126, 232, 250, .32); color: #bdf3ff; }
.flash-err  { border-color: rgba(255, 95, 162, .42); color: #ffc4dc; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- 布局 ---------- */
main { width: min(1080px, 92vw); margin: 0 auto; padding: clamp(2.4rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }

.sec-head { text-align: center; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.sec-label {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .42em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: .7rem;
}
.sec-title {
  font-size: clamp(1.6rem, 4.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: .08em;
}
.sec-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--pink), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 首页 Hero ---------- */
.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 1rem 0 4rem;
  position: relative;
}
.hero .eyebrow {
  font-size: .7rem;
  letter-spacing: .5em;
  color: var(--ink-3);
  margin-bottom: clamp(1.2rem, 4vw, 2rem);
  padding-left: .5em;
}
.names {
  font-size: clamp(2.3rem, 9vw, 5.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: .04em;
  display: grid;
  place-items: center;
}
.names .line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .12em;
  background: linear-gradient(100deg, var(--pink) 0%, #ff8fc4 28%, var(--violet) 66%, var(--cyan) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 9s ease-in-out infinite;
  padding: 0 .04em;
}
@keyframes shine {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}
.names .heart {
  font-size: .58em;
  color: var(--pink);
  -webkit-text-fill-color: var(--pink);
  display: inline-block;
  transform-origin: center;
  animation: beat 1.8s var(--ease) infinite;
  filter: drop-shadow(0 0 18px rgba(255, 95, 162, .55));
  padding: 0 .05em;
}
@keyframes beat {
  0%, 100% { transform: scale(1); }
  18%      { transform: scale(1.22); }
  36%      { transform: scale(1); }
  54%      { transform: scale(1.12); }
}

.hero .sub {
  margin-top: clamp(1.2rem, 3vw, 1.8rem);
  font-size: clamp(.82rem, 2.4vw, 1.02rem);
  letter-spacing: .5em;
  color: var(--ink-2);
  padding-left: .5em;
}
.days {
  margin-top: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 95, 162, .28);
  background: rgba(255, 95, 162, .08);
  font-size: .86rem;
  color: var(--ink-2);
  letter-spacing: .06em;
}
.days b { color: var(--pink); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.days .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(255, 95, 162, .6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(255, 95, 162, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 95, 162, 0); }
}

.scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .72rem;
  letter-spacing: .3em;
  color: var(--ink-3);
  display: grid;
  justify-items: center;
  gap: .6rem;
}
.scroll-hint i {
  width: 1px; height: 42px;
  background: linear-gradient(var(--ink-3), transparent);
  animation: hintDrop 2.2s ease-in-out infinite;
}
@keyframes hintDrop { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }

/* ---------- 首页入口卡片 ---------- */
.entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}
.entry {
  position: relative;
  display: block;
  padding: 1.7rem 1.5rem 1.5rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--glass-2), rgba(255, 255, 255, .015));
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.entry::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255, 95, 162, .28), transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.entry:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 95, 162, .45);
  box-shadow: 0 22px 45px -25px rgba(255, 95, 162, .55);
}
.entry:hover::after { opacity: 1; }
.entry .ico { font-size: 1.7rem; line-height: 1; }
.entry h3 { margin: .85rem 0 .4rem; font-size: 1.06rem; letter-spacing: .04em; }
.entry p { font-size: .87rem; color: var(--ink-2); line-height: 1.65; }
.entry .more {
  margin-top: 1rem;
  font-size: .78rem;
  letter-spacing: .2em;
  color: var(--pink);
  opacity: .85;
}

/* ---------- 内容卡片 ---------- */
.panel {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--glass-2), rgba(255, 255, 255, .015));
  box-shadow: var(--shadow);
}
.panel p { color: var(--ink-2); line-height: 2; margin: .85rem 0; font-size: 1rem; }
.panel p:first-child { margin-top: 0; }
.panel strong { color: var(--ink); font-weight: 700; }
.sign {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px dashed rgba(255, 255, 255, .12);
  text-align: center;
  letter-spacing: .32em;
  font-size: clamp(.95rem, 2.6vw, 1.2rem);
  background: linear-gradient(100deg, var(--pink), var(--violet), var(--cyan));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 7s ease-in-out infinite;
}

/* ---------- 时间线 ---------- */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 3.2rem auto 0;
  padding-left: 2.4rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: .42rem;
  top: .6rem;
  bottom: .6rem;
  width: 1px;
  background: linear-gradient(var(--pink), rgba(179, 136, 255, .35), transparent);
}
.tl-item { position: relative; padding-bottom: 1.9rem; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -2.12rem;
  top: .62rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 95, 162, .16);
}
.tl-date {
  font-size: .72rem;
  letter-spacing: .22em;
  color: var(--pink);
  font-variant-numeric: tabular-nums;
}
.tl-title { font-size: 1.02rem; margin: .3rem 0 .25rem; letter-spacing: .03em; }
.tl-text { font-size: .88rem; color: var(--ink-2); line-height: 1.85; }

/* ---------- 相册 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: clamp(.7rem, 1.6vw, 1.1rem);
}
.photo {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(255, 95, 162, .18), rgba(126, 232, 250, .12));
  cursor: zoom-in;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.gallery.three { grid-template-columns: repeat(3, 1fr); max-width: 760px; margin: 0 auto; }
@media (max-width: 680px) { .gallery.three { grid-template-columns: repeat(2, 1fr); } }
.gallery.few { grid-template-columns: repeat(auto-fit, minmax(200px, 300px)); justify-content: center; }
.photo:nth-child(4n+1) { grid-row: span 1; }
.photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(transparent, rgba(6, 2, 13, .82));
  opacity: .9;
  pointer-events: none;
}
.photo figcaption {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: .75rem;
  padding: 0 .9rem;
  font-size: .8rem;
  color: rgba(255, 255, 255, .92);
  letter-spacing: .04em;
  transform: translateY(6px);
  opacity: 0;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.photo:hover { transform: translateY(-4px); border-color: rgba(255, 95, 162, .4); box-shadow: 0 20px 40px -22px rgba(0, 0, 0, .9); }
.photo:hover img { transform: scale(1.06); }
.photo:hover figcaption { opacity: 1; transform: translateY(0); }
@media (hover: none) {
  .photo figcaption { opacity: 1; transform: none; }
}


/* 占位卡片（相册为空时） */
.photo.is-ph {
  display: grid;
  place-items: center;
  gap: .2rem;
  align-content: center;
  background: linear-gradient(145deg, var(--a, #ff9ec7), var(--b, #8f6bff));
  cursor: default;
  filter: saturate(.92);
}
.photo.is-ph .ph-ico { font-size: 2.1rem; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.photo.is-ph figcaption {
  position: static;
  transform: none;
  opacity: 1;
  margin-top: .35rem;
  padding: 0 .5rem;
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
.photo.is-ph::after { display: none; }
.photo.is-ph:hover { transform: translateY(-4px) scale(1.01); }

/* 视频也做成同款渐变方块，右上角挂「播放」，点开才在灯箱里播 */
.photo.is-video-tile { cursor: pointer; }
.photo.is-video-tile .ph-ico { transition: transform .45s var(--ease); }
.photo.is-video-tile:hover .ph-ico { transform: scale(1.08); }
.photo.is-video-tile .badge {
  position: absolute;
  z-index: 3;
  top: .6rem;
  right: .6rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .55rem .2rem .5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(20, 6, 26, .3);
  backdrop-filter: blur(4px);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: #fff;
  pointer-events: none;
}
.photo.is-video-tile .badge::before {
  content: "";
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent #fff;
}

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 4vw;
  background: rgba(4, 1, 10, .92);
  backdrop-filter: blur(10px);
}
.lightbox.open { display: grid; animation: fadeIn .28s var(--ease); }
.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: var(--r-md);
  box-shadow: 0 40px 90px -30px #000;
}
.lightbox .cap {
  margin-top: 1rem;
  text-align: center;
  font-size: .88rem;
  color: var(--ink-2);
  letter-spacing: .06em;
}
.lightbox .close {
  position: absolute;
  top: 1.2rem; right: 1.4rem;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--glass);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}
.lightbox .close:hover { background: rgba(255, 95, 162, .2); }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- 视频卡片 ---------- */
.photo.is-video {
  aspect-ratio: 16 / 9;
  grid-column: span 2;
  cursor: pointer;
  background: linear-gradient(140deg, #2a1030, #12061f);
}
.photo.is-video img { object-fit: cover; }
@media (max-width: 640px) {
  .photo.is-video { grid-column: 1 / -1; }
  /* 少图时也保持两列，别把方块撑成巨无霸 */
  .gallery.few { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.photo .play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: 1.5px solid rgba(255, 255, 255, .75);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 26px -8px rgba(0, 0, 0, .8);
  transition: transform .4s var(--ease), background .4s var(--ease);
  pointer-events: none;
}
.photo .play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-38%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}
.photo.is-video:hover .play { transform: scale(1.1); background: rgba(255, 95, 162, .45); }

/* 视频标题做成底部独立暗条，别和海報里的字幕打架 */
.photo.is-video figcaption {
  left: 0;
  right: 0;
  bottom: 0;
  padding: .55rem .9rem .6rem;
  background: linear-gradient(rgba(8, 3, 14, 0), rgba(8, 3, 14, .78) 55%);
  opacity: 1;
  transform: none;
}
.photo.is-video::after { display: none; }

.lightbox video {
  width: min(92vw, 960px);
  height: auto;
  max-width: 92vw;
  max-height: 82vh;
  border-radius: var(--r-md);
  box-shadow: 0 40px 90px -30px #000;
  background: #000;
  outline: none;
}
.lightbox .lb-body { display: grid; justify-items: center; }

/* ---------- 空状态 ---------- */
.empty {
  max-width: 620px;
  margin: 0 auto;
  padding: 3rem 1.6rem;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: var(--r-lg);
  color: var(--ink-2);
}
.empty .big { font-size: 2.4rem; margin-bottom: .8rem; opacity: .8; }
.empty code {
  display: inline-block;
  margin-top: .8rem;
  padding: .2rem .6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  font-family: ui-monospace, Consolas, monospace;
  font-size: .82rem;
  color: var(--cyan);
}

/* ---------- 留言墙 ---------- */
.wall {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.wish {
  position: relative;
  padding: 1.25rem 1.4rem 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--glass-2), rgba(255, 255, 255, .012));
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.wish:hover { border-color: rgba(255, 95, 162, .32); transform: translateY(-2px); }
.wish::before {
  content: "“";
  position: absolute;
  top: .1rem; left: .85rem;
  font-size: 3.2rem;
  line-height: 1;
  color: rgba(255, 95, 162, .18);
  font-family: Georgia, serif;
}
.wish-head {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  margin-bottom: .45rem;
}
.wish-name { color: var(--pink); font-weight: 700; font-size: .92rem; letter-spacing: .04em; }
.wish-time { margin-left: auto; font-size: .72rem; color: var(--ink-3); letter-spacing: .06em; }
.wish-text { color: var(--ink-2); font-size: .95rem; line-height: 1.85; padding-left: .1rem; white-space: pre-wrap; word-break: break-word; }

/* ---------- 表单 ---------- */
.form {
  max-width: 760px;
  margin: 0 auto 2.6rem;
  padding: clamp(1.4rem, 4vw, 2rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--glass-2), rgba(255, 255, 255, .015));
  box-shadow: var(--shadow);
}
.form h3 {
  font-size: 1.02rem;
  letter-spacing: .1em;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.form h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--ink-3);
  margin-bottom: .45rem;
}
.field input[type=text],
.field textarea {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(0, 0, 0, .28);
  color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, .28); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 95, 162, .55);
  background: rgba(0, 0, 0, .38);
  box-shadow: 0 0 0 4px rgba(255, 95, 162, .12);
}
.form-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.counter { font-size: .74rem; color: var(--ink-3); margin-left: auto; font-variant-numeric: tabular-nums; }

/* Cloudflare Turnstile 验证组件 */
.ts-box { margin: .1rem 0 .4rem; min-height: 65px; max-width: 100%; }
.ts-box iframe { max-width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .72rem 1.6rem;
  border: none;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: #2a0512;
  background: linear-gradient(100deg, #ffd0e2, var(--pink) 45%, var(--violet));
  cursor: pointer;
  box-shadow: 0 12px 30px -12px rgba(255, 95, 162, .8);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(255, 95, 162, .9); filter: brightness(1.05); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: none;
  font-weight: 500;
}
.btn-ghost:hover { color: var(--ink); background: var(--glass); box-shadow: none; }

.hint { font-size: .76rem; color: var(--ink-3); text-align: center; margin-top: .9rem; }
.err { font-size: .8rem; color: #ffb3cd; margin-bottom: .8rem; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- 页脚 ---------- */
.foot {
  text-align: center;
  padding: 2.6rem 1rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: var(--ink-3);
}
.foot-mark { font-size: .76rem; letter-spacing: .28em; }
.foot-icp { font-size: .72rem; margin-top: .5rem; }
.foot-icp a:hover { color: var(--ink-2); }
.foot-love { font-size: .72rem; margin-top: .7rem; letter-spacing: .08em; }
.foot-love .heart { color: var(--pink); }

/* ---------- 滚动显现 ---------- */
/* 默认可见；只有在浏览器支持 JS 时才做淡入，避免脚本失效后内容消失 */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .glow, .deco i, .names .grade, .sign, .names .heart { animation: none !important; }
}

/* ---------- 移动端 ---------- */
@media (max-width: 680px) {
  .nav { flex-wrap: wrap; gap: .5rem .3rem; padding: .7rem 1rem; }
  .brand { font-size: .88rem; }
  .links { width: 100%; margin-left: 0; justify-content: space-between; font-size: .84rem; }
  .links a { padding: .35rem .5rem; }
  .hero { min-height: calc(100svh - 108px); }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .sign { letter-spacing: .2em; }
}
