* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: #e9e7e2; }
body {
  background: transparent;
  font-family: "Songti SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  opacity: 0; animation: fadeIn .8s ease .1s forwards;
}
[v-cloak] { display: none !important; }

/* 去掉浏览器点击蓝块/焦点框 */
button, a, input, textarea, .pill, .cact, .avatar, .citem, .toggle-fold {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
.pill.busy { opacity: .72; cursor: progress; }

:focus { outline: none; }
:focus-visible { outline: 2px solid rgba(40,60,70,.35); outline-offset: 2px; }
::selection { background: rgba(40,60,70,.18); }

/* ===== 流动色团 ===== */
.blobs { position: fixed; inset: 0; overflow: hidden; filter: blur(64px); z-index: 0; }
.blobs::before {
  content: ""; position: absolute; inset: -10%;
  background: radial-gradient(60% 55% at 50% 42%, rgba(255,255,255,.45), rgba(255,255,255,0) 72%);
}
.blob { position: absolute; border-radius: 50%; will-change: transform; opacity: 0; animation-fill-mode: forwards; }
.b1 { --o: .85; width: 46vmax; height: 46vmax; left: -12vmax; top: -16vmax; background: #b9c6b0; animation: reveal 1.4s ease-out .2s forwards, drift1 22s ease-in-out infinite alternate; }
.b2 { --o: .75; width: 40vmax; height: 40vmax; right: -14vmax; top: 4vmax; background: #c9b7a8; animation: reveal 1.4s ease-out .5s forwards, drift2 27s ease-in-out infinite alternate; }
.b3 { --o: .70; width: 52vmax; height: 52vmax; left: 18vmax; bottom: -30vmax; background: #a8b2b8; animation: reveal 1.4s ease-out .8s forwards, drift3 33s ease-in-out infinite alternate; }
.b4 { --o: .60; width: 34vmax; height: 34vmax; right: 10vmax; bottom: -14vmax; background: #d3c8b2; animation: reveal 1.4s ease-out 1.1s forwards, drift1 29s ease-in-out infinite alternate-reverse; }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes reveal { from { opacity: 0; } to { opacity: var(--o, .8); } }
@keyframes drift1 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(8vmax,6vmax,0) scale(1.18); } }
@keyframes drift2 { from { transform: translate3d(0,0,0) scale(1.06); } to { transform: translate3d(-10vmax,9vmax,0) scale(.94); } }
@keyframes drift3 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-7vmax,-12vmax,0) scale(1.14); } }

/* ===== 主玻璃面板（首屏 + 讨论区一体，视觉连续） ===== */
.panel {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  width: 780px; max-width: calc(100vw - 32px);
  margin: 8vh auto; padding: 60px 56px 44px;
  border-radius: 30px;
  background: linear-gradient(162deg, rgba(255,255,255,.32), rgba(255,255,255,.10) 44%, rgba(255,255,255,.18));
  border: 1px solid rgba(255,255,255,.46);
  box-shadow: 0 30px 70px -26px rgba(60,54,46,.32), 0 2px 10px rgba(60,54,46,.05), inset 0 1px 0 rgba(255,255,255,.75);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  opacity: 0; animation: bloom 1.3s cubic-bezier(.22,.85,.3,1) .5s forwards;
}
/* 入场：由虚焦晕开 */
@keyframes bloom {
  0% { opacity: 0; transform: scale(.965) translateY(18px); filter: blur(14px); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.seam {
  height: 1px; margin: 46px 0 40px;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(90,85,75,.26) 26%, rgba(90,85,75,.26) 74%, rgba(255,255,255,0));
}

/* 首屏 */
.hero { display: flex; flex-direction: column; align-items: center; opacity: 0; animation: rise .9s ease .85s forwards; }
.avatar {
  position: relative; width: 132px; height: 132px; border-radius: 50%;
  overflow: hidden; background: #f4f2ee; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  border: 1px solid rgba(255,255,255,.74);
  box-shadow: 0 14px 34px -12px rgba(60,54,46,.34), inset 0 1px 0 rgba(255,255,255,.95);
  transition: transform .5s cubic-bezier(.22,.85,.3,1), box-shadow .5s ease,
              width .55s cubic-bezier(.22,.85,.3,1), height .55s cubic-bezier(.22,.85,.3,1),
              border-radius .55s cubic-bezier(.22,.85,.3,1);
}
.avatar:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -14px rgba(60,54,46,.4), inset 0 1px 0 rgba(255,255,255,.95); }
.avatar img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 18%; transition: transform .55s cubic-bezier(.22,.85,.3,1); }
/* 点击头像放大 */
.avatar.zoom { width: 300px; height: 300px; border-radius: 28px;
  box-shadow: 0 36px 74px -22px rgba(60,54,46,.5), inset 0 1px 0 rgba(255,255,255,.95); }
.avatar.zoom:hover { transform: none; }
.avatar.zoom img { transform: scale(1.05); }
.name { margin: 30px 0 0; font-size: 30px; font-weight: 400; letter-spacing: .16em; text-indent: .16em; color: #1e2024; }
.motto { margin: 14px 0 0; font-size: 14px; letter-spacing: .16em; text-indent: .16em;
  color: rgba(40,42,46,.52); text-align: center; display: block; min-height: 1.7em; }
.motto-text { display: inline-block; min-width: 1em; }
/* 竖直细光标条，随打字闪 */
.motto-caret { display: inline-block; width: 2px; height: 1em; margin-left: 3px;
  vertical-align: -0.12em; background: rgba(40,42,46,.5);
  animation: caretBlink .9s steps(1) infinite; }
@keyframes caretBlink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
/* 打字态：去掉 text-indent 偏移，光标才紧贴文字 */
.motto.typed { text-indent: 0; }

.banner { width: 100%; margin: 30px 0 0; }
.banner img { display: block; width: 100%; height: auto; border-radius: 18px;
  box-shadow: 0 18px 44px -22px rgba(60,54,46,.4); }

  margin: 0 0 24px; font-size: 20px; font-weight: 400; color: #1e2024;
  letter-spacing: .3em; text-indent: .3em;
  display: flex; align-items: center; gap: 14px;
}
.footprints h2::before { content: ""; width: 26px; height: 1px; background: rgba(70,70,60,.4); }
.footprints h2::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.35); }

.namebox-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.namebox-form input {
  flex: 1; min-width: 180px; padding: 11px 15px; font: inherit; font-size: 15px;
  color: #1e2024; background: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.55);
  border-radius: 12px; transition: border-color .3s, background .3s, box-shadow .3s;
}
.namebox-form input:focus { border-color: rgba(110,130,120,.7); background: rgba(255,255,255,.6); box-shadow: 0 0 0 4px rgba(110,130,120,.12); }
.namebox-form input::placeholder { color: rgba(40,42,46,.4); }

.name-redhint {
  margin: 9px 0 0; font-size: 13px; color: #b3362b; letter-spacing: .04em;
  display: flex; align-items: center; gap: 7px;
}
.name-redhint::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: #b3362b; flex: none; }
.name-bound { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: rgba(40,42,46,.55); }
.name-bound b { font-size: 17px; font-weight: 500; color: #1e2024; letter-spacing: .08em; }

/* 胶囊按钮：悬停抬升、按下陷落 */
.pill {
  padding: 9px 20px; font: inherit; font-size: 14px; letter-spacing: .1em;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.55); cursor: pointer;
  background: rgba(255,255,255,.4); color: #1e2024;
  transition: transform .18s cubic-bezier(.22,.85,.3,1), box-shadow .25s, background .25s;
}
.pill:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(60,54,46,.4); background: rgba(255,255,255,.52); }
.pill:active:not(:disabled) { transform: translateY(1px) scale(.965); box-shadow: none; }
.pill.primary { background: rgba(40,50,46,.88); border-color: rgba(40,50,46,.9); color: #f4f2ee; }
.pill.primary:hover:not(:disabled) { background: rgba(30,38,34,.92); }
.pill:disabled { opacity: .6; cursor: default; }

/* 发言框 */
.compose { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.compose textarea {
  resize: vertical; padding: 12px 15px; font: inherit; color: #1e2024;
  background: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.55);
  border-radius: 14px; min-height: 66px; font-size: 15px; line-height: 1.6;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.compose textarea:focus {
  background: rgba(255,255,255,.6); border-color: rgba(110,130,120,.6); box-shadow: 0 0 0 4px rgba(110,130,120,.1);
}
.compose textarea::placeholder { color: rgba(40,42,46,.4); }
.compose-bar { display: flex; justify-content: space-between; align-items: center; }
.count { font-size: 12px; color: rgba(40,42,46,.45); transition: color .25s; }
.count.hot { color: #b3362b; }

/* ===== 足迹 ===== */
.empty { font-size: 14px; color: rgba(40,42,46,.45); text-align: center; padding: 18px 0; }


/* ===== 足迹打卡墙 ===== */
.fstats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 22px; }
.fstat { display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 8px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.28));
  border: 1px solid rgba(255,255,255,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.75); }
.fstat b { font-size: 24px; font-weight: 500; letter-spacing: .04em; color: #1e2024; }
.fstat span { font-size: 12px; letter-spacing: .12em; color: rgba(40,42,46,.5); }
.fstat.now { background: linear-gradient(180deg, rgba(120,150,130,.22), rgba(120,150,130,.12)); }
.fstat.now b { color: #5c7c68; }
.fmap { position: relative; margin-top: 26px; height: 460px; overflow: hidden;
  border-radius: 20px; touch-action: none;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.28);
  cursor: grab; user-select: none; -webkit-user-select: none; }
.fmap.grabbing { cursor: grabbing; }
.fwall { position: absolute; top: 0; left: 0; width: 100%; will-change: transform;
  transform-origin: 0 0; }
/* 缩放控件：右下角，不挡拖拽 */
.fzoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 4;
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px; border-radius: 99px;
  background: rgba(233,231,225,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.6);
  font-size: 11px; color: rgba(40,42,46,.55); letter-spacing: .06em;
}
.fzoom-z { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.fzoom button {
  width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(40,42,46,.07); color: rgba(40,42,46,.6);
  font: inherit; font-size: 13px; line-height: 20px; text-align: center;
  cursor: pointer; transition: background .2s, color .2s;
}
.fzoom button:hover { background: rgba(40,42,46,.14); color: #1e2024; }
.fcard { position: absolute; display: inline-flex; align-items: baseline; gap: 5px;
  max-width: 44%; padding: 3px 20px 3px 8px; border-radius: 8px 8px 8px 1px;
  background: linear-gradient(150deg, rgba(255,255,255,.62), rgba(255,255,255,.3));
  border: 1px solid rgba(255,255,255,.6); color: rgba(35,38,42,.82);
  letter-spacing: .04em; white-space: nowrap;
  animation: cardIn .5s cubic-bezier(.22,.85,.3,1) both;
  transition: transform .25s cubic-bezier(.22,.85,.3,1), box-shadow .25s; }
.fcard:nth-child(odd) { border-radius: 8px 1px 8px 8px; }
.fcard:nth-child(3n) { background: linear-gradient(150deg, rgba(185,198,176,.4), rgba(255,255,255,.26)); }
.fcard:nth-child(4n) { background: linear-gradient(150deg, rgba(201,183,168,.38), rgba(255,255,255,.24)); }
  box-shadow: 0 14px 30px -14px rgba(60,54,46,.42), inset 0 1px 0 rgba(255,255,255,.9); }
.fname { font-weight: 500; color: #1e2024; font-size: 1em; }
.fmsg { opacity: .5; font-size: .82em; letter-spacing: .02em; }
.fx { position: absolute; top: 1px; right: 2px; width: 15px; height: 15px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer; opacity: 0;
  background: rgba(40,42,46,.08); color: rgba(40,42,46,.5);
  font-size: 11px; line-height: 15px; text-align: center;
  transition: opacity .2s, background .2s, color .2s; }
.fcard:hover .fx { opacity: 1; }
.fx:hover { background: rgba(179,54,43,.16); color: #b3362b; }
@keyframes cardIn { from { opacity: 0; transform: scale(.86) translateY(6px); } to { opacity: 1; } }
.fcheck { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.fcheck-hint { font-size: 13px; color: rgba(40,42,46,.45); letter-spacing: .04em; }

/* 足迹删除按钮（复用文字动作钮样式） */
.cact {
  background: none; border: 0; padding: 2px 0; cursor: pointer;
  font: inherit; font-size: 13px; color: rgba(40,42,46,.55); letter-spacing: .06em;
  position: relative; transition: color .25s;
}
.cact::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.22,.85,.3,1); opacity: .55;
}
.cact:hover { color: #1e2024; }
.cact:hover::after { transform: scaleX(1); }
.cact.del:hover { color: #b3362b; }

/* 截图展开/收起按钮 */
.toggle-fold {
  display: inline-block; margin: 7px 0; padding: 4px 0; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 13px; color: rgba(40,60,70,.75); letter-spacing: .08em;
  transition: color .25s, letter-spacing .3s;
}
.toggle-fold:hover { color: #1e2024; letter-spacing: .13em; }
.toggle-fold .chev { display: inline-block; font-style: normal; transition: transform .34s cubic-bezier(.3,.9,.3,1); }
.toggle-fold.open .chev { transform: rotate(180deg); }

/* ===== 加载态 ===== */
.loading {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 36px 0; color: rgba(40,42,46,.5); font-size: 13px; letter-spacing: .16em;
}
.loading i { font-style: normal; }
.loading span {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(40,60,70,.55);
  animation: dot 1.1s ease-in-out infinite;
}
.loading span:nth-child(2) { animation-delay: .15s; }
.loading span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-5px); opacity: 1; } }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 60;
  padding: 11px 22px; border-radius: 999px; font-size: 14px; letter-spacing: .06em;
  color: #f6f4f0; background: rgba(35,35,32,.92);
  box-shadow: 0 14px 34px -14px rgba(0,0,0,.5);
}
.toast.err { background: #a0352a; }
.toast-enter-active { transition: transform .38s cubic-bezier(.22,.85,.3,1), opacity .38s; }
.toast-leave-active { transition: transform .3s ease, opacity .3s; }
.toast-enter-from { opacity: 0; transform: translate(-50%, 12px); }
.toast-leave-to { opacity: 0; transform: translate(-50%, 8px); }

/* ===== 软件下载卡 ===== */
/* ===== 软件下载卡（列向布局：头部 → 截图 → 展开） ===== */
.dlbox {
  position: relative; margin-top: 22px;
  display: flex; flex-direction: column; align-items: stretch; gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.34);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.dlbox-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.dlbox-icon {
  width: 48px; height: 48px; border-radius: 12px; flex: none;
  object-fit: cover; background: #f4f2ee;
  box-shadow: 0 6px 16px -8px rgba(60,54,46,.4);
}
.dlbox-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dlbox-info b { font-size: 16px; font-weight: 500; letter-spacing: .06em; color: #1e2024; }
.dlbox-info span { font-size: 12px; color: rgba(40,42,46,.5); letter-spacing: .04em; }
.dlbox-head .pill { min-width: 88px; flex: none; }
/* 截图：默认横排三张，展开后追加 */
.dlshots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dlshots figure { margin: 0; }
.dlshots img {
  display: block; width: 100%; height: auto; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 10px 24px -16px rgba(60,54,46,.4);
  transition: transform .3s cubic-bezier(.22,.85,.3,1);
}
.dlshots img:hover { transform: scale(1.03); }
/* 展开更多截图按钮（复用评论折叠样式） */
.dlbox .toggle-fold { align-self: flex-start; }
.dlbox .toggle-fold .chev { display: inline-block; font-style: normal; transition: transform .34s cubic-bezier(.3,.9,.3,1); }
.dlbox .toggle-fold.open .chev { transform: rotate(180deg); }

/* ===== 唱片悬浮窗（拖拽 + 旋转） ===== */
.disc {
  position: fixed; right: 22px; bottom: 26px; z-index: 70;
  width: 60px; height: 60px; border-radius: 50%;
  padding: 0; border: 0; background: none; cursor: grab;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  filter: drop-shadow(0 10px 24px -8px rgba(60,54,46,.5));
  will-change: transform;
}
.disc.dragging { cursor: grabbing; }
.disc-art {
  position: absolute; inset: 0; border-radius: 50%;
  background-size: cover; background-position: center;
  animation: spin 6s linear infinite; animation-play-state: paused;
  will-change: transform;
}
.disc.playing .disc-art { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
/* 中心唱针孔，让"唱片"更像唱片 */
.disc-hole {
  position: absolute; left: 50%; top: 50%; width: 12px; height: 12px;
  margin: -6px 0 0 -6px; border-radius: 50%;
  background: rgba(244,242,238,.95);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
}
/* 播放/暂停指示：右下角小胶囊 */
.disc-tip {
  position: fixed; right: 22px; bottom: 94px; z-index: 70;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; letter-spacing: .08em; color: #f6f4f0;
  background: rgba(35,35,32,.9); box-shadow: 0 8px 20px -10px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.22,.85,.3,1);
}
.disc-tip.show { opacity: 1; transform: none; }

/* ===== 截图浮层 ===== */

/* ===== 自适应 ===== */
@media (max-width: 640px) {
  .panel { margin-top: 4vh; margin-bottom: 5vh; padding: 44px 22px 34px; }
  .avatar { width: 104px; height: 104px; }
  .name { font-size: 24px; }
  .motto { font-size: 12px; letter-spacing: .08em; text-indent: .08em; }
  .seam { margin: 34px 0 30px; }
  .replies { margin-left: 12px; padding-left: 10px; }
  .cacts { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  body { opacity: 1; animation: none; }
  .panel, .hero, .footprints { animation: none !important; opacity: 1 !important; filter: none !important; transform: none !important; }
  .fcard { animation: none !important; opacity: 1 !important; }
  .blob { animation: none !important; opacity: var(--o, .7) !important; }
  .pill, .avatar, .toggle-fold .chev, .cact::after { transition: none !important; }
  .loading span { animation: none !important; opacity: .7; transform: none; }
  .motto-caret { animation: none; }
}


/* 地图网格：随大地平移，提供方位感 */
.fmap-tip {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  padding: 5px 14px 6px; border-radius: 99px;
  background: rgba(233,231,225,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.6);
  font-size: 11px; letter-spacing: .12em; color: rgba(40,42,46,.5);
  pointer-events: none; z-index: 3;
  transition: opacity .4s ease, transform .4s ease;
}
.fmap-tip.gone { opacity: 0; transform: translateX(-50%) translateY(6px); }
.fgrid { position: absolute; inset: -4000px; pointer-events: none; content: "";
  background-image:
    linear-gradient(rgba(70,70,60,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70,70,60,.05) 1px, transparent 1px);
  background-size: 96px 96px; }
