/* =====================================================================
   我们的宇宙 · 样式（甜蜜版 · 奶油玫瑰 + 香槟金）
   内容改 assets/js/config.js 与 data.js；这里只负责好看。
   ===================================================================== */

:root {
  --bg: #0a0410;
  --ink: #fdf3f7;
  --muted: rgba(253, 243, 247, 0.66);
  --faint: rgba(253, 243, 247, 0.40);

  --rose: #ff8fab;
  --rose-deep: #ff5c8a;
  --peach: #ffc9b9;
  --cream: #fff4e6;
  --gold: #e8c9a0;
  --lilac: #b9a2ff;

  --line: rgba(255, 255, 255, 0.09);
  --gold-line: rgba(232, 201, 160, 0.26);

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --kai: "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif SC", serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 760px at 50% -12%, #3a0f2c 0%, transparent 62%),
    radial-gradient(900px 680px at 88% 10%, #2b0f2e 0%, transparent 58%),
    radial-gradient(760px 620px at 6% 68%, #25101d 0%, transparent 62%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(255, 143, 171, 0.32); color: #fff; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #0a0410; }
::-webkit-scrollbar-thumb { background: #33172b; border-radius: 9px; }
::-webkit-scrollbar-thumb:hover { background: #4a2340; }

img { max-width: 100%; }
button { font-family: inherit; }
code { font-size: 0.92em; color: var(--gold); }

/* ---------------------------------------------------------------- 背景层 */
/* 光晕不用 filter: blur（手机上是最大的掉帧来源），改用径向渐变本身就是软的 */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span {
  position: absolute; display: block; border-radius: 50%;
  opacity: 0.55;
  will-change: transform;
  animation: drift 34s ease-in-out infinite alternate;
}
.aurora .a1 {
  width: 76vw; height: 76vw; left: -22vw; top: -14vh;
  background: radial-gradient(closest-side, rgba(255, 92, 138, 0.55), rgba(255, 92, 138, 0) 70%);
}
.aurora .a2 {
  width: 70vw; height: 70vw; right: -20vw; top: 16vh; opacity: 0.36;
  background: radial-gradient(closest-side, rgba(255, 156, 122, 0.55), rgba(255, 156, 122, 0) 70%);
  animation-delay: -11s;
}
.aurora .a3 {
  width: 66vw; height: 66vw; left: 18vw; bottom: -24vh; opacity: 0.34;
  background: radial-gradient(closest-side, rgba(123, 92, 255, 0.55), rgba(123, 92, 255, 0) 70%);
  animation-delay: -22s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3vw, -4vh, 0) scale(1.15); }
}

/* 首屏滚过去以后，光晕就不动了（省电，肉眼无差） */
body.past-hero .aurora span { animation-play-state: paused; }

#stars { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

main, .foot, nav, .fab-stack { position: relative; z-index: 3; }

/* ---------------------------------------------------------------- 开场 */
#loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; gap: 18px; background: var(--bg);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-heart svg {
  width: 44px; height: 44px; fill: var(--rose-deep);
  animation: beat 1.5s ease-in-out infinite;
}
.loader-text { margin: 0; font-size: 12px; letter-spacing: 0.42em; color: var(--faint); text-align: center; }

@keyframes beat {
  0%, 100% { transform: scale(1); }
  14%      { transform: scale(1.14); }
  28%      { transform: scale(1); }
  42%      { transform: scale(1.09); }
  60%      { transform: scale(1); }
}

/* ---------------------------------------------------------------- 导航点 */
#dots {
  position: fixed; left: 28px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 17px; z-index: 60;
}
.dot {
  position: relative; width: 6px; height: 6px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(232, 201, 160, 0.28);
  cursor: pointer; transition: all 0.35s var(--ease);
}
.dot:hover { background: rgba(232, 201, 160, 0.7); }
.dot.active {
  background: var(--gold); transform: scale(1.5);
  box-shadow: 0 0 14px rgba(232, 201, 160, 0.7);
}
.dot::after {
  content: attr(data-label);
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%) translateX(-4px);
  font-size: 10.5px; letter-spacing: 0.24em; color: var(--gold);
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: all 0.3s var(--ease);
}
.dot:hover::after { opacity: 0.9; transform: translateY(-50%) translateX(0); }

/* ---------------------------------------------------------------- 通用 */
.section { padding: clamp(78px, 11vh, 140px) 24px; }
.wrap { max-width: 1120px; margin: 0 auto; }
.wrap-narrow { max-width: 760px; }

.sec-head { text-align: center; margin-bottom: clamp(40px, 6vh, 66px); }
.sec-sub {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0; font-size: 10.5px; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--gold); opacity: 0.85;
}
.sec-sub .no {
  font-family: var(--serif); font-size: 13px; letter-spacing: 0.1em;
  color: var(--gold); opacity: 0.75;
}
.sec-sub .rule { width: 34px; height: 1px; background: var(--gold-line); display: block; }
.sec-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: 0.12em; margin: 16px 0 14px;
  color: var(--cream);
}
.sec-desc { margin: 0; font-size: 13.5px; color: var(--faint); letter-spacing: 0.08em; }

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- 首页 */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  text-align: center; padding: 104px 24px 26px; overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 940px; margin: auto; }

.hero-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 0 0 30px; font-size: 11px; letter-spacing: 0.5em;
  color: var(--gold); opacity: 0.8;
}
.hero-eyebrow .line {
  width: clamp(30px, 8vw, 78px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line));
}
.hero-eyebrow .line:last-child { transform: scaleX(-1); }

.hero-name {
  margin: 0;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(3rem, 13vw, 10rem);
  line-height: 1.06; letter-spacing: 0.06em;
  background: linear-gradient(178deg, #fffdf8 0%, #ffe3d2 34%, #ffa8bd 72%, #ff6f96 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 46px rgba(255, 92, 138, 0.22));
}

.hero-rule {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 22px auto 0; width: min(260px, 60vw); color: var(--gold); opacity: 0.55;
}
.hero-rule i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line)); display: block; }
.hero-rule i:last-child { transform: scaleX(-1); }
.hero-rule svg { width: 11px; height: 11px; fill: currentColor; opacity: 0.9; }

.hero-sub {
  margin: 22px 0 0; font-size: clamp(0.92rem, 1.7vw, 1.1rem);
  color: var(--muted); letter-spacing: 0.18em;
}

.counter {
  display: inline-block; margin-top: clamp(38px, 5.6vh, 58px);
  padding: 26px 58px 24px; border-radius: 4px;
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, rgba(46, 18, 34, 0.72), rgba(26, 10, 22, 0.62));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 244, 230, 0.14);
  position: relative;
}
.counter::before, .counter::after {
  content: ""; position: absolute; width: 12px; height: 12px;
  border: 1px solid rgba(232, 201, 160, 0.45);
}
.counter::before { left: 8px; top: 8px; border-right: 0; border-bottom: 0; }
.counter::after { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }

.counter-label { font-size: 10.5px; letter-spacing: 0.42em; color: var(--faint); }
.counter-number {
  font-family: var(--serif); font-size: clamp(2.7rem, 7.6vw, 4.2rem);
  line-height: 1.1; margin: 8px 0 12px; display: flex;
  align-items: baseline; justify-content: center; gap: 9px;
}
.counter-number span {
  background: linear-gradient(180deg, #fffdf8, #ffb3c6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.counter-number em { font-style: normal; font-size: 0.3em; color: var(--muted); letter-spacing: 0.24em; }
.counter-meta {
  display: flex; align-items: center; justify-content: center; gap: 13px;
  font-size: 11.5px; color: var(--faint); letter-spacing: 0.1em;
}
.counter-meta i { width: 1px; height: 10px; background: var(--gold-line); }

.hero-scroll {
  position: relative; flex: none; margin: 30px 0 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: 0.34em; color: rgba(255, 244, 230, 0.3);
  pointer-events: none;
}
.hero-scroll svg { width: 16px; height: 16px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50%      { transform: translateY(6px); opacity: 1; }
}

.hero-glow {
  position: absolute; left: 50%; bottom: -34%; transform: translateX(-50%);
  width: 130vw; height: 66vh; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 92, 138, 0.22), rgba(255, 92, 138, 0.07) 40%, transparent 68%);
}

/* ---------------------------------------------------------------- 照片墙 */
.gal-actions {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 26px 0 0; flex-wrap: wrap;
}
.ghost-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--gold-line);
  background: rgba(255, 244, 230, 0.04);
  color: var(--cream); font-size: 12.5px; letter-spacing: 0.16em;
  transition: all 0.35s var(--ease);
}
.ghost-btn:hover {
  background: rgba(255, 244, 230, 0.1); border-color: rgba(232, 201, 160, 0.55);
  transform: translateY(-1px);
}
.ghost-btn svg { width: 13px; height: 13px; }
.gal-hint { font-size: 11px; color: var(--faint); letter-spacing: 0.08em; }

.masonry { columns: 3; column-gap: 26px; }
.m-item {
  position: relative; display: block; width: 100%;
  margin: 0 0 30px; padding: 10px 10px 0;
  border: 0; border-radius: 3px; cursor: zoom-in;
  background: linear-gradient(180deg, #fdf7ec, #f6ecdc);
  break-inside: avoid;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42), 0 2px 0 rgba(255, 255, 255, 0.5) inset;
  transform: rotate(var(--rot, -0.8deg));
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.m-item::after {
  content: ""; position: absolute; inset: 0; border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(120, 80, 50, 0.08);
  pointer-events: none;
}
.m-item:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.012);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
  z-index: 2;
}
.m-photo { position: relative; overflow: hidden; background: #201018; }
.m-photo img {
  display: block; width: 100%; height: auto; border-radius: 1px;
  transition: transform 1s var(--ease), filter 0.6s var(--ease);
  filter: saturate(1.02) contrast(1.02);
}
.m-item:hover .m-photo img { transform: scale(1.04); }
.m-item .cap {
  margin: 0; padding: 12px 8px 15px;
  font-family: var(--kai); font-size: 13px; line-height: 1.5;
  color: #6d574a; text-align: center; letter-spacing: 0.04em;
  min-height: 18px;
}
.m-del {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(20, 8, 16, 0.6); color: #fff; font-size: 12px;
  opacity: 0; transform: scale(0.85);
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(6px);
}
.m-item:hover .m-del { opacity: 1; transform: none; }
.m-del:hover { background: rgba(255, 60, 90, 0.85); border-color: transparent; }
.m-new::before {
  content: "NEW"; position: absolute; top: 16px; left: 16px; z-index: 3;
  font-size: 9px; letter-spacing: 0.2em; padding: 3px 7px 2px;
  border-radius: 2px; background: var(--rose-deep); color: #fff;
  font-family: var(--sans); box-shadow: 0 4px 12px rgba(255, 60, 110, 0.4);
}

.masonry.empty { columns: initial; }
.g-empty {
  text-align: center; color: var(--faint); font-size: 14px;
  padding: 30px 0 40px; line-height: 2.1;
}

/* ---------------------------------------------------------------- 时光轴 */
.tl { position: relative; margin-top: 8px; }
.tl::before {
  content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(232, 201, 160, 0.5), rgba(255, 143, 171, 0.5), transparent);
}
.tl-item { position: relative; width: 50%; padding: 0 48px 48px 0; text-align: right; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 48px 48px; text-align: left; }
.tl-dot {
  position: absolute; top: 8px; right: -4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(232, 201, 160, 0.1), 0 0 18px rgba(232, 201, 160, 0.6);
}
.tl-item:nth-child(even) .tl-dot { left: -4px; right: auto; }
.tl-item:last-child .tl-dot {
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(255, 143, 171, 0.12), 0 0 22px rgba(255, 143, 171, 0.75);
}
.tl-date { font-family: var(--serif); font-size: 12px; letter-spacing: 0.18em; color: var(--gold); opacity: 0.9; }
.tl-title { font-family: var(--serif); font-size: 1.16rem; letter-spacing: 0.08em; margin: 9px 0 9px; font-weight: 600; color: var(--cream); }
.tl-text { margin: 0; font-size: 13.5px; line-height: 2; color: var(--muted); }

/* ---------------------------------------------------------------- 情书 */
.paper {
  position: relative; margin: 0 auto;
  padding: clamp(32px, 5.6vw, 60px);
  border-radius: 3px; color: #40342b;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 255, 255, 0.75), transparent 46%),
    linear-gradient(162deg, #fdf8ee 0%, #f7ecda 58%, #f1e2cb 100%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(120, 85, 55, 0.08),
              inset 0 0 80px rgba(170, 130, 80, 0.10);
  transform: rotate(-0.3deg);
}
.paper::before {
  content: ""; position: absolute; inset: 14px; pointer-events: none;
  border: 1px solid rgba(150, 110, 70, 0.18);
}
.paper::after {
  content: ""; position: absolute; inset: 19px; pointer-events: none;
  border: 1px solid rgba(150, 110, 70, 0.09);
}
.paper-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding-bottom: 16px; margin-bottom: 24px;
  border-bottom: 1px solid rgba(150, 110, 70, 0.22);
  font-family: var(--kai); font-size: 1.04rem; letter-spacing: 0.1em;
}
.paper-date { font-size: 11px; color: #a08a72; letter-spacing: 0.12em; }
.paper-body {
  font-family: var(--kai); font-size: clamp(1rem, 1.55vw, 1.1rem);
  line-height: 2.2; letter-spacing: 0.03em; color: #42362b;
}
.paper-body p { margin: 0 0 0.95em; min-height: 1em; }
.paper-body .cursor {
  display: inline-block; width: 1px; height: 1em; margin-left: 2px;
  background: #6b5744; vertical-align: -0.12em;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.paper-sign {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 32px; font-family: var(--kai); font-size: 1rem; letter-spacing: 0.1em;
}
.seal {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; background: radial-gradient(circle at 32% 28%, #c9303c, #93141f);
  color: rgba(255, 240, 240, 0.92); font-size: 15px;
  transform: rotate(-9deg);
  box-shadow: 0 8px 20px rgba(130, 20, 30, 0.42), inset 0 0 0 2px rgba(255, 255, 255, 0.16),
              inset 0 -3px 8px rgba(0, 0, 0, 0.3);
}

/* ---------------------------------------------------------------- 许愿 */
.wish-form { display: flex; gap: 10px; max-width: 540px; margin: 0 auto; }
.wish-form input {
  flex: 1; min-width: 0;
  background: rgba(255, 244, 230, 0.05);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 15px 24px; color: var(--ink); font-size: 14px;
  font-family: var(--sans); outline: none; letter-spacing: 0.04em;
  transition: all 0.3s var(--ease);
}
.wish-form input::placeholder { color: rgba(253, 243, 247, 0.3); letter-spacing: 0.1em; }
.wish-form input:focus {
  border-color: rgba(232, 201, 160, 0.6);
  background: rgba(255, 244, 230, 0.08);
  box-shadow: 0 0 0 4px rgba(232, 201, 160, 0.08);
}
.wish-form button {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #ff7fa4, #d96ba8 55%, #b06fbf);
  color: #fff; font-size: 13px; letter-spacing: 0.18em;
  box-shadow: 0 12px 30px rgba(200, 70, 130, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wish-form button:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(200, 70, 130, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.wish-form button svg { width: 14px; height: 14px; }

.wish-list {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 32px; min-height: 34px;
}
.wish-chip {
  font-size: 12.5px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(255, 244, 230, 0.12);
  background: rgba(255, 244, 230, 0.045); color: rgba(253, 243, 247, 0.85);
  letter-spacing: 0.04em;
  animation: pop 0.5s var(--ease) both;
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.86) translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.fly-heart {
  position: fixed; z-index: 120; pointer-events: none;
  font-size: 22px; color: var(--rose);
  text-shadow: 0 0 18px rgba(255, 143, 171, 0.85);
  animation: flyUp 2.8s cubic-bezier(0.2, 0.6, 0.3, 1) forwards;
}
@keyframes flyUp {
  0%   { opacity: 0; transform: translate(-50%, 0) scale(0.4); }
  18%  { opacity: 1; transform: translate(-50%, -30px) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -320px) scale(0.7) rotate(12deg); }
}

/* ---------------------------------------------------------------- 页脚 */
.foot { padding: 66px 24px 88px; text-align: center; border-top: 1px solid rgba(232, 201, 160, 0.12); }
.foot-heart { margin: 0 0 14px; color: var(--rose); font-size: 17px; animation: beat 2.4s ease-in-out infinite; }
.foot p { margin: 5px 0; font-size: 12px; color: var(--muted); letter-spacing: 0.22em; }
.foot-small { color: rgba(253, 243, 247, 0.26) !important; font-size: 11px !important; letter-spacing: 0.16em !important; }

/* ---------------------------------------------------------------- 灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; background: rgba(8, 3, 10, 0.95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-figure { margin: 0; max-width: 92vw; text-align: center; }
.lb-figure img {
  max-width: 92vw; max-height: 76vh; max-height: 76svh; border-radius: 2px;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.85);
  border: 8px solid #fdf7ec;
  transform: scale(0.97); transition: transform 0.45s var(--ease);
}
.lightbox.open .lb-figure img { transform: scale(1); }
.lb-figure figcaption { margin-top: 20px; font-size: 13px; color: var(--muted); letter-spacing: 0.12em; }
.lb-close, .lb-nav {
  position: absolute; z-index: 2; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(232, 201, 160, 0.28); border-radius: 50%;
  background: rgba(255, 244, 230, 0.06); color: var(--cream);
  transition: all 0.3s var(--ease);
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 244, 230, 0.16); transform: scale(1.06); }
.lb-close { top: 22px; right: 22px; width: 42px; height: 42px; font-size: 15px; }
.lb-nav { top: 50%; width: 50px; height: 50px; font-size: 26px; line-height: 1; padding-bottom: 4px; }
.lb-prev { left: 22px; transform: translateY(-50%); }
.lb-next { right: 22px; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.06); }
.lb-next:hover { transform: translateY(-50%) scale(1.06); }

/* ---------------------------------------------------------------- 浮层按钮 */
.fab-stack { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.fab {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(232, 201, 160, 0.22);
  background: rgba(24, 10, 20, 0.86); color: var(--muted);
  transition: all 0.35s var(--ease);
}
.fab:hover { color: var(--cream); border-color: rgba(232, 201, 160, 0.55); transform: translateY(-2px); }
.fab svg { width: 18px; height: 18px; }
#topBtn { opacity: 0; pointer-events: none; }
#topBtn.show { opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------------- 抽屉 / 弹层 */
.scrim {
  position: fixed; inset: 0; z-index: 310; background: rgba(0, 0, 0, 0.58);
  opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
}
.scrim.open { opacity: 1; pointer-events: auto; }

.setup {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 320;
  width: 390px; max-width: 90vw; overflow-y: auto;
  padding: 26px 26px 40px;
  background: #100613; border-left: 1px solid var(--gold-line);
  transform: translateX(102%);
  transition: transform 0.5s var(--ease);
  box-shadow: -30px 0 90px rgba(0, 0, 0, 0.55);
}
.setup.open { transform: none; }
.setup-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.setup-head h3 { margin: 0; font-family: var(--serif); font-size: 1.12rem; letter-spacing: 0.1em; font-weight: 600; color: var(--cream); }
.setup-head button { border: 0; background: transparent; color: var(--muted); font-size: 15px; cursor: pointer; padding: 4px; }
.setup-tip { font-size: 11.5px; line-height: 1.85; color: rgba(253, 243, 247, 0.42); margin: 0 0 22px; }
.setup label { display: block; margin-bottom: 16px; font-size: 11px; letter-spacing: 0.18em; color: var(--muted); }
.setup input, .setup textarea, .setup select {
  display: block; width: 100%; margin-top: 7px;
  padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 244, 230, 0.05);
  color: var(--ink); font-size: 14px; font-family: var(--sans);
  outline: none; color-scheme: dark;
  transition: all 0.3s var(--ease);
}
.setup input:focus { border-color: rgba(232, 201, 160, 0.55); box-shadow: 0 0 0 3px rgba(232, 201, 160, 0.08); }
.setup-actions { display: flex; gap: 10px; margin-top: 24px; }
.btn {
  flex: 1; padding: 13px 16px; border: 0; border-radius: 11px; cursor: pointer;
  background: linear-gradient(135deg, #ff7fa4, #d96ba8 60%, #b06fbf);
  color: #fff; font-size: 13px; letter-spacing: 0.16em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 244, 230, 0.07); color: var(--muted); flex: 0 0 auto; }

/* ---- 添加照片 ---- */
.modal {
  position: fixed; inset: 0; z-index: 330;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(6, 2, 8, 0.78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-box {
  width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto;
  padding: 26px 26px 22px; border-radius: 6px;
  background: #130715; border: 1px solid var(--gold-line);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  transform: translateY(12px) scale(0.99); transition: transform 0.4s var(--ease);
}
.modal.open .modal-box { transform: none; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.modal-head h3 { margin: 0; font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0.1em; color: var(--cream); font-weight: 600; }
.modal-head button { border: 0; background: transparent; color: var(--muted); font-size: 15px; cursor: pointer; }
.modal-tip { margin: 0 0 18px; font-size: 11.5px; line-height: 1.8; color: rgba(253, 243, 247, 0.45); }

.dropzone {
  display: grid; place-items: center; gap: 8px;
  padding: 38px 20px; cursor: pointer; text-align: center;
  border: 1px dashed rgba(232, 201, 160, 0.4); border-radius: 4px;
  background: rgba(255, 244, 230, 0.03);
  transition: all 0.3s var(--ease);
}
.dropzone:hover, .dropzone.drag { background: rgba(255, 244, 230, 0.08); border-color: rgba(232, 201, 160, 0.75); }
.dropzone .dz-ico { font-size: 22px; color: var(--gold); opacity: 0.8; }
.dropzone .dz-main { font-size: 13px; color: var(--cream); letter-spacing: 0.1em; }
.dropzone .dz-sub { font-size: 11px; color: var(--faint); letter-spacing: 0.06em; }

.pick-list { display: grid; gap: 12px; margin-top: 18px; }
.pick-item {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center;
  padding: 9px; border-radius: 4px;
  border: 1px solid rgba(255, 244, 230, 0.1); background: rgba(255, 244, 230, 0.035);
}
.pick-item img { width: 74px; height: 74px; object-fit: cover; border-radius: 2px; display: block; }
.pick-item input {
  width: 100%; padding: 9px 11px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25);
  color: var(--ink); font-size: 12.5px; outline: none; font-family: var(--sans);
}
.pick-item input:focus { border-color: rgba(232, 201, 160, 0.5); }
.pick-item .rm {
  border: 0; background: transparent; color: rgba(253, 243, 247, 0.4);
  font-size: 15px; cursor: pointer; padding: 6px 8px;
}
.pick-item .rm:hover { color: var(--rose); }

.modal-actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.modal-actions .spacer { flex: 1; }
.modal-status { font-size: 11.5px; color: var(--faint); letter-spacing: 0.06em; min-height: 16px; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1180px) { #dots { display: none; } }
@media (max-width: 1000px) { .masonry { columns: 2; } }
@media (max-width: 860px) {
  .tl::before { left: 6px; }
  .tl-item, .tl-item:nth-child(even) {
    width: 100%; margin-left: 0; text-align: left;
    padding: 0 0 36px 34px;
  }
  .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 1px; right: auto; }
  .paper { transform: none; }
}
@media (max-width: 620px) {
  body { font-size: 15px; }
  .section { padding: 66px 18px; }
  .hero { padding: 84px 18px 22px; }
  .hero-scroll { margin-top: 26px; }
  .masonry { columns: 1; column-gap: 0; }
  .m-item { margin-bottom: 22px; transform: rotate(var(--rot, 0deg)); }
  .counter { padding: 22px 30px 20px; }
  .counter-meta { flex-direction: column; gap: 4px; }
  .counter-meta i { display: none; }
  .hero-scroll { font-size: 10px; letter-spacing: 0.22em; }
  .lb-nav { width: 42px; height: 42px; font-size: 22px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-figure img { border-width: 5px; }
  .wish-form { flex-direction: column; }
  .wish-form button { justify-content: center; padding: 14px 22px; }
  .fab-stack { right: 12px; bottom: 12px; }
  .fab { width: 40px; height: 40px; }
  .pick-item { grid-template-columns: 60px 1fr auto; }
  .pick-item img { width: 60px; height: 60px; }
  .modal-box { padding: 20px 18px 18px; }
}

@media (hover: none) {
  .m-del { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
/* ==================================================================
   收藏 · 折叠卡片（iOS 分组风）
   ================================================================== */
.shelf { padding-top: clamp(16px, 4vh, 44px); padding-bottom: clamp(50px, 8vh, 90px); }

.acc { display: flex; flex-direction: column; gap: 13px; }

.acc-item {
  position: relative; border-radius: 22px; overflow: hidden;
  background: linear-gradient(168deg, rgba(255, 244, 230, 0.052), rgba(255, 244, 230, 0.018));
  border: 1px solid rgba(255, 244, 230, 0.075);
  box-shadow: 0 22px 46px -32px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background 0.45s, border-color 0.45s, box-shadow 0.45s;
}
.acc-item::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px;
  background: linear-gradient(180deg, transparent, var(--acc, var(--rose)), transparent);
  opacity: 0; transition: opacity 0.5s;
}
.acc-item:hover { border-color: rgba(255, 244, 230, 0.12); }
.acc-item.is-open {
  border-color: rgba(255, 244, 230, 0.15);
  background: linear-gradient(168deg, rgba(255, 244, 230, 0.075), rgba(255, 244, 230, 0.026));
  box-shadow: 0 34px 70px -38px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.acc-item.is-open::before { opacity: 0.9; }

[data-accent="rose"]  { --acc: #ff8fab; }
[data-accent="gold"]  { --acc: #e8c9a0; }
[data-accent="lilac"] { --acc: #b6a4ff; }
[data-accent="peach"] { --acc: #ffb59b; }
[data-accent="mint"]  { --acc: #8fe3d0; }

.acc-head {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 17px 20px; background: transparent; border: 0;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.acc-ico {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(255, 244, 230, 0.055);
  border: 1px solid rgba(255, 244, 230, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.4s, border-color 0.4s;
}
.acc-ico svg { width: 20px; height: 20px; color: var(--acc); transition: filter 0.4s; }
.acc-item.is-open .acc-ico { background: rgba(255, 244, 230, 0.09); border-color: rgba(255, 244, 230, 0.14); }
.acc-item.is-open .acc-ico svg { filter: drop-shadow(0 0 10px var(--acc)); }

.acc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.acc-title { font-family: var(--serif); font-size: 1.02rem; letter-spacing: 0.06em; color: var(--cream); font-weight: 600; }
.acc-sub { font-size: 11.5px; color: rgba(253, 243, 247, 0.42); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-idx { font-family: var(--serif); font-size: 10.5px; letter-spacing: 0.22em; color: rgba(232, 201, 160, 0.42); }
.acc-chev {
  flex: 0 0 auto; width: 20px; height: 20px; display: grid; place-items: center;
  color: rgba(253, 243, 247, 0.35);
  transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.4, 1), color 0.4s;
}
.acc-chev svg { width: 13px; height: 13px; }
.acc-item.is-open .acc-chev { transform: rotate(90deg); color: var(--acc); }

.acc-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.46s cubic-bezier(0.4, 0, 0.16, 1);
  contain: layout paint;
}
.acc-item.is-open .acc-body { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; min-height: 0; }
.acc-pad { padding: 2px 20px 26px; }
.acc-item:not(.is-open) .acc-pad { pointer-events: none; }

/* 卡片内部的内容宽度约束 */
.acc-pad .paper { max-width: 720px; margin: 0 auto; }
.acc-pad .tl { max-width: 700px; margin: 0 auto; }
.acc-pad .wish-form { margin: 0 auto 20px; }
.acc-pad .wish-list { max-width: 620px; margin: 0 auto; }
.acc-pad .masonry { padding-top: 4px; }

/* ---------------------------------------------------------------- 首屏数据条 */
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-top: 26px; flex-wrap: wrap;
}
.hstat { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.hstat b { font-family: var(--serif); font-size: 1.02rem; letter-spacing: 0.04em; color: var(--cream); font-weight: 600; font-variant-numeric: tabular-nums; }
.hstat span { font-size: 10.5px; letter-spacing: 0.14em; color: rgba(253, 243, 247, 0.34); }
.hstat-line { width: 1px; height: 22px; background: var(--gold-line); display: block; }

.counter { overflow: hidden; transform-style: preserve-3d; will-change: transform; }
.counter-glow {
  position: absolute; inset: -55%; pointer-events: none;
  background: radial-gradient(circle at 50% 42%, rgba(255, 143, 171, 0.2), transparent 60%);
}

/* ---------------------------------------------------------------- 3D 相册 */
.stage {
  position: relative; height: 372px; margin-top: 8px; border-radius: 18px;
  perspective: 1000px; perspective-origin: 50% 44%;
  overflow: hidden; touch-action: pan-y; cursor: grab;
  background: radial-gradient(ellipse at 50% 42%, rgba(255, 143, 171, 0.09), transparent 62%);
  -webkit-user-select: none; user-select: none;
}
.stage.grabbing { cursor: grabbing; }
.stage-ring { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.stage-item {
  position: absolute; left: 50%; top: 50%;
  width: 208px; height: 260px; margin: -130px 0 0 -104px;
  border-radius: 14px; overflow: hidden; background: #150a18;
  box-shadow: 0 34px 64px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 244, 230, 0.1);
  transform-style: preserve-3d; cursor: pointer;
}
.stage-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.stage-item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 4, 16, 0) 52%, rgba(10, 4, 16, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.stage-floor {
  position: absolute; left: 50%; top: 88%; width: 76%; height: 140px;
  transform: translate(-50%, -50%) rotateX(74deg);
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 143, 171, 0.3), transparent 68%);
  filter: blur(14px); pointer-events: none;
}
.stage-tip {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 16px 0 0; font-size: 11.5px; color: rgba(253, 243, 247, 0.4); letter-spacing: 0.12em;
}
.stage-tip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); }

/* ---------------------------------------------------------------- 排序面板 */
.modal-box-wide { max-width: 620px; }
.sort-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 9px; max-height: 46vh; overflow-y: auto; padding: 3px;
}
.sort-item {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  background: #1a0f1c; cursor: grab; touch-action: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.sort-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.sort-item .idx {
  position: absolute; left: 6px; top: 6px; padding: 1px 6px; border-radius: 20px;
  font-size: 10px; letter-spacing: 0.06em; color: #ffe6c9;
  background: rgba(10, 4, 16, 0.72); backdrop-filter: blur(4px);
}
.sort-item.dragging { opacity: 0.3; transform: scale(0.94); }
.sort-item.over { box-shadow: 0 0 0 2px var(--rose), 0 10px 22px -10px rgba(255, 92, 138, 0.7); transform: scale(1.04); }

/* ---------------------------------------------------------------- 折叠：小屏 */
@media (max-width: 760px) {
  .acc-item { border-radius: 19px; }
  .acc-head { padding: 15px 15px; gap: 11px; }
  .acc-ico { width: 38px; height: 38px; border-radius: 11px; }
  .acc-ico svg { width: 18px; height: 18px; }
  .acc-title { font-size: 0.97rem; }
  .acc-sub { font-size: 11px; }
  .acc-idx { display: none; }
  .acc-pad { padding: 2px 14px 22px; }
  .hero-stats { gap: 13px; margin-top: 22px; }
  .hstat b { font-size: 0.94rem; }
  .hstat span { font-size: 10px; letter-spacing: 0.1em; }
  .hstat-line { height: 18px; }
  .stage { height: 300px; }
  .stage-item { width: 150px; height: 190px; margin: -95px 0 0 -75px; border-radius: 11px; }
  .sort-grid { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); max-height: 42vh; }
} 

/* ---------------------------------------------------------------- 背景音乐 */
.music {
  position: fixed; left: 20px; bottom: 20px; z-index: 95;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.music-btn {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(232, 201, 160, 0.3);
  background: rgba(24, 10, 20, 0.88);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.music-btn:hover { transform: translateY(-2px); border-color: rgba(232, 201, 160, 0.55); }

/* 唱片 */
.disc {
  position: relative; display: block; width: 30px; height: 30px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #2a1220 0 22%, transparent 23%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 34% 30%, #ff8fab, #b8395f 46%, #40121f 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.disc i {
  position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: radial-gradient(circle, #fff4e6 0 40%, #e8c9a0 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.music.is-playing .disc { animation: spin 3.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 面板 */
.music-panel {
  width: min(268px, calc(100vw - 40px));
  padding: 13px 14px 12px; border-radius: 16px;
  background: rgba(22, 9, 18, 0.96);
  border: 1px solid rgba(255, 244, 230, 0.1);
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0; transform: translateY(10px) scale(0.97); pointer-events: none;
  transform-origin: left bottom;
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
}
.music-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.music-head { display: flex; align-items: flex-start; gap: 8px; }
.music-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.music-meta strong {
  font-family: var(--serif); font-size: 0.92rem; color: var(--ink); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.music-meta span { font-size: 10.5px; letter-spacing: 0.1em; color: var(--faint); }
.music-close {
  border: 0; background: none; color: var(--faint); cursor: pointer;
  font-size: 12px; padding: 2px 4px; line-height: 1;
}
.music-close:hover { color: var(--rose); }

.music-bar {
  height: 2px; margin: 10px 0 9px; border-radius: 2px;
  background: rgba(255, 244, 230, 0.1); overflow: hidden;
}
.music-bar i { display: block; height: 100%; width: 0%; border-radius: 2px; background: linear-gradient(90deg, var(--rose), var(--gold)); }

.music-ctrl { display: flex; align-items: center; justify-content: center; gap: 14px; }
.music-ctrl button {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font-size: 13px; padding: 4px 6px; line-height: 1; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.music-ctrl button:hover { color: var(--ink); background: rgba(255, 244, 230, 0.07); }
.music-play {
  width: 34px; height: 34px; border-radius: 50% !important;
  display: grid; place-items: center; font-size: 11px !important;
  background: rgba(255, 143, 171, 0.16) !important; color: #ffd9e3 !important;
  border: 1px solid rgba(255, 143, 171, 0.35) !important;
}
.music-play:hover { background: rgba(255, 143, 171, 0.28) !important; }

.music-list { margin-top: 10px; max-height: 120px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.music-item {
  display: flex; align-items: center; gap: 2px;
  border-radius: 8px; color: var(--muted); font-size: 11.5px;
}
.music-item:hover { background: rgba(255, 244, 230, 0.06); color: var(--ink); }
.music-item.on { background: rgba(255, 143, 171, 0.12); color: #ffd9e3; }
.music-item .mi-pick {
  flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px;
  border: 0; background: none; cursor: pointer; text-align: left;
  padding: 6px 2px 6px 7px; color: inherit; font: inherit;
}
.music-item .mi-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-item .mi-art { font-size: 9.5px; letter-spacing: 0.06em; color: var(--faint); flex: 0 0 auto; }
.music-item .mi-del {
  flex: 0 0 auto; width: 22px; height: 22px; margin-right: 3px;
  border: 0; border-radius: 50%; background: none; cursor: pointer;
  color: rgba(253, 243, 247, 0.34); font-size: 10px; line-height: 1;
  opacity: 0.55; transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}
.music-item:hover .mi-del, .music-item.on .mi-del { opacity: 1; }
.music-item .mi-del:hover { color: #ff8fab; background: rgba(255, 143, 171, 0.12); }
.music-empty { margin: 4px 2px; font-size: 11px; line-height: 1.6; color: var(--faint); }

.music-note {
  margin: 8px 2px 0;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(253, 243, 247, 0.5);
  letter-spacing: 0.02em;
}

.music-add { display: flex; gap: 6px; margin-top: 10px; }
.music-add input {
  flex: 1; min-width: 0; padding: 7px 9px; border-radius: 9px;
  border: 1px solid rgba(255, 244, 230, 0.12); background: rgba(255, 244, 230, 0.05);
  color: var(--ink); font-size: 11.5px; font-family: inherit; outline: none;
}
.music-add input:focus { border-color: rgba(255, 143, 171, 0.5); }
.music-add button {
  flex: 0 0 auto; width: 32px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(255, 143, 171, 0.3); background: rgba(255, 143, 171, 0.14);
  color: #ffd9e3; font-size: 15px; line-height: 1;
}
.music-add button:hover { background: rgba(255, 143, 171, 0.26); }

@media (max-width: 760px) {
  .music { left: 14px; bottom: 14px; }
  .music-btn { width: 44px; height: 44px; }
  .disc { width: 27px; height: 27px; }
  .music-panel { width: min(250px, calc(100vw - 28px)); }
}
