/* 世界上独一无二的陈心如意 — Active Theory 主站风格（Vue 3 版） */

@font-face {
  font-family: "nbarchitekt";
  src: url("vendor/NBArchitektStd-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "nbarchitekt";
  src: url("vendor/NBArchitektStd-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a12;
  --ink: #ffffff;
  --ink-2: #aaaaaa;
  --ink-3: rgba(255, 255, 255, 0.5);
  --line: rgba(255, 255, 255, 0.18);
  --font: "nbarchitekt", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

::selection { background: rgba(125, 211, 252, 0.25); color: #fff; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050508; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.24); border-radius: 4px; }

button { font-family: var(--font); color: var(--ink); background: none; border: none; cursor: pointer; }

:focus-visible { outline: 1px solid #7dd3fc; outline-offset: 3px; }

/* ---------- 自定义光标 ---------- */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .site { cursor: none; }
  .site a, .site button, .site input, .site .claw-btn, .site .photo { cursor: none; }
}

.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 999;
  width: 11px; height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, width 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
              height 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), margin 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
              background 0.3s ease, border-color 0.3s ease;
  border: 1.5px solid transparent;
}

.cursor.active {
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.9);
}

/* ---------- 全站固定深海背景 ---------- */
#sea { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }

.grain {
  position: fixed; inset: -50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(3) infinite;
}

.site { position: relative; z-index: 1; }

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1.5%); }
  66% { transform: translate(1.5%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- 首屏：标题区 + 盲盒墙 ---------- */
.view { animation: view-in 0.6s ease-out both; }

@keyframes view-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-gallery .wall { padding-top: 130px; }

.view-guestbook .guestbook { padding-top: 130px; }

/* ---------- 独立留言板 ---------- */
.guestbook {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 28px 90px;
}

.gb-head { margin-bottom: 40px; }

.gb-head h2 {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5em;
  color: var(--ink);
}

.gb-zh { margin-left: 18px; color: var(--ink-2); }

.gb-count {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}

.gb-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 44px;
}

.gb-input {
  background: rgba(255, 255, 255, 0.045);
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 13px 14px;
  border-radius: 3px 3px 0 0;
  transition: border-color 0.3s ease, background 0.3s ease;
  resize: vertical;
}

.gb-input:focus { outline: none; border-bottom-color: #7dd3fc; background: rgba(255, 255, 255, 0.07); }

.gb-name { max-width: 260px; }

.gb-send {
  align-self: flex-end;
  padding: 12px 34px;
  font-size: 11px;
  letter-spacing: 0.3em;
  background: var(--ink);
  color: #000;
  border-radius: 3px;
  transition: opacity 0.3s ease;
}

.gb-send:hover { opacity: 0.85; }
.gb-send:disabled { opacity: 0.3; cursor: not-allowed; }

.gb-list { display: flex; flex-direction: column; gap: 14px; }

.gb-item {
  position: relative;
  background: rgba(255, 255, 255, 0.028);
  border-radius: 4px;
  padding: 16px 18px 14px;
  animation: view-in 0.5s ease-out both;
}

.gb-del {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 9px;
  letter-spacing: 0.18em;
  padding: 4px 8px;
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease, opacity 0.3s ease;
  opacity: 0.6;
}

.gb-del:hover { color: #fda4af; opacity: 1; }

.gb-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  padding-right: 52px;   /* 给右上角的 DEL 留出独立空间，永不遮挡时间 */
}

.gb-item-name {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #a5b4fc;
}

.gb-item-time {
  flex: none;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  font-variant-numeric: tabular-nums;
}

.gb-item-text {
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  word-break: break-word;
  white-space: pre-wrap;
}

.gb-empty {
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}

.hero {
  position: relative;
  padding: 11vh 28px 56px;
  min-height: 88svh;
}

.hero-mid {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 46px;
}

.hero-mid h1 {
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 400;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  color: var(--ink);
  text-shadow: 0 0 22px rgba(200, 220, 255, 0.18);
  animation: title-in 2s 0.9s ease-out both;
}

.hero-en {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: #c9c9c9;
  animation: title-in 2s 1.2s ease-out both;
}

@keyframes title-in {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* ---------- 抓娃娃机（全息捕获舱） ---------- */
.claw-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.claw-canvas {
  width: 100%;
  height: auto;
  display: block;
}

.claw-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.claw-move { display: flex; gap: 10px; }

.claw-btn {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 13px 22px;
  border-radius: 3px;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.claw-btn:not(:disabled):hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 18px rgba(125, 180, 252, 0.16);
}

.claw-btn:not(:disabled):active {
  background: var(--ink);
  color: #000;
  border-color: var(--ink);
}

.claw-btn:disabled { opacity: 0.18; cursor: not-allowed; }

.claw-coin { border-color: rgba(103, 232, 249, 0.32); color: rgba(255, 255, 255, 0.72); }
.claw-coin:not(:disabled):hover { border-color: rgba(103, 232, 249, 0.85); color: #fff; background: rgba(103, 232, 249, 0.07); box-shadow: 0 0 18px rgba(103, 232, 249, 0.22); }
.claw-grab { min-width: 128px; }
.claw-reset { border-color: rgba(240, 171, 252, 0.28); }
.claw-reset:hover { border-color: rgba(240, 171, 252, 0.8); color: #fff; background: rgba(240, 171, 252, 0.06); }



/* 奖励页（复用 unbox 布局） */
.prize-tag {
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--ink-2);
  animation: title-in 0.6s 0.35s ease-out both;
}

.prize-again {
  margin-top: 28px;
  z-index: 2;
  padding: 16px 46px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  background: var(--ink);
  color: #000;
  border-radius: 3px;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  animation: title-in 0.6s 0.7s ease-out both;
}

.prize-again:hover { opacity: 0.85; transform: translateY(-2px); }

/* ---------- 盲盒弹出层（华丽动画，奖励页复用） ---------- */
.unbox {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(3, 4, 10, 0.93);
  animation: lb-in 0.4s ease both;
}

.unbox-glow {
  position: absolute;
  width: 64vmin;
  height: 64vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 180, 252, 0.3), rgba(224, 170, 255, 0.12) 45%, transparent 70%); /* taste-skill-ignore: 拆盒爆发光 */
  animation: unbox-glow 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
  pointer-events: none;
}

@keyframes unbox-glow {
  0% { transform: scale(0.08); opacity: 0; }
  38% { opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}

.unbox-figure {
  margin: 0;
  position: relative;
  z-index: 2;
  animation: unbox-pop 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-shadow: 0 0 90px rgba(125, 180, 252, 0.22), 0 30px 80px rgba(0, 0, 0, 0.8); /* taste-skill-ignore: 真浮层光晕 */
}

@keyframes unbox-pop {
  0% { transform: scale(0.16) rotate(-5deg) translateY(46px); opacity: 0; filter: brightness(2.2); }
  55% { opacity: 1; filter: brightness(1.35); }
  100% { transform: scale(1) rotate(0deg) translateY(0); opacity: 1; filter: brightness(1); }
}

.unbox-figure img { max-width: 86vw; max-height: 72vh; width: auto; height: auto; display: block; }

.unbox-cap {
  margin-top: 22px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  animation: title-in 0.6s 0.45s ease-out both;
}

.unbox-title { font-size: 14px; letter-spacing: 0.3em; text-indent: 0.3em; color: var(--ink); }
.unbox-date { font-size: 10px; letter-spacing: 0.28em; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.unbox-hint {
  position: absolute;
  bottom: 3vh;
  left: 0; right: 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.34em;
  color: rgba(255, 255, 255, 0.4);
  animation: title-in 1s 0.8s ease-out both;
}

/* ---------- 照片留言区 ---------- */
.photo-img { position: relative; }

.photo-img img { border-radius: 4px 4px 0 0; }

.cmt {
  background: #0a0b16;
  padding: 12px 14px;
  border-radius: 0 0 4px 4px;
}

.cmt-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.26em;
  color: var(--ink-2);
  padding: 2px 0 4px;
  transition: color 0.35s ease;
}

.cmt-toggle:hover { color: var(--ink); }

.cmt-zh { font-size: 11px; letter-spacing: 0.12em; }

.cmt-body { margin-top: 10px; animation: view-in 0.45s ease-out both; }

.cmt-list { max-height: 210px; overflow-y: auto; }

.cmt-item {
  position: relative;
  padding: 8px 46px 8px 4px;   /* 右侧留出 DEL 独立空间 */
  font-size: 12px;
}

.cmt-row1 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.cmt-item:nth-child(odd) { background: rgba(255, 255, 255, 0.032); border-radius: 3px; }

.cmt-name {
  flex: none;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #a5b4fc;
  letter-spacing: 0.06em;
}

.cmt-text { margin-top: 3px; color: rgba(255, 255, 255, 0.78); word-break: break-word; line-height: 1.55; }

.cmt-time { flex: none; font-size: 10px; color: rgba(255, 255, 255, 0.35); font-variant-numeric: tabular-nums; }

.cmt-del {
  position: absolute;
  top: 6px;
  right: 4px;
  font-size: 9px;
  letter-spacing: 0.16em;
  padding: 3px 7px;
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s ease, background 0.3s ease, opacity 0.3s ease;
  opacity: 0.55;
}

.cmt-del:hover { color: #fda4af; opacity: 1; }
.cmt-del:focus-visible { opacity: 1; }

.cmt-empty { font-size: 11px; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.38); padding: 4px 0 2px; }

.cmt-form {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.cmt-input {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--ink);
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 10px 11px;
  border-radius: 3px;
  transition: background 0.3s ease;
}

.cmt-input:focus { outline: none; background: rgba(255, 255, 255, 0.09); }

.cmt-name-input { width: 92px; flex: none; }
.cmt-content-input { flex: 1; min-width: 150px; }

.cmt-send {
  flex: none;
  background: var(--ink);
  color: #000;
  font-size: 10px;
  letter-spacing: 0.22em;
  padding: 0 15px;
  border-radius: 3px;
  transition: opacity 0.3s ease;
}

.cmt-send:hover { opacity: 0.85; }
.cmt-send:disabled { opacity: 0.3; cursor: not-allowed; }

/* ---------- 首屏 UI（常驻导航） ---------- */
.hero-ui {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
}

.brand {
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.4s ease;
  animation: ui-in 2s 0.4s ease-out both;
}
.brand:hover { opacity: 1; }

@keyframes ui-in {
  from { opacity: 0; }
  to { opacity: 0.85; }
}

/* 主标题下的机器提示 */
.hero-mid::after {
  content: "CLAW MACHINE · 抓住属于你的一只";
  display: block;
  margin-top: 18px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.78);
  animation: title-in 2s 1.8s ease-out both, tip-breath 3.6s 2.6s ease-in-out infinite;
}

@keyframes tip-breath {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* 返回首页按钮（照片墙视图） */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--ink);
  opacity: 0.85;
  padding: 8px 4px;
  transition: opacity 0.4s ease, letter-spacing 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.back-btn:hover { opacity: 1; letter-spacing: 0.4em; }

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 12px 8px;
  animation: ui-in 2s 0.4s ease-out both;
}

.menu-line {
  display: block;
  height: 1.5px;
  width: 28px;
  background: var(--ink);
  opacity: 0.85;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), width 0.5s ease, opacity 0.3s ease;
}

.menu-btn:hover .menu-line:first-child { width: 20px; }

.menu-btn.open .menu-line:first-child { transform: translateY(3.75px) rotate(45deg); width: 22px; }
.menu-btn.open .menu-line:last-child { transform: translateY(-3.75px) rotate(-45deg); width: 22px; }

/* ---------- 全屏菜单 ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 5, 10, 0.94);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8vw;
}

.menu-enter-active, .menu-leave-active { transition: opacity 0.45s ease; }
.menu-enter-from, .menu-leave-to { opacity: 0; }

.menu-list { display: flex; flex-direction: column; gap: 2vh; }

.menu-item {
  align-self: flex-start;
  text-align: left;
  font-size: clamp(30px, 5.4vh, 58px);
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--ink);
  line-height: 1.2;
  padding: 1vh 0;
  transition: letter-spacing 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.35s ease;
}

.menu-item span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--ink-2);
  margin-top: 10px;
}

.menu-item:hover { letter-spacing: 0.26em; }

.menu-foot {
  position: absolute;
  bottom: 4vh;
  left: 8vw;
  right: 8vw;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--ink-3);
}

/* ---------- 照片墙 ---------- */
.wall {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 28px 80px;
}

.wall-head { margin-bottom: 46px; }

.wall-head h2 {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5em;
  color: var(--ink);
}

.wall-zh {
  margin-left: 18px;
  color: var(--ink-2);
}

.wall-count {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}

.masonry { column-count: 3; column-gap: 12px; }

.photo {
  position: relative;
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 12px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.photo.shown { opacity: 1; transform: translateY(0); }

.photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.7s ease;
}

.photo:hover img { filter: brightness(1.08); }

.photo-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 36px 14px 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0)); /* taste-skill-ignore: 照片上文字的中性 scrim */
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.photo:hover .photo-cap, .photo:focus-visible .photo-cap { opacity: 1; transform: translateY(0); }

.cap-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap-date { flex: none; color: var(--ink-2); font-weight: 300; }

.photo-del {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 3;
  padding: 7px 12px;
  font-size: 10px;
  letter-spacing: 0.22em;
  background: rgba(0, 0, 0, 0.55);
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.photo:hover .photo-del { opacity: 0.9; }
.photo-del:hover { background: var(--ink); color: #000; }

.empty { padding: 100px 20px; text-align: center; }

.empty-title { font-size: 13px; letter-spacing: 0.34em; color: var(--ink); }
.empty-hint { margin-top: 14px; font-size: 13px; letter-spacing: 0.12em; color: var(--ink-2); }

/* ---------- 页脚 ---------- */
.footer {
  padding: 54px 28px 44px;
  text-align: center;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--ink-3);
}

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 5, 10, 0.95);
  animation: lb-in 0.35s ease both;
}

@keyframes lb-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lb-figure {
  max-width: 90vw;
  margin: 0;
  animation: lb-fig 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes lb-fig {
  from { transform: scale(0.97); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lb-figure img { max-width: 90vw; max-height: 82vh; width: auto; height: auto; }

.lb-cap {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.lb-date { color: var(--ink-2); font-weight: 300; }

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  z-index: 5;
  padding: 15px 17px;
  color: var(--ink);
  opacity: 0.6;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.lb-close { top: 16px; right: 20px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; background: rgba(255, 255, 255, 0.07); }

.lb-del {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 24px;
  font-size: 11px;
  letter-spacing: 0.28em;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease, color 0.3s ease;
}

.lb-del:hover { background: var(--ink); color: #000; }

/* ---------- 上传模态 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 5, 10, 0.85);
  animation: lb-in 0.35s ease both;
}

.modal-box {
  position: relative;
  width: min(470px, 100%);
  background: #0d0d18;
  padding: 38px 34px 32px;
  animation: lb-fig 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  padding: 9px 10px;
  color: var(--ink);
  opacity: 0.55;
  transition: opacity 0.3s ease;
}
.modal-close:hover { opacity: 1; }

.modal-title {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.34em;
  margin-bottom: 28px;
}

.pass-row { display: flex; gap: 10px; flex-wrap: wrap; }

.pass-row input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: 0.1em;
  padding: 11px 2px;
  transition: border-color 0.3s ease;
}

.pass-row input:focus { outline: none; border-bottom-color: #7dd3fc; }

.pass-row button {
  flex: none;
  padding: 0 22px;
  font-size: 11px;
  letter-spacing: 0.26em;
  background: var(--ink);
  color: #000;
  transition: opacity 0.3s ease;
}
.pass-row button:hover { opacity: 0.85; }

.pass-err { flex-basis: 100%; margin-top: 10px; font-size: 12px; letter-spacing: 0.1em; color: #fda4af; }

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 44px 20px;
  cursor: pointer;
  text-align: center;
  background: rgba(255, 255, 255, 0.025);
  transition: background 0.35s ease;
}

.drop:hover, .drop.over { background: rgba(255, 255, 255, 0.055); }

.drop-title { font-size: 14px; letter-spacing: 0.1em; color: var(--ink); }
.drop-sub { font-size: 10px; letter-spacing: 0.2em; color: var(--ink-3); }

.up-list { margin-top: 16px; max-height: 190px; overflow-y: auto; }

.up-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  font-size: 11px;
}

.up-item:nth-child(odd) { background: rgba(255, 255, 255, 0.03); }

.up-item img { width: 40px; height: 40px; object-fit: cover; flex: none; }

.up-item input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  color: var(--ink);
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.up-item input:focus { outline: none; }

.up-st { flex: none; letter-spacing: 0.2em; font-size: 10px; color: var(--ink-3); }
.up-st.up { color: #7dd3fc; }
.up-st.done { color: #bef264; }
.up-st.fail { color: #fda4af; }

.up-go {
  width: 100%;
  margin-top: 18px;
  padding: 15px 0;
  font-size: 11px;
  letter-spacing: 0.32em;
  background: var(--ink);
  color: #000;
  transition: opacity 0.3s ease;
}

.up-go:disabled { opacity: 0.2; cursor: not-allowed; }
.up-go:not(:disabled):hover { opacity: 0.85; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 120;
  padding: 12px 28px;
  font-size: 12px;
  letter-spacing: 0.2em;
  background: rgba(13, 13, 24, 0.94);
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .masonry { column-count: 2; }
}

@media (max-width: 560px) {
  .hero-ui { padding: 18px 20px; }
  .brand { font-size: 13px; letter-spacing: 0.3em; }
  .menu-btn { width: 40px; height: 40px; }

  .hero { padding: 11vh 18px 44px; min-height: auto; }
  .hero-mid h1 { font-size: 19px; letter-spacing: 0.22em; text-indent: 0.22em; }
  .hero-en { font-size: 8.5px; letter-spacing: 0.14em; margin-top: 10px; white-space: normal; }
  .hero-mid::after { font-size: 9px; letter-spacing: 0.2em; margin-top: 14px; }

  .claw-controls { gap: 10px; margin-top: 4px; }
  .claw-btn { font-size: 11px; padding: 12px 15px; letter-spacing: 0.2em; text-indent: 0.2em; }
  .claw-grab { min-width: 96px; }
  .prize-again { padding: 14px 30px; }
.cmt { padding: 10px 12px; }
  .cmt-row1 { flex-wrap: wrap; }
  .cmt-name-input { width: 100%; flex: none; }
  .cmt-content-input { width: 100%; flex: none; }
  .cmt-form { gap: 8px; }
  .cmt-send { padding: 10px 0; width: 100%; }
  .unbox-figure img { max-width: 92vw; max-height: 66vh; }

  .guestbook { padding: 0 18px 70px; }
  .view-guestbook .guestbook { padding-top: 110px; }
  .gb-name { max-width: 100%; }
  .gb-send { align-self: stretch; }

  .menu-item { font-size: 30px; }
  .menu-overlay { padding: 0 10vw; }

  .wall { padding: 80px 18px 64px; }
  .masonry { column-count: 1; }

  .photo-cap { opacity: 1; transform: none; }
  .photo-del { opacity: 0.85; }

  .lb-prev, .lb-next { padding: 12px 13px; }
  .lb-cap { flex-direction: column; gap: 4px; }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .hero-mid::after { animation: none !important; }
  .hero-mid::after { opacity: 1; }
  .hero-mid h1, .hero-en { animation: none; opacity: 1; }
  .view { animation: none; }
  .unbox, .unbox-glow, .unbox-figure, .unbox-cap, .unbox-hint, .prize-tag, .prize-again, .cmt-body { transition: none !important; animation: none !important; }
  .unbox-glow { display: none; }
  .photo { transition: none; transform: none; }
  .lightbox, .lb-figure, .modal, .modal-box, .toast { animation: none; }
  .menu-enter-active, .menu-leave-active { transition: none; }
  .cursor { display: none; }
}
